/*
Theme Name: HealthWiky
Theme URI: https://healthwiky.com/
Author: HealthWiky
Description: Editorial theme for the HealthWiky blog. Shares the main site's design system exactly, so articles and reference pages read as one publication.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthwiky
Tags: blog, one-column, custom-menu, editor-style, accessibility-ready
*/

/* -------------------------------------------------------------------------
   GENERATED FILE - do not edit.
   Rebuild with: npm run wp:theme
   Sources: app/globals.css  +  wp-theme/healthwiky/wp-extra.css
   ------------------------------------------------------------------------- */

/* =========================================================================
   HealthWiky design system
   -------------------------------------------------------------------------
   One stylesheet, no CSS framework, no webfont downloads. Every content page
   is readable and usable with JavaScript disabled.

   Written mobile-first: base rules target small screens, `min-width` queries
   layer on the larger layouts.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  /* Ink and surface */
  --ink: #10201e;
  --ink-2: #435b57;
  --ink-3: #6b827e;
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --bg-sink: #eaf1ef;
  --line: #dde7e4;
  --line-strong: #c3d3cf;

  /* Brand — a calm teal. Reads as health and trust without the cold,
     clinical blue of a hospital website. */
  --brand: #0d6e63;
  --brand-dark: #08514a;
  --brand-ink: #063a35;
  --brand-soft: #e5f1ef;
  --brand-softer: #f0f7f6;

  /* Signals */
  --warn: #9a5b06;
  --warn-soft: #fdf4e7;
  --warn-line: #f0dcbb;
  --danger: #a52a1e;
  --danger-soft: #fdf1ef;
  --danger-line: #f3cfc9;

  /* Shape */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 30, 0.06);
  --shadow: 0 2px 8px rgba(16, 32, 30, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 32, 30, 0.10);

  /* Rhythm */
  --container: 1120px;
  --gutter: 20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-ink);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 1.9rem;
}
h2 {
  font-size: 1.45rem;
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding-block: 2.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 3.5rem;
  }
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  margin-bottom: 1.5rem;
}

.section__head p {
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--r) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mark {
  color: var(--brand);
}

.brand:hover {
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop navigation ------------------------------------------------- */

.nav-desktop {
  display: none;
}

@media (min-width: 1000px) {
  .nav-desktop {
    display: block;
    flex: 1;
  }
  .nav-mobile-toggle {
    display: none !important;
  }
}

.nav-desktop__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-desktop__item {
  position: relative;
  margin: 0;
}

.nav-desktop__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  /* Tight horizontal padding: nine top-level items plus the brand and the
     Ask AI button just fit the 1120px container. Loosening this wraps the nav. */
  padding: 0.5rem 0.52rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop__link:hover,
.nav-desktop__item:focus-within > .nav-desktop__link {
  background: var(--brand-softer);
  color: var(--brand-ink);
}

.nav-desktop__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.5;
}

/* CSS-only dropdown: opens on hover and on keyboard focus. No JS. */
.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.nav-desktop__item:hover > .nav-drop,
.nav-desktop__item:focus-within > .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop li {
  margin: 0;
}

.nav-drop a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-drop a:hover {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

/* Mobile navigation -------------------------------------------------- */

.nav-mobile-toggle {
  display: block;
}

.nav-mobile-toggle > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.nav-mobile-toggle > summary::-webkit-details-marker {
  display: none;
}

.burger {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.burger::before {
  top: -6px;
}
.burger::after {
  top: 6px;
}

.nav-mobile-toggle[open] .burger {
  background: transparent;
}

.nav-mobile-toggle[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-mobile-toggle[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: 78vh;
  overflow-y: auto;
  padding: 0.75rem var(--gutter) 1.5rem;
}

.nav-mobile__group {
  border-bottom: 1px solid var(--line);
  padding-block: 0.35rem;
}

.nav-mobile__group:last-child {
  border-bottom: 0;
}

.nav-mobile__title {
  display: block;
  padding: 0.6rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-mobile__links {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-mobile__links a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  font-size: 0.87rem;
  color: var(--ink-2);
  text-decoration: none;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--brand-ink);
  color: #cfe2df;
  padding-block: 2.5rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.94rem;
}

.site-footer a {
  color: #cfe2df;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer__brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer__note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a9c6c1;
  font-size: 0.85rem;
}

.site-footer__note p {
  margin: 0 0 0.5rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--bg);
  color: var(--brand-ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  background: var(--brand-softer);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.btn--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* ---------------------------------------------------------------- search */

.searchbox {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  flex-direction: column;
}

@media (min-width: 560px) {
  .searchbox {
    flex-direction: row;
  }
}

.searchbox__field {
  position: relative;
  flex: 1;
}

.searchbox__input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.searchbox__input::placeholder {
  color: var(--ink-3);
}

.searchbox__input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.searchbox__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  display: flex;
}

.searchbox--header {
  max-width: 260px;
}

.searchbox--header .searchbox__input {
  padding-block: 0.5rem;
  font-size: 0.92rem;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
  align-items: center;
}

.search-suggestions__label {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  color: var(--ink-2);
  text-decoration: none;
}

.chip:hover {
  border-color: var(--brand);
  background: var(--brand-softer);
  color: var(--brand-ink);
}

/* ------------------------------------------------------------------ hero */

.hero {
  background:
    radial-gradient(1000px 400px at 82% -10%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, var(--brand-softer), var(--bg) 70%);
  border-bottom: 1px solid var(--line);
  padding-block: 2.75rem 3rem;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 4.5rem 4rem;
  }
}

/* Two columns from the large breakpoint: the ask panel on the left, rotating
   highlights on the right. Single column below that, ticker last. */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.hero__inner {
  max-width: 760px;
  min-width: 0;
}

/* --------------------------------------------------- hero right column */

.hero-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* Emergency strip — the most important thing on a health homepage. */
.hero-emergency {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--danger-line);
  border-left: 4px solid var(--danger);
  border-radius: var(--r);
  background: var(--danger-soft);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-emergency:hover {
  border-color: var(--danger);
  color: var(--ink);
}

.hero-emergency strong {
  display: block;
  color: var(--danger);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.hero-emergency__num {
  flex: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------ ticker */

.ticker {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  padding: 1.05rem 1.2rem 1.1rem;
}

.ticker__head {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}

.ticker__stage {
  position: relative;
  min-height: 148px;
}

.ticker__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  /*
   * visibility is animated alongside opacity on purpose.
   * Without it every hidden slide stays in the hit-testing layer, stacked over
   * the visible one, so a click lands on whichever is topmost rather than the
   * line the reader can actually see. That was a real bug: every slide led to
   * the same page.
   */
  visibility: hidden;
  animation-name: ticker-cycle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.ticker__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  padding: 0.16rem 0.6rem;
}

.ticker__text {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}

.ticker__go {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.ticker__item:hover .ticker__text {
  text-decoration: underline;
}

/*
 * Each item owns one tenth of the cycle, matching the ten items and their 10%
 * stagger, so the stage is never blank. Keep TICKER_ITEMS near ten entries.
 */
@keyframes ticker-cycle {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
  }
  1.5% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  8.5% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  10% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
}

/* Pause while the reader is interacting, so a link cannot slide away mid-click. */
.ticker:hover .ticker__item,
.ticker:focus-within .ticker__item {
  animation-play-state: paused;
}

/* ------------------------------------------------------- quick tiles */

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-tile {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.hero-tile:hover {
  border-color: var(--brand);
  background: #fff;
}

.hero-tile__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.hero-tile__note {
  font-size: 0.78rem;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .ticker__stage {
    min-height: 0;
    display: grid;
    gap: 1rem;
  }
  .ticker__item {
    position: static;
    opacity: 1;
    visibility: visible;
    animation: none;
    transform: none;
  }
  .ticker__go {
    display: none;
  }
}


.hero__eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-size: 2.15rem;
  letter-spacing: -0.035em;
  margin-bottom: 0.35rem;
}

.hero__tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.hero__lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.2rem;
  }
  .hero__tagline {
    font-size: 1.45rem;
  }
  .hero__lede {
    font-size: 1.15rem;
  }
}

.hero__note {
  margin: 1rem 0 0;
  font-size: 0.89rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

/* ----------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

a.card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.card__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.45rem;
}

.card__title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.card__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

.card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.card--flat {
  background: var(--bg-soft);
  border-color: transparent;
}

/* Compact link list used for related content */
.linklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.linklist a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.linklist a:hover {
  border-color: var(--brand);
  background: var(--brand-softer);
}

.linklist span {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.87rem;
}

/* ----------------------------------------------------------- breadcrumbs */

.breadcrumbs {
  padding-block: 0.9rem;
  font-size: 0.87rem;
  color: var(--ink-3);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  margin: 0;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------- article */

.page-head {
  padding-block: 0.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-head__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.page-head__lede {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0;
}

.page-head__aka {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin: 0.6rem 0 0;
}

.article {
  max-width: 100%;
}

.article h2 {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
  scroll-margin-top: 80px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 1.5rem;
}

.article > p,
.article > ul,
.article > ol {
  max-width: 72ch;
}

.article ul li::marker {
  color: var(--brand);
}

/* Layout with a sticky sidebar on large screens */
.with-aside {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1000px) {
  .with-aside {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
  }
  .with-aside__aside {
    position: sticky;
    top: 84px;
  }
}

.aside-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  background: var(--bg);
}

.aside-block h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}

/* -------------------------------------------------- answer box (AEO/GEO) */

/* A short, direct answer near the top of the page — what a search snippet,
   voice assistant or AI answer engine will most likely lift. */
.answer {
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
}

.answer__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}

.answer p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------ callouts */

.callout {
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  margin-block: 1.5rem;
  font-size: 0.96rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout__title {
  font-weight: 700;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout--warn {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  color: #4a3208;
}

.callout--warn .callout__title {
  color: var(--warn);
}

.callout--danger {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: #4d1a14;
}

.callout--danger .callout__title {
  color: var(--danger);
}

.callout--info {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.callout--danger ul li::marker {
  color: var(--danger);
}

.callout--warn ul li::marker {
  color: var(--warn);
}

/* --------------------------------------------------------- disclaimer */

.disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.9rem 1.05rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.disclaimer strong {
  color: var(--ink);
}

.disclaimer--top {
  margin-bottom: 1.75rem;
}

.disclaimer--bottom {
  margin-top: 2.5rem;
}

/* -------------------------------------------------------------- review */

.review-meta {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.review-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

.review-meta dt {
  color: var(--ink-3);
}

.review-meta dd {
  margin: 0;
}

.review-meta__pending {
  color: var(--warn);
  font-weight: 600;
}

/* The registration number is the point — it makes the claim checkable. */
.review-meta__reg {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.review-meta h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}

.review-meta ul {
  padding-left: 1.1rem;
  margin: 0;
}

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
}

.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq summary:hover {
  background: var(--bg-soft);
}

.faq__answer {
  padding: 0 1.1rem 1.05rem;
  color: var(--ink-2);
  margin: 0;
  max-width: 72ch;
}

/* ----------------------------------------------------------- data lists */

.factlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--r);
}

@media (min-width: 620px) {
  .factlist {
    grid-template-columns: repeat(2, 1fr);
  }
}

.factlist > div {
  min-width: 0;
}

.factlist dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.factlist dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.taglist li {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.badge--muted {
  background: var(--bg-sink);
  color: var(--ink-2);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* ------------------------------------------------------- empty states */

.empty {
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 2.5rem 1.5rem;
  background: var(--bg-soft);
}

.empty__icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.empty h3 {
  margin-bottom: 0.5rem;
}

.empty p {
  color: var(--ink-2);
  max-width: 52ch;
  margin-inline: auto;
}

/* ------------------------------------------------- search results page */

.results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.result {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  background: var(--bg);
}

.result:hover {
  border-color: var(--brand);
  background: var(--brand-softer);
  color: inherit;
}

.result__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.result__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.result__snippet {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.result-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.result-filters button {
  font-family: inherit;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.result-filters button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ----------------------------------------------------- cross-site link */

/* Link to Aswini Medicals. Kept visually distinct so it reads as a genuine
   next step for the reader rather than an SEO link. */
.crosslink {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 1.05rem 1.2rem;
  background: var(--bg-soft);
  margin-block: 2rem;
}

@media (min-width: 620px) {
  .crosslink {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.crosslink p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.crosslink strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
}

/* ------------------------------------------------------ cost & access */

/* Deliberately distinct from the medical callouts — this is practical,
   money-and-entitlement information, not clinical guidance. */
.costbox {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: 1.25rem 1.35rem 1.1rem;
  margin-block: 2.25rem;
}

.costbox__head {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.costbox__head span {
  color: var(--brand);
  font-weight: 800;
}

.costbox__free {
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
  margin: 0 0 1rem;
  color: var(--brand-ink);
  font-size: 1rem;
}

.costbox__row {
  margin-bottom: 0.9rem;
}

.costbox__row p {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 70ch;
}

.costbox__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.costbox__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 1.1rem;
  padding-top: 1rem;
}

.costbox__verified {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.costbox__sources,
.costbox__note {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0.75rem 0 0;
}

.costbox__note {
  margin-top: 0.4rem;
}

/* ------------------------------------------------------ scheme cards */

.scheme {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem;
  background: var(--bg);
  margin-bottom: 1rem;
}

.scheme h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  scroll-margin-top: 80px;
}

.scheme dl {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.scheme dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.15rem;
}

.scheme dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.scheme ul {
  margin: 0 0 1rem;
}

.scheme li {
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* ------------------------------------------------- ask healthwiky (AI) */

.ask__question {
  font-size: 1.3rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--ink);
}

.ask__loading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem;
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-radius: var(--r);
  color: var(--brand-ink);
  font-size: 0.96rem;
}

.ask__spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: ask-spin 0.7s linear infinite;
}

@keyframes ask-spin {
  to {
    transform: rotate(360deg);
  }
}

.ask__answer {
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 1.25rem 1.35rem 1rem;
}

.ask__answer p {
  max-width: 68ch;
}

.ask__answer > p:last-child {
  margin-bottom: 0;
}

.ask__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.ask__answer--emergency {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  border-left-color: var(--danger);
}

.ask__emergency-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--danger);
  margin-bottom: 0.5rem;
}

.ask__sources {
  margin-top: 1.5rem;
}

.ask__sources h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
}

.ask__examples {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------- utilities */

.stack > * + * {
  margin-top: 1rem;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------- which-doctor routing */

.routing {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.routing__row {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  background: var(--bg);
}

.routing__problem {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.routing__who {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.routing__why {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
  max-width: 70ch;
}

@media (min-width: 720px) {
  .routing__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas: "problem who" "problem why";
    column-gap: 1.5rem;
    align-items: start;
  }
  .routing__problem { grid-area: problem; }
  .routing__who     { grid-area: who; margin-bottom: 0.25rem; }
  .routing__why     { grid-area: why; }
}

/* ------------------------------------------------------------- myths */

/* The belief is shown as a claim, visually separated from the correction so
   nobody skims the page and takes the myth away as the answer. */
.myth-claim {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--ink-3);
  border-radius: var(--r);
  background: var(--bg-soft);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.myth-claim__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}

.myth-claim p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-2);
  font-style: italic;
}

/* --------------------------------------------------- comparison tables */

/* Comparison tables are wide by nature. They scroll inside their own box so
   the page body never scrolls sideways on a phone. */
.table-scroll {
  overflow-x: auto;
  margin-block: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.table-scroll table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 0;
}

.table-scroll th,
.table-scroll td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-scroll thead th {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  white-space: nowrap;
}

.table-scroll tbody th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-2);
  width: 30%;
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------------------- per-condition questions */

.doctor-qs {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  background: var(--bg-soft);
  padding: 1.15rem 1.3rem 1rem;
  margin-block: 2.25rem;
}

.doctor-qs h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.doctor-qs ul {
  margin-bottom: 0.9rem;
}

.doctor-qs li {
  font-size: 0.96rem;
  color: var(--ink-2);
}

/* -------------------------------------------------- language picker */

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
  background: var(--brand-softer);
}

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 32, 30, 0.45);
  display: flex;
  /*
   * flex-start + `margin: auto` on the dialog, NOT align-items: center.
   * Centring a flex child taller than its container pushes the overflow above
   * the top edge where it cannot be scrolled to — on a 455px-high window the
   * dialog's heading sat at -26px and was unreachable. This centres when there
   * is room and stays scrollable when there is not.
   */
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.lang-dialog {
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.6rem 1.4rem;
  text-align: center;
}

.lang-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.lang-dialog__head h2 {
  font-size: 1.35rem;
  margin: 0 0 0.3rem;
}

.lang-dialog__head p {
  color: var(--ink-2);
  font-size: 0.94rem;
  margin: 0 0 1.25rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 480px) {
  .lang-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.lang-option:hover {
  border-color: var(--brand);
  background: var(--brand-softer);
}

.lang-option.is-selected {
  border-color: var(--brand);
  background: var(--brand);
}

.lang-option.is-selected .lang-option__native,
.lang-option.is-selected .lang-option__english {
  color: #fff;
}

.lang-option__native {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.lang-option__english {
  font-size: 0.74rem;
  color: var(--ink-3);
}

.lang-dialog__note {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-align: left;
  background: var(--bg-soft);
  border-radius: var(--r);
  padding: 0.8rem 0.95rem;
  margin: 0 0 1rem;
}

.lang-dialog__note strong {
  color: var(--ink);
}

/* Offered once, never covering the content — someone may be looking for an
   emergency number and must not have to dismiss a dialog first. */
.lang-prompt {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: calc(100% - 2rem);
  max-width: 520px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.lang-prompt span {
  flex: 1;
}

.lang-prompt__close {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.2rem 0.3rem;
}

.lang-prompt__close:hover {
  color: var(--ink);
}

/* ------------------------------------------ machine-translation notice */

/* Deliberately prominent. A disclosure the reader does not notice is a
   disclosure that has not been made. */
.mt-notice {
  border: 1px solid var(--warn-line);
  border-left: 4px solid var(--warn);
  border-radius: var(--r);
  background: var(--warn-soft);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
}

.mt-notice__title {
  font-weight: 700;
  color: var(--warn);
  margin: 0 0 0.35rem;
}

.mt-notice p {
  font-size: 0.94rem;
  color: #4a3208;
  margin: 0 0 0.75rem;
  max-width: 70ch;
}

/* The English copy of the warning signs, kept visually secondary to the
   reader's own language but never hidden. */
.mt-warning-en__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--danger);
  margin: 0.9rem 0 0.3rem;
}

.mt-warning-en {
  margin: 0 0 0.6rem;
  padding-left: 1.25em;
  opacity: 0.9;
}

.mt-warning-en li {
  font-size: 0.92rem;
}

.mt-warning-en__note {
  font-size: 0.84rem;
  color: #4d1a14;
  margin: 0;
}

/* =========================================================================
   WordPress-specific additions.
   -------------------------------------------------------------------------
   Appended to the main site's globals.css by scripts/build-wp-theme.mjs, so
   every token, button, card and callout is literally the same code the static
   site uses. Only things WordPress produces that the static site never does
   are defined here.
   ========================================================================= */

/* Current section in the nav (the blog marks "Articles" as current). */
.nav-desktop__link.is-current {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

/* ------------------------------------------------------- editor content */

.article > *:first-child {
  margin-top: 0;
}

.article figure {
  margin: 1.75rem 0;
}

.article img {
  border-radius: var(--r);
  height: auto;
}

.post-hero {
  margin: 0 0 2rem;
}

.post-hero img {
  width: 100%;
  border-radius: var(--r-lg);
}

.article figcaption,
.wp-element-caption {
  font-size: 0.86rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 0.6rem;
}

.article blockquote {
  margin: 1.75rem 0;
  padding: 0.35rem 0 0.35rem 1.25rem;
  border-left: 4px solid var(--brand);
  color: var(--ink-2);
  font-style: italic;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.article th,
.article td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.article th {
  background: var(--bg-soft);
  font-weight: 700;
}

/* Wide tables must scroll inside themselves, never push the page sideways. */
.wp-block-table {
  overflow-x: auto;
}

.article code {
  background: var(--bg-sink);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}

.article pre {
  background: var(--bg-sink);
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  overflow-x: auto;
}

/* --------------------------------------------------- block alignments */

.alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
  margin-inline: auto;
  display: block;
}

.alignwide,
.alignfull {
  margin-inline: 0;
  max-width: 100%;
}

@media (max-width: 600px) {
  .alignleft,
  .alignright {
    float: none;
    margin: 1.25rem 0;
  }
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.25rem;
  border-radius: var(--r);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.wp-block-button__link:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ------------------------------------------------------- pagination */

.pagination,
.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 2.5rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.94rem;
}

.pagination .page-numbers:hover {
  border-color: var(--brand);
  background: var(--brand-softer);
  color: var(--brand-ink);
}

.pagination .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.4rem;
}

/* -------------------------------------------------- accessibility ---- */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WordPress admin bar must not hide the sticky header. */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
