:root {
    --bg: #f7f7f4;
    --surface: #ffffff;
    --surface-soft: #ecece6;
    --text: #171915;
    --muted: #64685f;
    --line: #d9dbd3;
    --line-strong: #b9bdb2;
    --accent: #345c3e;
    --accent-strong: #23452d;
    --accent-soft: #dfe9dc;
    --dark: #152119;
    --danger: #a63333;
    --radius: 4px;
    --shadow: 0 18px 55px rgba(21, 33, 25, .08);
    --shell: 1240px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font: 17px/1.72 var(--font); }
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 7vw, 6.3rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid #d17a25; outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(76px, 9vw, 132px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.clipboard-proxy { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 15px; transform: translateY(-150%); border-radius: var(--radius); background: var(--text); color: #fff; }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-link { display: inline-block; text-decoration: none; }

.site-header { position: relative; z-index: 100; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
@supports (backdrop-filter: blur(12px)) { .site-header { position: sticky; top: 0; backdrop-filter: blur(14px); } }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 76px; gap: 34px; }
.wordmark { color: var(--text); font-size: 1.48rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; text-decoration: none; }
.wordmark:hover { color: var(--text); }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.primary-nav a, .search-link { position: relative; color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.primary-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; transform: scaleX(0); transform-origin: right; background: var(--text); content: ""; transition: transform .18s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switcher { position: relative; }
.language-switcher summary { display: flex; min-height: 38px; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .79rem; line-height: 1.2; list-style: none; cursor: pointer; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; }
.language-switcher summary b { max-width: 120px; overflow: hidden; color: var(--text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.language-switcher[open] summary { border-color: var(--text); }
.language-switcher[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language-menu { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 8px); display: grid; width: max-content; min-width: 210px; max-height: min(420px, 70vh); overflow-y: auto; padding: 7px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.language-menu a { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 10px; border-radius: 3px; color: var(--text); text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.language-menu a[aria-current="true"] { font-weight: 780; }
.language-menu small { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.nav-toggle { display: none; padding: 8px 0; border: 0; background: none; }
.nav-toggle-label { font-weight: 750; }
.nav-toggle-lines { display: grid; gap: 5px; width: 22px; }
.nav-toggle-lines i { display: block; height: 2px; background: currentColor; transition: transform .2s ease; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid var(--text); border-radius: var(--radius); background: var(--text); color: #fff; font-weight: 760; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { border-color: var(--accent); background: var(--accent); color: #fff; transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.button-large { min-height: 56px; padding: 15px 25px; }
.button-quiet { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button-quiet:hover { border-color: var(--text); background: var(--text); color: #fff; }
.button-light { border-color: #fff; background: #fff; color: var(--dark); }
.button-light:hover { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--dark); }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 750; text-decoration: none; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-large { font-size: 1.05rem; }

.hero { display: flex; min-height: min(790px, calc(100svh - 76px)); align-items: center; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: end; gap: clamp(50px, 9vw, 140px); }
.hero-copy h1 { max-width: 950px; margin-bottom: 30px; }
.hero-lead { max-width: 720px; margin-bottom: 37px; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.hero-search { padding: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero-search > label { display: block; margin-bottom: 17px; font-size: 1.18rem; font-weight: 800; }
.hero-search > p { margin: 13px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.search-control { display: flex; }
.search-control input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--bg); color: var(--text); }
.search-control button { min-width: 78px; border: 1px solid var(--text); border-radius: 0 var(--radius) var(--radius) 0; background: var(--text); color: #fff; font-weight: 750; cursor: pointer; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 46px; }
.section-heading h2 { max-width: 780px; margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3.5vw, 48px) 26px; }
.post-card { min-width: 0; }
.post-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 22px; border-radius: var(--radius); background: var(--surface-soft); text-decoration: none; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-media.is-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), #c8d2bf); color: var(--accent-strong); }
.post-card-media.is-placeholder::after { position: absolute; width: 38%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; opacity: .22; content: ""; }
.post-card-media.is-placeholder span { font-size: clamp(2rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.08em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.post-card h3 { margin-bottom: 11px; }
.post-card h3 a { text-decoration: none; }
.post-card-body > p { display: -webkit-box; overflow: hidden; margin-bottom: 18px; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card .text-link { font-size: .9rem; }

.section-categories { border-block: 1px solid var(--line); background: var(--surface-soft); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.category-tile { position: relative; display: flex; min-height: 190px; flex-direction: column; justify-content: space-between; padding: 26px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.category-tile span { max-width: 85%; font-size: 1.3rem; font-weight: 800; }
.category-tile small { color: var(--muted); }
.category-tile b { position: absolute; top: 24px; right: 24px; font-size: 1.2rem; transition: transform .18s ease; }
.category-tile:hover { background: var(--surface); color: var(--text); }
.category-tile:hover b { transform: translate(3px, -3px); }

.latest-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(50px, 9vw, 140px); }
.sticky-heading { align-self: start; }
@media (min-width: 901px) { .sticky-heading { position: sticky; top: 125px; } }
.sticky-heading h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.sticky-heading > p:last-child { max-width: 390px; color: var(--muted); }
.latest-list { border-top: 1px solid var(--line-strong); }
.latest-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.latest-row h3 { margin-bottom: 0; }
.latest-row h3 a, .row-arrow { text-decoration: none; }
.row-number { align-self: start; color: var(--muted); font-size: .78rem; font-weight: 750; }
.row-arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .18s ease, color .18s ease; }
.latest-row:hover .row-arrow { background: var(--text); color: #fff; }

.section-principles { border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.principle-grid article { min-height: 310px; padding: 28px 34px 28px 0; border-right: 1px solid var(--line); }
.principle-grid article + article { padding-left: 34px; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid span { display: block; margin-bottom: 75px; color: var(--accent); font-size: .78rem; font-weight: 800; }
.principle-grid h3 { margin-bottom: 16px; }
.principle-grid p { max-width: 330px; margin-bottom: 0; color: var(--muted); }
.section-cta { padding-top: 0; }
.cta-panel { padding: clamp(48px, 8vw, 105px); background: var(--dark); color: #fff; }
.cta-panel .eyebrow { color: #a9c7a5; }
.cta-panel h2 { max-width: 940px; margin-bottom: 22px; }
.cta-panel > p:not(.eyebrow) { max-width: 650px; margin-bottom: 35px; color: #c9d2ca; font-size: 1.12rem; }

.page-hero { padding-bottom: clamp(60px, 7vw, 92px); border-bottom: 1px solid var(--line); }
.narrow-heading { max-width: 990px; margin-left: max(24px, calc((100vw - var(--shell)) / 2)); }
.narrow-heading h1 { max-width: 940px; margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.8rem); }
.narrow-heading > p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.24rem; }
.content-index { padding-top: 50px; }
.filter-bar { display: flex; max-width: 100%; gap: 9px; overflow-x: auto; padding-bottom: 22px; margin-bottom: 38px; scrollbar-width: thin; }
.filter-bar a { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; font-weight: 720; text-decoration: none; }
.filter-bar a[aria-current="page"], .filter-bar a:hover { border-color: var(--text); background: var(--text); color: #fff; }
.empty-state { padding: 42px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; font-size: 1.35rem; }
.empty-state p { margin-bottom: 0; color: var(--muted); }
.empty-state .button { margin-top: 22px; }
.empty-state-large { padding-block: clamp(65px, 9vw, 120px); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 40px; margin-top: 55px; border-top: 1px solid var(--line); }
.page-direction { justify-self: start; font-weight: 750; text-decoration: none; }
.page-direction:last-child { justify-self: end; }
.page-direction.is-disabled { color: var(--line-strong); }
.page-status { color: var(--muted); font-size: .88rem; }

.article-header { padding-bottom: clamp(46px, 6vw, 80px); }
.article-heading { max-width: 1010px; }
.article-heading h1 { max-width: 1000px; margin-bottom: 28px; font-size: clamp(2.8rem, 6.7vw, 6rem); }
.article-deck { max-width: 790px; color: var(--muted); font-size: clamp(1.13rem, 2vw, 1.4rem); }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 31px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.article-cover { margin-bottom: 65px; }
.article-cover img { width: 100%; max-height: 760px; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { padding-top: 10px; color: var(--muted); font-size: .78rem; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 760px); justify-content: center; gap: clamp(45px, 8vw, 115px); }
.article-aside { align-self: start; padding-top: 9px; color: var(--muted); font-size: .8rem; }
@media (min-width: 901px) { .article-aside { position: sticky; top: 115px; } }
.article-aside > p { margin-bottom: 9px; font-weight: 750; }
.article-aside small { display: block; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.copy-link { padding: 6px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.prose { min-width: 0; color: #292c27; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.92; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { margin: 2.4em 0 .7em; color: var(--text); font-family: var(--font); }
.prose h2 { padding-bottom: .3em; border-bottom: 1px solid var(--line); font-size: 1.9em; }
.prose h3 { font-size: 1.35em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin-bottom: 1.5em; }
.prose a { color: var(--accent-strong); }
.prose blockquote { padding: 6px 0 6px 27px; margin-inline: 0; border-left: 3px solid var(--accent); color: var(--muted); font-size: 1.12em; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 22px; border-radius: var(--radius); background: #1e211d; color: #f2f5f0; font: .88rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose code { overflow-wrap: anywhere; padding: .1em .3em; border-radius: 3px; background: var(--surface-soft); font: .88em ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose pre code { padding: 0; background: none; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--font); font-size: .9rem; }
.prose th, .prose td { min-width: 130px; padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose iframe { max-width: 100%; }
.article-tags { display: flex; max-width: 1065px; flex-wrap: wrap; gap: 9px; padding-block: 48px 85px; }
.article-tags a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.related-section { border-top: 1px solid var(--line); }
.page-content { padding-top: 70px; }
.prose-page { max-width: 790px; }

.search-page { min-height: 72vh; }
.search-shell { max-width: 960px; }
.search-page h1 { margin-bottom: 42px; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.search-form-large { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 36px; }
.search-form-large input { min-width: 0; min-height: 62px; padding: 14px 18px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface); color: var(--text); font-size: 1.08rem; }
.search-form-large .button { min-height: 62px; border-radius: 0 var(--radius) var(--radius) 0; }
.search-summary { padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); color: var(--muted); }
.search-summary strong { color: var(--text); }
.search-results { margin-bottom: 50px; }
.search-result { padding: 34px 0; border-bottom: 1px solid var(--line); }
.search-result .eyebrow { margin-bottom: 10px; }
.search-result h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.search-result h2 a { text-decoration: none; }
.search-result > p:not(.eyebrow) { max-width: 760px; color: var(--muted); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); font-size: .86rem; }
.search-suggestions a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; }

.auth-main { min-height: calc(100vh - 76px); }
.auth-layout { display: grid; min-height: 700px; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); align-items: center; gap: clamp(50px, 10vw, 150px); padding-block: 80px; }
.auth-intro h1 { max-width: 700px; margin-bottom: 25px; font-size: clamp(3rem, 6vw, 5.9rem); }
.auth-intro > p:not(.eyebrow) { max-width: 580px; color: var(--muted); font-size: 1.18rem; }
.auth-note { display: flex; max-width: 520px; gap: 18px; padding-top: 28px; margin-top: 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.auth-note strong { color: var(--text); }
.auth-card { padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 8px; font-size: 2rem; }
.auth-card > p { color: var(--muted); }
.stack-form { display: grid; gap: 21px; margin-top: 30px; }
.field label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.label-row { display: flex; justify-content: space-between; gap: 15px; }
.label-row a { color: var(--muted); font-size: .78rem; }
.check-field { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .85rem; cursor: pointer; }
.check-field input { width: 18px; height: 18px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--accent); }
.notice { padding: 12px 14px; margin-top: 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: .88rem; }
.notice-error { border-color: var(--danger); background: #f8e4e1; color: #772929; }
.auth-footnote { margin: 25px 0 0; text-align: center; }
.auth-footnote a { color: var(--muted); font-size: .84rem; text-decoration: none; }

.error-main { display: flex; min-height: calc(100vh - 76px); align-items: center; }
.error-page { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1fr); align-items: center; gap: clamp(45px, 8vw, 120px); padding-block: 90px; }
.error-code { color: var(--accent-soft); font-size: clamp(9rem, 24vw, 22rem); font-weight: 950; letter-spacing: -.12em; line-height: .7; }
.error-copy h1 { max-width: 700px; margin-bottom: 22px; }
.error-copy > p:not(.eyebrow) { max-width: 610px; color: var(--muted); font-size: 1.13rem; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 34px; }

.site-footer { padding: 78px 0 30px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 70px; padding-bottom: 65px; }
.wordmark-footer { display: inline-block; margin-bottom: 20px; font-size: 2rem; }
.footer-intro p { max-width: 490px; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 75px; }
.footer-links div { display: grid; align-content: start; gap: 9px; }
.footer-links strong { margin-bottom: 8px; font-size: .8rem; text-transform: uppercase; }
.footer-links a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer-bottom p { margin-bottom: 0; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: auto auto 1fr; gap: 20px; }
    .nav-toggle { display: flex; align-items: center; gap: 9px; }
    .primary-nav { position: fixed; inset: 76px 0 0; display: none; align-items: stretch; justify-content: start; padding: 30px 24px; background: var(--bg); }
    .primary-nav.is-open { display: flex; flex-direction: column; }
    .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
    .primary-nav a::after { display: none; }
    .header-actions { justify-self: end; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .hero-grid { grid-template-columns: 1fr; align-items: center; }
    .hero { min-height: auto; }
    .hero-search { max-width: 620px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .latest-layout { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
    .article-aside p, .article-aside small { display: none; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-intro { max-width: 760px; }
    .auth-card { width: min(100%, 560px); }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    .shell { width: min(calc(100% - 32px), var(--shell)); }
    .section { padding-block: 66px; }
    .header-inner { min-height: 68px; }
    .primary-nav { inset-top: 68px; }
    .header-actions .search-link { display: none; }
    .header-actions .button { min-height: 36px; padding: 7px 12px; }
    .language-switcher summary { min-height: 36px; }
    .language-switcher summary > span { display: none; }
    .language-switcher summary b { max-width: 88px; }
    .nav-toggle-label { font-size: .82rem; }
    .hero { padding-block: 75px; }
    .hero-grid { gap: 48px; }
    .hero-copy h1 { margin-bottom: 23px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-search { padding: 22px; }
    .search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
    .card-grid { grid-template-columns: 1fr; }
    .category-tile { min-height: 145px; }
    .principle-grid { grid-template-columns: 1fr; }
    .principle-grid article, .principle-grid article + article { min-height: auto; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .principle-grid article:last-child { border-bottom: 0; }
    .principle-grid span { margin-bottom: 35px; }
    .cta-panel { width: 100%; padding-inline: 24px; }
    .narrow-heading { width: calc(100% - 32px); margin-inline: auto; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .page-status { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .article-cover { width: 100%; }
    .article-cover img { border-radius: 0; }
    .article-tags { padding-bottom: 60px; }
    .search-form-large { grid-template-columns: 1fr; gap: 10px; }
    .search-form-large input, .search-form-large .button { border: 1px solid var(--line-strong); border-radius: var(--radius); }
    .auth-layout { padding-block: 60px; }
    .auth-intro { display: none; }
    .auth-card { padding: 25px 20px; }
    .error-page { grid-template-columns: 1fr; }
    .error-code { font-size: 9rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 42px; }
    .footer-links { gap: 35px; }
    .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 420px) {
    .wordmark { max-width: 105px; overflow: hidden; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
    .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
    .header-actions { gap: 8px; }
    .language-switcher summary b { max-width: 68px; }
    .language-menu { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; }
    .nav-toggle-label { display: none; }
    .category-grid { grid-template-columns: 1fr; }
    .latest-row { grid-template-columns: 30px minmax(0, 1fr); }
    .latest-row .row-arrow { display: none; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}

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

@media print {
    .site-header, .site-footer, .article-aside, .related-section, .article-tags { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .article-layout { display: block; }
    .article-heading, .article-layout { width: 100%; max-width: none; }
    a { color: #000; }
}
