:root {
  --ink: #172033;
  --muted: #667085;
  --paper: #fffdf9;
  --paper-2: #f7f3ec;
  --line: #e7e0d5;
  --wine: #7b2438;
  --wine-dark: #4c1425;
  --coral: #e96b55;
  --gold: #d8a441;
  --blue: #126b78;
  --shadow: 0 18px 50px rgba(23, 32, 51, .09);
  --radius: 22px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--blue); }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  padding: 10px 16px; color: #fff; background: var(--wine-dark); border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  border-bottom: 1px solid rgba(231, 224, 213, .88);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(calc(100% - 32px), var(--content));
  min-height: 76px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; flex: 0 0 auto;
}
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 20px; line-height: 1;
  background: conic-gradient(from 35deg, var(--coral), var(--wine), var(--blue), var(--coral));
  border-radius: 50% 50% 45% 55% / 45% 55% 45% 55%;
  box-shadow: 0 8px 20px rgba(123, 36, 56, .24);
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-name { font-weight: 850; font-size: 22px; letter-spacing: -.03em; }
.brand-tag { margin-top: 5px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.site-nav a {
  padding: 9px 12px; color: var(--ink); text-decoration: none;
  border-radius: 999px; font-size: 15px; font-weight: 700;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--wine); background: #f4e8e9; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }
.search-open {
  flex: 0 0 auto; min-height: 42px; padding: 0 16px;
  color: #fff; background: var(--wine); border: 0; border-radius: 999px; font-weight: 800;
}
.search-open:hover { background: var(--wine-dark); }
.search-open > span[aria-hidden="true"] { display: none; }

.site-hero {
  position: relative; min-height: 310px; color: #fff; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(5, 14, 33, .96) 0%, rgba(5, 14, 33, .78) 43%, rgba(5, 14, 33, .12) 79%), url("/assets/hero-circus.png");
  background-size: cover; background-position: center;
}
.site-hero.compact { min-height: 218px; }
.hero-inner {
  width: min(calc(100% - 32px), var(--content)); margin: 0 auto; padding: 58px 0 62px;
}
.site-hero.compact .hero-inner { padding: 38px 0 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 12px; color: #ffd9a0; font-size: 13px; font-weight: 850;
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.site-hero h1 {
  max-width: 760px; margin: 0; color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 70px); line-height: 1.02; letter-spacing: -.045em;
}
.site-hero.compact h1 { font-size: clamp(34px, 5vw, 54px); }
.hero-lead { max-width: 680px; margin: 18px 0 0; color: #e9edf4; font-size: 18px; line-height: 1.6; }
.hero-search {
  display: flex; max-width: 650px; gap: 8px; margin-top: 26px; padding: 7px;
  background: rgba(255, 255, 255, .96); border-radius: 16px; box-shadow: var(--shadow);
}
.hero-search input { min-width: 0; flex: 1; padding: 11px 13px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.hero-search button { padding: 0 20px; color: #fff; background: var(--coral); border: 0; border-radius: 11px; font-weight: 800; }

.page-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 46px auto 74px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px;
}
.page-shell.no-rail { display: block; max-width: 1040px; }
.content { min-width: 0; }
.content > :first-child { margin-top: 0; }
.content h1, .content h2, .content h3 {
  color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.17; letter-spacing: -.025em;
}
.content h1 { margin: 0 0 18px; font-size: clamp(36px, 6vw, 58px); }
.content h2 { margin: 48px 0 17px; font-size: clamp(28px, 4vw, 38px); }
.content h3 { margin: 30px 0 12px; font-size: 24px; }
.content p { max-width: 78ch; margin: 0 0 1.25em; }
.content ul, .content ol { padding-left: 1.25em; }
.content li + li { margin-top: .48em; }
.content blockquote {
  margin: 32px 0; padding: 20px 24px; color: #3b2b31;
  background: #fbefed; border-left: 5px solid var(--coral); border-radius: 0 16px 16px 0;
}
.lead { color: #39445a; font-size: 21px; line-height: 1.65; }

.side-rail { align-self: start; position: sticky; top: 104px; display: grid; gap: 16px; }
.rail-card { padding: 22px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; }
.rail-card h2 { margin: 0 0 13px; font-family: inherit; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.rail-search { display: flex; gap: 6px; }
.rail-search input { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rail-search button { width: 42px; border: 0; border-radius: 10px; color: #fff; background: var(--wine); }
.rail-links { display: grid; gap: 8px; }
.rail-links a { color: var(--ink); font-size: 15px; text-decoration: none; }
.rail-links a:hover { color: var(--wine); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 26px; line-height: 1; color: var(--wine); }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.3; }

.home-intro { margin-bottom: 42px; }
.home-intro h2 { margin-top: 0; }
.feature-grid, .guide-grid, .items-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.feature-card, .guide-card, .items-row > div, .items-leading > div {
  overflow: hidden; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 9px 28px rgba(23, 32, 51, .055);
}
.feature-card { color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card .kicker { color: var(--coral); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.feature-card h3 { margin: 8px 0 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 54px 0 20px; }
.section-head h2 { margin: 0; }
.section-head a { white-space: nowrap; font-weight: 800; }

.guide-card { padding: 0; }
.guide-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.guide-card-copy { padding: 22px; }
.guide-card h2, .guide-card h3 { margin: 0 0 10px; font-size: 25px; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.guide-card .read-more { font-weight: 850; }

.blog > .page-header:first-child { display: none; }
.category-desc {
  margin: 0 0 30px; padding: 22px 24px; color: #3c475a; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 16px;
}
.items-leading { display: grid; gap: 20px; margin-bottom: 20px; }
.items-row { margin-bottom: 20px; }
.items-row > div, .items-leading > div { min-width: 0; }
.page-header { margin: 0 0 12px; }
.page-header h2 { margin: 0; font-size: 29px; }
.page-header h2 a { color: var(--ink); text-decoration: none; }
.item-image { float: none !important; margin: 0 0 18px !important; }
.item-image img { width: 100%; max-height: 430px; object-fit: cover; border-radius: 15px; }
.article-info { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 20px; padding: 0; color: var(--muted); font-size: 13px; }
.article-info dt { display: none; }
.article-info dd { margin: 0; }
.article-info a { color: inherit; }
.readmore { margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px;
  color: #fff; background: var(--wine); border: 0; border-radius: 11px; text-decoration: none; font-weight: 800;
}
.btn:hover { color: #fff; background: var(--wine-dark); }
.pagination-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 34px 0 0; padding: 0; list-style: none; }
.pagination-list a { display: grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination-list .active a { color: #fff; background: var(--wine); border-color: var(--wine); }
.pagination-list .disabled { opacity: .45; }

.article-shell { max-width: 820px; }
.article-shell .page-header h1 { margin-bottom: 14px; }
.article-hero { margin: 26px 0 10px; }
.article-hero img { width: 100%; max-height: 540px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.image-credit { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.toc { margin: 28px 0 34px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.toc summary { padding: 16px 20px; font-weight: 850; cursor: pointer; }
.toc ol { margin: 0; padding: 0 24px 20px 42px; }
.toc a { color: var(--ink); }
.source-box, .related-box {
  margin: 42px 0 0; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
}
.source-box h2, .related-box h2 { margin: 0 0 13px; font-family: inherit; font-size: 18px; }
.source-box li, .related-box li { font-size: 14px; }
.sigFreeContainer {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 28px 0 !important; padding: 0 !important; list-style: none;
}
.sigFreeThumb { width: auto !important; height: auto !important; margin: 0 !important; }
.sigFreeLink { display: block; }
.sigFreeImg { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-2); }

.legal-page { max-width: 820px; }
.legal-page .legal-meta { color: var(--muted); font-size: 14px; }
.legal-page h2 { font-size: 30px; }

.site-footer { color: #f1e9e7; background: #151726; }
.footer-inner {
  width: min(calc(100% - 32px), var(--content)); margin: 0 auto; padding: 48px 0 30px;
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 42px;
}
.site-footer .brand { color: #fff; }
.site-footer p { color: #aeb5c3; font-size: 14px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .09em; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #d9dde6; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  width: min(calc(100% - 32px), var(--content)); margin: 0 auto; padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .1); color: #8f98aa; font-size: 12px;
}

.search-dialog { width: min(680px, calc(100% - 24px)); max-height: min(76vh, 760px); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 26px 80px rgba(0,0,0,.32); }
.search-dialog::backdrop { background: rgba(10, 13, 24, .7); backdrop-filter: blur(5px); }
.search-panel { padding: 24px; }
.search-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.search-panel h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; }
.search-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 25px; }
.site-search-form { display: flex; gap: 8px; margin: 20px 0; }
.site-search-form input { min-width: 0; flex: 1; padding: 13px 15px; border: 1px solid #cfc6ba; border-radius: 12px; }
.site-search-form button { padding: 0 20px; color: #fff; background: var(--wine); border: 0; border-radius: 12px; font-weight: 800; }
.search-status { color: var(--muted); font-size: 14px; }
.search-results { display: grid; gap: 10px; margin-top: 14px; }
.search-result { display: block; padding: 14px 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.search-result:hover { color: var(--ink); background: var(--paper-2); }
.search-result strong { display: block; }
.search-result span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto; display: none; margin: 0; padding: 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: grid; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .header-inner { gap: 10px; }
  .brand-tag { display: none; }
  .search-open { padding: 0 13px; }
  .page-shell { grid-template-columns: 1fr; }
  .side-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { width: min(calc(100% - 22px), var(--content)); min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 20px; }
  .site-nav { inset-block-start: 68px; }
  .search-open { min-height: 38px; font-size: 0; }
  .search-open::after { content: "⌕"; font-size: 24px; line-height: 1; }
  .site-hero, .site-hero.compact { min-height: 300px; background-position: 62% center; }
  .site-hero.compact { min-height: 210px; }
  .hero-inner { padding: 44px 0 48px; }
  .hero-search { align-items: stretch; }
  .hero-search button { padding-inline: 14px; }
  .page-shell { width: min(calc(100% - 22px), var(--content)); margin-top: 34px; gap: 30px; }
  .feature-grid, .guide-grid, .items-row { grid-template-columns: 1fr; }
  .items-row { display: grid !important; }
  .items-row > div { width: auto !important; margin: 0 !important; }
  .side-rail { grid-template-columns: 1fr; }
  .sigFreeContainer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .section-head { display: block; }
  .section-head a { display: inline-block; margin-top: 8px; }
}

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

/* Unified 2026 components */
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.brand-mark::after {
  content: ""; width: 19px; height: 17px; display: block;
  background: linear-gradient(63deg, transparent 47%, #fff 49% 56%, transparent 58%),
              linear-gradient(-63deg, transparent 47%, #fff 49% 56%, transparent 58%);
  border-bottom: 3px solid #fff;
}
.page-shell.no-rail { max-width: var(--content); }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin: -18px 0 24px; color: var(--muted); font-size: 13px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wine); }
.content .eyebrow, .side-rail .eyebrow, .search-dialog .eyebrow {
  color: var(--wine); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.content-panel {
  padding: clamp(24px, 4vw, 52px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(23, 32, 51, .055);
}
.content-panel > :first-child, .content-panel header > :first-child { margin-top: 0; }
.content-panel > :last-child { margin-bottom: 0; }
.footer-inner { grid-template-columns: 1.3fr .8fr 1fr .8fr; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 20px; border: 1px solid transparent; border-radius: 12px;
  font-weight: 850; text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--wine); }
.button-primary:hover { color: #fff; background: var(--wine-dark); }
.button-ghost { color: var(--ink); background: rgba(255,255,255,.82); border-color: rgba(255,255,255,.6); }
.button-ghost:hover { color: var(--wine); background: #fff; }
.hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  min-height: 540px; margin-top: -12px; overflow: hidden;
  color: #fff; background: #14182a; border-radius: 30px;
  box-shadow: 0 28px 75px rgba(22, 23, 38, .18);
}
.hero-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; padding: clamp(34px, 5vw, 68px);
}
.content .hero .eyebrow { color: #ffd9a0; }
.hero h1 {
  max-width: 650px; margin: 0; color: #fff;
  font-size: clamp(42px, 6vw, 72px); line-height: .98;
}
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin: 24px 0 0; color: #dfe4ed; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual {
  position: relative; min-height: 420px;
  background: linear-gradient(90deg, #14182a 0%, rgba(20,24,42,.1) 35%), url("/assets/hero-circus.png") center / cover no-repeat;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,24,42,.35), transparent 50%);
}
.hero-visual span {
  position: absolute; right: 28px; bottom: 26px; z-index: 2; color: rgba(255,255,255,.8);
  font: italic 19px/1.25 Georgia, serif; text-align: right;
}
.home-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 26px 0 80px; overflow: hidden; background: var(--line);
  border: 1px solid var(--line); border-radius: 18px;
}
.home-stats div { padding: 22px 24px; background: #fff; }
.home-stats strong { display: block; color: var(--wine); font: 700 34px/1 Georgia, serif; }
.home-stats span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.home-intro {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 60px;
  align-items: start; margin: 0 0 70px; padding: 0 clamp(0px, 3vw, 30px);
}
.home-intro h2 { max-width: 540px; font-size: clamp(36px, 5vw, 54px); }
.home-intro > p { margin-top: 34px; color: #475166; font-size: 19px; }
.home-section, .archive-preview { margin-top: 72px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { display: flex; flex-direction: column; padding: 0; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-image { display: block; overflow: hidden; }
.feature-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.feature-card:hover .feature-image img { transform: scale(1.025); }
.feature-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.card-label { margin: 0 0 7px !important; color: var(--coral) !important; font-size: 12px !important; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.feature-card h3 { margin: 0 0 11px; font-size: 25px; }
.feature-card h3 a { color: var(--ink); text-decoration: none; }
.feature-card p { margin: 0 0 16px; }
.text-link { margin-top: auto; font-size: 14px; font-weight: 850; text-decoration: none; }
.archive-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.archive-links a {
  padding: 22px; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 16px; font: 700 20px/1.2 Georgia, serif; text-decoration: none;
}
.archive-links a:hover { color: var(--wine); background: #fff; box-shadow: 0 10px 25px rgba(23,32,51,.07); }
.section-hero { max-width: 850px; margin: 0 auto 52px; text-align: center; }
.section-hero .eyebrow { justify-content: center; }
.section-hero h1 { margin-bottom: 18px; }
.section-hero > p:last-child { margin-inline: auto; color: var(--muted); font-size: 19px; }
.section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-header { max-width: 780px; }
.article-header h1 { font-size: clamp(38px, 5.5vw, 62px); }
.article-figure { margin: 34px 0; }
.article-figure img { display: block; width: 100%; max-height: 620px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.article-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.prose section { scroll-margin-top: 100px; }
.mechanic { margin: 22px 0; padding: 20px 22px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 15px; }
.mechanic h3 { margin-top: 0; font-size: 22px; }
.mechanic p:last-child { margin-bottom: 0; }
.check-list { padding: 0 !important; list-style: none; }
.check-list li { position: relative; padding: 13px 16px 13px 44px; background: #f7faf9; border-bottom: 1px solid #dce8e4; }
.check-list li:first-child { border-radius: 14px 14px 0 0; }
.check-list li:last-child { border: 0; border-radius: 0 0 14px 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 17px; color: var(--blue); font-weight: 900; }
.safety-note { margin-top: 46px; padding: 24px; background: #eef7f7; border-left: 5px solid var(--blue); border-radius: 0 16px 16px 0; }
.safety-note h2 { margin-top: 0; font-size: 27px; }
.faq { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 8px; font-size: 21px; }
.faq p { margin-bottom: 0; }
.next-step, .contact-note {
  margin-top: 48px; padding: 27px; color: #fff; background: #20263b; border-radius: 18px;
}
.content .next-step .eyebrow { color: #ffd9a0; }
.next-step h2, .contact-note h2 { margin: 0 0 10px; color: #fff; }
.next-step p, .contact-note p { color: #dfe4ed; }
.contact-note a { color: #ffd9a0; }
.updated { color: var(--muted); font-size: 14px; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.document-card { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.document-card h2 { margin: 0 0 10px; font-size: 29px; }
.document-card h2 a { color: var(--ink); text-decoration: none; }
.document-card > p:not(.card-label) { color: var(--muted); }
.rail-links { margin: 0; padding: 0 !important; list-style: none; }
.stats-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.stats-card dl div { min-width: 0; padding: 10px 6px; text-align: center; background: #fff; border-radius: 10px; }
.stats-card dt { color: var(--wine); font: 700 22px/1 Georgia, serif; }
.stats-card dd { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.25; }
.dialog-search-input {
  width: 100%; margin-top: 20px; padding: 14px 16px; color: var(--ink);
  border: 1px solid #cfc6ba; border-radius: 12px; outline: none;
}
.dialog-search-input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123,36,56,.12); }
.rail-search button { width: auto; min-width: 64px; padding: 0 11px; font-size: 13px; font-weight: 800; }
.search-count, .search-hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.empty-state { max-width: 760px; margin-inline: auto; text-align: center; }
.empty-state .eyebrow { justify-content: center; }
.legacy-article .toc + #photos { scroll-margin-top: 100px; }
.legacy-article .sigFreeContainer { padding-left: 0 !important; }

@media (max-width: 1040px) {
  .feature-grid, .section-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; margin-top: -70px; background-image: linear-gradient(180deg, #14182a 0%, rgba(20,24,42,.05) 38%), url("/assets/hero-circus.png"); }
}

@media (max-width: 680px) {
  .hero { min-height: 0; border-radius: 20px; }
  .hero-copy { padding: 32px 24px; }
  .hero h1 { font-size: 40px; overflow-wrap: anywhere; }
  .hero-copy { min-width: 0; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-visual { min-height: 280px; margin-top: -34px; }
  .home-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 54px; }
  .home-intro { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .home-intro > p { margin-top: 0; }
  .feature-grid, .section-grid, .archive-links, .document-grid { grid-template-columns: 1fr; }
  .content-panel { padding: 24px 18px; }
  .stats-card dl { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
