/* ALPERN visual language v1 — "Swiss private bank × the animated films we grew up with".
   Vellum paper, navy + brass, soft depth (puffy surfaces, layered shadows), 3D props, dial coins.
   Fonts: assets/fonts.css (DM Serif Display, DM Sans, DM Mono). Rules: 06 Design/Design system.md */

:root {
  --vellum:#F6F1E7; --vellum2:#EDE5D6; --paper:#FFFFFF; --ink:#0F1B31; --body:#2A3346; --muted:#5E6779; --stone:#6A7285;
  --navy:#14254A; --navy2:#22396A; --vault:#0C1830; --mist:#E6ECF4;
  --brass:#A57728; --brass2:#CBA45B; --brass3:#E9D3A3; --brass-l:#F5EBD6;
  --pine:#1E5E58; --pine-l:#E2EFEC; --signal:#B3122B; --signal-l:#FBE8EB; --line:#E3D9C7;
  --display:"DM Serif Display", Georgia, serif; --text:"DM Sans", -apple-system, "Segoe UI", sans-serif; --mono:"DM Mono", Menlo, monospace;
  --lift-1: 0 1px 1px rgba(60,40,10,.04), 0 2px 4px rgba(60,40,10,.04), 0 6px 14px rgba(60,40,10,.06);
  --lift-2: 0 1px 2px rgba(60,40,10,.05), 0 4px 8px rgba(60,40,10,.05), 0 14px 28px rgba(60,40,10,.08), 0 30px 60px -10px rgba(20,30,60,.12);
  --lift-3: 0 2px 4px rgba(60,40,10,.06), 0 10px 20px rgba(60,40,10,.07), 0 28px 56px rgba(20,30,60,.14), 0 60px 110px -20px rgba(20,30,60,.22);
  --rim: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(120,90,40,.06);
  --puffy: linear-gradient(180deg, #ffffff 0%, #fbf7ef 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: radial-gradient(1200px 600px at 80% -10%, #fff8ea 0%, transparent 60%), var(--vellum); color: var(--ink); font: 400 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.sc { font: 600 11px var(--text); letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.012em; color: var(--ink); }
em.b, .em { font-style: italic; color: var(--brass); }
.cite { font: 400 12px var(--mono); color: var(--navy2); background: var(--mist); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.guil { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 600 15.5px var(--text); padding: 14px 24px; border-radius: 999px; text-decoration: none;
  transition: transform .18s cubic-bezier(.3,1.5,.5,1), box-shadow .18s, background .18s; cursor: pointer; border: 0; white-space: nowrap; }
.btn.gold { color: #fff; background: linear-gradient(180deg, #e2bd73 0%, #c19243 45%, #a57728 100%); text-shadow: 0 1px 0 rgba(90,60,10,.35);
  box-shadow: inset 0 1.5px 0 rgba(255,245,215,.8), inset 0 -3px 0 rgba(110,74,16,.35), 0 2px 0 #8a6220, 0 10px 22px -6px rgba(140,98,30,.6); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255,245,215,.8), inset 0 -3px 0 rgba(110,74,16,.35), 0 4px 0 #8a6220, 0 18px 30px -8px rgba(140,98,30,.6); }
.btn.gold:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(90,60,10,.35), 0 0 0 #8a6220, 0 4px 10px -4px rgba(140,98,30,.6); }
.btn.glass { color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.25), 0 10px 24px -10px rgba(0,0,0,.5); }
.btn.glass:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.btn.soft { color: var(--ink); background: var(--puffy); box-shadow: var(--rim), var(--lift-1), inset 0 0 0 1px rgba(60,40,10,.06); }
.btn.soft:hover { transform: translateY(-2px); box-shadow: var(--rim), var(--lift-2), inset 0 0 0 1px rgba(60,40,10,.06); }
.btn.soft.done { color: #fff; background: linear-gradient(180deg, #2b7a72, #1e5e58); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 #154440, 0 10px 20px -8px rgba(30,94,88,.6); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn .ar { transition: transform .18s; } .btn:hover .ar { transform: translateX(4px); }

/* ---------- dial coin: the ALPERN numbering mark ---------- */
.dial { --s: 56px; position: relative; width: var(--s); height: var(--s); flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: url('props/coin.webp') center/contain no-repeat; filter: drop-shadow(0 6px 8px rgba(90,60,10,.35)) drop-shadow(0 2px 2px rgba(90,60,10,.25)); }
.dial::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #fff, #f6f1e6 60%, #e5dccb);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.28), 0 0 0 1px rgba(122,84,20,.4); }
.dial::after { content: ""; position: absolute; inset: 23%; border-radius: 50%; border: 1px solid rgba(165,119,40,.35); }
.dial i { position: relative; z-index: 1; font: 400 calc(var(--s) * .4)/1 var(--display); font-style: normal; color: var(--navy); padding-top: 2px; letter-spacing: -.02em; }

/* ---------- floating glass nav ---------- */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1160px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px 7px 18px; border-radius: 999px; background: rgba(251,247,240,.74); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.5), 0 1px 2px rgba(60,40,10,.06), 0 12px 32px -8px rgba(20,30,60,.22); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark .m { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 400 19px var(--display); color: #fff;
  background: radial-gradient(circle at 35% 28%, #2e4a80, var(--navy) 65%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 2px var(--brass2), 0 4px 10px rgba(20,30,60,.3); }
.mark img.logo { height: 50px; width: auto; display: block; } footer.site .mark img.logo { height: 52px; margin-bottom: 6px; }
.mark b { display: block; font: 600 15px var(--text); letter-spacing: .38em; } .mark small { display: block; font: 500 9.5px var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.nav nav { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav nav a.l { padding: 9px 14px; border-radius: 999px; text-decoration: none; transition: background .15s; } .nav nav a.l:hover, .nav nav a.l.on { background: rgba(20,37,74,.07); }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #34c46b; box-shadow: 0 0 0 3px rgba(52,196,107,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52,196,107,0); } }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- puffy surfaces ---------- */
.puffy { background: var(--puffy); border-radius: 28px; box-shadow: var(--rim), var(--lift-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--text); color: #55607a; padding: 6px 11px; border-radius: 999px; background: var(--vellum);
  box-shadow: inset 0 1px 2px rgba(60,40,10,.10), 0 1px 0 #fff; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1);
  font-size: 15px; text-decoration: none; transition: transform .2s; }
.chip:hover { transform: translateY(-3px); } .chip img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(60,40,10,.25)); }
.chip b { font-weight: 600; } .chip span { color: var(--stone); }

/* section heads */
section.blk { padding: 110px 0 0; }
.sh { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sh .sc { color: var(--brass); } .sh h2 { font-size: 52px; line-height: 1.03; margin: 12px 0 12px; } .sh p { margin: 0; color: #424c61; font-size: 17.5px; }
.sh.left { text-align: left; margin-left: 0; }

/* guide cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.card { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: 30px; background: var(--puffy); box-shadow: var(--rim), var(--lift-2); text-decoration: none; color: inherit;
  transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .25s; }
.card:hover { box-shadow: var(--rim), var(--lift-3); }
.card .img { position: relative; aspect-ratio: 16/10; border-radius: 22px; background: #dfe6f0 center/cover no-repeat; }
.card .img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 35%); }
.card .dial { position: absolute; left: 22px; top: 22px; --s: 50px; }
.card .c { padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .sc { color: var(--brass); font-size: 10px; } .card h3 { font-size: 23px; line-height: 1.15; } .card p { margin: 0; font-size: 15px; color: #424c61; line-height: 1.5; }
.card .m { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.card .ribbon { position: absolute; right: 22px; top: 22px; padding: 8px 14px; border-radius: 999px; font: 600 10.5px var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--brass3);
  background: rgba(20,37,74,.82); backdrop-filter: blur(6px); box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.card .read-tag { display: none; position: absolute; right: 22px; top: 22px; padding: 7px 12px; border-radius: 999px; font: 600 12px var(--text); color: #fff; background: var(--pine); box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.card.read .read-tag { display: block; }
.card.big { grid-column: 1 / -1; flex-direction: row; gap: 10px; } .card.big .img { aspect-ratio: auto; flex: 1.15; min-height: 320px; } .card.big .c { flex: 1; padding: 26px 22px 16px; } .card.big h3 { font-size: 34px; }

/* tiles with props */
.tile { position: relative; padding: 76px 22px 24px; border-radius: 28px; background: var(--puffy); box-shadow: var(--rim), var(--lift-2); transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s; text-align: center; text-decoration: none; color: inherit; display: block; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--rim), var(--lift-3); }
.tile .pp { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; }
.tile .pp::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(233,196,120,.55), rgba(233,196,120,0) 70%); }
.tile .pp img { position: relative; width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(60,40,10,.3)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.tile:hover .pp img { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
.tile b { display: block; font: 400 21px/1.2 var(--display); margin-bottom: 6px; } .tile span { font-size: 14.5px; color: var(--stone); line-height: 1.5; }

/* vault (dark section) */
.vault { position: relative; max-width: 1240px; margin: 110px auto 0; border-radius: 40px; overflow: hidden; color: #e7edf6; padding: 80px 70px;
  background: radial-gradient(800px 500px at 15% 0%, #23407a 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #1a3264 0%, transparent 60%), var(--vault);
  box-shadow: var(--lift-3), inset 0 1px 0 rgba(255,255,255,.08); }
.vault h2 { color: #fff; } .vault .sc { color: var(--brass2); } .vault p { color: #b7c4d8; }
.glass { position: relative; padding: 24px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.6); }

/* footer */
footer.site { margin-top: 110px; padding: 0 16px 16px; }
footer.site .box { max-width: 1240px; margin: 0 auto; border-radius: 36px; background: var(--vault); color: #8ea0bd; padding: 50px 60px 28px; font-size: 14px; box-shadow: var(--lift-2); }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
footer.site h4 { font: 600 11px var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--brass2); margin: 0 0 12px; }
footer.site a { display: block; color: #dbe4f1; margin-bottom: 8px; text-decoration: none; } footer.site a:hover { color: #fff; }
footer.site .mark { color: #fff; } footer.site .mark small { color: var(--brass3); }
footer.site .legal { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 12.5px; line-height: 1.6; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .live i, .float img { animation: none !important; } html { scroll-behavior: auto; } }

/* =====================================================================
   READER (guides, notes, cheat sheets, templates)
   ===================================================================== */
.rhero { padding: 92px 16px 0; }
.rwin { position: relative; max-width: 1240px; margin: 0 auto; height: 440px; border-radius: 36px; overflow: hidden; background: var(--vault) center 35%/cover no-repeat; box-shadow: var(--lift-3); }
.rwin::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,48,.35) 0%, rgba(12,24,48,0) 30%, rgba(12,24,48,0) 55%, rgba(12,24,48,.55) 100%); }
.rwin.plain { height: 220px; background: radial-gradient(800px 400px at 20% 0%, #23407a, transparent 60%), var(--vault); }
.letter { position: relative; z-index: 2; max-width: 1000px; margin: -170px auto 0; background: var(--puffy); border-radius: 30px; padding: 38px 46px 0; box-shadow: var(--rim), var(--lift-3); overflow: hidden; }
.rwin.plain + .letter { margin-top: -120px; }
.letter::before { content: ""; position: absolute; top: 0; left: 46px; right: 46px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--brass), var(--brass2), var(--brass)); }
.letter .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.letter .top .sc { color: var(--brass); } .letter .top .ref { font: 400 12px var(--mono); color: var(--stone); }
.letter h1 { font-size: 50px; line-height: 1.04; margin: 12px 0 14px; }
.letter .stand { font-size: 19px; line-height: 1.5; color: #424c61; margin: 0 0 22px; max-width: 760px; }
.letter .acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -46px; border-top: 1px solid var(--line); background: rgba(246,241,231,.6); }
.facts > div { position: relative; padding: 16px 22px 18px; font-size: 14.5px; line-height: 1.45; } .facts > div + div { border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 46px; }
.facts .sc { display: block; color: var(--stone); font-size: 10px; margin-bottom: 4px; }
.facts .key { background: var(--navy); color: #fff; overflow: hidden; } .facts .key .sc { color: var(--brass2); } .facts .key b { font: 400 16.5px/1.35 var(--display); font-weight: 400; }
.verified { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 0 0; font-size: 13px; color: var(--stone); text-align: center; flex-wrap: wrap; }
.verified i { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #ecd08e, #a57728 62%, #7a5414); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 2px 5px rgba(122,84,20,.4); }
.verified b { color: var(--ink); font-weight: 600; }

.rbody { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: 56px; justify-content: center; padding: 56px 28px 10px; }
.rtoc { position: sticky; top: 96px; align-self: start; }
.rtoc .box { padding: 18px 16px 14px; border-radius: 24px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); }
.rtoc .sc { color: var(--stone); font-size: 10px; display: block; margin: 0 4px 10px; }
.rtoc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.rtoc li a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 6px 6px; border-radius: 12px; font-size: 14px; line-height: 1.3; text-decoration: none; color: #424c61; transition: background .15s; }
.rtoc li a:hover, .rtoc li a.on { background: var(--vellum); color: var(--ink); }
.rtoc li a .dial { --s: 26px; } .rtoc li a .dot { width: 26px; text-align: center; color: var(--brass); }
.rtoc .prog { margin: 12px 4px 4px; height: 6px; border-radius: 3px; background: var(--vellum2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(60,40,10,.12); }
.rtoc .prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass2), var(--brass)); border-radius: 3px; transition: width .2s; }
.rtoc .side-acts { margin-top: 12px; display: grid; gap: 8px; }

/* prose */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--body); min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--navy2); text-decoration-color: var(--brass2); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { display: flex; align-items: center; gap: 16px; font-size: 34px; line-height: 1.12; margin: 64px 0 20px; scroll-margin-top: 100px; }
.prose h2 .dial { --s: 52px; }
.prose h3 { font-size: 23px; line-height: 1.2; margin: 34px 0 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; } .prose li { margin: 0 0 8px; } .prose li::marker { color: var(--brass); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 34px 0; }
.prose code { font: 400 14px var(--mono); background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: 0 0 22px; padding: 16px 20px; border-radius: 20px; background: var(--vellum2); color: #424c61; font-size: 15.5px; line-height: 1.6; box-shadow: inset 0 1px 3px rgba(60,40,10,.08); }
.prose blockquote p { margin: 0; }
.tablewrap { margin: 18px 0 26px; border-radius: 22px; overflow: hidden; overflow-x: auto; background: #fff; box-shadow: var(--rim), var(--lift-1), 0 0 0 1px rgba(60,40,10,.05); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th { background: var(--navy); color: #fff; text-align: left; font: 600 13px var(--text); letter-spacing: .02em; padding: 12px 14px; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: #fbf8f2; }
.prose figure { margin: 26px 0; padding: 22px; border-radius: 26px; background: #fff; box-shadow: var(--rim), var(--lift-2); }
.prose figure svg, .prose figure img { width: 100%; height: auto; display: block; }
.prose figcaption { margin-top: 12px; font-size: 13.5px; color: var(--stone); text-align: center; }
.prose li.check { list-style: none; margin-left: -22px; }
.prose li.check label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--rim), var(--lift-1); cursor: pointer; line-height: 1.5; font-size: 16px; }
.prose li.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); flex: none; }
.prose li.check label:has(input:checked) { background: var(--pine-l); }
/* callouts */
.callout { position: relative; margin: 26px 0; padding: 22px 24px 20px 24px; border-radius: 24px; background: var(--puffy); box-shadow: var(--rim), var(--lift-2); }
.callout .ttl { display: flex; align-items: center; gap: 10px; font: 600 11px var(--text); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
.callout .ttl i { display: none; }
.callout .ttl img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(60,40,10,.25)); }
.callout p { margin: 0 0 10px; } .callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.c-glance { background: linear-gradient(180deg, #fffaf0, #fbf3e3); box-shadow: var(--rim), var(--lift-2), inset 0 0 0 1.5px var(--brass3); } .c-glance .ttl { color: var(--brass); }
.c-glance ol { counter-reset: g; list-style: none; padding: 0; } .c-glance ol li { counter-increment: g; position: relative; padding-left: 48px; min-height: 36px; margin-bottom: 12px; }
.c-glance ol li::before { content: counter(g); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font: 400 15px var(--display); color: var(--navy); background: radial-gradient(circle at 38% 30%, #fff, #f6f1e6 60%, #e5dccb); border-radius: 50%; box-shadow: 0 0 0 4px #c9a050, 0 0 0 5px #8a6220, 0 4px 8px rgba(90,60,10,.35); }
.c-key { background: linear-gradient(180deg, #f3f6fb, #e9eef6); } .c-key .ttl { color: var(--navy2); }
.c-warn { background: linear-gradient(180deg, #fff6f7, #fbe8eb); } .c-warn .ttl { color: var(--signal); }
.c-example { background: linear-gradient(180deg, #f2f8f6, #e2efec); } .c-example .ttl { color: var(--pine); }
.c-tip { background: linear-gradient(180deg, #fffaf0, #f5ebd6); } .c-tip .ttl { color: var(--brass); }
.c-note { background: var(--vellum2); box-shadow: inset 0 1px 3px rgba(60,40,10,.08); font-size: 15.5px; } .c-note .ttl { color: var(--stone); }
details.sources { margin: 50px 0 0; padding: 4px 22px; border-radius: 22px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); font-size: 15px; }
details.sources summary { cursor: pointer; padding: 16px 0; font: 400 21px var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.sources summary::after { content: "+"; font: 400 24px var(--text); color: var(--brass); } details.sources[open] summary::after { content: "–"; }
details.sources ul { padding-left: 18px; color: #424c61; }
.disclaimer { margin: 30px 0 0; padding: 18px 20px; border-radius: 20px; background: var(--vellum2); font-size: 14px; color: #55607a; box-shadow: inset 0 1px 3px rgba(60,40,10,.08); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 0; }
.pn a { display: block; padding: 16px 20px; border-radius: 22px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pn a:hover { transform: translateY(-3px); box-shadow: var(--rim), var(--lift-2); }
.pn small { display: block; font: 600 10.5px var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; } .pn b { font: 400 18px/1.3 var(--display); }
.pn a.next { text-align: right; grid-column: 2; }

/* cheat sheet body on the web */
.cs .grid { column-count: 2; column-gap: 18px; }
.cs .box { break-inside: avoid; margin: 0 0 18px; padding: 18px 20px; border-radius: 22px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); font-size: 15px; line-height: 1.55; }
.cs .box.wide { column-span: all; }
.cs .box h2 { display: flex; align-items: center; gap: 10px; font: 400 21px/1.2 var(--display); margin: 0 0 10px; }
.cs .box h2 .n { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; font: 400 15px var(--display); color: var(--navy);
  background: radial-gradient(circle at 38% 30%, #fff, #f6f1e6 60%, #e5dccb); box-shadow: 0 0 0 3px #c9a050, 0 0 0 4px #8a6220, 0 3px 6px rgba(90,60,10,.3); margin-right: 4px; }
.cs .box h3 { font: 600 15px var(--text); margin: 10px 0 4px; }
.cs .box p { margin: 6px 0; } .cs .box ul, .cs .box ol { margin: 6px 0; padding-left: 20px; } .cs .box li { margin: 0 0 5px; }
.cs .key { background: linear-gradient(180deg, #f3f6fb, #e9eef6); } .cs .warn { background: linear-gradient(180deg, #fff6f7, #fbe8eb); } .cs .warn h2 { color: var(--signal); }
.cs .ok { background: linear-gradient(180deg, #f2f8f6, #e2efec); } .cs .ok h2 { color: var(--pine); } .cs .tip { background: linear-gradient(180deg, #fffaf0, #f5ebd6); }
.cs table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; } .cs th { text-align: left; background: var(--navy); color: #fff; padding: 7px 9px; font-weight: 600; font-size: 13px; }
.cs th:first-child { border-radius: 10px 0 0 0; } .cs th:last-child { border-radius: 0 10px 0 0; } .cs td { border-bottom: 1px solid var(--line); padding: 7px 9px; vertical-align: top; }
.cs .ref { font: 400 12px var(--mono); color: var(--navy2); background: var(--mist); border-radius: 5px; padding: 1px 5px; }
.cs .tag { display: inline-block; font: 700 12px var(--text); padding: 1px 7px; border-radius: 6px; color: #fff; background: var(--navy); margin-right: 4px; }
.cs .tag.k { background: var(--pine); } .cs .tag.s { background: #6b4fa0; } .cs .tag.t { background: #b45309; } .cs .tag.r { background: var(--signal); }
.cs .flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 8px 0; }
.cs .flow div { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--rim), var(--lift-1); font-size: 14.5px; } .cs .flow b { display: block; font-weight: 600; color: var(--ink); }
.cs .check li { list-style: none; margin-left: -20px; } .cs .check li::before { content: "☐  "; color: var(--brass); }
.cs .date { color: var(--signal); font-weight: 700; }
.cs-wide .rbody { grid-template-columns: minmax(0, 1100px); }

/* interactive forms (templates) */
.form-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 18px; margin: 0 0 12px; border-radius: 22px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); }
.form-step .dial { --s: 44px; }
.form-step .q { font-weight: 600; color: var(--ink); line-height: 1.45; }
.form-step .ev { font-size: 14.5px; color: #55607a; margin-top: 4px; } .form-step .ev b { color: var(--ink); font-weight: 600; }
.form-step .rule { margin-top: 6px; } .form-step .cite, .form-field .cite { white-space: normal; display: inline-block; line-height: 1.4; }
.form-step .tri { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tri button { font: 600 13px var(--text); padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer; color: #55607a; background: var(--vellum); box-shadow: inset 0 1px 2px rgba(60,40,10,.12), 0 1px 0 #fff; }
.tri button.on[data-v="yes"] { background: var(--pine); color: #fff; box-shadow: 0 4px 10px -4px rgba(30,94,88,.6); }
.tri button.on[data-v="no"] { background: var(--signal); color: #fff; box-shadow: 0 4px 10px -4px rgba(179,18,43,.6); }
.tri button.on[data-v="na"] { background: #8a93a6; color: #fff; }
.form-step textarea, .form-field textarea { width: 100%; margin-top: 10px; min-height: 44px; font: 400 15px var(--text); padding: 10px 14px; border: 0; border-radius: 14px; background: var(--vellum); box-shadow: inset 0 1px 3px rgba(60,40,10,.12); resize: vertical; color: var(--ink); }
.form-field { padding: 14px 18px; margin: 0 0 10px; border-radius: 20px; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); }
.form-field b { display: block; font-weight: 600; color: var(--ink); } .form-field small { display: block; color: #55607a; font-size: 14px; margin-top: 2px; }
.score { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0; padding: 16px 20px; border-radius: 24px; color: #fff;
  background: radial-gradient(500px 200px at 10% 0%, #23407a, transparent 70%), var(--vault); box-shadow: var(--lift-3); }
.score b { font: 400 26px var(--display); } .score .res { padding: 8px 16px; border-radius: 999px; font-weight: 600; background: rgba(255,255,255,.12); }
.score .res.hi { background: var(--signal); } .score .res.ok { background: var(--pine); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tabs button { font: 600 14px var(--text); padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer; color: #424c61; background: var(--puffy); box-shadow: var(--rim), var(--lift-1); }
.tabs button.on { color: #fff; background: linear-gradient(180deg, #2a4475, var(--navy)); box-shadow: 0 2px 0 #0b1630, 0 10px 20px -8px rgba(20,37,74,.6); }
.printnote { font-size: 13.5px; color: var(--stone); }

/* =====================================================================
   STUDENT SPACE INDEX
   ===================================================================== */
.desk { padding: 100px 16px 0; }
.desk .inner { position: relative; max-width: 1240px; margin: 0 auto; border-radius: 36px; padding: 56px 64px; overflow: visible; color: #fff;
  background: radial-gradient(800px 400px at 15% 0%, #23407a, transparent 60%), radial-gradient(600px 400px at 100% 100%, #1a3264, transparent 60%), var(--vault); box-shadow: var(--lift-3); }
.desk .grid2 { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.desk .sc { color: var(--brass2); } .desk h1 { color: #fff; font-size: 62px; line-height: 1; margin: 12px 0 14px; } .desk h1 em { color: var(--brass2); font-style: italic; }
.desk p { color: #c4cfe0; font-size: 18px; margin: 0 0 22px; max-width: 560px; }
.progress { position: relative; padding: 22px 24px; z-index: 2; }
.progress .row { display: flex; align-items: center; gap: 16px; }
.progress .v { font: 400 44px/1 var(--display); color: #fff; } .progress small { color: #9fb0c9; font-size: 13px; }
.progress .bar { margin-top: 14px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; } .progress .bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--brass2), #f1d79c); transition: width .5s; }
.desk .owl { position: absolute; right: 30px; bottom: -40px; width: 200px; z-index: 3; filter: drop-shadow(0 26px 22px rgba(0,0,0,.4)); pointer-events: none; }
.desk .say { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font: italic 400 16px var(--display); color: #fff; }
.desk .say img { width: 36px; height: 36px; border-radius: 50%; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.radar-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.radar-teaser ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radar-teaser li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); color: #dbe4f1; text-decoration: none; font-size: 14.5px; }
.radar-teaser li a:hover { background: rgba(255,255,255,.12); } .radar-teaser li small { font: 400 12px var(--mono); color: var(--brass3); white-space: nowrap; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .rbody { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 36px 18px 0; } .rtoc { display: none; }
  .cards, .shelf, .tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .nav { top: 10px; padding: 6px 7px 6px 12px; } .mark img.logo { height: 36px; } .nav nav a.l.hide-sm, .mark small { display: none; } .mark b { font-size: 14px; letter-spacing: .3em; } .mark .m { width: 34px; height: 34px; font-size: 17px; }
  .nav .btn { padding: 9px 14px; font-size: 13px; }
  section.blk { padding-top: 76px; } .sh h2 { font-size: 34px; } .sh { margin-bottom: 36px; } .sh p { font-size: 16px; }
  .cards, .shelf, .tools { grid-template-columns: 1fr; } .card.big { grid-column: auto; flex-direction: column; } .card.big .img { min-height: 0; aspect-ratio: 16/10; } .card.big .c { padding: 16px 14px 10px; } .card.big h3 { font-size: 27px; }
  .vault { margin: 76px 10px 0; padding: 50px 20px; border-radius: 30px; }
  footer.site { margin-top: 76px; padding: 0 10px 10px; } footer.site .box { padding: 36px 22px 22px; border-radius: 28px; } footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: 1 / -1; }
  .rhero { padding: 74px 10px 0; } .rwin { height: 260px; border-radius: 26px; } .rwin.plain { height: 150px; }
  .letter { margin: -70px 0 0; padding: 26px 20px 0; border-radius: 24px; } .rwin.plain + .letter { margin-top: -70px; } .letter::before { left: 20px; right: 20px; }
  .letter h1 { font-size: 32px; } .letter .stand { font-size: 16.5px; }
  .facts { grid-template-columns: 1fr 1fr; margin: 0 -20px; } .facts > div:first-child { padding-left: 20px; } .facts > div { padding: 12px 16px 14px; }
  .facts > div:nth-child(3) { border-left: 0; grid-column: 1 / -1; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } .facts .key { grid-column: 1 / -1; border-left: 0 !important; }
  .prose { font-size: 16.5px; } .prose h2 { font-size: 26px; gap: 12px; margin-top: 48px; } .prose h2 .dial { --s: 42px; } .prose h3 { font-size: 20px; }
  .callout { padding: 18px 18px 16px; border-radius: 20px; } .prose figure { padding: 12px; border-radius: 20px; margin: 20px -6px; }
  .pn { grid-template-columns: 1fr; } .pn a.next { grid-column: auto; }
  .cs .grid { column-count: 1; }
  .desk { padding: 76px 10px 0; } .desk .inner { padding: 36px 22px 120px; border-radius: 28px; } .desk .grid2 { grid-template-columns: 1fr; gap: 20px; } .desk h1 { font-size: 40px; } .desk .owl { width: 120px; right: 10px; bottom: -24px; }
  .radar-teaser { grid-template-columns: 1fr; gap: 24px; }
  .form-step { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; } .cite { white-space: normal; } .form-step .dial { --s: 36px; }
}
@media print {
  .nav, .rtoc, .pn, footer.site, .verified, .letter .acts, .tri, .score { display: none !important; }
  body { background: #fff; } .rhero { padding: 0; } .rwin { display: none; } .letter { margin: 0; box-shadow: none; } .rbody { display: block; padding: 0; }
  .callout, .card, .tile, .form-step, .form-field, .tablewrap, .prose figure { box-shadow: none !important; border: 1px solid #ddd; }
}
[data-guil] { position: relative; overflow: hidden; } svg.guil { overflow: hidden; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--vellum2); }
.prose pre code { background: none; padding: 0; font-size: 13.5px; }
.prose code { overflow-wrap: anywhere; }
.cs table { min-width: 0; }
@media (max-width: 760px) { .cs .box { overflow-x: auto; } }
/* running text justified on every screen (Sergey 11.10.2026); zero specificity, explicit alignments win */
:where(p, li, dd) { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 2; }
