/*
Theme Name: 坐月子网
Theme URI: https://www.zuoyuezi.cn/
Description: 面向孕产家庭的科学坐月子知识聚合主题
Version: 1.3.0
Author: 坐月子网
*/

:root {
  color-scheme: light;
  --bg: #fffaf8;
  --surface: #fff2ed;
  --surface-strong: #fce5dc;
  --paper: #fffefe;
  --text: #342b2a;
  --text-soft: #655a57;
  --muted: #857773;
  --line: #ead8d2;
  --accent: #c96556;
  --accent-strong: #a94c41;
  --accent-soft: #f5d8cf;
  --warning: #765a35;
  --warning-bg: #f8eddb;
  --shadow: 0 24px 70px rgba(165, 83, 68, .14);
  --radius-card: 18px;
  --radius-control: 11px;
  --shell: 1160px;
  --header: 68px;
  --font-heading: "Noto Serif SC", "Songti SC", "STSong", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 46%, transparent); text-underline-offset: .22em; }
a:hover { color: var(--accent-strong); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 14px; border-radius: var(--radius-control); background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; min-height: var(--header); border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); background: color-mix(in srgb, var(--bg) 91%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { min-height: var(--header); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.brand { display: grid; min-width: 150px; text-decoration: none; line-height: 1.15; }
.brand strong { font-size: 21px; letter-spacing: -.04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.45vw, 24px); min-width: 0; }
.main-nav a { position: relative; padding: 8px 0; color: var(--text-soft); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a.is-current { margin-inline: -8px; padding-inline: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.main-nav a.is-current::after { display: none; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .24s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-search { display: flex; align-items: center; gap: 7px; }
.header-search input { width: 128px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--text); }
.header-search input::placeholder { color: var(--muted); }
.header-search button, .menu-toggle { height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; }
.menu-toggle { display: none; }
.header-search button:active, .menu-toggle:active, .button:active { transform: translateY(1px); }

.knowledge-hub { padding: clamp(52px, 7vw, 96px) 0 clamp(42px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.knowledge-hub-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.22fr); gap: clamp(52px, 8vw, 116px); align-items: start; }
.hub-intro { max-width: 540px; padding-top: 14px; }
.hub-kicker { margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.hub-intro h1 { max-width: 9ch; margin: 0; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.1; letter-spacing: -.055em; }
.hub-intro > p:not(.hub-kicker) { max-width: 28em; margin: 22px 0 0; color: var(--text-soft); font-size: clamp(17px, 1.6vw, 20px); }
.hub-intro .text-link { margin-top: 26px; }
.hub-questions { padding: 26px 30px 30px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 14px 38px rgba(165, 83, 68, .07); }
.hub-questions-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.hub-questions-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.hub-questions-heading a { color: var(--accent-strong); font-size: 13px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.hub-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-question-grid a { display: grid; min-height: 108px; align-content: center; padding: 18px 22px 18px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hub-question-grid a:nth-child(odd) { padding-right: 28px; }
.hub-question-grid a:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.hub-question-grid a:nth-last-child(-n + 2) { border-bottom: 0; }
.hub-question-grid span { color: var(--accent); font-size: 12px; font-weight: 800; }
.hub-question-grid strong { margin-top: 8px; font-size: 17px; line-height: 1.4; }
.hub-question-grid a:hover strong { color: var(--accent-strong); }

.home-hero { padding: clamp(22px, 2vw, 32px) 0; overflow: hidden; }
.hero-grid { min-height: min(590px, calc(100dvh - var(--header) - 56px)); display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; gap: clamp(40px, 5vw, 76px); }
.hero-copy { position: relative; z-index: 2; max-width: 580px; }
.hero-kicker, .page-kicker { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.hero-copy h1 { max-width: 15ch; margin: 0; font-size: clamp(44px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.hero-intro { max-width: 25em; margin: 25px 0 0; color: var(--text-soft); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-control); font-weight: 750; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button-primary { background: var(--accent-strong); color: #fffaf8; }
.button-primary:hover { background: var(--accent); color: #fffaf8; transform: translateY(-2px); }
.button-secondary { border-color: var(--line); background: var(--paper); color: var(--text); }
.button-secondary:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); transform: translateY(-2px); }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: -8% 17% 16% -5%; z-index: -1; border-radius: 42% 58% 56% 44%; background: var(--accent-soft); }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; border-radius: 32px 32px 110px 32px; object-fit: cover; box-shadow: var(--shadow); }

.section-heading { max-width: 680px; margin-bottom: 38px; }
.section-heading h2, .topic-copy h2, .fact-layout h2, .standards-layout h2, .related-section h2 { margin: 0; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.24; letter-spacing: -.035em; }
.section-heading p, .topic-copy > p, .fact-layout header p, .standards-layout > div p { margin: 13px 0 0; color: var(--text-soft); font-size: 17px; }
.section-heading-compact { margin: 0; }
.section-heading-compact h2 { font-size: clamp(30px, 3vw, 44px); }
.text-link { display: inline-flex; align-items: center; color: var(--accent-strong); font-weight: 760; text-decoration-thickness: 1px; }

.stage-section { padding: clamp(70px, 8vw, 112px) 0; background: var(--surface); }
.stage-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(50px, 7vw, 100px); align-items: start; }
.stage-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stage-links a { display: grid; min-height: 180px; align-content: start; padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.stage-links a:nth-child(odd) { padding-right: 34px; }
.stage-links a:nth-child(even) { padding-left: 34px; border-left: 1px solid var(--line); }
.stage-links span { color: var(--accent); font-size: 13px; font-weight: 800; }
.stage-links strong { margin-top: 12px; font-size: 21px; line-height: 1.35; }
.stage-links small { margin-top: 8px; color: var(--muted); font-size: 14px; }
.stage-links a:hover strong { color: var(--accent-strong); }

.editorial-section, .latest-section { padding: clamp(76px, 9vw, 132px) 0; }
.featured-layout { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(320px, .76fr); gap: clamp(36px, 5vw, 72px); }
.featured-lead { min-width: 0; }
.featured-image { display: block; overflow: hidden; border-radius: var(--radius-card); }
.featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.featured-image:hover img { transform: scale(1.02); }
.featured-lead-copy { padding-top: 24px; }
.article-meta { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.article-meta a { text-decoration: none; }
.featured-lead h3 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: -.035em; }
.featured-lead h3 a, .featured-row h3 a, .latest-item h3 a, .archive-item h2 a, .related-grid h3 a { text-decoration: none; }
.featured-lead-copy > p:not(.article-meta) { max-width: 60ch; margin: 13px 0 17px; color: var(--text-soft); }
.featured-list { border-top: 1px solid var(--line); }
.featured-row { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.featured-row h3 { margin: 7px 0 0; font-size: 20px; line-height: 1.42; }
.featured-row > p:not(.article-meta) { margin: 9px 0; color: var(--text-soft); font-size: 14px; }
.featured-row time, .latest-item time { color: var(--muted); font-size: 12px; }

.timeline-section { padding: clamp(74px, 8vw, 112px) 0; background: var(--surface); }
.timeline-layout { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr); gap: clamp(55px, 8vw, 110px); }
.timeline-layout .text-link { margin-top: 22px; }
.timeline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 38px; margin: 0; padding: 0; list-style: none; }
.timeline-list li { position: relative; min-height: 178px; padding: 25px 0 0 26px; border-top: 2px solid var(--accent); }
.timeline-list li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); }
.timeline-list span { color: var(--accent); font-size: 13px; font-weight: 800; }
.timeline-list strong { display: block; margin-top: 11px; font-size: 20px; }
.timeline-list p { margin: 7px 0 0; color: var(--text-soft); font-size: 14px; }

.topic-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(50px, 8vw, 112px); align-items: center; padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.topic-feature figure { margin: 0; }
.topic-feature img { width: 100%; aspect-ratio: 4 / 3; border-radius: 100px 22px 22px 22px; object-fit: cover; box-shadow: var(--shadow); }
.topic-copy > p { max-width: 34em; }
.topic-links { margin: 28px 0 32px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.topic-links li { border-bottom: 1px solid var(--line); }
.topic-links a { display: block; padding: 15px 0; font-weight: 720; text-decoration: none; }

.fact-section { padding: clamp(70px, 8vw, 110px) 0; background: var(--surface); }
.fact-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: clamp(50px, 8vw, 110px); }
.fact-topics { display: grid; border-top: 1px solid var(--line); }
.fact-topics a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.fact-topics strong { font-size: 18px; }
.fact-topics span { color: var(--muted); font-size: 13px; }

.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); column-gap: 54px; }
.latest-item { min-height: 210px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.latest-item h3 { margin: 9px 0 0; font-size: 21px; line-height: 1.42; }
.latest-item > p:not(.article-meta) { margin: 10px 0; color: var(--text-soft); font-size: 14px; }

.standards-section { padding: clamp(70px, 8vw, 110px) 0; background: var(--surface-strong); }
.standards-layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr); gap: 26px clamp(50px, 8vw, 110px); }
.standards-layout ul { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.standards-layout li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.standards-layout li strong { color: var(--accent-strong); }
.standards-layout li span { color: var(--text-soft); }
.standards-layout > .text-link { grid-column: 2; justify-self: start; }

.site-footer { padding: 68px 0 28px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) .6fr .6fr; gap: 70px; }
.footer-brand strong { font-size: 24px; letter-spacing: -.04em; }
.footer-brand p { max-width: 34em; margin: 12px 0 0; color: var(--text-soft); }
.footer-nav { display: grid; align-content: start; gap: 8px; }
.footer-nav strong { margin-bottom: 5px; font-size: 13px; }
.footer-nav a { color: var(--text-soft); font-size: 14px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { max-width: 64em; }

.empty-state { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius-card); background: var(--surface); }
.empty-state strong { font-size: 18px; }
.empty-state p { margin: 7px 0 0; color: var(--text-soft); }

.archive-page { padding-top: 16px; padding-bottom: clamp(76px, 9vw, 120px); }
.archive-header { max-width: 790px; margin-bottom: 26px; }
.archive-header .page-kicker { margin-bottom: 8px; }
.archive-header h1 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -.02em; }
.archive-header > p:last-child { max-width: 54ch; margin: 10px 0 0; color: var(--text-soft); font-size: 15px; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(56px, 8vw, 104px); align-items: start; }
.archive-list { display: grid; gap: 14px; }
.archive-item { padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 8px 24px rgba(165, 83, 68, .055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .archive-item:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: #fff; box-shadow: 0 16px 34px rgba(165, 83, 68, .12); transform: translateY(-3px); }
}
.archive-item h2 { margin: 8px 0 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.36; letter-spacing: -.02em; }
.archive-item > p:not(.article-meta) { max-width: 65ch; margin: 13px 0; color: var(--text-soft); }
.archive-item-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.archive-item-footer time { color: var(--muted); font-size: 13px; }
.archive-aside { position: sticky; top: calc(var(--header) + 28px); display: grid; gap: 20px; }
.aside-block, .aside-note { display: grid; gap: 10px; padding: 23px; border-radius: var(--radius-card); background: var(--surface); }
.aside-block a { color: var(--text-soft); font-size: 14px; text-decoration: none; }
.aside-note { background: var(--warning-bg); }
.aside-note p { margin: 0; color: var(--warning); font-size: 13px; }
.pagination { margin-top: 34px; }
.pagination ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-control); text-decoration: none; }
.pagination .current { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.article-page { padding-top: 34px; padding-bottom: clamp(90px, 11vw, 150px); }
.article-content { max-width: 1040px; margin-inline: auto; }
.article-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 40px; align-items: start; }
.article-main-column { min-width: 0; }
.article-page-layout .article-content { max-width: none; }
.article-aside { position: sticky; top: calc(var(--header) + 28px); display: grid; gap: 26px; }
.article-aside img { display: block; max-width: 100%; height: auto; }
.article-header { max-width: 860px; margin-inline: auto; text-align: left; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumb-current, .breadcrumb-current a { color: var(--accent); font-weight: 800; text-decoration: none; }
.breadcrumb-current a:hover { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; }
.article-header h1 { max-width: none; margin: 12px 0 0; font-size: clamp(28px, 3.1vw, 36px); line-height: 1.34; letter-spacing: -.025em; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.medical-boundary { max-width: 860px; margin: 38px auto 0; padding: 20px 22px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--surface); }
.medical-boundary p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }
.article-layout { max-width: 860px; margin: 58px auto 0; }
.article-toc { max-width: 700px; margin: 0 0 30px; padding: 18px 20px; border-radius: var(--radius-control); background: var(--surface); }
.article-toc:empty, .article-toc.is-empty { display: none; }
.article-toc strong { font-size: 13px; }
.article-toc ol { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.article-toc a { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; text-decoration: none; }
.entry-content { min-width: 0; color: var(--text); font-size: 17px; line-height: 1.9; }
.entry-content-wide { max-width: 760px; margin: 56px auto 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { scroll-margin-top: calc(var(--header) + 28px); margin: 2.4em 0 .7em; font-size: clamp(27px, 3vw, 36px); line-height: 1.3; letter-spacing: -.035em; }
.entry-content h3 { scroll-margin-top: calc(var(--header) + 28px); margin: 2em 0 .6em; font-size: 22px; line-height: 1.4; }
.entry-content p { margin: 1.1em 0; }
.entry-content a {
  border-radius: 3px;
  color: var(--accent-strong);
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  text-decoration-skip-ink: auto;
  transition: color .18s ease, background-color .18s ease, text-decoration-color .18s ease;
}
.entry-content a:visited { color: #7d4b46; }
.entry-content a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) {
  .entry-content a:hover { background: var(--accent-soft); color: var(--text); text-decoration-color: currentColor; }
}
.entry-content ul, .entry-content ol { margin: 1.2em 0; padding-left: 1.35em; }
.entry-content li { margin: .55em 0; padding-left: .2em; }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--surface); color: var(--text-soft); }
.entry-content blockquote p { margin: 0; }
.entry-content img { display: block; max-width: 100%; height: auto; margin: 2em auto; border-radius: var(--radius-card); }
.entry-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--accent-strong); }
.entry-content code { padding: .14em .35em; border-radius: 6px; background: var(--surface); font-size: .9em; }
.article-footer { max-width: 860px; margin: 64px auto 0; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 13px 0 0; max-width: 860px; }
.article-actions > button, .share-panel > button, .share-panel > a { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--text-soft); font-size: 13px; font-weight: 700; line-height: 32px; text-decoration: none; cursor: pointer; }
.article-actions > button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.article-actions > button:disabled { cursor: wait; opacity: .68; }
.like-status, [data-share-status] { color: var(--text-muted); font-size: 12px; }
.share-label { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.share-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-panel[hidden] { display: none; }
.share-panel span { color: var(--muted); font-size: 12px; }
.source-policy { padding: 26px; border-radius: var(--radius-card); background: var(--surface); }
.source-policy p { margin: 7px 0 12px; color: var(--text-soft); font-size: 14px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; align-items: center; }
.article-tags strong { margin-right: 5px; font-size: 13px; }
.article-tags a { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text-soft); font-size: 12px; text-decoration: none; }
.related-section { max-width: 1040px; margin: 90px auto 0; padding-top: 54px; border-top: 1px solid var(--line); }
.article-page-layout .related-section { max-width: none; margin: 70px 0 0; padding-top: 42px; }
.related-section h2 { font-size: 29px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.related-grid article { padding: 18px 19px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 8px 22px rgba(165, 83, 68, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .related-grid article:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: 0 14px 28px rgba(165, 83, 68, .11); transform: translateY(-2px); }
}
.related-grid h3 { margin: 8px 0 0; font-size: 19px; line-height: 1.45; }
.related-grid article > p:not(.article-meta) { color: var(--text-soft); font-size: 13px; }
.article-comments { max-width: 860px; margin: 68px auto 0; padding-top: 42px; border-top: 1px solid var(--line); }
.article-page-layout .article-comments { max-width: none; margin: 62px 0 0; }
.page-content .article-header h1 { max-width: 18ch; }
.contact-comments { max-width: 760px; margin: 64px auto 0; padding-top: 38px; border-top: 1px solid var(--line); }
.comments-heading { margin-bottom: 18px; }
.comments h2 { margin: 0; font-size: 23px; line-height: 1.35; letter-spacing: -.025em; }
.comments .comment-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.comments .comment-list > li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.comments .comment-list .comment-list { margin: 14px 0 0 18px; }
.comments .comment-list .comment-list > li { background: var(--surface); }
.comments .comment-author { color: var(--text); font-weight: 800; font-style: normal; }
.comments .comment-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.comments .comment-meta a { color: inherit; text-decoration: none; }
.comments .comment-content { margin-top: 11px; color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.comments .comment-content > :first-child { margin-top: 0; }
.comments .comment-content > :last-child { margin-bottom: 0; }
.comments .comment-reply { margin: 12px 0 0; font-size: 13px; }
.comments .comment-reply a { color: var(--accent-strong); font-weight: 750; text-decoration: none; }
.comment-pagination { margin-top: 20px; }
.comment-pagination ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.comment-pagination a, .comment-pagination span { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text-soft); font-size: 13px; text-decoration: none; }
.respond { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.respond .cancel-comment-reply { min-height: 0; text-align: right; font-size: 13px; }
.respond .cancel-comment-reply a { color: var(--accent-strong); }
.respond h2 { margin-top: 0; }
.comment-helper { max-width: 50em; margin: 8px 0 20px; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.comment-form > p, .comment-fields > p { margin: 0 0 16px; }
.comment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comment-form label { display: block; margin-bottom: 7px; color: var(--text); font-size: 13px; font-weight: 750; }
.comment-form label span { color: var(--accent-strong); }
.comment-form input, .comment-form textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); font: inherit; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease; }
.comment-form input { height: 42px; padding: 0 12px; }
.comment-form textarea { display: block; min-height: 148px; padding: 11px 12px; resize: vertical; line-height: 1.7; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.comment-submit { margin: 4px 0 0 !important; }
.comment-submit .button { width: auto; }
.comment-login { margin: 0 0 18px; color: var(--text-soft); font-size: 14px; }
.comment-login a { color: var(--accent-strong); }
.comments-closed { margin: 0; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--text-soft); font-size: 14px; }

.not-found { min-height: calc(100dvh - var(--header)); display: grid; align-content: center; justify-items: start; max-width: 760px; padding-top: 70px; padding-bottom: 100px; }
.not-found h1 { max-width: 12ch; margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
.not-found > p:not(.page-kicker) { max-width: 32em; color: var(--text-soft); font-size: 18px; }
.not-found-search { width: min(100%, 560px); margin: 20px 0 24px; }
.not-found-search label { display: block; margin-bottom: 7px; font-weight: 700; }
.not-found-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.not-found-search input { min-width: 0; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--text); }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 13px; }
  .header-search input { display: none; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 46px; }
}

@media (max-width: 900px) {
  :root { --header: 70px; }
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand small { font-size: 9px; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .main-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 16px; }
  .js .main-nav { position: absolute; top: 100%; right: 0; left: 0; height: calc(100dvh - var(--header)); display: grid; grid-template-columns: 1fr; align-content: start; justify-content: stretch; gap: 0; padding: 22px 24px 110px; background: var(--bg); overflow: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
  .js .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a::after { display: none; }
  .header-search { display: none; }
  .knowledge-hub-grid { grid-template-columns: 1fr; gap: 36px; }
  .hub-intro { padding-top: 0; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 680px; }
  .hero-copy h1 { max-width: 15ch; font-size: clamp(42px, 8vw, 60px); }
  .hero-media { width: min(100%, 700px); margin-left: auto; }
  .stage-layout, .timeline-layout, .fact-layout, .standards-layout { grid-template-columns: 1fr; }
  .featured-layout { grid-template-columns: 1fr; }
  .topic-feature { grid-template-columns: 1fr; }
  .topic-feature figure { width: min(100%, 700px); }
  .standards-layout > .text-link { grid-column: auto; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { margin-top: 42px; }
  .article-page-layout { grid-template-columns: minmax(0, 1fr) 216px; gap: 24px; }
  .article-aside { position: sticky; top: calc(var(--header) + 20px); gap: 20px; }
  .article-toc { max-width: none; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .knowledge-hub { padding-top: 42px; padding-bottom: 44px; }
  .hub-intro h1 { max-width: 10ch; font-size: clamp(37px, 10.2vw, 44px); }
  .hub-questions { margin-inline: -2px; padding: 21px 18px; }
  .hub-question-grid { grid-template-columns: 1fr; }
  .hub-question-grid a, .hub-question-grid a:nth-child(odd), .hub-question-grid a:nth-child(even) { min-height: 0; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hub-question-grid a:last-child { border-bottom: 0; }
  .home-hero { padding-top: 32px; }
  .hero-copy h1 { max-width: none; font-size: clamp(39px, 10.8vw, 44px); }
  .hero-intro { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-media img { border-radius: 20px 20px 70px 20px; }
  .stage-links { grid-template-columns: 1fr; }
  .stage-links a, .stage-links a:nth-child(odd), .stage-links a:nth-child(even) { min-height: 0; padding: 22px 0; border-left: 0; }
  .timeline-list { grid-template-columns: 1fr; }
  .timeline-list li { min-height: 0; }
  .topic-feature img { border-radius: 60px 18px 18px 18px; }
  .fact-topics a { grid-template-columns: 1fr; gap: 5px; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-item { min-height: 0; }
  .standards-layout li { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: grid; }
  .archive-aside { grid-template-columns: 1fr; }
  .archive-item-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .article-header h1 { max-width: none; font-size: clamp(26px, 7.2vw, 32px); }
  .article-page-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { position: static; grid-template-columns: 1fr; gap: 25px; }
  .entry-content { font-size: 16px; }
  .contact-comments { margin-top: 46px; padding-top: 28px; }
  .respond { padding: 19px 17px; }
  .comment-fields { grid-template-columns: 1fr; gap: 0; }
  .comments .comment-list > li { padding: 16px; }
  .comments .comment-list .comment-list { margin-left: 10px; }
  .not-found-search > div { grid-template-columns: 1fr; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Homepage: editorial knowledge portal */
.portal-home { padding-bottom: 58px; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 52px; padding-top: 34px; }
.article-stream { min-width: 0; }
.stream-heading, .directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.stream-heading p { margin: 0 0 3px; color: var(--accent-strong); font-size: 12px; font-weight: 800; }
.stream-heading h1, .directory-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.03em; }
.stream-heading > a, .directory-heading > a { color: var(--accent-strong); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.portal-post-list { display: grid; gap: 14px; }
.portal-post { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 8px 22px rgba(165, 83, 68, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.portal-post[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .portal-post:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: #fff; box-shadow: 0 16px 34px rgba(165, 83, 68, .12); transform: translateY(-3px); }
}
.portal-post-has-image { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.portal-post-image { display: block; overflow: hidden; border-radius: 12px; background: var(--surface); }
.portal-post-image img { width: 100%; height: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; transition: transform .25s ease; }
.portal-post-image:hover img { transform: scale(1.025); }
.portal-post-body { min-width: 0; }
.portal-post .article-meta { margin: 0; color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.portal-post .article-meta span { color: var(--muted); padding: 0 4px; }
.portal-post h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.45; letter-spacing: -.015em; }
.portal-post:not(.portal-post-lead) h3 { font-size: 16px; }
.portal-post h3 a { text-decoration: none; }
.portal-post h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.portal-post-body > p:not(.article-meta) { margin: 7px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.portal-post time { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.portal-pagination { margin-top: 28px; }
.portal-empty { margin-top: 20px; padding: 23px 0 29px; border-bottom: 1px solid var(--line); }
.portal-empty strong { font-size: 18px; }
.portal-empty p { max-width: 48em; margin: 7px 0 0; color: var(--text-soft); font-size: 14px; }
.portal-aside { display: grid; align-content: start; gap: 26px; }
.aside-block { padding-top: 0; }
.aside-block h2 { margin: 0 0 3px; padding-bottom: 4px; border-bottom: 2px solid var(--text); font-size: 17px; line-height: 1.25; }
.phase-block a { display: grid; gap: 0; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.phase-block a span { color: var(--accent-strong); font-size: 11px; font-weight: 800; }
.phase-block a strong { font-size: 14px; line-height: 1.45; }
.phase-block a:hover strong { color: var(--accent-strong); }
.aside-link-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.aside-link-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; text-decoration: none; }
.aside-link-list a::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 8px 3px 1px; border-radius: 50%; background: var(--accent); }
.sidebar-news { gap: 0; }
.sidebar-news-group { padding: 11px 0; border-bottom: 1px solid var(--line); }
.sidebar-news-group:first-of-type { padding-top: 2px; }
.sidebar-news-group:last-child { padding-bottom: 0; border-bottom: 0; }
.sidebar-news-group h3 { margin: 0; font-family: inherit; font-size: 13px; line-height: 1.4; }
.sidebar-news-group h3 a { color: var(--accent-strong); text-decoration: none; }
.sidebar-news-group ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sidebar-news-group li { min-width: 0; }
.sidebar-news-group li a { display: block; overflow: hidden; color: var(--text-soft); font-size: 13px; line-height: 1.45; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-news-group li a:hover, .sidebar-news-group h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.random-venues { gap: 0; }
.random-venues[hidden] { display: none; }
.random-venues h2 { margin-bottom: 7px; }
.random-venues ul { margin: 0; padding: 0; list-style: none; }
.random-venues li { border-bottom: 1px solid var(--line); }
.random-venues li a { display: block; padding: 7px 0; color: var(--text-soft); font-size: 13px; font-weight: 650; line-height: 1.45; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.random-venues p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.random-venues-more { display: inline-block; margin-top: 9px; color: var(--accent-strong); font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .random-venues li a:hover { color: var(--accent-strong); transform: translateX(2px); }
}
.random-venues li a:focus-visible, .random-venues-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.archive-aside img, .portal-aside img { display: block; max-width: 100%; height: auto; }
.aside-note { padding: 15px 16px; border-left: 3px solid var(--accent); background: var(--surface); }
.aside-note strong { font-size: 14px; }
.aside-note p { margin: 5px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.portal-directory { margin-top: 54px; padding: 31px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.directory-heading { padding-bottom: 12px; border-bottom-color: var(--line); }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.directory-grid section { padding: 18px 28px 7px 0; }
.directory-grid section + section { padding-left: 28px; border-left: 1px solid var(--line); }
.directory-grid h3 { margin: 0 0 8px; color: var(--accent-strong); font-size: 15px; }
.directory-grid a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.5; text-decoration: none; }
.directory-grid a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  :root { --header: 64px; }
  .archive-page { padding-top: 14px; }
  .article-page { padding-top: 27px; }
  .portal-layout { grid-template-columns: 1fr; gap: 39px; padding-top: 27px; }
  .portal-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 34px; }
  .aside-note { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .archive-page { padding-top: 12px; }
  .article-page { padding-top: 23px; }
  .portal-home { padding-bottom: 38px; }
  .portal-layout { gap: 32px; padding-top: 23px; }
  .stream-heading h1, .directory-heading h2 { font-size: 20px; }
  .portal-post { padding: 16px 17px; }
  .portal-post-has-image { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .portal-post-has-image .portal-post-body > p:not(.article-meta) { display: none; }
  .portal-post h3, .portal-post:not(.portal-post-lead) h3 { margin-top: 4px; font-size: 16px; }
  .portal-post time { margin-top: 6px; }
  .portal-aside { grid-template-columns: 1fr; gap: 25px; }
  .aside-note { grid-column: auto; }
  .portal-directory { margin-top: 38px; padding: 24px 0; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-grid section, .directory-grid section + section { padding: 18px 0 7px; border-left: 0; border-bottom: 1px solid var(--line); }
  .directory-grid section:last-child { border-bottom: 0; }
}
