:root {
    --paper: #f4efe5;
    --paper-raised: #fffdf7;
    --paper-deep: #e9e0d0;
    --ink: #17383a;
    --ink-soft: #526667;
    --ink-faint: #7c8a87;
    --line: #d7cfbf;
    --line-dark: #a59e90;
    --blue: #d8e9ed;
    --blue-strong: #7babb4;
    --blue-deep: #2f6973;
    --green: #dbe8d8;
    --green-strong: #82a789;
    --green-deep: #315a42;
    --brown: #d8c29d;
    --brown-pale: #eee2cc;
    --brown-deep: #7b5e36;
    --red: #efd7d2;
    --red-strong: #b9655b;
    --red-deep: #7c2927;
    --danger: #9b493f;
    --shadow: 0 20px 60px rgba(38, 52, 48, .09);
    --serif: "Iowan Old Style", "Baskerville", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
    --sans: "Avenir Next", "Optima", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --max: 1240px;
    --sidebar: 248px;
    --sidebar-collapsed: 78px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 4%, rgba(216, 233, 237, .42), transparent 28rem),
        radial-gradient(circle at 92% 20%, rgba(219, 232, 216, .34), transparent 26rem),
        var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .22;
    content: "";
    background-image:
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(20, 43, 40, .025) 5px 6px),
        repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, .45) 7px 8px);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.edition-tabs { display: flex; gap: 12px; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.edition-tabs button { flex: 1; max-width: 320px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font-weight: 800; text-align: left; cursor: pointer; }
.edition-tabs button span { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.edition-tabs button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue-deep); box-shadow: inset 4px 0 var(--blue-deep); }
.edition-tabs button[data-free-format="text"][aria-pressed="true"] { background: var(--green); border-color: var(--green-deep); box-shadow: inset 4px 0 var(--green-deep); }
.paid-edition-guide { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 34px; padding: 26px 30px; background: var(--paper-raised); border: 1px solid var(--line); border-left: 4px solid var(--red-deep); }
.paid-edition-guide h2 { margin: 6px 0 9px; font: 700 28px/1.3 var(--serif); }
.paid-edition-guide p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.paid-edition-guide .button { flex-shrink: 0; }
@media (max-width: 760px) {
    .paid-edition-guide { align-items: flex-start; flex-direction: column; padding: 22px; }
    .edition-tabs { gap: 8px; }
    .edition-tabs button { padding: 12px; }
}

:focus-visible {
    outline: 3px solid rgba(47, 105, 115, .55);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    transform: translateY(-160%);
    padding: .7rem 1rem;
    color: white;
    background: var(--ink);
    transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Left editorial index */
.site-header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 80;
    width: var(--sidebar);
    background: rgba(250, 247, 239, .94);
    border-right: 1px solid rgba(121, 113, 99, .36);
    backdrop-filter: blur(18px);
    transition: width .24s ease;
}

.header-rule {
    position: absolute;
    left: 0;
    inset-block: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--blue-deep) 0 39%, var(--green-strong) 39% 72%, var(--brown) 72% 100%);
}

.header-inner {
    height: 100%;
    padding: 22px 18px 18px 23px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.sidebar-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) 36px;
    align-items: center;
    gap: .45rem;
}

.brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex: none;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--brown-pale);
    border: 1px solid rgba(123, 94, 54, .45);
    border-radius: 50% 50% 46% 54%;
    font: 700 1.25rem/1 var(--serif);
    box-shadow: inset 0 0 0 3px rgba(255, 253, 247, .55);
}

.brand-copy { min-width: 0; display: grid; line-height: 1.05; }
.brand-copy strong { font: 700 1rem/1.2 var(--serif); letter-spacing: .02em; }
.brand-copy small { margin-top: .35rem; font-size: .57rem; letter-spacing: .22em; color: var(--blue-deep); }

.sidebar-toggle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,253,247,.7);
    cursor: pointer;
}
.sidebar-toggle:hover { background: var(--blue); }
.sidebar-toggle svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .24s ease; }

.desktop-nav {
    min-width: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.desktop-nav a,
.desktop-nav button {
    position: relative;
    min-height: 58px;
    padding: .55rem .5rem;
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    align-items: center;
    gap: .55rem;
    border: 0;
    background: transparent;
    color: #455b5a;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.nav-index { color: var(--line-dark); font: 700 .72rem/1 var(--serif); letter-spacing: .05em; }
.nav-copy { min-width: 0; display: grid; }
.nav-copy strong { font-size: .82rem; line-height: 1.2; }
.nav-copy small { margin-top: .22rem; color: var(--ink-faint); font-size: .49rem; letter-spacing: .15em; }
.desktop-nav em {
    color: var(--brown-deep);
    font-size: .48rem;
    font-style: normal;
    letter-spacing: .08em;
}
.nav-divider { height: 1px; margin: .45rem .5rem; background: var(--line); }

.desktop-nav a::after,
.desktop-nav button::after {
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    content: "";
    background: var(--blue-deep);
    transform: scaleY(0);
    transition: transform .18s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav [aria-current="page"] { color: var(--ink); }
.desktop-nav [aria-current="page"]::after,
.desktop-nav a:hover::after,
.desktop-nav button:hover::after { transform: scaleY(1); }
.desktop-nav [aria-current="page"] { background: rgba(216,233,237,.55); }

.header-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.icon-button,
.account-button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 247, .64);
    cursor: pointer;
}

.icon-button {
    width: 100%;
    padding: 0 .8rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    border-radius: 0;
}
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-button:hover { background: var(--blue); }
.action-label { font-size: .72rem; }

.account-button {
    width: 100%;
    padding: .35rem .7rem .35rem .35rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
}
.account-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--green-deep);
    font-weight: 700;
}
.account-label { font-size: .8rem; }
.sidebar-caption { margin: .25rem 0 0; color: var(--ink-faint); font: .68rem/1.5 var(--serif); text-align: center; }

main,
.site-footer { margin-left: var(--sidebar); transition: margin-left .24s ease; }

body.sidebar-collapsed .site-header { width: var(--sidebar-collapsed); }
body.sidebar-collapsed main,
body.sidebar-collapsed .site-footer { margin-left: var(--sidebar-collapsed); }
body.sidebar-collapsed .header-inner { padding-inline: 12px 9px; }
body.sidebar-collapsed .sidebar-top { display: flex; flex-direction: column; }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .nav-copy,
body.sidebar-collapsed .action-label,
body.sidebar-collapsed .account-label,
body.sidebar-collapsed .sidebar-caption,
body.sidebar-collapsed .nav-divider { display: none; }
body.sidebar-collapsed .desktop-nav a,
body.sidebar-collapsed .desktop-nav button { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
body.sidebar-collapsed .nav-index { color: var(--ink-soft); font-size: .64rem; }
body.sidebar-collapsed .icon-button,
body.sidebar-collapsed .account-button { width: 46px; justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }

/* Shared layout */
.edition-shell,
.page-shell {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
}
.page-shell { padding: 64px 0 96px; }
.page { min-height: 70vh; }

.eyebrow,
.issue-label,
.story-kicker {
    display: inline-block;
    color: var(--blue-deep);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid var(--ink);
}
.section-heading > div { padding-bottom: .8rem; }
.section-heading h2 { margin: .14rem 0 0; font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.1 var(--serif); }
.section-heading a,
.section-heading button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-deep); cursor: pointer; font-size: .78rem; }
.section-heading.compact { border-bottom-width: 1px; }
.section-heading.compact h2 { font-size: 1.45rem; }

.text-button,
.clear-filters {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue-deep);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
}
.text-button:hover,
.clear-filters:hover { text-decoration: underline; text-underline-offset: .25em; }

.button {
    min-height: 46px;
    width: fit-content;
    padding: .72rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 53, 54, .14); }
.button-dark { color: white; background: var(--ink); }
.button-green { color: white; background: var(--green-deep); }
.button-brown { color: #fff; background: var(--brown-deep); }
.button-outline { border-color: var(--ink); background: transparent; }
.button-outline:hover { color: white; background: var(--ink); }
.button[disabled] { opacity: .55; pointer-events: none; }

/* Today newspaper */
.auth-state { padding: 8px clamp(20px, 4vw, 32px) 28px; }
.auth-state .privacy-note { padding: 0; margin: 16px 0; line-height: 1.75; font-size: .76rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-dark); gap: 16px; }
.auth-tabs button { border: 0; padding: 14px 8px; color: var(--ink-soft); background: transparent; cursor: pointer; font: inherit; }
.auth-tabs button[aria-pressed="true"] { border-bottom: 3px solid var(--green-deep); color: var(--green-deep); font-weight: 800; }
.auth-intro { color: var(--ink-soft); font-size: .86rem; line-height: 1.8; }
.phone-auth-form { display: grid; gap: 9px; text-align: left; }
.phone-auth-form label { margin-top: 8px; font-size: .82rem; font-weight: 700; }
.phone-auth-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--paper-raised); color: var(--ink); font: inherit; }
.phone-auth-form input:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.phone-auth-form .button { width: 100%; margin-top: 6px; }
.auth-error { margin: 4px 0; color: #8c302e; font-size: .82rem; line-height: 1.65; }
.auth-error:empty { display: none; }
.password-settings { margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); text-align: left; }
.password-settings summary { cursor: pointer; font-weight: 700; }

.page-today { padding: 28px 0 92px; }

.edition-masthead {
    min-height: 164px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--ink);
    border-bottom: 4px double var(--ink);
}

.edition-meta,
.edition-number { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.edition-number { text-align: right; }
.masthead-lockup { display: grid; justify-items: center; row-gap: .9rem; text-align: center; }
.masthead-kicker { color: var(--brown-deep); font-size: .58rem; font-weight: 800; letter-spacing: .24em; }
.masthead-lockup h1 { margin: 0; font: 800 clamp(2.7rem, 6vw, 5.15rem)/1.02 var(--serif); letter-spacing: -.045em; }
.masthead-lockup p { margin: 0; color: var(--ink-soft); font: .86rem/1.3 var(--serif); letter-spacing: .16em; }

.today-briefing {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line-dark);
    font-size: .78rem;
}
.today-briefing p { margin: 0; }
.live-dot { width: 7px; height: 7px; margin-right: .45rem; display: inline-block; border-radius: 50%; background: var(--green-strong); box-shadow: 0 0 0 4px rgba(130, 167, 137, .18); }

.lead-layout {
    padding: 22px 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.82fr) minmax(280px, .82fr);
    gap: 22px;
    border-bottom: 1px solid var(--ink);
}

.lead-story {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(300px, 1.02fr);
    background: var(--paper-raised);
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow);
}
.lead-story::before {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 8px;
    height: 40%;
    content: "";
    background: var(--blue-strong);
}
.lead-copy {
    z-index: 2;
    padding: clamp(2rem, 4vw, 3.65rem) clamp(1.5rem, 3.2vw, 3.2rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.lead-copy h2 { margin: 1.15rem 0 .9rem; font: 800 clamp(2.25rem, 4vw, 4.45rem)/.95 var(--serif); letter-spacing: -.04em; }
.lead-copy .english-title { margin-bottom: 1.25rem; color: var(--ink-soft); font: italic 1.04rem/1.35 var(--serif); }
.lead-copy .story-desc { display: -webkit-box; overflow: hidden; margin-bottom: 1.4rem; color: #455a59; font: .91rem/1.8 var(--serif); -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.lead-copy .story-link { margin-top: auto; }

.lead-art { position: relative; min-width: 0; overflow: hidden; background: var(--blue); }
.lead-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(255, 253, 247, .28), transparent 30%), linear-gradient(0deg, rgba(13, 42, 43, .43), transparent 48%);
}
.lead-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(.96); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.lead-story:hover .lead-art img { transform: scale(1.035); }
.lead-number {
    position: absolute;
    right: 1.3rem;
    top: 1rem;
    z-index: 2;
    color: rgba(255,255,255,.9);
    font: 700 3rem/1 var(--serif);
}
.lead-caption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    z-index: 2;
    color: white;
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    min-height: 26px;
    padding: .2rem .56rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(23,56,58,.28);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.chip.audio { color: var(--blue-deep); border-color: var(--blue-strong); background: rgba(216,233,237,.5); }
.chip.vip { color: var(--brown-deep); border-color: var(--brown); background: var(--brown-pale); }
.chip.difficulty.is-green, .chip.course-type.is-green { color: var(--green-deep); border-color: var(--green-strong); background: rgba(219,232,216,.55); }
.chip.difficulty.is-blue, .chip.course-type.is-blue { color: var(--blue-deep); border-color: var(--blue-strong); background: rgba(216,233,237,.55); }
.chip.difficulty.is-red, .chip.course-type.is-red { color: var(--red-deep); border-color: var(--red-strong); background: rgba(239,215,210,.58); }
.story-link { min-height: 44px; display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); font-size: .85rem; font-weight: 800; }
.story-link span { width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 50%; transition: transform .16s ease; }
.story-link:hover span { transform: translateX(4px); }

.secondary-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.secondary-story {
    position: relative;
    min-height: 244px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 116px;
    background: rgba(255,253,247,.7);
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--line-dark);
}
.secondary-copy { padding: 1.3rem 1rem 1rem .1rem; display: flex; flex-direction: column; align-items: flex-start; }
.secondary-copy h3 { margin: .75rem 0 .45rem; font: 700 clamp(1.25rem, 2vw, 1.75rem)/1.1 var(--serif); }
.secondary-copy .english-title { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink-soft); font: italic .76rem/1.4 var(--serif); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.secondary-copy .story-link { margin-top: auto; font-size: .75rem; }
.secondary-art { position: relative; min-height: 100%; overflow: hidden; background: var(--green); }
.secondary-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .5s ease; }
.secondary-story:hover img { transform: scale(1.05); }
.secondary-number { position: absolute; right: .45rem; bottom: .4rem; color: rgba(255,255,255,.86); font: 700 2.6rem/1 var(--serif); text-shadow: 0 1px 12px rgba(0,0,0,.25); }

.continue-band {
    min-height: 130px;
    margin: 28px 0;
    display: grid;
    grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
    border: 1px solid var(--line-dark);
    background: rgba(255,253,247,.7);
}
.section-flag { padding: 1.4rem 1.7rem; display: flex; flex-direction: column; justify-content: center; background: var(--blue); border-right: 1px solid var(--line-dark); }
.section-flag span { color: var(--blue-deep); font-size: .58rem; font-weight: 900; letter-spacing: .2em; }
.section-flag h2 { max-width: 300px; margin: .45rem 0 0; font: 700 1.35rem/1.25 var(--serif); }
.continue-card { min-width: 0; padding: 1rem 1.5rem; display: flex; align-items: center; }
.continue-entry { width: 100%; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 1.2rem; }
.continue-progress {
    --progress: 0%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--blue-deep) var(--progress), var(--paper-deep) 0);
}
.continue-progress::before { grid-area: 1/1; width: 44px; height: 44px; border-radius: 50%; content: ""; background: var(--paper-raised); }
.continue-progress strong { z-index: 1; font-size: .68rem; }
.continue-entry h3 { overflow: hidden; margin: 0 0 .18rem; font: 700 1.15rem/1.25 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.continue-entry p { margin: 0; color: var(--ink-soft); font-size: .72rem; }

.learning-spread { margin-bottom: 44px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 24px; }
.week-panel { padding: 1.5rem; background: rgba(255,253,247,.72); border: 1px solid var(--line); }
.week-summary { display: grid; grid-template-columns: repeat(3,1fr); }
.week-stat { min-width: 0; padding: 1rem 1.2rem; border-right: 1px solid var(--line); }
.week-stat:first-child { padding-left: 0; }
.week-stat:last-child { border-right: 0; }
.week-stat strong { display: block; font: 700 2.2rem/1 var(--serif); }
.week-stat span { display: block; margin-top: .5rem; color: var(--ink-soft); font-size: .72rem; }
.week-note { padding: 1.5rem 1.7rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem; color: white; background: var(--green-deep); border: 1px solid rgba(23,56,58,.3); }
.progress-orbit {
    --progress: 0%;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--brown) var(--progress), rgba(255,255,255,.15) 0);
}
.progress-orbit::before { width: 70px; height: 70px; grid-area: 1/1; content: ""; border-radius: 50%; background: var(--green-deep); }
.progress-orbit strong { z-index: 1; font: 700 1.1rem/1 var(--serif); }
.week-note span { font-size: .62rem; letter-spacing: .14em; }
.week-note h3 { margin: .25rem 0 .35rem; font: 700 1.35rem/1.2 var(--serif); }
.week-note p { margin: 0; color: rgba(255,255,255,.68); font-size: .7rem; line-height: 1.65; }

.news-index { margin-top: 16px; }
.index-list { border-top: 1px solid var(--line); }
.index-entry {
    min-height: 94px;
    display: grid;
    grid-template-columns: 58px minmax(0,1.45fr) minmax(150px,.55fr) 120px 44px;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transition: background .16s ease, padding .16s ease;
}
.index-entry:hover { padding-left: .7rem; background: rgba(216,233,237,.35); }
.index-entry > span:first-child { color: var(--line-dark); font: 700 1.65rem/1 var(--serif); }
.index-title strong { display: block; overflow: hidden; font: 700 1rem/1.25 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.index-title small { display: block; overflow: hidden; margin-top: .24rem; color: var(--ink-soft); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.index-topic, .index-meta { color: var(--ink-soft); font-size: .7rem; }
.index-arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }

.product-spread { margin-top: 56px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; }
.product-card { position: relative; min-height: 330px; overflow: hidden; border: 1px solid var(--line-dark); }
.product-card .product-copy { position: relative; z-index: 2; padding: clamp(1.7rem, 4vw, 3.2rem); }
.product-card h2 { max-width: 550px; margin: .75rem 0 1rem; font: 700 clamp(1.7rem, 3.3vw, 2.85rem)/1.06 var(--serif); letter-spacing: -.025em; }
.product-card p { max-width: 480px; margin-bottom: 1.5rem; color: var(--ink-soft); font-size: .82rem; }
.annual-card { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--brown-pale); }
.annual-card img { align-self: end; width: 115%; max-width: none; transform: translate(-8%, 7%); filter: drop-shadow(0 22px 18px rgba(67,48,25,.2)); }
.camp-card { color: white; background: var(--green-deep); }
.camp-card::before, .camp-card::after { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.camp-card::before { width: 260px; height: 260px; right: -80px; top: -100px; }
.camp-card::after { width: 180px; height: 180px; right: -35px; top: -58px; }
.camp-card .eyebrow { color: #c8ddcc; }
.camp-card p { color: rgba(255,255,255,.68); }
.camp-seal { position: absolute; right: 1.4rem; top: 1.4rem; z-index: 1; width: 74px; height: 74px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transform: rotate(7deg); }
.camp-seal span { font: 700 1.25rem/1 var(--serif); }
.camp-seal small { margin-top: .25rem; font-size: .5rem; letter-spacing: .08em; }

/* Page intros */
.page-intro {
    min-height: 215px;
    padding: 2.2rem clamp(1.5rem, 4vw, 3.4rem);
    display: grid;
    grid-template-columns: 1fr minmax(260px, 440px);
    align-items: end;
    gap: 2rem;
    border-top: 1px solid var(--ink);
    border-bottom: 4px double var(--ink);
}
.page-intro h1 { margin: .3rem 0 0; font: 800 clamp(3.6rem, 8vw, 7rem)/.82 var(--serif); letter-spacing: -.055em; }
.page-intro p { margin: 0; padding-left: 1.4rem; border-left: 1px solid var(--line-dark); color: var(--ink-soft); font: .92rem/1.85 var(--serif); }
.library-intro { background: linear-gradient(115deg, rgba(216,233,237,.82), rgba(255,253,247,.45) 60%); }
.videos-intro { background: linear-gradient(115deg, rgba(216,233,237,.78), rgba(239,215,210,.38) 72%, rgba(255,253,247,.45)); }
.practice-intro { background: linear-gradient(115deg, rgba(238,226,204,.9), rgba(255,253,247,.45) 60%); }
.records-intro { background: linear-gradient(115deg, rgba(219,232,216,.9), rgba(255,253,247,.45) 60%); }

/* Library */
.library-tools { margin-top: 28px; padding: 1.35rem; background: rgba(255,253,247,.78); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(40,50,45,.05); }
.search-field { min-height: 56px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: .8rem; border-bottom: 1px solid var(--ink); }
.search-field svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search-field input { width: 100%; min-height: 52px; border: 0; outline: 0; background: none; color: var(--ink); font: 1.02rem var(--serif); }
.search-field input::placeholder { color: #89918c; }
.search-field kbd { padding: .15rem .4rem; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-faint); background: var(--paper); font: .62rem var(--sans); }
.filter-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(6,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.filter-grid label { min-width: 0; padding: .58rem .75rem; display: grid; background: var(--paper-raised); }
.filter-grid label > span { color: var(--ink-faint); font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.filter-grid select, .sort-field select { min-width: 0; min-height: 44px; padding: 0 1.4rem 0 0; border: 0; outline: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: .72rem; }

.results-toolbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ink); }
.results-toolbar p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.results-toolbar p strong { color: var(--ink); font: 700 1.35rem/1 var(--serif); }
.results-toolbar > div { display: flex; align-items: center; gap: 1.3rem; }
.sort-field { display: flex; align-items: center; gap: .5rem; }
.sort-field span { color: var(--ink-faint); font-size: .64rem; }

.article-shelves { margin-top: 8px; }
.article-month { margin-top: 34px; }
.month-divider { min-height: 82px; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 3px double var(--ink); }
.month-divider > div { padding-bottom: .8rem; display: flex; align-items: baseline; gap: 1rem; }
.month-divider span { color: var(--blue-deep); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.month-divider h2 { margin: 0; font: 700 2rem/1 var(--serif); }
.month-divider > strong { padding-bottom: .8rem; color: var(--ink-faint); font-size: .63rem; }
.article-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px 20px; }
.article-card { position: relative; min-width: 0; background: rgba(255,253,247,.64); border-bottom: 2px solid var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.article-card.is-green { border-bottom-color: var(--green-deep); }
.article-card.is-blue { border-bottom-color: var(--blue-deep); }
.article-card.is-red { border-bottom-color: var(--red-deep); }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(27,55,51,.1); }
.article-card-link { height: 100%; display: flex; flex-direction: column; }
.article-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--blue); border: 1px solid var(--line); }
.article-card.is-green .article-cover { background: var(--green); border-color: var(--green-strong); }
.article-card.is-blue .article-cover { background: var(--blue); border-color: var(--blue-strong); }
.article-card.is-red .article-cover { background: var(--red); border-color: var(--red-strong); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .6s ease; }
.article-card:hover img { transform: scale(1.045); }
.article-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(16,47,45,.36), transparent 48%); }
.card-number { position: absolute; right: .75rem; top: .55rem; z-index: 2; color: rgba(255,255,255,.88); font: 700 1.65rem/1 var(--serif); text-shadow: 0 1px 10px rgba(0,0,0,.2); }
.card-badges { position: absolute; left: .7rem; bottom: .6rem; z-index: 2; display: flex; gap: .4rem; }
.card-badges span { padding: .22rem .48rem; color: white; background: rgba(20,55,55,.78); font-size: .54rem; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(4px); }
.article-card.is-green .card-badges span { background: rgba(49,90,66,.88); }
.article-card.is-blue .card-badges span { background: rgba(47,105,115,.9); }
.article-card.is-red .card-badges span { background: rgba(124,41,39,.9); }
.card-badges .vip-badge { color: var(--ink); background: rgba(238,226,204,.92); }
.article-card-copy { flex: 1; padding: 1.15rem .8rem 1rem; display: flex; flex-direction: column; }
.article-card-copy .card-source { margin-bottom: .5rem; color: var(--blue-deep); font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.article-card-copy h2 { margin: 0 0 .6rem; font: 700 clamp(1.2rem,2vw,1.55rem)/1.1 var(--serif); }
.article-card-copy .card-english { display: -webkit-box; overflow: hidden; margin: 0 0 .8rem; color: var(--ink-soft); font: italic .77rem/1.45 var(--serif); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-footer { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .62rem; }
.card-progress { height: 4px; background: var(--paper-deep); }
.card-progress span { display: block; height: 100%; background: var(--blue-deep); }
.article-card.is-green .card-progress span { background: var(--green-deep); }
.article-card.is-red .card-progress span { background: var(--red-deep); }
.card-progress-label { position: absolute; right: .8rem; top: calc((100% - 116px) * .625 - 1.7rem); z-index: 3; color: white; font-size: .56rem; }
.load-more-wrap { padding-top: 34px; display: flex; justify-content: center; }
.empty-state { padding: 76px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state > span { display: block; color: var(--blue-strong); font: 4rem/1 var(--serif); }
.empty-state h2 { margin: 1rem 0 .4rem; font: 700 1.5rem/1.2 var(--serif); }
.empty-state p { color: var(--ink-soft); font-size: .8rem; }
.empty-state .button { margin: 1rem auto 0; }

/* Video courseware */
.video-guide { margin-top: 28px; padding: 1rem 1.25rem; display: grid; grid-template-columns: auto auto minmax(240px,1fr); align-items: center; gap: 1.4rem; border: 1px solid var(--line); background: rgba(255,253,247,.72); }
.video-guide > div { display: grid; grid-template-columns: 12px auto; align-items: center; gap: .1rem .55rem; }
.video-guide strong { font: 700 .78rem/1.2 var(--serif); }
.video-guide span { grid-column: 2; color: var(--ink-faint); font-size: .58rem; }
.video-guide p { justify-self: end; max-width: 480px; margin: 0; color: var(--ink-soft); font-size: .68rem; text-align: right; }
.legend-dot { grid-row: 1/3; width: 10px; height: 34px; display: block; }
.legend-dot.is-blue { background: var(--blue-deep); }
.legend-dot.is-red { background: var(--red-deep); }
.video-shelf { margin-top: 42px; }
.video-shelf-heading { min-height: 84px; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 3px double var(--ink); }
.video-shelf-heading > div { padding-bottom: .8rem; }
.video-shelf-heading span { color: var(--blue-deep); font-size: .58rem; font-weight: 900; letter-spacing: .16em; }
.video-shelf-heading h2 { margin: .2rem 0 0; font: 700 clamp(1.8rem,4vw,3rem)/1 var(--serif); }
.video-shelf-heading p { padding-bottom: .8rem; margin: 0; color: var(--ink-faint); font-size: .65rem; }
.video-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.video-card { min-width: 0; display: grid; grid-template-columns: minmax(180px,.92fr) minmax(0,1.08fr); background: rgba(255,253,247,.7); border: 1px solid var(--line); border-left: 6px solid var(--blue-deep); }
.video-card.is-red { border-left-color: var(--red-deep); }
.video-cover { position: relative; min-height: 250px; overflow: hidden; background: var(--blue); }
.video-card.is-red .video-cover { background: var(--red); }
.video-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .45s ease; }
.video-card:hover .video-cover img { transform: scale(1.04); }
.video-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(17,39,39,.48), transparent 55%); }
.video-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; color: white; background: rgba(23,56,58,.78); border: 1px solid rgba(255,255,255,.68); border-radius: 50%; transform: translate(-50%,-50%); font-size: .85rem; }
.video-number { position: absolute; right: .65rem; bottom: .55rem; z-index: 2; color: white; font: 700 1.7rem/1 var(--serif); }
.video-card-copy { min-width: 0; padding: 1.2rem; display: flex; flex-direction: column; }
.video-card-label { display: flex; justify-content: space-between; gap: .7rem; color: var(--blue-deep); font-size: .52rem; font-weight: 900; letter-spacing: .13em; }
.video-card.is-red .video-card-label { color: var(--red-deep); }
.video-card-label strong { padding: .18rem .4rem; color: white; background: var(--blue-deep); letter-spacing: .05em; }
.video-card.is-red .video-card-label strong { background: var(--red-deep); }
.video-card h3 { margin: .8rem 0 .45rem; font: 700 1.35rem/1.13 var(--serif); }
.video-card-copy > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink-soft); font: italic .72rem/1.45 var(--serif); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-card-meta { margin-top: .8rem; display: flex; gap: .8rem; color: var(--ink-faint); font-size: .58rem; }
.video-actions { margin-top: auto; padding-top: 1rem; display: grid; gap: .45rem; }
.video-action { min-height: 38px; padding: .45rem .65rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-dark); font-size: .62rem; font-weight: 800; }
.video-action-primary { color: white; background: var(--blue-deep); border-color: var(--blue-deep); }
.video-card.is-red .video-action-primary { background: var(--red-deep); border-color: var(--red-deep); }
.video-action.is-disabled { color: var(--ink-faint); border-style: dashed; cursor: not-allowed; }

/* Practice */
.entitlement-banner { min-height: 112px; margin: 28px 0 34px; padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; background: var(--brown-pale); border: 1px solid var(--brown); }
.entitlement-banner.is-active { background: var(--green); border-color: var(--green-strong); }
.entitlement-copy { display: flex; align-items: center; gap: 1.1rem; }
.entitlement-icon { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 700 1.3rem/1 var(--serif); }
.entitlement-copy h2 { margin: 0 0 .2rem; font: 700 1.35rem/1.2 var(--serif); }
.entitlement-copy p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.practice-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(310px,.55fr); gap: 32px; }
.practice-list { border-top: 1px solid var(--line); }
.practice-entry { min-height: 128px; padding: 1rem .3rem; display: grid; grid-template-columns: 80px minmax(0,1fr) auto; align-items: center; gap: 1.2rem; border-bottom: 1px solid var(--line); }
.practice-index { color: var(--brown); font: 700 2.4rem/1 var(--serif); }
.practice-entry h3 { margin: 0 0 .3rem; font: 700 1.15rem/1.2 var(--serif); }
.practice-entry p { margin: 0; color: var(--ink-soft); font-size: .7rem; }
.practice-meta { margin-top: .55rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.practice-meta span { padding: .18rem .4rem; color: var(--brown-deep); background: var(--brown-pale); font-size: .56rem; }
.practice-action { min-width: 108px; min-height: 44px; padding: .55rem .8rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brown-deep); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 700; text-align: center; }
.practice-action:hover { color: white; background: var(--brown-deep); }
.practice-action[disabled] { color: var(--ink-faint); border-color: var(--line); cursor: not-allowed; }
.practice-aside { position: sticky; top: 104px; align-self: start; padding: 2rem; color: #fff; background: var(--brown-deep); }
.practice-aside .eyebrow { color: #f1dfbd; }
.practice-aside h2 { margin: .8rem 0 1.5rem; font: 700 2rem/1.12 var(--serif); }
.practice-aside ul { padding: 0; margin: 0 0 1.8rem; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.practice-aside li { min-height: 62px; display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid rgba(255,255,255,.2); font-size: .74rem; }
.practice-aside li span { color: #f1dfbd; font: .72rem var(--serif); }
.practice-aside .button { width: 100%; color: var(--ink); background: #f1dfbd; }
.practice-aside > p { margin: 1rem 0 0; color: rgba(255,255,255,.66); font-size: .65rem; text-align: center; }
.small-note { padding-bottom: .8rem; color: var(--ink-faint); font-size: .65rem; }

/* Records */
.records-status { margin-top: 28px; }
.status-note { min-height: 70px; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); background: rgba(255,253,247,.65); }
.status-note p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.status-note strong { color: var(--ink); }
.record-stats { margin: 22px 0 34px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.record-stat { padding: 1.4rem; border-right: 1px solid var(--line); }
.record-stat:last-child { border-right: 0; }
.record-stat strong { display: block; font: 700 clamp(2rem,4vw,3.5rem)/1 var(--serif); }
.record-stat span { display: block; margin-top: .5rem; color: var(--ink-soft); font-size: .68rem; }
.records-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.72fr); gap: 32px; }
.calendar-panel, .recent-panel { padding: 1.4rem; background: rgba(255,253,247,.7); border: 1px solid var(--line); }
.calendar-legend { padding-bottom: .8rem; color: var(--ink-faint); font-size: .62rem; }
.calendar-legend i { width: 8px; height: 8px; margin-right: .3rem; display: inline-block; border-radius: 50%; background: var(--green-strong); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-weekdays span { min-height: 34px; display: grid; place-items: center; color: var(--ink-faint); font-size: .58rem; }
.calendar-day { position: relative; aspect-ratio: 1; min-height: 46px; display: grid; place-items: center; border-top: 1px solid var(--line); border-right: 1px solid var(--line); font: .72rem var(--serif); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-empty { color: transparent; }
.calendar-day.has-reading::after { position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; content: ""; background: var(--green-strong); }
.calendar-day.is-today { background: var(--green); font-weight: 700; }
.recent-records { border-top: 1px solid var(--line); }
.recent-entry { min-height: 92px; padding: .85rem 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.recent-entry h3 { overflow: hidden; margin: 0 0 .28rem; font: 700 .95rem/1.25 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.recent-entry p { margin: 0; color: var(--ink-faint); font-size: .62rem; }
.recent-entry strong { color: var(--blue-deep); font: 700 .75rem/1 var(--serif); }
.mini-progress { width: 100%; height: 3px; margin-top: .5rem; background: var(--paper-deep); }
.mini-progress span { display: block; height: 100%; background: var(--blue-deep); }
.records-empty { padding: 3.5rem 1rem; text-align: center; color: var(--ink-soft); }
.records-empty strong { display: block; margin-bottom: .4rem; color: var(--ink); font: 700 1.2rem/1.2 var(--serif); }
.records-empty p { margin-bottom: 1rem; font-size: .72rem; }

/* Footer and mobile nav */
.site-footer {
    min-height: 210px;
    padding: 2.5rem max(24px, calc((100% - var(--max)) / 2));
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1.5rem;
    color: #e8efea;
    background: var(--ink);
    border-top: 5px solid var(--brown);
}
.footer-brand { color: white; }
.site-footer > div > p { margin: .8rem 0 0 3rem; color: rgba(255,255,255,.58); font: .8rem var(--serif); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a, .site-footer nav button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; color: rgba(255,255,255,.72); border: 0; background: none; cursor: pointer; font-size: .72rem; }
.site-footer nav a:hover, .site-footer nav button:hover { color: white; }
.site-footer > small { grid-column: 1/-1; padding-top: 1.4rem; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.14); font-size: .58rem; letter-spacing: .08em; }
.site-footer .footer-compliance { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: rgba(255,255,255,.78); font-size: .75rem; line-height: 1.8; }
.footer-compliance a { color: inherit; }
.footer-compliance a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mobile-nav { display: none; }

/* Dialogs */
.modal {
    width: min(calc(100% - 32px), 480px);
    max-height: min(760px, calc(100dvh - 32px));
    overflow: auto;
    padding: 0;
    color: var(--ink);
    background: var(--paper-raised);
    border: 1px solid var(--ink);
    box-shadow: 0 30px 100px rgba(15,37,36,.3);
}
.modal::backdrop { background: rgba(19,41,40,.58); backdrop-filter: blur(4px); }
.modal-close { position: absolute; right: .75rem; top: .75rem; z-index: 2; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font: 300 1.8rem/1 var(--serif); }
.modal-header { padding: 2.25rem 2rem 1.4rem; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: .55rem 0 .3rem; font: 700 2rem/1.05 var(--serif); }
.modal-header p { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.account-state { padding: 1.5rem 2rem 2rem; }
.guest-portrait, .member-portrait { width: 68px; height: 68px; margin-bottom: 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--blue); font: 700 1.7rem/1 var(--serif); }
.member-portrait { color: white; background: var(--green-deep); }
.account-state h3 { margin: 0 0 .4rem; font: 700 1.3rem/1.2 var(--serif); }
.account-state > p { color: var(--ink-soft); font-size: .76rem; }
.wechat-login { width: 100%; margin-top: .7rem; color: white; background: var(--green-deep); }
.wechat-login svg { width: 20px; fill: currentColor; }
.wechat-qr-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 1.25rem; }
.login-qr-frame { width: 190px; min-height: 214px; padding: .65rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--line-dark); background: white; }
.login-qr-frame img { width: 168px; height: 168px; object-fit: contain; }
.login-qr-frame small { color: var(--ink-faint); font-size: .56rem; }
.qr-loading { width: 42px; height: 42px; border: 3px solid var(--green); border-top-color: var(--green-deep); border-radius: 50%; animation: qr-spin .8s linear infinite; }
.qr-unavailable { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--brown-deep); border-radius: 50%; font: 700 1.2rem/1 var(--serif); }
.wechat-qr-copy h3 { margin: 0 0 .85rem; font: 700 1.25rem/1.2 var(--serif); }
.wechat-qr-copy ol { padding: 0; margin: 0; list-style: none; counter-reset: qr-step; }
.wechat-qr-copy li { min-height: 34px; display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .68rem; counter-increment: qr-step; }
.wechat-qr-copy li::before { width: 20px; height: 20px; flex: none; display: grid; place-items: center; content: counter(qr-step); color: white; background: var(--green-deep); border-radius: 50%; font-size: .52rem; }
.qr-login-status { margin: 1rem 0 .3rem !important; padding: .75rem; color: var(--ink-soft) !important; background: var(--green); border-left: 3px solid var(--green-deep); text-align: center; }
.qr-login-status[data-status="scanned"], .qr-login-status[data-status="authenticated"] { color: var(--green-deep) !important; font-weight: 800; }
.qr-login-status[data-status="error"], .qr-login-status[data-status="expired"] { color: var(--brown-deep) !important; background: var(--brown-pale); border-color: var(--brown-deep); }
.oauth-fallback { min-height: 40px; margin-top: .55rem; display: flex; align-items: center; justify-content: center; color: var(--blue-deep); font-size: .62rem; }
@keyframes qr-spin { to { transform: rotate(360deg); } }
.privacy-note { margin-top: .75rem !important; color: var(--ink-faint) !important; font-size: .6rem !important; text-align: center; }
.entitlement-list { margin: 1.2rem 0; border-top: 1px solid var(--line); }
.entitlement-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.entitlement-row span { font-size: .74rem; }
.entitlement-row strong { color: var(--green-deep); font-size: .68rem; }
.redeem-form { margin-top: 1.2rem; }
.redeem-form label { display: block; margin-bottom: .45rem; color: var(--ink-soft); font-size: .65rem; }
.redeem-row { display: grid; grid-template-columns: 1fr auto; }
.redeem-row input { min-width: 0; height: 46px; padding: 0 .8rem; border: 1px solid var(--line-dark); background: white; text-transform: uppercase; }
.redeem-row button { min-width: 86px; border: 0; color: white; background: var(--ink); cursor: pointer; font-size: .7rem; font-weight: 700; }
.logout-button { width: 100%; min-height: 44px; margin-top: 1.3rem; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink-soft); font-size: .7rem; }
.contact-modal { width: min(calc(100% - 32px), 400px); text-align: center; }
.contact-modal .modal-header { padding-bottom: 1rem; }
.qr-frame { width: 220px; margin: 1.5rem auto .8rem; padding: .75rem; border: 1px solid var(--line); background: white; }
.qr-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.contact-name { margin-bottom: 1.6rem; color: var(--ink-soft); font-size: .72rem; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 120; max-width: min(420px, calc(100% - 32px)); padding: .8rem 1.1rem; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .18s ease, transform .18s ease; font-size: .72rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Entrance motion */
.page:not([hidden]) .page-intro,
.page-today:not([hidden]) .edition-masthead { animation: paper-in .45s both; }
.page:not([hidden]) .lead-layout,
.page:not([hidden]) .library-tools,
.page:not([hidden]) .entitlement-banner,
.page:not([hidden]) .records-status { animation: paper-in .5s .08s both; }
@keyframes paper-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
    .desktop-nav a, .desktop-nav button { padding-inline: .48rem; font-size: .78rem; }
    .lead-story { grid-template-columns: 1fr .9fr; }
    .filter-grid { grid-template-columns: repeat(3,1fr); }
    .article-grid { grid-template-columns: repeat(2,1fr); }
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .site-header,
    body.sidebar-collapsed .site-header { position: sticky; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid rgba(121,113,99,.32); }
    .header-rule { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; background: linear-gradient(90deg, var(--blue-deep) 0 39%, var(--green-strong) 39% 72%, var(--brown) 72% 100%); }
    .header-inner,
    body.sidebar-collapsed .header-inner { width: min(calc(100% - 28px), var(--max)); height: auto; min-height: 68px; margin: 0 auto; padding: 4px 0 0; flex-direction: row; align-items: center; gap: .8rem; }
    .sidebar-top,
    body.sidebar-collapsed .sidebar-top { display: block; }
    .sidebar-toggle { display: none; }
    body.sidebar-collapsed .brand-copy { display: grid; }
    .desktop-nav { display: none; }
    .header-actions { margin: 0 0 0 auto; flex-direction: row; }
    .sidebar-caption, .action-label { display: none; }
    .icon-button { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
    .account-button,
    body.sidebar-collapsed .account-button { width: auto; padding: .25rem .7rem .25rem .3rem; justify-content: flex-start; }
    body.sidebar-collapsed .account-label { display: inline; }
    main,
    .site-footer,
    body.sidebar-collapsed main,
    body.sidebar-collapsed .site-footer { margin-left: 0; }
    .edition-shell, .page-shell { width: min(calc(100% - 28px), var(--max)); }
    .edition-masthead { min-height: 146px; grid-template-columns: 1fr auto; }
    .masthead-lockup { grid-column: 1/-1; grid-row: 1; align-self: end; }
    .masthead-lockup h1 { font-size: clamp(2.8rem, 9vw, 4.5rem); }
    .edition-meta, .edition-number { grid-row: 2; align-self: start; padding: .6rem 0; }
    .lead-layout { grid-template-columns: 1fr; }
    .lead-story { min-height: 460px; }
    .secondary-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .secondary-story { min-height: 230px; }
    .learning-spread, .product-spread, .practice-layout, .records-layout { grid-template-columns: 1fr; }
    .practice-aside { position: static; }
    .page-intro { min-height: 200px; grid-template-columns: 1fr; align-items: end; }
    .page-intro p { max-width: 620px; padding: 0; border-left: 0; }
    .record-stats { grid-template-columns: repeat(2,1fr); }
    .record-stat:nth-child(2) { border-right: 0; }
    .record-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .site-footer { padding-bottom: 100px; }
    .mobile-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 70;
        min-height: 66px;
        padding: 5px;
        display: grid;
        grid-template-columns: repeat(5,1fr);
        background: rgba(255,253,247,.95);
        border: 1px solid var(--line-dark);
        border-radius: 18px;
        box-shadow: 0 16px 45px rgba(23,56,58,.2);
        backdrop-filter: blur(16px);
    }
    .mobile-nav a { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border-radius: 13px; color: var(--ink-faint); font-size: .59rem; }
    .mobile-nav a[aria-current="page"] { color: var(--ink); background: var(--blue); }
    .mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .toast { bottom: 96px; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .site-header .brand-copy small { display: none; }
    .site-header .brand-copy strong { font-size: .9rem; }
    .site-header .brand-mark { width: 34px; height: 34px; }
    .account-button { width: 44px; padding: .25rem; justify-content: center; }
    .account-label { display: none; }
    .search-button { display: none; }
    .page-today { padding-top: 14px; }
    .edition-shell, .page-shell { width: calc(100% - 24px); }
    .page-shell { padding: 28px 0 92px; }
    .edition-masthead { min-height: 126px; gap: .2rem .6rem; }
    .masthead-kicker { font-size: .46rem; }
    .masthead-lockup h1 { margin-top: .08rem; font-size: 2.65rem; }
    .masthead-lockup { row-gap: .55rem; }
    .masthead-lockup p { font-size: .66rem; }
    .edition-meta, .edition-number { font-size: .53rem; }
    .today-briefing { min-height: 54px; align-items: center; }
    .today-briefing p { max-width: 70%; font-size: .66rem; }
    .today-briefing .text-button { font-size: .65rem; }
    .lead-layout { padding-top: 12px; gap: 14px; }
    .lead-story { min-height: 0; display: flex; flex-direction: column-reverse; }
    .lead-art { height: 245px; }
    .lead-copy { padding: 1.5rem 1.25rem; }
    .lead-copy h2 { margin: .8rem 0 .55rem; font-size: 2.35rem; }
    .lead-copy .english-title { margin-bottom: .8rem; font-size: .83rem; }
    .lead-copy .story-desc { margin-bottom: .7rem; font-size: .78rem; -webkit-line-clamp: 3; }
    .lead-copy .story-link { margin-top: .45rem; }
    .lead-number { font-size: 2.3rem; }
    .secondary-stack { grid-template-columns: 1fr; gap: 12px; }
    .secondary-story { min-height: 180px; grid-template-columns: 1fr 102px; }
    .secondary-copy { padding-top: 1rem; }
    .secondary-copy h3 { margin: .5rem 0 .35rem; font-size: 1.3rem; }
    .secondary-copy .story-link { min-height: 36px; }
    .continue-band { margin: 18px 0 28px; display: block; }
    .section-flag { padding: 1rem 1.2rem; border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .section-flag h2 { font-size: 1.05rem; }
    .continue-card { padding: 1rem; }
    .continue-entry { grid-template-columns: 52px minmax(0,1fr); gap: .8rem; }
    .continue-progress { width: 50px; height: 50px; }
    .continue-progress::before { width: 38px; height: 38px; }
    .continue-entry .button { grid-column: 1/-1; width: 100%; }
    .learning-spread { gap: 12px; margin-bottom: 32px; }
    .week-panel { padding: 1rem; }
    .week-summary { grid-template-columns: repeat(3,1fr); }
    .week-stat { padding: .6rem; }
    .week-stat strong { font-size: 1.6rem; }
    .week-stat span { font-size: .58rem; }
    .week-note { padding: 1.2rem; grid-template-columns: 76px 1fr; }
    .progress-orbit { width: 74px; height: 74px; }
    .progress-orbit::before { width: 56px; height: 56px; }
    .index-entry { min-height: 86px; grid-template-columns: 34px minmax(0,1fr) 36px; gap: .6rem; }
    .index-entry .index-topic, .index-entry .index-meta { display: none; }
    .index-entry > span:first-child { font-size: 1.2rem; }
    .product-spread { margin-top: 36px; gap: 12px; }
    .product-card { min-height: 300px; }
    .annual-card { display: block; }
    .annual-card .product-copy { padding-bottom: 9rem; }
    .annual-card img { position: absolute; right: -1rem; bottom: -1.8rem; width: 62%; transform: none; }
    .product-card h2 { font-size: 1.8rem; }
    .camp-seal { width: 60px; height: 60px; }
    .page-intro { min-height: 185px; padding: 1.4rem 1rem; gap: .8rem; }
    .page-intro h1 { font-size: 3.65rem; }
    .page-intro p { font-size: .75rem; line-height: 1.65; }
    .library-tools { margin-top: 16px; padding: .8rem; }
    .search-field kbd { display: none; }
    .filter-grid { grid-template-columns: repeat(2,1fr); }
    .filter-grid label { min-height: 58px; }
    .results-toolbar { min-height: 68px; }
    .results-toolbar > div { gap: .7rem; }
    .clear-filters { display: none; }
    .article-grid { grid-template-columns: 1fr; gap: 22px; }
    .month-divider { min-height: 70px; }
    .month-divider > div { display: block; }
    .month-divider h2 { margin-top: .2rem; font-size: 1.55rem; }
    .article-card { display: block; border-bottom-width: 1px; }
    .article-card-link { display: grid; grid-template-columns: 132px minmax(0,1fr); }
    .article-cover { height: 100%; min-height: 188px; aspect-ratio: auto; }
    .article-card-copy { min-width: 0; padding: 1rem; }
    .article-card-copy h2 { font-size: 1.15rem; }
    .article-card-copy .card-english { font-size: .69rem; }
    .card-footer { display: block; }
    .card-footer span:last-child { display: block; margin-top: .2rem; }
    .card-progress { grid-column: 1/-1; }
    .entitlement-banner { min-height: 0; margin: 16px 0 26px; padding: 1rem; display: block; }
    .entitlement-banner .button { width: 100%; margin-top: 1rem; }
    .entitlement-copy { align-items: flex-start; }
    .entitlement-icon { width: 46px; height: 46px; }
    .practice-entry { grid-template-columns: 42px minmax(0,1fr); gap: .7rem; }
    .practice-index { font-size: 1.5rem; }
    .practice-action { grid-column: 2; width: 100%; margin-top: .4rem; }
    .practice-aside { padding: 1.5rem; }
    .video-guide { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .video-guide p { grid-column: 1/-1; justify-self: start; text-align: left; }
    .video-grid { grid-template-columns: 1fr; }
    .video-card { grid-template-columns: 132px minmax(0,1fr); border-left-width: 4px; }
    .video-cover { min-height: 240px; }
    .video-card-copy { padding: 1rem .85rem; }
    .video-card h3 { font-size: 1.08rem; }
    .video-card-copy > p { font-size: .64rem; }
    .video-action { font-size: .57rem; }
    .record-stats { margin-top: 14px; }
    .record-stat { padding: 1rem; }
    .record-stat strong { font-size: 2rem; }
    .calendar-panel, .recent-panel { padding: .9rem; }
    .calendar-day { min-height: 39px; }
    .status-note { display: block; }
    .status-note .button { width: 100%; margin-top: .8rem; }
    .site-footer { display: block; }
    .site-footer nav { margin-top: 1.5rem; flex-wrap: wrap; gap: .4rem 1.2rem; }
    .site-footer > small { display: block; margin-top: 1.4rem; }
    .modal-header { padding-inline: 1.4rem; }
    .account-state { padding-inline: 1.4rem; }
    .wechat-qr-layout { grid-template-columns: 1fr; justify-items: center; }
    .wechat-qr-copy { text-align: center; }
    .wechat-qr-copy ol { display: inline-block; text-align: left; }
}

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

@media print {
    .site-header, .mobile-nav, .site-footer, .button, button { display: none !important; }
    body { background: white; }
    .page[hidden] { display: none !important; }
    .page:not([hidden]) { display: block; }
    .edition-shell, .page-shell { width: 100%; }
}
