/* ==========================================================================
   rybelsus.life — main stylesheet
   Direction: an independent pharmacist's reference. Warm paper, ink, one
   persimmon accent. Newsreader for display, Atkinson Hyperlegible for reading
   (designed for low-vision readers) and its mono cut for doses and prices.
   The dispensing label (.rx-label) is the signature component.
   ========================================================================== */

:root {
    --paper: #f6f3eb;
    --paper-deep: #ece6d8;
    --card: #fffdf8;
    --ink: #1b1e1c;
    --ink-soft: #3f4541;
    --ink-mute: #666d68;
    --rule: #d8d0bf;
    --rule-soft: #e6dfd0;

    --accent: #b5441f;
    --accent-deep: #8c3214;
    --accent-wash: #f6e2d4;

    --ok: #2c6a4c;      --ok-wash: #dcebe1;
    --warn: #8f5d0e;    --warn-wash: #f3e5c6;
    --no: #8a3434;      --no-wash: #f1dcd9;
    --info: #34597a;    --info-wash: #dde6ef;
    --mute-wash: #e9e5dc;

    --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Atkinson Hyperlegible Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 0 rgba(27, 30, 28, .06), 0 10px 30px -18px rgba(27, 30, 28, .35);
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    margin: 0;
    background-color: var(--paper);
    /* faint paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.page-narrow { max-width: 760px; padding-block: 48px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; letter-spacing: -.01em; }
.strong { font-weight: 700; }
.muted { color: var(--ink-mute); }
.small { font-size: .9rem; }

.kicker {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin: 0 0 14px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.display { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 500; }
.display em { font-style: italic; color: var(--accent); font-weight: 400; }
.display--xl { font-size: clamp(3rem, 1.8rem + 5.4vw, 6rem); line-height: .95; }

.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-mute); margin: 18px 0 0; }
.byline span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--rule); margin: 0 12px 2px 0; vertical-align: middle; }

.section-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 56px 0 20px; }
.kicker + .section-title { margin-top: 0; }

/* ---------- Buttons, chips, pills ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--ink); color: var(--paper);
    font-weight: 600; text-decoration: none; line-height: 1.2;
    padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--ink);
    transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--quiet { background: transparent; color: var(--accent-deep); border-color: var(--rule); }
.btn--quiet:hover { background: var(--accent-wash); color: var(--accent-deep); border-color: var(--accent); }
.btn--small { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.cc {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.3em; padding: 1px 5px;
    font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
    border: 1.5px solid currentColor; border-radius: 4px; line-height: 1.5;
    color: var(--ink);
}
.cc--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.pill {
    display: inline-block; white-space: nowrap;
    font-size: .74rem; font-weight: 600; letter-spacing: .02em;
    padding: 2px 9px; border-radius: 999px;
    background: var(--mute-wash); color: var(--ink-soft);
}
.pill--ok { background: var(--ok-wash); color: var(--ok); }
.pill--warn { background: var(--warn-wash); color: var(--warn); }
.pill--no { background: var(--no-wash); color: var(--no); }
.pill--info { background: var(--info-wash); color: var(--info); }

.chip { display: inline-block; font-size: .82rem; padding: 3px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--ink-soft); }
.chip--link { text-decoration: none; }
.chip--link:hover { border-color: var(--accent); color: var(--accent-deep); }
.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: var(--mute-wash); color: var(--ink-soft); }
.badge--ok { background: var(--ok-wash); color: var(--ok); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Masthead & header ---------- */

.masthead-strip { background: var(--ink); color: #d9d4c7; font-size: .8rem; }
.masthead-strip__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.masthead-strip strong { color: var(--paper); font-weight: 600; }
.masthead-strip a { color: var(--paper); }
@media (max-width: 720px) { .masthead-strip__right { display: none; } }

.site-header { border-bottom: 1.5px solid var(--ink); background: rgba(246, 243, 235, .92); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__pill {
    width: 30px; height: 17px; border-radius: 999px; flex: none;
    border: 1.5px solid var(--ink);
    background: linear-gradient(90deg, var(--card) 0 50%, var(--accent) 50% 100%);
    transform: rotate(-24deg);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.wordmark:hover .wordmark__pill { transform: rotate(-24deg) translateY(-1px) scale(1.06); }
.wordmark__text { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; }
.wordmark__text em { font-weight: 400; color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
    display: inline-block; padding: 8px 12px; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; cursor: pointer;
}
.site-nav__link:hover, .site-nav__link.is-current { background: var(--paper-deep); color: var(--ink); }

.country-menu { position: relative; }
.country-menu > summary { list-style: none; }
.country-menu > summary::-webkit-details-marker { display: none; }
.country-menu > summary::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: 0 0 3px 8px; }
.country-menu[open] > summary { background: var(--paper-deep); }
.country-menu__panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 460px;
    background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px;
}
.country-menu__title { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin: 0 0 10px; }
.country-menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.country-menu__list a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.country-menu__list a:hover { background: var(--paper); }
.country-menu__all { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-weight: 600; text-decoration: none; }

.your-country { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-mute); font-size: .82rem; }
.your-country:hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; width: 46px; height: 38px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: ''; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--card); border-bottom: 1.5px solid var(--ink); padding: 10px var(--gutter) 18px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; align-items: stretch; }
    .site-nav__link { display: block; border-radius: var(--radius-sm); }
    .country-menu__panel { position: static; width: auto; box-shadow: none; border-width: 1px; margin-top: 6px; }
    .your-country { padding: 10px 12px; }
}
@media (max-width: 440px) { .country-menu__list { grid-template-columns: 1fr; } }

.breadcrumbs { border-bottom: 1px solid var(--rule-soft); font-size: .85rem; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding-block: 10px; margin-block: 0; }
.breadcrumbs__list li { color: var(--ink-mute); }
.breadcrumbs__list li + li::before { content: '/'; margin: 0 9px; color: var(--rule); }
.breadcrumbs__list a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs__list a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ---------- The dispensing label ---------- */

.rx-label {
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.rx-label__head {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-bottom: 1.5px solid var(--ink);
    font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(27, 30, 28, .035) 6px 7px);
}
.rx-label__rx { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; text-transform: none; letter-spacing: 0; color: var(--accent); line-height: 1; }
.rx-label__rows { margin: 0; padding: 6px 16px 10px; }
.rx-label__row {
    display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--rule);
    font-size: .95rem;
}
.rx-label__row:last-child { border-bottom: 0; }
.rx-label__row dt { color: var(--ink-mute); font-size: .86rem; padding-top: 1px; }
.rx-label__row dd { margin: 0; font-weight: 600; }
.rx-label__row dd .pill { margin-left: 4px; vertical-align: 1px; }
.rx-label__sub { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-mute); margin-top: 2px; }
.rx-label__foot { padding: 11px 16px; border-top: 1.5px solid var(--ink); font-size: .85rem; color: var(--ink-soft); background: var(--paper); }
.rx-label__foot a { font-weight: 600; text-decoration: none; }
.rx-label__points { margin: 0; padding: 12px 16px 14px 34px; }
.rx-label__points li { margin: 0 0 8px; font-size: .95rem; line-height: 1.45; }
.rx-label__points li::marker { color: var(--accent); }

/* ---------- The morning timeline ---------- */

.timeline {
    margin: 0;
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px 8px;
}
.timeline__cap { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 18px; line-height: 1.1; }
.timeline__kicker { display: block; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.timeline__steps { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline__step { position: relative; padding: 0 0 20px 62px; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; color: var(--ink-soft); }
.timeline__step:not(:last-child)::before { content: ''; position: absolute; left: 21px; top: 48px; bottom: 4px; border-left: 2px dashed var(--rule); }
.timeline__step strong { color: var(--ink); font-size: 1.02rem; }
.timeline__time { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.timeline__icon {
    position: absolute; left: 0; top: 0;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--paper); border: 1.5px solid var(--ink);
    display: grid; place-items: center;
}
.timeline__icon::before { content: ''; display: block; }
.timeline__icon--pill::before { width: 22px; height: 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--card) 50%, var(--accent) 50%); transform: rotate(-30deg); }
.timeline__icon--clock { background: var(--accent); border-color: var(--accent); }
.timeline__icon--clock::before { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: conic-gradient(#fff 0 25%, transparent 25% 100%); }
.timeline__icon--cup::before { width: 16px; height: 14px; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 5px 5px; box-shadow: 5px -2px 0 -3px var(--card), 6px -2px 0 -2px var(--ink); }
.timeline__step--wait strong { color: var(--accent-deep); }

/* ---------- Home ---------- */

.home-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.home-hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.home-hero__visual { transform: rotate(1.4deg); }
.home-hero__visual .timeline { box-shadow: 0 1px 0 rgba(27, 30, 28, .06), 18px 22px 0 -2px var(--paper-deep), 18px 22px 0 -0.5px var(--ink); }
@media (max-width: 860px) {
    .home-hero__grid { grid-template-columns: 1fr; }
    .home-hero__visual { transform: none; }
    .home-hero__visual .timeline { box-shadow: var(--shadow); }
}

.picker { margin-top: 30px; }
.picker__label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.picker__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picker__item {
    display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 40px; padding: 0 12px;
    font-family: var(--font-mono); font-weight: 600; font-size: .9rem; letter-spacing: .04em;
    color: var(--ink); text-decoration: none;
    border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card);
    transition: background .15s, color .15s, transform .15s;
}
.picker__item:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.picker__item.is-you { background: var(--accent); border-color: var(--accent); color: #fff; }
.picker__item--all { border-style: dashed; font-family: var(--font-body); }

.news-band { border-block: 1.5px solid var(--ink); background: var(--card); padding: 28px 0 32px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.news-card { display: flex; flex-direction: column; gap: 6px; padding: 6px 26px 6px 0; text-decoration: none; color: var(--ink); }
.news-card + .news-card { border-left: 1px solid var(--rule); padding-left: 26px; }
.news-card__tag { font-size: .8rem; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }
.news-card__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.news-card:hover .news-card__title { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-card__text { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 820px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card, .news-card + .news-card { border-left: 0; padding: 14px 0; }
    .news-card + .news-card { border-top: 1px solid var(--rule); }
}

.essentials { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: 64px; }
.essentials__guides .section-title { margin-top: 0; }
@media (max-width: 860px) { .essentials { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.principles__n { font-family: var(--font-mono); color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.principles__h { font-size: 1.6rem; color: var(--paper); }
.principles p { color: #cfc9bb; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Bands & grids ---------- */

.band { padding: 56px 0 64px; margin-top: 64px; }
.band .section-title { margin-top: 0; }
.band--deep { background: var(--paper-deep); border-block: 1px solid var(--rule); }
.band--ink { background: var(--ink); color: var(--paper); }
.band + .band, .band + footer { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.guide-card, .product-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 20px 20px 18px; min-height: 100%;
    background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--ink); text-decoration: none;
    transition: border-color .15s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.guide-card:hover, .product-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.guide-card__kicker, .product-card__form { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.guide-card__title, .product-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.guide-card__text { color: var(--ink-soft); font-size: .94rem; line-height: 1.5; flex: 1; }
.guide-card__go { font-weight: 600; font-size: .9rem; color: var(--accent-deep); }
.product-card__generic { color: var(--ink-mute); font-size: .9rem; }
.product-card__ind { font-size: .92rem; color: var(--ink-soft); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--rule); }

/* ---------- Page heroes ---------- */

.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.guide-hero { padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--rule); }
.guide-hero .display { max-width: 22ch; }

.country-hero { padding: clamp(32px, 5vw, 60px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.country-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .country-hero__grid { grid-template-columns: 1fr; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink-soft); background: var(--card); }
.jump a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Layouts with an aside ---------- */

.guide-layout, .page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); padding-top: 40px; }
.guide-aside__sticky, .page-cols__aside > * { position: sticky; top: 24px; }
.guide-aside__sticky { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) {
    .guide-layout, .page-cols { grid-template-columns: 1fr; }
    .guide-aside { order: -1; }
    .guide-aside__sticky, .page-cols__aside > * { position: static; }
    .guide-aside .toc { display: none; }
}

.toc { border-left: 2px solid var(--ink); padding: 2px 0 2px 16px; }
.toc__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 6px; font-size: .92rem; line-height: 1.35; }
.toc a { color: var(--ink-soft); text-decoration: none; display: flex; gap: 8px; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--ink-mute); padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--accent-deep); }

.callout-country { display: flex; gap: 14px; padding: 16px; border: 1.5px dashed var(--ink); border-radius: var(--radius); background: var(--paper); }
.callout-country__cc .cc { font-size: .85rem; min-width: 2.6em; line-height: 1.9; }
.callout-country__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; line-height: 1.2; }
.callout-country p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
.callout-country a { font-weight: 600; font-size: .92rem; text-decoration: none; }

.aside-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.aside-card__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li + li { border-top: 1px dashed var(--rule); }
.aside-links a { display: block; padding: 8px 0; text-decoration: none; font-weight: 600; }

/* ---------- Prose ---------- */

.prose { max-width: 70ch; min-width: 0; }
.prose > section + section, .prose section + .faqs, .prose .faqs + .sources { margin-top: 48px; }
.prose h2 { margin-top: 1.6em; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.prose > h2:first-child, .prose section > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.prose .timeline, .prose .table-scroll, .prose .callout-country { margin: 28px 0; }
.prose table:not(.data-table) { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }

sup.cite { line-height: 0; vertical-align: super; font-size: 100%; }
sup.cite a {
    font-family: var(--font-mono); font-size: .66rem; font-weight: 600; text-decoration: none; line-height: 1.35;
    display: inline-block; min-width: 1.55em; padding: 0 3px; margin-left: 2px; position: relative; top: -2px;
    border: 1px solid var(--rule); border-radius: 3px; text-align: center; color: var(--accent-deep); background: var(--card);
}
sup.cite a:hover { border-color: var(--accent); }

.notice { background: var(--accent-wash); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; color: var(--ink); }
.notice--quiet { background: var(--card); border-left-color: var(--ink); font-size: .94rem; color: var(--ink-soft); max-width: 90ch; }
.notice--warn { background: var(--warn-wash); border-left-color: var(--warn); }

.faqs h2 { margin-bottom: 14px; }
.faq { border-top: 1px solid var(--rule); }
.faq:last-child { border-bottom: 1px solid var(--rule); }
.faq__q { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; position: absolute; right: 6px; top: 12px; font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.faq[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 12px; }

.sources { margin-top: 48px; }
.sources__h { font-size: 1.1rem !important; font-family: var(--font-mono) !important; text-transform: uppercase; letter-spacing: .08em; }
.sources__list { font-size: .88rem; padding-left: 1.6em; }
.sources__list li { margin-bottom: .5em; color: var(--ink-soft); scroll-margin-top: 80px; }
.sources__list li:target { background: var(--accent-wash); border-radius: 4px; }
.sources__host { color: var(--ink-mute); font-family: var(--font-mono); font-size: .76rem; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--rule-soft); }
.data-table thead th {
    font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink-mute); background: var(--paper); border-bottom: 1.5px solid var(--ink); white-space: nowrap;
}
.data-table thead th a { color: var(--ink); text-decoration: none; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcf9f2; }
.data-table tbody th { font-weight: 600; }
.data-table tbody th a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.data-table tbody th a:hover { color: var(--accent-deep); }
.data-table .is-highlight { background: var(--accent-wash); }
.th-sub, .td-sub { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 400; color: var(--ink-mute); text-transform: none; letter-spacing: 0; margin-top: 3px; }
.td-go { text-align: right !important; white-space: nowrap; }

.data-table--matrix td { text-align: center; }
.data-table--matrix th:not(:first-child) { text-align: center; }
.data-table--matrix tbody th { white-space: nowrap; }

.supplier-name { font-family: var(--font-display); font-size: 1.15rem; }
.dose-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 150px; }
.dose-prices li { display: flex; justify-content: space-between; gap: 14px; font-family: var(--font-mono); font-size: .9rem; border-bottom: 1px dotted var(--rule); padding-bottom: 3px; }
.dose-prices li:last-child { border-bottom: 0; }
.dose-prices__mg { color: var(--ink-mute); }
.dose-prices__val { font-weight: 600; text-align: right; }
.dose-prices__val .td-sub { display: inline; margin: 0; }

.compare-block { margin-bottom: 36px; scroll-margin-top: 20px; }
.compare-block__title { font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.compare-block__aka { font-family: var(--font-body); font-size: .85rem; font-weight: 400; color: var(--ink-mute); }

/* Card-style tables on narrow screens */
@media (max-width: 760px) {
    .data-table--cards thead { display: none; }
    .data-table--cards, .data-table--cards tbody, .data-table--cards tr, .data-table--cards th, .data-table--cards td { display: block; width: 100%; }
    .data-table--cards tr { padding: 14px 16px; border-bottom: 1.5px solid var(--ink); }
    .data-table--cards tr:last-child { border-bottom: 0; }
    .data-table--cards th, .data-table--cards td { border: 0; padding: 5px 0; }
    .data-table--cards td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 2px; }
    .data-table--cards .td-go { text-align: left !important; padding-top: 10px; }
    .data-table--cards tbody th { font-size: 1.05rem; }
}

/* ---------- Directory ---------- */

.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.directory__item { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.directory__type { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 4px; }
.directory__name { font-size: 1.35rem; margin: 0 0 8px; }
.directory__name a { color: var(--ink); text-decoration: none; }
.directory__name a:hover { color: var(--accent-deep); }
.directory__reg { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.directory__facts { margin: 0 0 12px; display: grid; gap: 4px; font-size: .88rem; }
.directory__facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--rule); padding-bottom: 4px; }
.directory__facts dt { color: var(--ink-mute); }
.directory__facts dd { margin: 0; font-weight: 600; }
.directory__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.directory__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 400px) { .directory { grid-template-columns: 1fr; } }

/* ---------- Lists on country pages ---------- */

.reg-list { list-style: none; margin: 0 0 1.2em; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.reg-list li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px dashed var(--rule); }
.reg-list li:last-child { border-bottom: 0; }
.reg-list__k { color: var(--ink-mute); font-size: .9rem; }
.reg-list__v { font-weight: 600; }
@media (max-width: 540px) { .reg-list li { grid-template-columns: 1fr; gap: 2px; } }

.option-list { list-style: none; margin: 0; padding: 0 !important; }
.option-list__item { padding: 14px 0; border-bottom: 1px dashed var(--rule); margin: 0 !important; }
.option-list__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.option-list__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.option-list__form { font-size: .85rem; color: var(--ink-mute); }
.option-list__head .pill { margin-left: auto; }
.option-list__note { font-size: .92rem; margin: 6px 0 0; }

.country-chips, .country-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.country-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); font-size: .92rem; }
.country-chips a:hover { border-color: var(--ink); }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.country-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.country-tile .cc { grid-row: span 2; font-size: .8rem; min-width: 2.8em; line-height: 2; }
.country-tile:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.country-tile__name { font-weight: 600; }
.country-tile__meta { font-size: .82rem; color: var(--ink-mute); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.pros-cons h2 { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
.ticks, .crosses { list-style: none; padding: 0 !important; }
.ticks li, .crosses li { position: relative; padding-left: 26px; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0; font-weight: 700; font-family: var(--font-mono); }
.ticks li::before { content: '+'; color: var(--ok); }
.crosses li::before { content: '-'; color: var(--no); }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #cfc9bb; margin-top: 80px; padding: 56px 0 28px; font-size: .94rem; }
main:has(> .band:last-child) + .site-footer, main:has(> article:last-child > .band:last-child) + .site-footer { margin-top: 0; }
main:has(> .band--ink:last-child) + .site-footer { border-top: 1px solid #3a3f3b; }
.site-footer a { color: #efe9dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__statement { max-width: 820px; margin-bottom: 40px; }
.site-footer__big { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1.2vw, 1.8rem); line-height: 1.25; color: var(--paper); }
.site-footer__cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px; padding-top: 28px; border-top: 1px solid #3a3f3b; }
.site-footer__heading { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8e968f; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer__countries { columns: 2; column-gap: 24px; }
.site-footer__base { margin-top: 36px; padding-top: 20px; border-top: 1px solid #3a3f3b; font-size: .84rem; color: #8e968f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } .site-footer__cols > div:nth-child(2) { grid-column: 1 / -1; order: 3; } }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
    .reveal:nth-child(2) { animation-delay: .06s; }
    .reveal:nth-child(3) { animation-delay: .14s; }
    .reveal:nth-child(4) { animation-delay: .22s; }
    .home-hero__visual.reveal { animation: rise-tilt .9s .25s cubic-bezier(.2, .8, .2, 1) both; }
    .home-hero .timeline__step { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
    .home-hero .timeline__step:nth-child(1) { animation-delay: .55s; }
    .home-hero .timeline__step:nth-child(2) { animation-delay: .7s; }
    .home-hero .timeline__step:nth-child(3) { animation-delay: .85s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(24px) rotate(4deg); } to { opacity: 1; transform: rotate(1.4deg); } }
@media (max-width: 860px) { @keyframes rise-tilt { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } } }

@media print {
    .masthead-strip, .site-header, .breadcrumbs, .guide-aside, .site-footer, .band { display: none; }
    body { background: #fff; }
}
