/* Fixed structural styles. Per-site palette, fonts, radius and rhythm come from theme.css. */
:root {
  --bg: #f7f3ec;
  --surface: #fffdfa;
  --surface-2: #efe9de;
  --ink: #1f1a15;
  --muted: #60584d;
  --line: #ded5c6;
  --accent: #b4451f;
  --accent-ink: #ffffff;
  --accent-soft: #f4e4dc;
  --accent-2: #2f5d50;
  --accent-2-soft: #e4ece8;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --gap: 28px;
  --section-gap: 88px;
  --shadow: 0 1px 2px rgba(20, 16, 12, .05), 0 14px 34px rgba(20, 16, 12, .07);
  --header-bg: rgba(247, 243, 236, .88);
  --maxw: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }

::selection { background: var(--accent); color: var(--accent-ink); }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.narrow { max-width: 780px; margin-left: auto; margin-right: 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: absolute;
  top: -60px; left: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.preview-bar {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 14px;
}

.progress-bar {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
}
.page-article .progress-bar { display: block; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; }
.brand:hover { color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { display: inline-flex; width: 36px; height: 36px; color: var(--accent); flex: 0 0 auto; }
.logo-mark svg { width: 100%; height: 100%; display: block; }

.site-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.site-nav > a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav > a:hover { color: var(--ink); }
.site-nav > a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.nav-search { display: flex; }
.nav-search input {
  width: 140px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  transition: width .2s ease, border-color .2s ease;
}
.nav-search input:focus { outline: none; border-color: var(--accent); width: 200px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--ink); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* header variants */
.layout-header-solid .site-header { background: var(--surface); }
.layout-header-bordered .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--ink); }
.layout-header-floating .site-header { background: transparent; border-bottom: 0; top: 14px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.layout-header-floating .header-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  padding-left: 24px;
  padding-right: 24px;
  min-height: 62px;
}

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(36px, 5vw, 72px) 0 8px; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.kicker {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  max-width: 17ch;
}
.hero-sub { font-size: 1.14rem; line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; list-style: none; margin: 34px 0 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.55rem; line-height: 1; }
.hero-stats span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cover-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }

.hero-visual { position: relative; }
.hero-visual .cover-svg, .hero-visual .cover-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) * 1.15);
  box-shadow: var(--shadow);
}
.hero-spotlight {
  position: absolute;
  left: -8px;
  bottom: -26px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-spotlight:hover { color: var(--ink); border-color: var(--accent); }
.spotlight-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero-spotlight strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; }
.spotlight-meta { font-size: .78rem; color: var(--muted); }

.layout-hero-centered .hero-inner { display: block; text-align: center; max-width: 880px; }
.layout-hero-centered .hero-copy { margin: 0 auto; }
.layout-hero-centered .hero-visual { display: none; }
.layout-hero-centered .hero-title { margin-left: auto; margin-right: auto; }
.layout-hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.layout-hero-centered .hero-actions, .layout-hero-centered .hero-stats { justify-content: center; }

.layout-hero-band .hero {
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
  border-bottom: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 92px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.layout-hero-oversized .hero-title { font-size: clamp(3rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -0.045em; max-width: 15ch; }
.layout-hero-oversized .hero-visual .cover-svg, .layout-hero-oversized .hero-visual .cover-img { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------- sections */
.section { padding-top: var(--section-gap); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.section-head .kicker { margin-bottom: 8px; }
.section-link { font-size: .9rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.section-count { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------------------- cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-cover { display: block; background: var(--surface-2); }
.card-cover .cover-svg, .card-cover .cover-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
}
.badge-topic { background: var(--accent-soft); color: var(--accent); }
.badge-tag { background: var(--accent-2-soft); color: var(--accent-2); }
.badge-geo { background: transparent; border: 1px solid var(--line); }
.card-topic { font-size: .76rem; color: var(--muted); }
.card-title { margin: 0; font-size: 1.2rem; line-height: 1.28; letter-spacing: -0.01em; }
.card-title a:hover { color: var(--accent); }
.card-dek { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.card-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 6px; font-size: .76rem; color: var(--muted); }

.layout-cards-editorial .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-cards-editorial .card-grid > .card:first-child { grid-column: span 2; }
.layout-cards-editorial .card-grid > .card:first-child .card-title { font-size: 1.55rem; }
.layout-cards-editorial .card-grid > .card:first-child .card-cover .cover-svg,
.layout-cards-editorial .card-grid > .card:first-child .card-cover .cover-img { aspect-ratio: 16 / 8.4; }

.layout-cards-list .card-grid { grid-template-columns: 1fr; }
.layout-cards-list .card { flex-direction: row; align-items: stretch; }
.layout-cards-list .card-cover { flex: 0 0 32%; }
.layout-cards-list .card-cover .cover-svg, .layout-cards-list .card-cover .cover-img { height: 100%; aspect-ratio: auto; }
.layout-cards-list .card-body { padding: 22px 26px; }
.layout-cards-list .card-title { font-size: 1.35rem; }

/* ------------------------------------------------------------------- tiles */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.tile-kicker { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.tile h3, .tile h2 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.tile p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.tile-link { margin-top: auto; padding-top: 8px; font-size: .86rem; font-weight: 600; color: var(--accent); }

/* ------------------------------------------------------------------- chips */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .86rem;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-count {
  font-size: .72rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-copy h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about-lead { font-size: 1.08rem; line-height: 1.65; }
.about-copy p { color: var(--muted); }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-num { font-family: var(--font-head); font-size: 1.1rem; color: var(--accent); padding-top: 2px; }
.feature-list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-list p { margin: 0; font-size: .9rem; color: var(--muted); }

/* --------------------------------------------------------------- page head */
.page-head { padding: clamp(30px, 4vw, 54px) 0 10px; max-width: 900px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin: 0 0 18px; letter-spacing: -0.03em; max-width: 22ch; }
.page-dek { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 64ch; margin: 0 0 14px; }
.page-stats { font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin: 0; }

.breadcrumbs { padding-top: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a:hover { color: var(--accent); }

/* --------------------------------------------------------------------- hub */
.hub { padding-bottom: 20px; }
.hub-intro { margin: 30px 0 0; }
.hub-members { padding-top: calc(var(--section-gap) * .7); }
.hub-members .section-head { border-top: 1px solid var(--line); padding-top: 26px; }
.hub-faq { padding-top: calc(var(--section-gap) * .7); }
.hub-faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 18px; }
.hub-related { padding-top: calc(var(--section-gap) * .7); }
.hub-related h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.empty-note { color: var(--muted); padding: 22px 0; }
.empty-note a { color: var(--accent); text-decoration: underline; }

/* ----------------------------------------------------------------- article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-top: 8px;
}
.article-head { padding: 24px 0 10px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0 0 20px; letter-spacing: -0.03em; line-height: 1.08; }
.article-dek { font-size: 1.16rem; line-height: 1.6; color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.article-meta span + span::before { content: "·"; margin-right: 14px; color: var(--line); }
.article-cover { margin: 30px 0 8px; }
.article-cover .cover-img { aspect-ratio: 16 / 9; border-radius: var(--radius); }

.key-facts { margin: 28px 0 8px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.key-facts h2 { font-size: 1.02rem; margin: 0 0 16px; letter-spacing: .02em; }
.key-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 26px; margin: 0; }
.key-facts dt { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.key-facts dd { margin: 0; font-size: .92rem; line-height: 1.5; }

.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.toc { border-left: 2px solid var(--line); padding-left: 18px; }
.toc-label, .aside-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { font-size: .87rem; color: var(--muted); line-height: 1.4; display: block; }
.toc a:hover { color: var(--accent); }
.aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aside-list a { font-size: .9rem; line-height: 1.4; color: var(--ink); }
.aside-list a:hover { color: var(--accent); }
.aside-link { font-weight: 600; color: var(--accent); font-size: .95rem; }

.prose { max-width: 74ch; font-size: 1.03rem; line-height: 1.75; }
.prose > p { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 2.5em 0 .65em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 1.2em; }
.prose .bullet-list { margin: 0 0 1.3em; padding-left: 1.25em; }
.prose .bullet-list li { margin-bottom: .5em; }
.prose .steps { list-style: none; counter-reset: step; margin: 0 0 1.5em; padding: 0; }
.prose .steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 14px; }
.prose .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
}
.table-wrap { overflow-x: auto; margin: 1.7em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap tr:last-child td { border-bottom: 0; }

.callout { margin: 1.7em 0; padding: 20px 24px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout strong { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.callout p { margin: 0; font-size: .96rem; }

.prose blockquote { margin: 2em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent); }
.prose blockquote p { font-family: var(--font-head); font-size: 1.24rem; line-height: 1.45; margin: 0 0 8px; }
.prose blockquote cite { font-style: normal; font-size: .82rem; color: var(--muted); }

.takeaways { margin: 2.6em 0; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.takeaways h2 { margin: 0 0 14px; font-size: 1.3rem; }
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: .97rem; }
.takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.article-faq { margin: 2.6em 0; }
.article-faq h2 { margin-top: 0; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2.4em; padding-top: 20px; border-top: 1px solid var(--line); }
.article-tags-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.related-section { padding-top: calc(var(--section-gap) * .8); }

.faq-list { display: flex; flex-direction: column; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  position: relative;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ---------------------------------------------------------------- listings */
.listing { padding-bottom: 40px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.topic-block { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-block h2 { margin: 0; font-size: 1.45rem; }
.topic-block h2 a:hover { color: var(--accent); }
.topic-block p { margin: 0; color: var(--muted); font-size: .93rem; }
.topic-block .tile-link { padding-top: 0; }
.sample-list { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; }
.sample-list a { font-size: .89rem; line-height: 1.4; color: var(--ink); }
.sample-list a:hover { color: var(--accent); }

.tag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--gap) * .75); }
.tag-card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tag-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-card h2 { margin: 0; font-size: 1.08rem; text-transform: capitalize; }
.tag-card h2 a:hover { color: var(--accent); }
.region-block h3 a:hover { color: var(--accent); }

.search-form { display: flex; gap: 10px; max-width: 640px; margin: 26px 0 44px; }
.search-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.search-form input:focus { outline: none; border-color: var(--accent); }
.empty-state { padding: 30px 0; color: var(--muted); }
.empty-state p { max-width: 56ch; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.page-link { padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-weight: 600; }
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.is-disabled { color: var(--line); pointer-events: none; }
.page-status { color: var(--muted); }

.error-page { padding: 70px 0 40px; max-width: 720px; }
.error-code { font-family: var(--font-head); font-size: clamp(4.5rem, 12vw, 8rem); line-height: .9; color: var(--accent); opacity: .22; margin: 0 0 10px; letter-spacing: -0.05em; }
.error-page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 16px; }
.error-topics { margin-top: 34px; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: calc(var(--section-gap) * .9); border-top: 1px solid var(--line); background: var(--surface-2); padding: 54px 0 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 36ch; }
.footer-note { font-size: .82rem; line-height: 1.6; }
.footer-disclosure { font-size: .74rem; line-height: 1.6; color: var(--muted); opacity: .9; margin-top: 10px; max-width: 44ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-col h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: .88rem; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.layout-footer-compact .footer-inner { display: block; }
.layout-footer-compact .footer-brand { margin-bottom: 24px; }
.layout-footer-compact .footer-note { display: none; }
.layout-footer-compact .footer-cols { display: flex; flex-wrap: wrap; gap: 36px; }
.layout-footer-compact .footer-cols .footer-col { min-width: 140px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .layout-cards-editorial .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-cards-editorial .card-grid > .card:first-child { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 26px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-visual { margin-top: 6px; }
  .hero-spotlight { left: 16px; bottom: -20px; }
  .layout-hero-oversized .hero-title { max-width: 100%; }
  .article-body { max-width: 100%; }
}

@media (max-width: 1360px) {
  .header-inner { gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav > a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .site-nav > a.is-active { border-bottom-color: var(--line); color: var(--accent); }
  .nav-search { width: 100%; margin-top: 8px; }
  .nav-search input, .nav-search input:focus { width: 100%; }
  .layout-header-floating .site-nav { top: calc(100% + 8px); border-radius: var(--radius); border: 1px solid var(--line); left: 0; right: 0; }
  .layout-header-floating .site-header { top: 8px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero-stats { gap: 22px; }
  .hero-spotlight { position: static; max-width: none; margin-top: 14px; }
  .hero-visual .cover-svg, .hero-visual .cover-img { aspect-ratio: 16 / 9; }
  .card-grid, .tile-grid, .tag-grid { grid-template-columns: 1fr; }
  .layout-cards-editorial .card-grid { grid-template-columns: 1fr; }
  .layout-cards-editorial .card-grid > .card:first-child { grid-column: auto; }
  .layout-cards-list .card { flex-direction: column; }
  .layout-cards-list .card-cover { flex: none; }
  .layout-cards-list .card-cover .cover-svg, .layout-cards-list .card-cover .cover-img { aspect-ratio: 16 / 9; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-head h1, .article-head h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .article-dek { font-size: 1.05rem; }
  .key-facts { padding: 20px; }
  .key-facts dl { grid-template-columns: 1fr; gap: 14px; }
  .pagination { flex-wrap: wrap; gap: 12px; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .prose blockquote p { font-size: 1.12rem; }
  .table-wrap { font-size: .85rem; }
  .table-wrap th, .table-wrap td { padding: 9px 12px; }
  .hub-intro, .hub-members, .hub-faq, .hub-related { margin-top: 0; }
}

@media (max-width: 440px) {
  .hero-actions .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .hero-stats strong { font-size: 1.3rem; }
}

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

@media print {
  .site-header, .site-footer, .preview-bar, .article-aside, .progress-bar, .related-section, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; }
}
