:root {
    --wine: #8B1E2D;
    --wine-dark: #64131f;
    --wine-soft: #a93d4d;
    --rust: #C46A52;
    --ink: #17191D;
    --ink-soft: #24262A;
    --paper: #F5F2EE;
    --paper-2: #EAE4DE;
    --muted: #73777D;
    --gold: #D99A2B;
    --white: #fffdf9;
    --line: rgba(23, 25, 29, .14);
    --line-dark: rgba(255,255,255,.12);
    --shadow-sm: 0 8px 26px rgba(23,25,29,.07);
    --shadow-md: 0 18px 50px rgba(23,25,29,.12);
    --shadow-lg: 0 28px 80px rgba(23,25,29,.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --content: 1240px;
    --narrow: 960px;
    --header-height: 74px;
    --ease: cubic-bezier(.2,.72,.2,1);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink-soft);
    background:
        radial-gradient(circle at 90% -10%, rgba(139,30,45,.08), transparent 28rem),
        var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--wine);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

::selection {
    background: rgba(139,30,45,.16);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(217,154,43,.75);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(23,25,29,.96);
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}

.header-shell {
    width: min(calc(100% - 40px), var(--content));
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--white);
}

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

.brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
}

.brand__text {
    display: grid;
    line-height: 1.25;
}

.brand__text strong {
    font-size: 19px;
    letter-spacing: .08em;
}

.brand__text small {
    margin-top: 4px;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    letter-spacing: .04em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search-link,
.menu-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
}

.header-search-link {
    padding: 0 15px;
    font-size: 13px;
}

.menu-button {
    display: none;
    padding: 0 14px;
    gap: 10px;
    cursor: pointer;
}

.menu-button__label {
    font-size: 13px;
}

.menu-button__icon {
    width: 18px;
    display: grid;
    gap: 4px;
}

.menu-button__icon i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-button[aria-expanded="true"] .menu-button__icon i:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__icon i:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__icon i:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.primary-nav {
    border-top: 1px solid rgba(255,255,255,.06);
}

.primary-nav__inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    position: relative;
    padding: 12px 14px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    transition: color .2s ease, background .2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--white);
    background: rgba(255,255,255,.04);
}

.primary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
}

.primary-nav__search {
    margin-left: auto;
}

.site-main {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 42px 0 88px;
}

.site-main--narrow {
    width: min(calc(100% - 40px), var(--narrow));
}

.site-main--article {
    width: min(calc(100% - 40px), 1120px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--wine);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section {
    margin-top: 78px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

.section-heading--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.section-heading h2,
.page-hero h1,
.home-lead h1,
.app-hero h1,
.article-header h1,
.search-hero h1,
.topic-hero h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 42px);
}

.section-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wine);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.text-link::after {
    content: "→";
    transition: transform .2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: var(--wine);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(139,30,45,.18);
}

.button--primary:hover {
    background: var(--wine-dark);
    color: var(--white);
}

.button--quiet {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255,255,255,.42);
}

.button--quiet:hover {
    color: var(--wine);
    border-color: rgba(139,30,45,.32);
    background: var(--white);
}

.button--dark {
    color: var(--white);
    background: var(--ink);
}

.button--dark:hover {
    color: var(--white);
    background: #2a2d32;
}

.home-lead {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
    gap: 54px;
    align-items: stretch;
    min-height: 560px;
}

.home-lead__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 0;
}

.home-lead h1 {
    max-width: 680px;
    font-size: clamp(42px, 5.5vw, 72px);
}

.home-lead__intro {
    max-width: 690px;
    margin: 22px 0 0;
    color: #51555b;
    font-size: 18px;
    line-height: 1.8;
}

.lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lead-points {
    margin: 32px 0 0;
    padding: 20px 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.lead-points li {
    position: relative;
    padding-left: 14px;
}

.lead-points li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.home-lead__visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--ink);
    box-shadow: var(--shadow-lg);
}

.home-lead__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(23,25,29,.12) 52%, rgba(23,25,29,.92) 100%);
    pointer-events: none;
}

.home-lead__visual > img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.visual-caption {
    position: absolute;
    z-index: 2;
    left: 30px;
    right: 30px;
    bottom: 28px;
    color: var(--white);
}

.visual-caption span {
    display: inline-block;
    margin-bottom: 8px;
    color: #f3bc55;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.visual-caption strong {
    display: block;
    max-width: 620px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
}

.visual-caption p {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.5);
    box-shadow: var(--shadow-sm);
}

.story-card--major {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 578px;
    background: var(--ink);
    color: var(--white);
}

.story-card__media {
    position: absolute;
    inset: 0;
}

.story-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23,25,29,.06), rgba(23,25,29,.94));
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.story-card--major:hover .story-card__media img {
    transform: scale(1.03);
}

.story-card__body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 25px;
}

.story-card--major .story-card__body {
    padding: 34px;
}

.story-card h3 {
    margin: 12px 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.story-card--major h3 {
    max-width: 800px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.17;
}

.story-card h3 a:hover {
    color: var(--wine);
}

.story-card--major h3 a:hover {
    color: #ffd27a;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.story-card--major p {
    max-width: 720px;
    color: rgba(255,255,255,.72);
    font-size: 15px;
}

.story-card__link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--wine);
    font-size: 13px;
    font-weight: 800;
}

.story-card--major .story-card__link {
    color: #f3bc55;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
    color: var(--muted);
    font-size: 12px;
}

.status-dot {
    position: relative;
    padding-left: 12px;
    color: var(--wine) !important;
    font-weight: 800;
}

.status-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateY(-50%);
}

.story-card--major .meta-row,
.story-card--major .status-dot {
    color: rgba(255,255,255,.7) !important;
}

.updates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    align-items: start;
}

.update-list {
    border-top: 1px solid var(--line);
}

.update-item {
    display: grid;
    grid-template-columns: 130px minmax(0,1fr);
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.update-item__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.update-item__meta span:first-child {
    color: var(--wine);
    font-weight: 800;
}

.update-item h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.38;
}

.update-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.topic-rail__sticky,
.article-aside__sticky {
    position: sticky;
    top: calc(var(--header-height) + 66px);
}

.topic-rail__sticky {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--white);
}

.topic-rail h3 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.25;
}

.topic-rail .eyebrow {
    color: #e7b04b;
}

.topic-mini {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--line-dark);
}

.topic-mini strong,
.topic-mini span {
    display: block;
}

.topic-mini strong {
    font-size: 14px;
}

.topic-mini span {
    margin-top: 3px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.5;
}

.topic-mini:hover strong {
    color: #f3bc55;
}

.tracker {
    display: grid;
    grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr);
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--paper-2);
}

.tracker__visual {
    min-height: 500px;
}

.tracker__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracker__content {
    padding: 56px;
    align-self: center;
}

.tracker__content h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

.tracker__content > p:not(.eyebrow) {
    margin: 18px 0 0;
    color: #565b60;
}

.tracker-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 28px 0;
}

.tracker-steps span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(23,25,29,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.38);
    font-size: 13px;
}

.tracker-steps b {
    color: var(--wine);
    font-size: 12px;
}

.access-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 36px 40px;
    border: 1px solid rgba(139,30,45,.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(139,30,45,.08), rgba(217,154,43,.08));
}

.access-strip > div {
    max-width: 820px;
}

.access-strip h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
}

.access-strip p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--muted);
}

.page-hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(280px,.55fr);
    gap: 50px;
    align-items: center;
    padding: 50px 0 58px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1,
.app-hero h1,
.search-hero h1,
.topic-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.page-hero > div > p:not(.eyebrow) {
    max-width: 780px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.page-hero > img {
    width: 100%;
    aspect-ratio: 1.1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.page-hero--simple {
    display: block;
    min-height: auto;
    padding-right: 18%;
}

.page-hero--timeline {
    grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr);
}

.pulse-card {
    padding: 26px 30px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.pulse-card strong {
    display: block;
    margin-bottom: 12px;
    color: #f3bc55;
    font-size: 13px;
    letter-spacing: .08em;
}

.pulse-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pulse-card li {
    position: relative;
    padding: 9px 0 9px 17px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.74);
    font-size: 14px;
}

.pulse-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.filter-toolbar {
    position: sticky;
    z-index: 20;
    top: calc(var(--header-height) + 48px);
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(245,242,238,.92);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
}

.filter-toolbar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    background: var(--ink);
    color: var(--white);
}

.story-index {
    border-top: 1px solid var(--line);
}

.story-row {
    display: grid;
    grid-template-columns: 70px minmax(0,1fr) 42px;
    gap: 24px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    transition: opacity .2s ease, transform .2s ease;
}

.story-row[hidden] {
    opacity: 0;
    transform: translateY(4px);
}

.story-row__number {
    color: #b5aaa2;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.story-row h2 {
    margin: 8px 0;
    color: var(--ink);
    font-size: clamp(21px, 2.5vw, 30px);
    line-height: 1.3;
}

.story-row p {
    max-width: 900px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.story-row__arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform .2s ease, background .2s ease;
}

.story-row:hover .story-row__arrow {
    transform: translateX(4px);
    background: var(--white);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(139,30,45,.07);
    color: var(--wine);
    font-size: 11px;
}

.filter-empty {
    padding: 42px 0;
    color: var(--muted);
    text-align: center;
}

.timeline-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    display: grid;
    grid-template-columns: 70px minmax(0,1fr);
    gap: 22px;
}

.timeline-item__marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-item__marker::after {
    content: "";
    position: absolute;
    top: 42px;
    bottom: -1px;
    left: 50%;
    width: 1px;
    background: var(--line);
}

.timeline-item:last-child .timeline-item__marker::after {
    display: none;
}

.timeline-item__marker span {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--wine);
    font-size: 11px;
    font-weight: 800;
}

.timeline-item__content {
    padding: 0 0 36px;
}

.timeline-item h3 {
    max-width: 930px;
    margin: 7px 0 8px;
    color: var(--ink);
    font-size: 25px;
    line-height: 1.35;
}

.timeline-item p {
    max-width: 930px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.topic-card {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.45);
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-card__body {
    padding: 28px;
}

.topic-card__count {
    color: var(--rust);
    font-size: 12px;
    font-weight: 800;
}

.topic-card h2 {
    margin: 8px 0 10px;
    color: var(--ink);
    font-size: 28px;
}

.topic-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb a:hover {
    color: var(--wine);
}

.breadcrumb__sep {
    color: #b4aba5;
}

.topic-hero {
    display: grid;
    grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr);
    gap: 42px;
    align-items: center;
}

.topic-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.topic-hero p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.compact-list {
    border-top: 1px solid var(--line);
}

.compact-story {
    display: grid;
    grid-template-columns: 120px minmax(0,1fr) 70px;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.compact-story__label {
    color: var(--wine);
    font-size: 12px;
    font-weight: 800;
}

.compact-story h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.35;
}

.compact-story p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.compact-story > a {
    color: var(--wine);
    font-size: 13px;
    font-weight: 800;
}

.app-hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(360px,.82fr);
    gap: 56px;
    align-items: center;
}

.app-hero__copy > p:not(.eyebrow) {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
}

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

.app-hero__media {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--ink);
    box-shadow: var(--shadow-lg);
}

.app-hero__media img {
    width: 100%;
    min-height: 540px;
    object-fit: cover;
}

.domain-card {
    max-width: 640px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.6);
}

.domain-card span {
    color: var(--muted);
    font-size: 12px;
}

.domain-card code {
    overflow: hidden;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    text-overflow: ellipsis;
}

.domain-card button {
    padding: 7px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    cursor: pointer;
}

.access-guide__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.access-guide article {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.42);
}

.access-guide article > span {
    color: var(--rust);
    font-size: 12px;
    font-weight: 800;
}

.access-guide h3 {
    margin: 26px 0 8px;
    color: var(--ink);
    font-size: 20px;
}

.access-guide p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.app-mobile {
    display: grid;
    grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr);
    gap: 50px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius-xl);
    background: var(--paper-2);
}

.app-mobile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.app-mobile h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px,4vw,46px);
    line-height: 1.18;
}

.app-mobile p:not(.eyebrow) {
    margin: 16px 0 24px;
    color: var(--muted);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button {
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.faq-item button span {
    font-size: 18px;
    font-weight: 700;
}

.faq-item button b {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    transition: transform .2s ease;
}

.faq-item button[aria-expanded="true"] b {
    transform: rotate(45deg);
}

.faq-item [role="region"] {
    padding: 0 56px 22px 0;
}

.faq-item p {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
}

.article-shell {
    max-width: 1040px;
    margin: 0 auto;
}

.article-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 0 36px;
}

.article-header h1 {
    margin-top: 14px;
    font-size: clamp(38px,5vw,68px);
}

.article-deck {
    max-width: 860px;
    margin: 22px 0 0;
    color: #555a60;
    font-size: 19px;
    line-height: 1.8;
}

.article-figure {
    margin: 20px 0 50px;
}

.article-figure img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.article-figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0,690px);
    gap: 54px;
    justify-content: center;
}

.article-aside__sticky {
    padding: 18px 0;
    border-top: 2px solid var(--wine);
}

.article-aside p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.share-button {
    width: 100%;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.5);
    color: var(--ink);
    font-size: 12px;
    cursor: pointer;
}

.article-body {
    min-width: 0;
}

.article-body p {
    margin: 0 0 1.35em;
    color: #303338;
    font-size: 17px;
    line-height: 1.95;
}

.article-body h2 {
    margin: 2.3em 0 .8em;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.3;
}

.article-body p:first-child::first-letter {
    float: left;
    margin: .08em .12em 0 0;
    color: var(--wine);
    font-size: 3.2em;
    font-weight: 800;
    line-height: .9;
}

.article-note {
    margin-top: 36px;
    padding: 22px 24px;
    border-left: 3px solid var(--gold);
    background: var(--paper-2);
}

.article-note strong {
    color: var(--ink);
    font-size: 13px;
}

.article-note p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.related {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 38px;
    border-top: 1px solid var(--line);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.related-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.42);
}

.related-grid article > span {
    color: var(--wine);
    font-size: 11px;
    font-weight: 800;
}

.related-grid h3 {
    margin: 9px 0 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.45;
}

.related-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.reading-progress {
    position: fixed;
    z-index: 110;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width .08s linear;
}

.search-hero {
    padding: 40px 0 52px;
    border-bottom: 1px solid var(--line);
}

.search-form {
    margin-top: 28px;
}

.search-form > label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-form__row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
}

.search-form input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    color: var(--ink);
}

.search-form input:focus {
    border-color: rgba(139,30,45,.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(139,30,45,.08);
}

.search-form button {
    min-width: 100px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--wine);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.suggestion-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.suggestion-links a {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.42);
}

.suggestion-links a > span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.search-result-list {
    border-top: 1px solid var(--line);
}

.search-result-list article {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.search-result-list article > span {
    color: var(--wine);
    font-size: 12px;
    font-weight: 800;
}

.search-result-list h3 {
    margin: 6px 0 8px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.35;
}

.search-result-list p {
    margin: 0;
    color: var(--muted);
}

mark {
    padding: 0 .08em;
    border-radius: 2px;
    background: rgba(217,154,43,.28);
    color: inherit;
}

.empty-state {
    padding: 28px 0 10px;
    text-align: center;
}

.empty-state img {
    width: min(100%, 520px);
    aspect-ratio: 16 / 9;
    margin: 0 auto 26px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.empty-state h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
}

.empty-state p {
    max-width: 620px;
    margin: 10px auto 20px;
    color: var(--muted);
}

.not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.not-found h1 {
    max-width: 720px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(42px,7vw,78px);
    line-height: 1.08;
}

.not-found p {
    max-width: 670px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.site-footer {
    margin-top: 28px;
    padding: 52px max(20px, calc((100% - var(--content))/2)) 20px;
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1fr;
    gap: 56px;
    padding-bottom: 42px;
}

.footer-brand__name {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .08em;
}

.footer-brand p,
.footer-note p {
    max-width: 520px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links a {
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.footer-links a:hover {
    color: #f3bc55;
}

.footer-note strong {
    color: #f3bc55;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.4);
    font-size: 11px;
}

.back-to-top {
    position: fixed;
    z-index: 80;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(23,25,29,.9);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    cursor: pointer;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.js-toast {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: 28px;
    max-width: min(90vw, 430px);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.js-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .home-lead {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .home-lead h1 {
        font-size: clamp(40px, 5vw, 60px);
    }

    .priority-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-card--major {
        grid-column: span 2;
        min-height: 520px;
    }

    .access-guide__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        grid-template-columns: 220px minmax(0,1fr);
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 68px;
    }

    .site-main,
    .site-main--narrow,
    .site-main--article,
    .header-shell,
    .primary-nav__inner {
        width: min(calc(100% - 30px), var(--content));
    }

    .header-shell {
        height: var(--header-height);
    }

    .brand__text small {
        display: none;
    }

    .header-search-link {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .primary-nav {
        position: fixed;
        inset: var(--header-height) 0 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(23,25,29,.98);
        transition: opacity .2s ease, visibility .2s ease;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
    }

    .primary-nav__inner {
        display: grid;
        align-content: start;
        gap: 0;
        padding: 20px 0 40px;
    }

    .primary-nav a {
        padding: 16px 4px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 18px;
    }

    .primary-nav a[aria-current="page"]::after {
        display: none;
    }

    .primary-nav__search {
        margin-left: 0;
        color: #f3bc55 !important;
    }

    .home-lead {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-lead__copy {
        padding: 28px 0 0;
    }

    .home-lead__visual,
    .home-lead__visual > img {
        min-height: 460px;
    }

    .updates-layout {
        grid-template-columns: 1fr;
    }

    .topic-rail {
        order: -1;
    }

    .topic-rail__sticky,
    .article-aside__sticky {
        position: static;
    }

    .topic-rail__sticky {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 0 22px;
    }

    .topic-rail .eyebrow,
    .topic-rail h3 {
        grid-column: 1 / -1;
    }

    .tracker {
        grid-template-columns: 1fr;
    }

    .tracker__visual {
        min-height: 360px;
    }

    .tracker__content {
        padding: 42px;
    }

    .page-hero,
    .page-hero--timeline,
    .topic-hero,
    .app-hero,
    .app-mobile {
        grid-template-columns: 1fr;
    }

    .page-hero--simple {
        padding-right: 0;
    }

    .page-hero > img {
        max-height: 420px;
        aspect-ratio: 16 / 9;
    }

    .app-hero__media img {
        min-height: 420px;
        max-height: 520px;
    }

    .app-mobile {
        gap: 32px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-aside__sticky {
        display: flex;
        gap: 24px;
        align-items: center;
        padding: 16px 0;
    }

    .article-aside .eyebrow {
        display: none;
    }

    .article-aside p {
        flex: 1;
    }

    .share-button {
        width: auto;
        flex: 0 0 auto;
        margin-top: 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .site-main,
    .site-main--narrow,
    .site-main--article,
    .header-shell,
    .primary-nav__inner {
        width: min(calc(100% - 22px), var(--content));
    }

    .site-main {
        padding-top: 26px;
        padding-bottom: 66px;
    }

    .section {
        margin-top: 58px;
    }

    .brand__logo {
        width: 36px;
        height: 36px;
    }

    .brand__text strong {
        font-size: 17px;
    }

    .section-heading--split {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .home-lead h1,
    .page-hero h1,
    .app-hero h1,
    .search-hero h1,
    .topic-hero h1,
    .article-header h1 {
        font-size: clamp(34px,10vw,48px);
    }

    .home-lead__intro,
    .page-hero > div > p:not(.eyebrow),
    .app-hero__copy > p:not(.eyebrow),
    .article-deck {
        font-size: 16px;
    }

    .home-lead__visual,
    .home-lead__visual > img {
        min-height: 400px;
    }

    .visual-caption {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .priority-grid {
        grid-template-columns: 1fr;
    }

    .story-card,
    .story-card--major {
        grid-column: auto;
        grid-row: auto;
        min-height: 260px;
    }

    .story-card--major {
        min-height: 430px;
    }

    .story-card__body,
    .story-card--major .story-card__body {
        padding: 22px;
    }

    .story-card--major h3 {
        font-size: 30px;
    }

    .update-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .update-item__meta {
        flex-direction: row;
    }

    .topic-rail__sticky {
        grid-template-columns: 1fr;
    }

    .topic-rail .eyebrow,
    .topic-rail h3 {
        grid-column: auto;
    }

    .tracker__visual {
        min-height: 290px;
    }

    .tracker__content {
        padding: 30px 22px;
    }

    .tracker-steps {
        grid-template-columns: 1fr;
    }

    .access-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .page-hero {
        gap: 28px;
        padding: 30px 0 42px;
    }

    .pulse-card {
        padding: 22px;
    }

    .filter-toolbar {
        top: calc(var(--header-height) + 8px);
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 18px;
    }

    .story-row {
        grid-template-columns: minmax(0,1fr) 38px;
        gap: 12px;
    }

    .story-row__number {
        display: none;
    }

    .story-row h2 {
        font-size: 22px;
    }

    .timeline-item {
        grid-template-columns: 46px minmax(0,1fr);
        gap: 12px;
    }

    .timeline-item__marker span {
        width: 34px;
        height: 34px;
    }

    .timeline-item h3 {
        font-size: 21px;
    }

    .topic-card {
        grid-template-columns: 1fr;
    }

    .topic-card img {
        aspect-ratio: 16 / 8;
    }

    .compact-story {
        grid-template-columns: 1fr auto;
        gap: 8px 16px;
    }

    .compact-story__label {
        grid-column: 1 / -1;
    }

    .compact-story h2 {
        font-size: 21px;
    }

    .domain-card {
        grid-template-columns: 1fr auto;
    }

    .domain-card span {
        grid-column: 1 / -1;
    }

    .access-guide__grid {
        grid-template-columns: 1fr;
    }

    .app-mobile {
        padding: 28px 22px;
    }

    .article-figure {
        margin-bottom: 34px;
    }

    .article-aside__sticky {
        display: block;
    }

    .share-button {
        width: 100%;
        margin-top: 12px;
    }

    .article-body p {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 25px;
    }

    .suggestion-links {
        grid-template-columns: 1fr;
    }

    .search-form__row {
        grid-template-columns: 1fr;
    }

    .search-form button {
        min-height: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .lead-actions,
    .action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .home-lead__visual,
    .home-lead__visual > img {
        min-height: 360px;
    }

    .visual-caption strong {
        font-size: 24px;
    }

    .story-card--major {
        min-height: 390px;
    }

    .story-row__arrow {
        width: 36px;
        height: 36px;
    }

    .domain-card {
        grid-template-columns: 1fr;
    }

    .domain-card button {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .reading-progress,
    .article-aside,
    .related,
    .lead-actions,
    .filter-toolbar {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }

    .site-main,
    .site-main--article,
    .site-main--narrow {
        width: 100%;
        padding: 0;
    }

    .article-header,
    .article-shell,
    .article-body {
        max-width: none;
    }

    a {
        color: inherit;
    }
}

/* Progressive enhancement states used by main.js. Core content remains visible without JavaScript. */
.site-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
}

.reveal-ready {
    opacity: 0;
    transform: translateY(10px);
}

.reveal-ready.reveal-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.has-focus {
    outline: 2px solid rgba(217,154,43,.42);
    outline-offset: 3px;
}

img.is-missing-image {
    min-height: 180px;
    background:
        linear-gradient(135deg, rgba(139,30,45,.08), rgba(217,154,43,.08)),
        var(--paper-2);
}
