/* Orientación Educativa Vehicular — hoja de estilos editorial */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-var-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --bg: #FAF6EF; --surface: #FFFDF9; --line: #E7DFD0;
  --petrol: #0F3D4C; --teal: #1F8A8A; --teal-ink: #166D6D; /* teal-ink: AA en texto pequeño */
  --terra: #C8553D; --terra-ink: #A3412D; --gold: #E9B949; --gold-soft: #FBF0D2;
  --ink: #222B2E; --muted: #4E5A5E;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --side: 300px; --measure: 68ch;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.7; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .38 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--petrol); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); margin: .2em 0 .35em; font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.4rem 0 .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--petrol); color: var(--bg); padding: .7rem 1.1rem; border-radius: 6px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; color: var(--bg); }
main:focus { outline: none; }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--petrol); color: #EFE7D8; z-index: 50; overflow-y: auto; }
.sidebar-inner { min-height: 100%; display: flex; flex-direction: column; padding: 2.2rem 2rem 1.8rem; background:
  radial-gradient(circle at 110% 0%, rgba(233,185,73,.16), transparent 40%),
  repeating-linear-gradient(180deg, transparent 0 22px, rgba(233,185,73,.0) 22px 40px); }
.sidebar a { color: #F5EEE1; text-decoration: none; }
.sidebar :focus-visible { outline-color: var(--gold); }
.brand { display: flex; align-items: flex-start; gap: .85rem; }
.mark { width: 46px; height: 46px; flex: none; }
.sidebar .mark circle:first-child { fill: #0A2E3A; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.02; font-weight: 500; letter-spacing: -.01em; }
.brand-name em { color: var(--gold); font-style: italic; }
.sidebar-tag { font-size: .95rem; line-height: 1.5; color: #CFD9D8; margin: 1.4rem 0 2rem; padding-left: 1rem; border-left: 2px solid var(--terra); }
.nav-main, .nav-legal { list-style: none; margin: 0; padding: 0; }
.nav-main li a { position: relative; display: block; padding: .55rem 0 .55rem 1.4rem; font-size: 1.08rem; font-weight: 500; transition: transform .3s var(--ease); }
.nav-main li a::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: rgba(239,231,216,.35); transition: transform .3s var(--ease), background .3s; transform-origin: left; }
.nav-main li a:hover { transform: translateX(4px); }
.nav-main li a:hover::before, .nav-main a[aria-current]::before { background: var(--gold); transform: scaleX(1.6); }
.nav-main a[aria-current] { color: var(--gold); }
.nav-legal { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed rgba(233,185,73,.35); display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .92rem; }
.nav-legal a { color: #CFD9D8; } .nav-legal a:hover, .nav-legal a[aria-current] { color: var(--gold); }
.sidebar-notice { margin-top: auto; padding-top: 2rem; font-size: .82rem; line-height: 1.5; color: #C3CFCE; }

.topbar { display: none; }
.page { margin-left: var(--side); min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1180px; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem) 4rem; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .topbar { display: flex; position: sticky; top: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; background: rgba(250,246,239,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .brand-top { color: var(--petrol); text-decoration: none; align-items: center; font-family: var(--serif); font-size: 1.02rem; line-height: 1.15; font-weight: 600; }
  .brand-top .mark { width: 34px; height: 34px; }
  .menu-btn { position: relative; z-index: 80; display: inline-flex; align-items: center; gap: .55rem; background: var(--petrol); color: var(--bg); border: 0; border-radius: 999px; padding: .55rem .95rem; font: 600 .95rem var(--sans); cursor: pointer; }
  .menu-icon { display: grid; gap: 4px; width: 18px; }
  .menu-icon i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .menu-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-icon i:nth-child(2) { opacity: 0; }
  .menu-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu-open .menu-btn { background: var(--gold); color: var(--petrol); }
  .js .sidebar { width: 100%; padding-top: 4.2rem; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .js .menu-open .sidebar { visibility: visible; opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .menu-open .topbar { background: var(--petrol); border-color: transparent; }
  .menu-open .brand-top { color: var(--bg); }
  .menu-open { overflow: hidden; }
  .sidebar .brand { display: none; }
  .nav-main li a { font-family: var(--serif); font-size: 1.9rem; padding: .35rem 0 .35rem 1.6rem; }
  .no-js .sidebar { position: static; width: auto; }
  .page { margin-left: 0; }
}

/* ---------- Common ---------- */
.kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--terra-ink); margin: 0; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.32rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.page-head { max-width: 860px; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 120px; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 28px); }
.btn, .btn-ghost { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .25s var(--ease); }
.btn { background: var(--teal-ink); color: #FFFDF9; }
.btn:hover { transform: translateY(-2px); background: var(--petrol); text-decoration: none; }
.btn-ghost { color: var(--petrol); border: 1.5px solid var(--petrol); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost.light { color: var(--bg); border-color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.num { font-family: var(--serif); font-weight: 800; color: var(--gold); -webkit-text-stroke: 1.2px var(--petrol); paint-order: stroke fill; line-height: 1; font-variant-numeric: lining-nums; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: center; min-height: min(78vh, 720px); }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.03em; }
.hl { position: relative; font-style: italic; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .02em; height: .2em; background: var(--gold); z-index: -1; border-radius: 2px; transform-origin: left; animation: draw 1.1s .5s var(--ease) both; }
.hero-art { position: relative; }
.road-line { animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -560; } }
@keyframes draw { from { transform: scaleX(0); } }
.principles dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0 5rem; border-top: 1px solid var(--petrol); }
.principles dl > div { padding: 1.4rem 1.6rem 0 0; }
.principles dl > div + div { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.principles dt { font-family: var(--serif); font-size: 1.45rem; color: var(--petrol); font-style: italic; }
.principles dd { margin: .3rem 0 0; color: var(--muted); font-size: 1rem; }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: .3rem 3rem; align-items: end; margin-bottom: 2.2rem; }
.section-head .kicker { grid-column: 1 / -1; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card a { position: relative; display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.6rem 1.5rem 1.4rem; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; }
.guide-card a::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.guide-card a:hover::before, .guide-card a:focus-visible::before { transform: scaleX(1); }
.guide-card .num { font-size: 3.4rem; transition: transform .45s var(--ease); }
.guide-card a:hover .num { transform: translateY(-4px); }
.card-title { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--petrol); font-weight: 600; }
.card-sum { display: block; margin-top: .4rem; font-size: .98rem; line-height: 1.5; color: var(--muted); }
.card-arrow { margin-top: auto; color: var(--teal-ink); font-size: 1.2rem; transition: transform .3s var(--ease); }
.guide-card a:hover .card-arrow { transform: translateX(6px); }
.quote-band { margin: 5rem 0; padding: clamp(2.2rem, 5vw, 4rem); background: var(--petrol); color: var(--bg); border-radius: 4px; position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, rgba(233,185,73,.35) 0 30px, transparent 30px 52px); }
.quote-band blockquote { position: relative; margin: 0 0 2rem; max-width: 30ch; font-family: var(--serif); font-size: clamp(1.6rem, 3.3vw, 2.6rem); line-height: 1.18; font-style: italic; background: var(--petrol); padding-right: 1rem; }
.quote-band blockquote p { margin: 0; }
.more h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.more-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.more-grid a { display: flex; flex-direction: column; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), border-color .3s; }
.more-grid a:hover { transform: translateY(-3px); border-color: var(--teal); }
.more-k { font-family: var(--serif); font-size: 2.4rem; color: var(--terra-ink); line-height: 1; margin-bottom: 1.4rem; font-style: italic; }
.more-t { font-family: var(--serif); font-size: 1.35rem; color: var(--petrol); font-weight: 600; }
.more-d { color: var(--muted); font-size: .98rem; }

/* ---------- Guides index ---------- */
.index-list { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.index-list a { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1.2rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .3s var(--ease); }
.index-list a:hover { background: linear-gradient(90deg, var(--surface), transparent); }
.index-list .num { font-size: 2.6rem; }
.il-title { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--petrol); font-weight: 600; line-height: 1.2; }
.il-sum { display: block; color: var(--muted); font-size: 1rem; }
.il-min { font-size: .88rem; color: var(--teal-ink); font-weight: 600; white-space: nowrap; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: var(--side); right: 0; height: 4px; z-index: 70; background: transparent; }
.progress span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--terra) 0 16px, var(--gold) 16px 24px); transform: scaleX(0); transform-origin: left; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .92rem; color: var(--muted); }
.article-head { position: relative; max-width: 900px; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.article-num { margin: 1.4rem 0 0; font-size: clamp(5rem, 12vw, 9rem); font-family: var(--serif); font-weight: 800; line-height: .8; color: var(--gold); -webkit-text-stroke: 1.5px var(--petrol); paint-order: stroke fill; }
.article-head h1 { margin-top: .4rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; font-weight: 600; color: var(--teal-ink); text-transform: uppercase; letter-spacing: .08em; }
.meta span + span::before { content: "—"; margin-right: 1.4rem; color: var(--terra); }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 230px; gap: 4rem; margin-top: 2.5rem; }
.toc { grid-column: 2; grid-row: 1; }
.toc details { position: sticky; top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--line); }
.toc summary { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--terra-ink); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; counter-reset: t; padding: 0; margin: 1rem 0 0; font-size: .95rem; line-height: 1.4; }
.toc li { counter-increment: t; margin-bottom: .75rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; position: relative; }
.toc a::before { content: counter(t, decimal-leading-zero); display: block; font-size: .78rem; font-weight: 700; color: var(--teal-ink); }
.toc a:hover, .toc a.is-current { color: var(--petrol); }
.toc a.is-current::after { content: ""; position: absolute; left: calc(-1.2rem - 2px); top: 0; bottom: 0; width: 2px; background: var(--terra); }
.prose { grid-column: 1; grid-row: 1; max-width: var(--measure); }
.prose.wide { max-width: var(--measure); }
.prose > section:first-child h2 { margin-top: 0; }
.prose h2 { scroll-margin-top: 2rem; }
.prose p, .prose li { hyphens: auto; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose ul li::marker { color: var(--terra); }
.prose ol li::marker { color: var(--teal-ink); font-weight: 700; font-family: var(--serif); }
.prose strong { color: var(--petrol); }
.box { margin: 2rem 0; padding: 1.3rem 1.5rem; border-radius: 3px; }
.box p { margin: 0; }
.box-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; margin-bottom: .4rem !important; }
.box-key { border: 2px solid var(--terra); border-left-width: 8px; background: var(--surface); }
.box-key .box-label { color: var(--terra-ink); }
.box-key p:last-child { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--petrol); }
.box-note { background: var(--gold-soft); border-top: 3px solid var(--gold); }
.box-note .box-label { color: #6B4E0A; }
.disclaimer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; max-width: calc(var(--measure) + 230px + 4rem); }
.pager a { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; text-decoration: none; transition: border-color .3s, transform .3s var(--ease); }
.pager a:hover { border-color: var(--teal); transform: translateY(-2px); }
.pager .next { text-align: right; }
.pager-k { font-size: .85rem; font-weight: 700; color: var(--teal-ink); text-transform: uppercase; letter-spacing: .08em; }
.pager-t { font-family: var(--serif); font-size: 1.3rem; color: var(--petrol); line-height: 1.2; }

/* ---------- Glossary ---------- */
.letters { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: .7rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.letters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.letters a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--petrol); text-decoration: none; transition: background .2s, color .2s; }
.letters a:hover { background: var(--petrol); color: var(--bg); }
.glossary section { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); max-width: 920px; scroll-margin-top: 5rem; }
.letter { margin: 0; font-size: 4rem; font-style: italic; color: var(--terra-ink); font-weight: 400; }
.glossary dl { margin: 0; }
.glossary dl > div { padding: .4rem 0 1rem; }
.glossary dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--petrol); }
.glossary dd { margin: .15rem 0 0; max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--petrol); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--petrol); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 2rem; height: 2rem; border: 1.5px solid var(--teal-ink); border-radius: 50%; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--teal-ink); transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details[open] .plus { background: var(--gold-soft); }
.faq-a { padding: 0 3.5rem 1.4rem 0; max-width: 68ch; }
.faq-a p { margin: 0; }

/* ---------- Admin / legal ---------- */
.home-contact { margin: 1.4rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--terra); background: var(--surface); font-style: normal; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.home-contact p { margin: 0; }
.home-contact p + p { margin-top: .4rem; }
.home-contact strong { color: var(--petrol); }
.card-admin { margin: 2.5rem 0; padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--petrol); border-radius: 3px; }
.card-admin dl { margin: 1rem 0 0; display: grid; gap: .9rem; }
.card-admin dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.card-admin dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--petrol); overflow-wrap: anywhere; }
.big-mail { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.6rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
.legal-quote { margin: 0 0 2rem; padding: 1.5rem 1.8rem; border-left: 6px solid var(--terra); background: var(--surface); font-family: var(--serif); font-size: 1.25rem; color: var(--petrol); line-height: 1.5; }
.legal-quote p { margin: 0; }
.updated { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--petrol); color: #E6E0D3; padding: 0 clamp(1.25rem, 5vw, 4.5rem) 2rem; }
.footer-road { height: 6px; margin: 0 calc(-1 * clamp(1.25rem, 5vw, 4.5rem)) 2.5rem; background: repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 44px) center / 100% 2px no-repeat, var(--terra); background-color: #0A2E3A; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; max-width: 1100px; }
.footer-name { font-family: var(--serif); font-size: 1.6rem; color: #FAF6EF; margin: 0 0 .7rem; }
.footer-notice { font-size: 1rem; line-height: 1.6; max-width: 56ch; margin: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; columns: 2; font-size: .98rem; }
.footer li { margin-bottom: .4rem; }
.footer a { color: #F3EBDC; }
.footer a:hover { color: var(--gold); }
.footer :focus-visible { outline-color: var(--gold); }
.footer-contact { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(233,185,73,.25); font-size: 1rem; font-style: normal; line-height: 1.6; overflow-wrap: anywhere; }
.footer-contact p { margin: .35rem 0; }
.footer-contact strong { color: var(--bg); }
.footer-meta { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(233,185,73,.25); font-size: .88rem; color: #C3CFCE; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc { grid-column: 1; grid-row: auto; }
  .toc details { position: static; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; }
  .toc summary::after { content: " +"; } .toc details[open] summary::after { content: " –"; }
  .prose { grid-row: auto; }
}
@media (max-width: 960px) {
  .progress { left: 0; top: auto; bottom: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; max-width: 420px; margin: 0 0 -1rem auto; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 1.0625rem; }
  .principles dl { grid-template-columns: 1fr; }
  .principles dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.2rem; }
  .section-head { grid-template-columns: 1fr; }
  .index-list a { grid-template-columns: 3.2rem 1fr; }
  .il-min { grid-column: 2; }
  .pager, .footer-grid { grid-template-columns: 1fr; }
  .glossary section { grid-template-columns: 1fr; gap: .3rem; }
  .faq-a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .sidebar, .topbar, .footer, .progress, .toc, .pager { display: none; } .page { margin: 0; } }
