/* AA Recovery Resources — Big Book navy, warm gold and paper cream: calm, trustworthy, easy to read. */
:root {
    --navy-900: #081a33;
    --navy-800: #0e2747;
    --navy-700: #16365f;
    --navy-600: #1f4a7d;
    --blue: #2a5d9f;
    --gold: #c9a24a;
    --gold-light: #e3c57d;
    --gold-deep: #9c7a2c;
    --cream: #f7f3ea;
    --paper: #fffdf8;
    --ink: #1c2633;
    --ink-soft: #4a5666;
    --line: #e4dccb;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(8, 26, 51, .06), 0 10px 30px -12px rgba(8, 26, 51, .25);
    --shadow-lift: 0 2px 4px rgba(8, 26, 51, .08), 0 22px 44px -18px rgba(8, 26, 51, .38);
    --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --wrap: 1180px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; color: var(--navy-800); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: var(--navy-900); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); border-bottom: 3px solid var(--gold); box-shadow: 0 8px 24px -12px rgba(8, 26, 51, .6); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand-emblem { width: 46px; height: 46px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(201, 162, 74, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; letter-spacing: .01em; }
.brand-tag { margin-top: 3px; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link, .nav-trigger {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
    color: #e9eef6; font: 600 1rem var(--sans); text-decoration: none; transition: background .2s, color .2s;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.is-open .nav-trigger { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-icon { width: 19px; height: 19px; color: var(--gold-light); }
.nav-caret { width: 13px; height: 13px; transform: rotate(90deg); opacity: .75; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item.is-open .nav-caret { transform: rotate(-90deg); }
.dropdown {
    position: absolute; top: calc(100% + 12px); left: 0; z-index: 60; width: 360px; padding: 10px; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.dropdown::before { content: ""; position: absolute; top: -7px; left: 30px; width: 12px; height: 12px; background: var(--paper); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-item:last-child .dropdown { left: auto; right: 0; }   /* the last menu opens towards the page, not past its edge */
.nav-item:last-child .dropdown::before { left: auto; right: 30px; }
.dropdown-head { padding: 6px 12px 8px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.dropdown-link { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background .15s; }
.dropdown-link:hover { background: #f2ece0; }
.dropdown-link > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dropdown-icon { width: 36px; height: 36px; padding: 7px; flex: none; border-radius: 10px; background: var(--navy-800); color: var(--gold-light); }
.dropdown-title { font-weight: 700; color: var(--navy-800); }
.dropdown-sub { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; }
.dropdown-ext { width: 15px; height: 15px; flex: none; color: var(--ink-soft); opacity: .7; }
.dropdown-link--all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }
.dropdown-link--all .dropdown-icon { background: var(--gold); color: var(--navy-900); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: none; color: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- language menu (as in Lumazel) ---------- */
.lang-dd { position: relative; flex: none; }
.lang-dd__btn {
    display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px 0 13px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(227, 197, 125, .7); background: rgba(255, 255, 255, .05); color: var(--gold-light); font: 700 .85rem var(--sans); letter-spacing: .06em; transition: .2s;
}
.lang-dd__btn:hover, .lang-dd__btn[aria-expanded="true"] { background: rgba(227, 197, 125, .14); border-color: var(--gold-light); }
.lang-dd__flag { font-size: 1.25rem; line-height: 1; }
.lang-dd__caret { width: 12px; height: 12px; transform: rotate(90deg); opacity: .8; transition: transform .25s; }
.lang-dd__btn[aria-expanded="true"] .lang-dd__caret { transform: rotate(-90deg); }
.lang-dd__menu {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: 300px; max-height: min(70vh, 620px); overflow-y: auto; padding: 8px;
    border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
    scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.lang-dd__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.lang-dd__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: start; color: var(--ink); font: 500 1rem var(--sans); transition: background .15s; }
.lang-dd__opt:hover { background: #f2ece0; }
.lang-dd__opt.is-cur { background: var(--navy-800); color: #fff; font-weight: 700; }
.lang-dd__f { font-size: 1.2rem; line-height: 1; width: 1.6rem; text-align: center; flex: none; }
.lang-dd__label { flex: 1; min-width: 0; }
.lang-dd__native { font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
.lang-dd__opt.is-cur .lang-dd__native { color: var(--gold-light); }
body.is-switching .site-main { opacity: .4; transition: opacity .3s; }

.tr-veil { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(247, 243, 234, .7); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; pointer-events: none; }
.tr-veil svg { width: 76px; height: 76px; color: var(--navy-700); animation: breathe 1.6s ease-in-out infinite; }
html.is-translating .tr-veil { opacity: 1; visibility: visible; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .6; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(201, 162, 74, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-blue { background: var(--navy-800); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 85% 20%, rgba(42, 93, 159, .55), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%); }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -220px; width: 620px; height: 620px; border-radius: 50%; border: 2px solid rgba(201, 162, 74, .14); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 64px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.eyebrow--blue { color: var(--gold-deep); }
.hero h1 { margin-top: 16px; font-size: clamp(2.6rem, 5.4vw, 4.2rem); color: #fff; letter-spacing: -.01em; }
.lede { margin-top: 20px; max-width: 560px; font-size: 1.2rem; color: #d5deea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.desktop-note { margin-top: 14px; color: #b9c6d8; font-size: .9rem; letter-spacing: .04em; }
.serenity { margin: 0; padding: 34px 34px 30px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 197, 125, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .6); text-align: center; backdrop-filter: blur(4px); }
.serenity-emblem { width: 58px; height: 58px; margin: 0 auto 14px; color: var(--gold); }
.serenity figcaption { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.serenity blockquote { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.16rem; line-height: 1.75; color: #f4efe4; }
.grace-signature { width: fit-content; max-width: 100%; margin: 26px auto 0; padding: 12px 26px; border: 3px double var(--gold); border-radius: 4px; color: var(--gold-light); font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-style: italic; line-height: 1.3; letter-spacing: .06em; text-shadow: 0 2px 12px rgba(227, 197, 125, .15); }
.legacies { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; color: #b9c6d8; }
.legacies b { color: var(--gold-light); font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--meetings { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2, .section-head h1 { margin-top: 10px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p:last-child { margin-top: 14px; color: var(--ink-soft); font-size: 1.1rem; }

.card-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.card-source { font-size: .85rem; color: var(--ink-soft); }
.card-action { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--blue); }
.card-action svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }

/* the Big Book, featured */
.feature { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature-cover { display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(circle at 30% 20%, var(--navy-600), var(--navy-900)); }
.cover-book { display: flex; width: 172px; height: 236px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)); transform: perspective(700px) rotateY(-14deg); transition: transform .4s var(--ease); }
.feature:hover .cover-book { transform: perspective(700px) rotateY(-4deg); }
.cover-spine { width: 16px; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #0b2142, #183c6b); }
.cover-face { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: 0 4px 4px 0; background: linear-gradient(135deg, #1d4a85, #143665); box-shadow: inset 0 0 0 2px rgba(227, 197, 125, .55), inset 0 0 0 6px #173f75, inset 0 0 0 7px rgba(227, 197, 125, .35); text-align: center; }
.cover-title { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--gold-light); letter-spacing: .03em; }
.cover-rule { width: 44px; height: 2px; background: var(--gold); }
.cover-sub { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #cdd8e8; }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 44px 48px; }
.feature-body h3 { font-size: 2rem; }
.feature-body p { max-width: 560px; color: var(--ink-soft); font-size: 1.1rem; }
.feature-body .btn { margin-top: 6px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px 28px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--navy-700), var(--gold)); opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #d6cab0; }
.card:hover::before { opacity: 1; }
.card:hover .card-action svg, .meeting:hover .card-action svg { transform: translate(2px, -2px); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 14px; background: var(--navy-800); color: var(--gold-light); }
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.45rem; }
/* Daily Reflections: a player-style preview — a ring of peaks around the emblem that moves like a voice while the clip plays on aa.org. */
.card--reflection { cursor: default; }
.reflection-player { align-self: stretch; margin: -8px -6px 8px; }
.rp-play { position: relative; display: grid; place-items: center; width: 100%; height: 200px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1f4a7d 0%, var(--navy-800) 55%, var(--navy-900) 100%); box-shadow: inset 0 0 0 1px rgba(227, 197, 125, .25); }
.rp-play:hover .rp-icon { transform: scale(1.08); }
.voice-ring { position: relative; display: grid; place-items: center; width: 176px; height: 176px; }
.voice-ring canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.voice-ring-emblem { position: relative; width: 66px; height: 66px; padding: 10px; border-radius: 50%; background: var(--navy-900); color: var(--gold-light); box-shadow: 0 0 0 3px rgba(227, 197, 125, .55), 0 8px 22px -6px rgba(0, 0, 0, .6); }
.rp-icon { position: absolute; right: 16px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-900); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.rp-icon svg { width: 22px; height: 22px; }
.rp-icon-play { margin-left: 3px; }
.rp-icon-stop, .is-playing .rp-icon-play { display: none; }
.is-playing .rp-icon-stop { display: block; }
.rp-caption { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.rp-status { min-height: 1.3em; font-size: .85rem; font-weight: 600; color: var(--gold-deep); }
.card--reflection .card-action { text-decoration: none; }
.card-date { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #f1e7cf; color: var(--gold-deep); font-weight: 700; font-size: .88rem; }
.card p { flex: 1; color: var(--ink-soft); }
.card .card-action { margin-top: 6px; }

/* meetings */
.meetings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.meeting { display: flex; gap: 22px; padding: 32px; border-radius: 18px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.meeting:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.meeting-icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 16px; background: rgba(227, 197, 125, .14); border: 1px solid rgba(227, 197, 125, .4); color: var(--gold-light); }
.meeting-icon svg { width: 30px; height: 30px; }
.meeting-body { display: flex; flex-direction: column; gap: 8px; }
.meeting .card-kicker { color: var(--gold-light); }
.meeting h3 { color: #fff; font-size: 1.55rem; }
.meeting p { color: #c8d3e2; }
.meeting .card-action { margin-top: 6px; color: var(--gold-light); }

/* help band */
.help { padding: 56px 0; background: linear-gradient(90deg, #f1e7cf, #f7f0de); border-bottom: 1px solid var(--line); }
.help-inner { display: flex; align-items: center; gap: 26px; }
.help-icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--navy-800); color: var(--gold-light); }
.help-icon svg { width: 30px; height: 30px; }
.help-inner > div { flex: 1; }
.help h2 { font-size: 1.7rem; }
.help p { margin-top: 6px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6d8; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 42px; }
.brand--footer .brand-emblem { width: 40px; height: 40px; }
.footer-brand p { margin-top: 18px; max-width: 420px; font-family: var(--serif); font-style: italic; color: #d5deea; }
.footer-head { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e3e9f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #8597ae; }
.footer-note p:first-child { max-width: 760px; }

/* ---------- right to left ---------- */
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .dropdown { left: auto; right: 0; }
[dir="rtl"] .dropdown::before { left: auto; right: 30px; }
[dir="rtl"] .nav-item:last-child .dropdown { right: auto; left: 0; }
[dir="rtl"] .nav-item:last-child .dropdown::before { right: auto; left: 30px; }
[dir="rtl"] .lang-dd__menu { right: auto; left: 0; }
[dir="rtl"] .nav-caret, [dir="rtl"] .lang-dd__caret { transform: rotate(90deg) scaleY(-1); }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .cards .card:last-child { grid-column: 1 / -1; }
    .meetings { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: grid; }
    .lang-dd { margin-left: auto; }
    [dir="rtl"] .lang-dd { margin-left: 0; margin-right: auto; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 90; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 16px;
        overflow-y: auto; background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .1);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .22s var(--ease);
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-link, .nav-trigger { width: 100%; height: 54px; font-size: 1.1rem; }
    .nav-caret { margin-left: auto; }
    .dropdown { position: static; width: auto; margin: 4px 0 10px; opacity: 1; visibility: visible; transform: none; display: none; }
    .dropdown::before { display: none; }
    .nav-item.is-open .dropdown { display: block; }
    .lang-dd__menu { position: fixed; top: calc(var(--header-h) + 8px); right: 12px; left: 12px; width: auto; }
    .feature { grid-template-columns: 1fr; }
    .feature-body { padding: 32px 28px; }
}

@media (max-width: 600px) {
    :root { --header-h: 66px; }
    .wrap { padding: 0 16px; }
    .header-inner { gap: 10px; }
    .brand { gap: 10px; flex-shrink: 1; min-width: 0; }
    .brand-emblem { width: 38px; height: 38px; flex: none; }
    .brand-text { min-width: 0; }
    .brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-name { font-size: .98rem; line-height: 1.15; }
    .brand-tag { font-size: .6rem; letter-spacing: .1em; }
    .lang-dd, .nav-toggle { flex: none; }
    .lang-dd__code { display: none; }
    .lang-dd__btn { padding: 0 10px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .serenity { padding: 26px 22px; }
    .serenity blockquote { font-size: 1.05rem; }
    .section { padding: 60px 0; }
    .cards { grid-template-columns: 1fr; }
    .meeting { flex-direction: column; padding: 26px; }
    .help-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
    .brand-tag { display: none; }
}

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

/* ---------- Easy Does It: the daily magazine in a full-screen popup ---------- */
html.mag-open { overflow: hidden; }
.mag { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink);
    background: radial-gradient(ellipse at 50% 40%, #1f3a61 0%, #0b1f3b 55%, #050f1f 100%); overflow: hidden; }
.mag::backdrop { background: rgba(5, 15, 31, .8); }
.mag[open] { display: grid; grid-template-rows: 1fr auto; animation: mag-in .35s var(--ease); }
@keyframes mag-in { from { transform: scale(.98); } }
.mag-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 64px 16px 4px; }
.mag-book { font-size: calc(var(--u) * 3.1); line-height: 1.5; }
.mag-close { position: absolute; top: 14px; right: 16px; z-index: 5; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(227, 197, 125, .6); background: rgba(255, 255, 255, .06); color: var(--gold-light); transition: background .2s, transform .2s; }
.mag-close:hover { background: rgba(227, 197, 125, .18); transform: rotate(90deg); }
.mag-close svg { width: 22px; height: 22px; }
.mag-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 16px 18px; color: #dfe7f2; font-weight: 600; }
.mag-bar button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; cursor: pointer; }
.mag-bar button:disabled { opacity: .3; cursor: default; }
.mag-bar svg { width: 18px; height: 18px; }
.mag-prev svg { transform: rotate(180deg); }
.mag-count { min-width: 110px; text-align: center; font-size: .95rem; letter-spacing: .04em; }
.mag-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 16px; width: min(340px, 80vw);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; }
.mag.is-loading .mag-loading { opacity: 1; visibility: visible; }
.mag-spinner { width: 64px; height: 64px; color: var(--gold-light); animation: breathe 1.6s ease-in-out infinite; }
.mag-progress { width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.mag-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .35s var(--ease); }
.mag-action { color: #dfe7f2; font-size: .95rem; font-weight: 600; letter-spacing: .02em; text-align: center; }
.mag-error { color: #fff; text-align: center; max-width: 30ch; }

.mag-page { overflow: hidden; background: #fffdf6; color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .75); }
.mag-page a { color: var(--navy-700); text-decoration: none; }
.mag-page a:hover { text-decoration: underline; }
.mag-headline { padding: 0; border: 0; background: none; color: var(--navy-700); font: inherit; text-align: start; cursor: pointer; }
.mag-headline:hover { text-decoration: underline; }
.mag-reader { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.mag-reader::backdrop { background: var(--navy-900); }
.mag-reader[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.mag-reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 3px solid var(--gold); background: var(--navy-900); color: var(--gold-light); }
.mag-reader-close { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--gold); border-radius: 10px; background: none; color: inherit; font: 600 .95rem var(--sans); cursor: pointer; }
.mag-reader-close svg { width: 20px; height: 20px; flex: none; }
.mag-reader-content { overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 5vw, 64px) 20px; }
.mag-reader-story { max-width: 68ch; margin: 0 auto; overflow-wrap: anywhere; }
.mag-reader-meta { margin-bottom: 16px; color: var(--ink-soft); }
.mag-reader-story h2 { font-size: clamp(1.65rem, 4vw, 2.8rem); line-height: 1.2; }
.mag-reader-note { margin-top: 24px; padding: 16px; border-inline-start: 3px solid var(--gold); background: #f2ece0; color: var(--ink-soft); }
.mag-reader-text { margin-top: 28px; font-size: 1.15rem; line-height: 1.85; }
.mag-reader-text p + p { margin-top: 1em; }
.mag-reader-generated { margin-top: 24px; color: var(--ink-soft); font-size: .9rem; }
.mag-reader-retry { margin-top: 16px; padding: 10px 20px; border: 1px solid var(--gold-deep); border-radius: 8px; background: var(--navy-800); color: #fff; font: 600 1rem var(--sans); cursor: pointer; }
.mag-reader-source { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.mag-inner { padding: calc(var(--u) * 7) calc(var(--u) * 7) calc(var(--u) * 12); background: linear-gradient(90deg, rgba(0, 0, 0, .05), transparent 6%, transparent 94%, rgba(0, 0, 0, .04)), #fffdf6; }
.mag-foot { position: absolute; left: calc(var(--u) * 7); right: calc(var(--u) * 7); bottom: calc(var(--u) * 4.5); display: flex; justify-content: space-between; gap: 1em;
    padding-top: calc(var(--u) * 1.6); border-top: 1px solid var(--line); font-size: calc(var(--u) * 2.2); color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.mag-foot span:first-child { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--gold-deep); }
.mag-section { margin-bottom: calc(var(--u) * 4); padding-bottom: calc(var(--u) * 2.5); border-bottom: 3px double var(--navy-800); }
.mag-section span, .mag-kicker, .mag-slogan > span, .mag-laugh > span, .mag-thought > span, .mag-fact > span {
    display: block; font-size: calc(var(--u) * 2.3); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.mag-section h3 { margin-top: .2em; font-size: calc(var(--u) * 6); line-height: 1.1; }

/* cover */
.mag-cover { color: #fff; background: #0e2747; }
.mag-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mag-rays { transform-origin: 100px 118px; animation: mag-turn 60s linear infinite; }
@keyframes mag-turn { to { transform: rotate(360deg); } }
.mag-cover-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--u) * 6); }
.mag-mast { text-align: center; border-bottom: 2px solid rgba(227, 197, 125, .8); padding-bottom: calc(var(--u) * 1.6); }
.mag-mast h2 { color: #fff; font-size: calc(var(--u) * 13); letter-spacing: -.01em; line-height: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.mag-mast p { display: flex; justify-content: space-between; margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 2.3); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.mag-cover-copy { margin-top: auto; margin-bottom: calc(var(--u) * 4); }
.mag-cover .mag-kicker { color: #0e2747; display: inline-block; padding: .2em .6em; background: var(--gold-light); border-radius: 3px; }
.mag-cover-copy h3 { margin-top: calc(var(--u) * 2); color: #fff; font-size: calc(var(--u) * 10.5); line-height: 1.02; text-shadow: 0 3px 24px rgba(0, 0, 0, .55); }
.mag-cover-sub { margin-top: calc(var(--u) * 2); max-width: 30ch; font-size: calc(var(--u) * 3.6); font-family: var(--serif); font-style: italic; color: #f5ecd6; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.mag-teasers { list-style: none; margin: 0; padding: calc(var(--u) * 3) 0 0; border-top: 1px solid rgba(255, 255, 255, .3); display: grid; gap: calc(var(--u) * 1.6); font-size: calc(var(--u) * 2.9); font-weight: 600; line-height: 1.3; }
.mag-teasers li { padding-left: calc(var(--u) * 3); border-left: 4px solid var(--gold); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.mag-badge { position: absolute; top: calc(var(--u) * 27); right: calc(var(--u) * 5); display: grid; place-items: center; width: calc(var(--u) * 17); height: calc(var(--u) * 17); border-radius: 50%;
    background: var(--gold); color: var(--navy-900); font-size: calc(var(--u) * 2.2); font-weight: 800; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: .05em; transform: rotate(12deg); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* page 2: news */
.mag-newslist { display: grid; gap: calc(var(--u) * 2.6); }
.mag-news { padding-bottom: calc(var(--u) * 2.4); border-bottom: 1px solid var(--line); }
.mag-news:last-child { border-bottom: 0; }
.mag-source { font-size: calc(var(--u) * 2.2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mag-news h4 { margin: .15em 0 0; font-family: var(--serif); font-size: calc(var(--u) * 3.4); line-height: 1.25; }
.mag-news--lead h4 { font-size: calc(var(--u) * 4.6); }
.mag-news p:not(.mag-source) { margin-top: .3em; font-size: calc(var(--u) * 2.8); color: var(--ink-soft); }
.mag-empty { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

/* page 3: column */
.mag-column { columns: 2; column-gap: calc(var(--u) * 4); font-size: calc(var(--u) * 2.9); hyphens: auto; }
.mag-column p + p { margin-top: .7em; }
.mag-column p:first-child::first-letter { float: left; margin: .05em .08em 0 0; font-family: var(--serif); font-size: 3.4em; line-height: .85; color: var(--navy-800); }
.mag-slogan { margin-top: calc(var(--u) * 4); padding: calc(var(--u) * 3.4); border-radius: calc(var(--u) * 1.4); background: var(--navy-800); color: #fff; text-align: center; }
.mag-slogan > span { color: var(--gold-light); }
.mag-slogan strong { display: block; margin: .25em 0; font-family: var(--serif); font-size: calc(var(--u) * 5.4); line-height: 1.15; }
.mag-slogan p { font-size: calc(var(--u) * 2.8); color: #d8e1ee; }
.mag-laugh { margin-top: calc(var(--u) * 3.4); padding: calc(var(--u) * 2.6) calc(var(--u) * 3.2); border: 2px dashed var(--gold); border-radius: calc(var(--u) * 1.4); background: #fbf3df; }
.mag-laugh p { margin-top: .3em; font-size: calc(var(--u) * 2.9); font-style: italic; }

/* back cover */
.mag-back { background: linear-gradient(180deg, #f7efdb, #efe2c2); }
.mag-back-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 3.4); padding: calc(var(--u) * 7); }
.mag-thought { padding: calc(var(--u) * 4); border-radius: calc(var(--u) * 1.6); background: var(--navy-800); color: #fff; }
.mag-thought > span { color: var(--gold-light); }
.mag-thought blockquote { margin: .35em 0 0; font-family: var(--serif); font-size: calc(var(--u) * 5); line-height: 1.25; }
.mag-today h4 { font-family: var(--serif); font-size: calc(var(--u) * 4); color: var(--navy-800); }
.mag-today ul { list-style: none; margin: calc(var(--u) * 1.6) 0 0; padding: 0; display: grid; gap: calc(var(--u) * 1.2); }
.mag-today label { display: flex; align-items: flex-start; gap: .6em; font-size: calc(var(--u) * 3); cursor: pointer; }
.mag-today input { flex: none; width: 1.1em; height: 1.1em; margin-top: .2em; accent-color: var(--navy-700); }
.mag-today input:checked + span { text-decoration: line-through; text-decoration-color: var(--gold); color: var(--ink-soft); }
.mag-fact { margin-top: calc(var(--u) * 3.4); padding-left: calc(var(--u) * 3); border-left: 4px solid var(--gold); }
.mag-fact p { font-size: calc(var(--u) * 2.9); }
.mag-help { margin-top: auto; font-size: calc(var(--u) * 2.7); }
.mag-help p + p { margin-top: .3em; }
.mag-watermark { position: absolute; right: calc(var(--u) * -8); bottom: calc(var(--u) * -8); width: calc(var(--u) * 52); height: calc(var(--u) * 52); color: var(--gold); opacity: .14; }
.mag-colophon { padding-top: calc(var(--u) * 2); border-top: 1px solid rgba(0, 0, 0, .15); font-size: calc(var(--u) * 2); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .mag-rays { animation: none; } .mag[open] { animation: none; } }

/* magazine: stories, stars & gossip, science & ask a sponsor */
.mag-stories { columns: 2; column-gap: calc(var(--u) * 4); column-rule: 1px solid var(--line); }
.mag-story { margin-bottom: calc(var(--u) * 2.4); }   /* a long (or translated) story continues in the next column */
.mag-story h4, .mag-story-theme { break-after: avoid; break-inside: avoid; }
.mag-story h4 { font-family: var(--serif); font-size: calc(var(--u) * 3.6); line-height: 1.2; color: var(--navy-800); }
.mag-story-theme { margin: .1em 0 .35em; font-size: calc(var(--u) * 2.2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.mag-story p:not(.mag-story-theme) { font-size: calc(var(--u) * 2.75); line-height: 1.45; }
.mag-story p + p:not(.mag-story-theme) { margin-top: .35em; }
.mag-note { margin-top: calc(var(--u) * 1.4); font-size: calc(var(--u) * 2.1); font-style: italic; color: var(--ink-soft); }
.mag-newslist--compact { gap: calc(var(--u) * 2); }
.mag-newslist--compact .mag-news--lead h4 { font-size: calc(var(--u) * 3.9); }
.mag-gossip { margin-top: calc(var(--u) * 3); padding: calc(var(--u) * 3) calc(var(--u) * 3.4); border-radius: calc(var(--u) * 1.4); background: #fbe9ec; border: 2px solid #e7b9c2; }
.mag-gossip > span, .mag-ask > span, .mag-tip > span { display: block; font-size: calc(var(--u) * 2.3); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a3425a; }
.mag-gossip ul { margin: calc(var(--u) * 1.2) 0 0; padding-left: 1.1em; display: grid; gap: calc(var(--u) * 1); font-size: calc(var(--u) * 2.7); line-height: 1.4; }
.mag-gossip li::marker { content: "♥  "; color: #c4627a; }
.mag-ask { margin-top: calc(var(--u) * 3); padding: calc(var(--u) * 3) calc(var(--u) * 3.4); border-radius: calc(var(--u) * 1.4); background: var(--navy-800); color: #fff; }
.mag-ask > span { color: var(--gold-light); }
.mag-ask p { margin-top: .35em; font-size: calc(var(--u) * 2.7); color: #d8e1ee; }
.mag-ask .mag-ask-q { font-family: var(--serif); font-size: calc(var(--u) * 3.3); line-height: 1.3; color: #fff; }
.mag-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 3); margin-top: calc(var(--u) * 3); }
.mag-boxes .mag-fact { margin-top: 0; }
.mag-tip { padding: calc(var(--u) * 2.4) calc(var(--u) * 2.8); border-radius: calc(var(--u) * 1.4); background: #e8f1e4; }
.mag-tip > span { color: #3f6b34; }
.mag-tip p { margin-top: .3em; font-size: calc(var(--u) * 2.6); }
.rp-text { margin-top: 4px; font-size: .92rem; color: var(--ink-soft); }
.rp-text summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.rp-text h4 { margin: 8px 0 4px; font-family: var(--serif); font-size: 1.05rem; color: var(--navy-800); }
.rp-text p + p { margin-top: 6px; }
.rp-text .rp-note { font-size: .8rem; font-style: italic; }

/* ---------- Living Sober: the book guide in the flip-book popup ---------- */
.book-cover { color: #fff; background: radial-gradient(ellipse at 30% 20%, #3f7a5c 0%, #22513a 45%, #133325 100%); }
.book-cover::after { content: ""; position: absolute; inset: calc(var(--u) * 4); border: 2px solid rgba(227, 197, 125, .65); border-radius: 4px; pointer-events: none; }
.book-cover-in { justify-content: center; align-items: center; text-align: center; gap: calc(var(--u) * 5); padding: calc(var(--u) * 10); }
.book-cover h2 { color: #fff; font-size: calc(var(--u) * 17); line-height: .95; letter-spacing: -.01em; text-shadow: 0 3px 18px rgba(0, 0, 0, .35); }
.book-kicker { max-width: 26ch; font-family: var(--serif); font-style: italic; font-size: calc(var(--u) * 3.6); color: var(--gold-light); }
.book-leaf { width: calc(var(--u) * 16); height: calc(var(--u) * 16); color: var(--gold-light); }
.book-pub { font-size: calc(var(--u) * 2.4); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.book-inner .mag-foot span:first-child { color: #2f6a4c; }
.book-inner .mag-section span { color: #2f6a4c; }
.book-prose p { font-size: calc(var(--u) * 3.1); line-height: 1.55; }
.book-prose p + p { margin-top: .8em; }
.book-prose p:first-child::first-letter { float: left; margin: .05em .08em 0 0; font-family: var(--serif); font-size: 3.2em; line-height: .85; color: #2f6a4c; }
.book-cta { border: 0; cursor: pointer; display: inline-block; margin-top: calc(var(--u) * 4); padding: calc(var(--u) * 1.8) calc(var(--u) * 3.6); border-radius: 999px; background: #22513a; color: #fff !important; font-weight: 700; font-size: calc(var(--u) * 2.9); }
.book-note { margin-top: calc(var(--u) * 3); font-size: calc(var(--u) * 2.2); font-style: italic; color: var(--ink-soft); }
.book-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * .4); }
.book-toc button { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; }
.book-toc a, .book-toc button { display: flex; align-items: baseline; gap: calc(var(--u) * 1.6); padding: calc(var(--u) * 1.1) 0; color: var(--ink) !important; font-size: calc(var(--u) * 2.95); line-height: 1.3; }
.book-toc button:hover { color: #22513a !important; }
.book-toc button:hover .book-title { text-decoration: underline; }
.book-no { flex: none; width: 1.6em; font-family: var(--serif); font-weight: 700; color: #2f6a4c; text-align: right; }
.book-title { flex: 0 1 auto; }
.book-dots { flex: 1 1 calc(var(--u) * 4); min-width: calc(var(--u) * 4); border-bottom: 2px dotted rgba(0, 0, 0, .25); transform: translateY(-.25em); }
.book-page { flex: none; font-weight: 700; color: var(--navy-800); }
.book-start { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * 2.4); }
.book-start button { width: 100%; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.book-start a, .book-start button { display: block; padding: calc(var(--u) * 2.4) calc(var(--u) * 3); border-radius: calc(var(--u) * 1.4); background: #eef5ef; border-left: 4px solid #2f6a4c; color: var(--ink) !important; font-size: calc(var(--u) * 2.9); line-height: 1.45; }
.book-start button:hover { background: #e2efe4; }
.book-start strong { color: #22513a; }
.book-back { background: linear-gradient(180deg, #eef5ef, #d9e9dc); }
.book-back .mag-thought { background: #22513a; }
.book-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 1.4); }
.book-parts a { display: block; padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2); border-radius: calc(var(--u) * 1); background: #fff; color: #22513a !important; font-weight: 700; font-size: calc(var(--u) * 2.8); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* magazine archive */
.mag-archive-btn { position: absolute; top: 14px; left: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 13px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(227, 197, 125, .6); background: rgba(255, 255, 255, .06); color: var(--gold-light); font: 700 .92rem var(--sans); letter-spacing: .04em; }
.mag-archive-btn:hover, .mag-archive-btn[aria-expanded="true"] { background: rgba(227, 197, 125, .18); }
.mag-archive-btn svg { width: 20px; height: 20px; }
.mag-archive { position: absolute; inset: 72px 16px 80px; z-index: 4; overflow-y: auto; padding: 8px 4px 24px; }
.mag.is-archive .mag-stage, .mag.is-archive .mag-bar { visibility: hidden; }
.mag-archive h2 { color: #fff; font-size: 1.6rem; text-align: center; margin-bottom: 18px; }
.mag-archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.mag-archive-card { display: flex; flex-direction: column; gap: 8px; min-height: 250px; padding: 18px 16px; border-radius: 6px; cursor: pointer; text-align: left; color: #fff;
    border: 1px solid rgba(227, 197, 125, .35); background: linear-gradient(180deg, #2a5d9f 0%, #16365f 45%, #0b1f3b 100%); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); transition: transform .2s var(--ease), border-color .2s; }
.mag-archive-card:hover { transform: translateY(-4px); border-color: var(--gold-light); }
.mag-archive-card.is-current { outline: 3px solid var(--gold); outline-offset: 3px; }
.mag-archive-mast { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1; padding-bottom: 8px; border-bottom: 1px solid rgba(227, 197, 125, .7); }
.mag-archive-meta { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.mag-archive-card strong { margin-top: auto; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.mag-archive-sub { font-size: .85rem; font-style: italic; color: #d8e1ee; }
.mag-archive-empty { grid-column: 1 / -1; color: #dfe7f2; text-align: center; }
@media (max-width: 640px) { .mag-archive-btn span { display: none; } .mag-archive-btn { padding: 0 12px; } }

/* ---------- the Big Book flip-book: PDF pages, contents, search, go to page ---------- */
.pdf-page { background: #fbf8f0; }
.pdf-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdf-marks { position: absolute; inset: 0; pointer-events: none; }
.pdf-marks span { position: absolute; border-radius: 2px; background: rgba(227, 197, 125, .55); mix-blend-mode: multiply; box-shadow: 0 0 0 2px rgba(201, 162, 74, .35); }
.pdf-wait { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 3px solid rgba(14, 39, 71, .15); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.pdf-page.is-drawn .pdf-wait { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.mag.has-tools .mag-stage { padding-top: 76px; }
.bb-tools { position: absolute; top: 14px; left: 16px; right: 76px; z-index: 6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bb-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 13px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(227, 197, 125, .6); background: rgba(255, 255, 255, .06); color: var(--gold-light); font: 700 .92rem var(--sans); }
.bb-btn:hover, .bb-btn[aria-expanded="true"] { background: rgba(227, 197, 125, .18); }
.bb-btn svg, .bb-search svg { width: 20px; height: 20px; flex: none; }
.bb-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 460px; height: 46px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy-700); }
.bb-search input { flex: 1; min-width: 0; border: 0; background: none; font: 500 1rem var(--sans); color: var(--ink); outline: none; }
.bb-goto { display: inline-flex; align-items: center; gap: 6px; color: #dfe7f2; font-weight: 600; font-size: .92rem; }
.bb-goto input { width: 64px; height: 38px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(227, 197, 125, .6); background: rgba(255, 255, 255, .08); color: #fff; font: 700 1rem var(--sans); text-align: center; }
.bb-panel { position: absolute; top: 56px; left: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 18px 18px 22px;
    border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.bb-panel h2 { font-size: 1.35rem; margin-bottom: 8px; }
.bb-panel h3 { margin: 16px 0 6px; font-size: .78rem; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.bb-panel ol { list-style: none; margin: 0; padding: 0; }
.bb-panel li button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 6px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; font: 500 1rem var(--sans); color: var(--ink); }
.bb-panel li button:hover { background: #f2ece0; }
.bb-d { flex: 1; border-bottom: 2px dotted rgba(0, 0, 0, .2); transform: translateY(-.3em); }
.bb-p { font-weight: 700; color: var(--navy-800); }
.bb-rp { flex: none; width: 4.2em; font-weight: 700; color: var(--gold-deep); font-size: .88rem; }
.bb-rs { font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.bb-rs mark { background: #f3dc9a; color: var(--ink); border-radius: 2px; padding: 0 1px; }
.bb-note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
@media (max-width: 760px) {
    .bb-btn span, .bb-goto span { display: none; }
    .bb-goto { display: none; }
    .mag.has-tools .mag-stage { padding-top: 70px; }
}
.mag-archive-btn[hidden], .bb-panel[hidden] { display: none; }

/* ---------- the Daily Reflection popup: a big ring, the text, and AI background ---------- */
.rd { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; color: #e9eef6;
    background: radial-gradient(ellipse at 50% 30%, #1f4a7d 0%, #0e2747 45%, #050f1f 100%); }
.rd::backdrop { background: rgba(5, 15, 31, .8); }
.rd[open] { display: block; animation: mag-in .35s var(--ease); }
.rd-close { position: fixed; }
.rd-inner { width: min(720px, 100%); margin: 0 auto; padding: 56px 20px 64px; text-align: center; }
.rd-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.reflection-player--full { margin: 18px 0 0; }
.reflection-player--full .rp-play { height: auto; aspect-ratio: auto; padding: 18px 0; background: none; box-shadow: none; }
.reflection-player--full .voice-ring { width: min(340px, 78vw); height: min(340px, 78vw); }
.reflection-player--full .voice-ring-emblem { width: 30%; height: 30%; padding: 4.5%; }
.reflection-player--full .rp-icon { right: auto; bottom: 8px; left: 50%; width: 58px; height: 58px; transform: translateX(-50%); }
.reflection-player--full .rp-play:hover .rp-icon { transform: translateX(-50%) scale(1.08); }
.reflection-player--full .rp-status { margin-top: 8px; color: var(--gold-light); font-size: 1rem; }
.reflection-player--full .rp-caption { margin-top: 4px; color: #c9d4e3; font-size: 1.02rem; }
.reflection-player--full .rp-text { margin: 22px auto 0; padding: 22px 24px; max-width: 620px; border-radius: 16px; text-align: left; background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 197, 125, .25); color: #dfe7f2; }
.reflection-player--full .rp-text summary { color: var(--gold-light); }
.reflection-player--full .rp-text h4 { color: #fff; font-size: 1.4rem; }
.reflection-player--full .rp-text p { font-size: 1.05rem; line-height: 1.65; }
.rd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.rd-ai { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
    background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-900); font: 700 1rem var(--sans); box-shadow: 0 8px 20px -8px rgba(201, 162, 74, .8); }
.rd-ai svg { width: 20px; height: 20px; }
.rd-ai[aria-expanded="true"] { background: #fff; }
.rd-official { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 700; text-decoration: none; }
.rd-official svg { width: 16px; height: 16px; }
.rd-background { margin: 20px auto 0; padding: 24px 26px; max-width: 620px; border-radius: 16px; text-align: left; background: var(--paper); color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.rd-background h3 { font-size: 1.35rem; margin-bottom: 8px; }
.rd-background p { font-size: 1.03rem; line-height: 1.65; }
.rd-background p + p { margin-top: .7em; }
.rd-note { font-size: .82rem !important; font-style: italic; color: var(--ink-soft); }
.rd-wait { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.rd-wait span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(14, 39, 71, .15); border-top-color: var(--gold); animation: spin 1s linear infinite; }

.book-notes { display: grid; gap: calc(var(--u) * 2.2); }
.book-note-item h4 { display: flex; align-items: baseline; gap: .4em; font-family: var(--serif); font-size: calc(var(--u) * 3.1); line-height: 1.25; color: var(--navy-800); }
.book-note-item h4 .book-no { width: auto; }
.book-at { margin-left: auto; flex: none; font-family: var(--sans); font-size: .75em; font-weight: 700; color: #2f6a4c; }
.book-note-item p { margin-top: .25em; font-size: calc(var(--u) * 2.7); line-height: 1.45; color: var(--ink-soft); }

/* Big Book zoom: the scrolling reader */
.bb-zoom { display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 6px; border-radius: 999px; border: 1px solid rgba(227, 197, 125, .6); background: rgba(255, 255, 255, .06); }
.bb-zbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: none; color: var(--gold-light); font: 700 1.5rem/1 var(--sans); }
.bb-zbtn:hover:not(:disabled) { background: rgba(227, 197, 125, .18); }
.bb-zbtn:disabled { opacity: .35; cursor: default; }
.bb-zoom-level { min-width: 3.4em; text-align: center; color: #fff; font-weight: 700; font-size: .9rem; }
.mag.is-reading .mag-stage, .mag.is-reading .mag-bar { visibility: hidden; }
.bb-reader { position: absolute; inset: 76px 0 0; z-index: 3; overflow: auto; padding: 16px; cursor: grab; touch-action: pan-x pan-y; overscroll-behavior: contain; outline: none; }
.bb-reader.is-dragging { cursor: grabbing; user-select: none; }
.bb-reader[hidden] { display: none; }
.bb-rpage { position: relative; width: var(--rw); height: calc(var(--rw) * 566 / 354); margin: 0 auto 24px; background: #fbf8f0; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.bb-rpage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bb-rno { position: absolute; right: -40px; top: 0; color: rgba(255, 255, 255, .45); font-weight: 700; font-size: .85rem; }
@media (max-width: 760px) { .bb-reader { inset: 70px 0 0; padding: 10px; } .bb-rno { display: none; } }

/* reflection player controls: stop, back/forward 10 s, play/pause, and a bar to drag through the reading */
.rp-controls { display: grid; grid-template-columns: repeat(4, auto) 1fr; grid-template-areas: "stop back main fwd seek" "times times times times times"; align-items: center; gap: 8px 10px; margin-top: 10px; }
.rp-c { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy-800); cursor: pointer; }
.rp-c:hover { border-color: var(--gold); }
.rp-c svg { width: 18px; height: 18px; }
.rp-c[data-c="stop"] { grid-area: stop; } .rp-c[data-c="back"] { grid-area: back; } .rp-c[data-c="fwd"] { grid-area: fwd; }
.rp-c--main { grid-area: main; width: 44px; height: 44px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); border-color: transparent; color: var(--navy-900); }
.rp-c-pause, .is-playing .rp-c-play { display: none; }
.is-playing .rp-c-pause { display: block; }
.rp-seek { grid-area: seek; position: relative; height: 22px; display: flex; align-items: center; }
.rp-seek::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-radius: 999px; background: rgba(14, 39, 71, .14); }
.rp-loaded { position: absolute; left: 0; height: 6px; width: 0; border-radius: 999px; background: rgba(201, 162, 74, .45); transition: width .3s; }
.is-recording .rp-loaded { background: repeating-linear-gradient(90deg, rgba(201, 162, 74, .55) 0 10px, rgba(201, 162, 74, .3) 10px 20px); background-size: 40px 100%; animation: rp-rec 1s linear infinite; }
@keyframes rp-rec { to { background-position: 40px 0; } }
.rp-range { position: relative; width: 100%; margin: 0; background: transparent; accent-color: var(--gold); cursor: pointer; }
.rp-times { grid-area: times; display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.reflection-player--full .rp-controls { max-width: 560px; margin: 14px auto 0; }
.reflection-player--full .rp-c { background: rgba(255, 255, 255, .08); border-color: rgba(227, 197, 125, .45); color: #fff; }
.reflection-player--full .rp-c--main { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-900); }
.reflection-player--full .rp-seek::before { background: rgba(255, 255, 255, .18); }
.reflection-player--full .rp-times { color: var(--gold-light); }
