/* Finite Samples — shared design system
   Palette: main #8096a9 / sub #58697b / ink #3d4c61 / gold #ffcb25 (sparingly) / gray #aeaeae / white / mist #f7f8fa
   Language: slanted geometry, generous whitespace, calm and rational. System fonts only. */

:root {
  --main: #8096a9;
  --sub: #58697b;
  --ink: #3d4c61;
  --gold: #ffcb25;
  --gray: #aeaeae;
  --mist: #f7f8fa;
  --line: #e3e7ec;
  --white: #ffffff;
  --ink-soft: #5d6b7d;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(61, 76, 97, .10);
  --wrap: 1080px;
  --narrow: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sub); text-decoration-color: rgba(88, 105, 123, .35); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--ink-soft); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); padding: 6px 10px; z-index: 99; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; }
.wordmark { display: inline-grid; column-gap: 8px; line-height: 1; }
.wordmark .w1 { grid-column: 1; font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.wordmark .w2 { grid-column: 1; font-weight: 300; font-size: 1.12rem; color: var(--main); margin-top: 2px; }
.on-dark .wordmark .w1 { color: var(--white); }
.on-dark .wordmark .w2 { color: var(--gray); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 6px 6px 0 0; }
.nav .nav-cta { background: var(--ink); color: var(--white); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--sub); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero (dark, slanted) ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, var(--sub) 70%, #6a7f93 100%);
  color: var(--white);
  padding: 88px 0 140px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(160deg, rgba(128, 150, 169, .22), rgba(128, 150, 169, 0));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero.compact { padding: 64px 0 110px; }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero .lede { font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 640px; }
.hero .eyebrow { color: var(--gold); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
.hero-mark img { width: min(260px, 100%); margin-left: auto; opacity: .96; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .18)); }
@media (max-width: 860px) {
  .hero { padding: 56px 0 96px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { display: none; }
}

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--main); margin-bottom: 14px; }
.tagline { font-style: italic; color: rgba(255, 255, 255, .72); border-left: 3px solid var(--gold); padding-left: 14px; margin-top: 26px; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border: 0; cursor: pointer; font-family: inherit;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: var(--gold); color: var(--ink);
}
.btn:hover { background: #ffd54f; color: var(--ink); }
.btn.ghost { background: rgba(255, 255, 255, .12); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.btn.ghost:hover { background: rgba(255, 255, 255, .2); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark:hover { background: var(--sub); }
.btn[disabled], .btn.is-pending { opacity: .75; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-mist { background: var(--mist); }
.section-tight { padding: 48px 0; }
.pull-up { margin-top: -96px; position: relative; z-index: 2; padding-top: 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }
.slant-rule { height: 6px; width: 64px; background: var(--gold); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); margin: 0 0 18px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } section { padding: 52px 0; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border-top: 4px solid var(--main); position: relative;
}
.card.flat { box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--main); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: .8rem; font-weight: 800; color: var(--main); letter-spacing: .12em; }
.card.link-card { text-decoration: none; color: inherit; display: block; transition: transform .15s; }
.card.link-card:hover { transform: translateY(-3px); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--sub); }

/* Thesis triad */
.thesis { counter-reset: t; }
.thesis .card { border-top-color: var(--sub); }
.thesis .card:nth-child(2) { border-top-color: var(--main); }
.thesis .card:nth-child(3) { border-top-color: var(--gold); }

/* Shadow diagram */
.shadow-figure { display: grid; grid-template-columns: repeat(3, 1fr) auto 1fr; align-items: center; gap: 14px; margin: 8px 0 0; }
.shadow-figure .shadow { background: var(--mist); border: 1px dashed var(--gray); padding: 14px; text-align: center; font-size: .9rem; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.shadow-figure .arrow { color: var(--main); font-weight: 800; font-size: 1.4rem; }
.shadow-figure .shape { background: var(--ink); color: var(--white); padding: 16px; text-align: center; font-weight: 700; font-size: .92rem; border-bottom: 4px solid var(--gold); }
@media (max-width: 680px) { .shadow-figure { grid-template-columns: 1fr 1fr 1fr; } .shadow-figure .arrow { grid-column: 1 / -1; text-align: center; transform: rotate(90deg); } .shadow-figure .shape { grid-column: 1 / -1; } }

/* ---------- Lists ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list .meta { font-size: .82rem; color: var(--ink-soft); }
.post-list a { font-weight: 700; text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--sub); text-decoration: underline; }
.post-list p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 680px) { .post-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Tags / verdicts ---------- */
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--sub); border: 1px solid var(--line); white-space: nowrap; }
.tag.exp { background: #eef2f6; color: var(--ink); border-color: #d3dbe4; }
.tag.hyp { background: var(--white); color: var(--sub); border: 1px dashed var(--main); }
.tag.reader { background: var(--white); color: var(--ink-soft); border-style: dotted; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.verdict .v-label { font-size: .88rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: var(--white); font-weight: 650; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--mist); }
tbody tr:last-child td { border-bottom: 0; }
td.claim { font-weight: 600; min-width: 240px; }
td.claim .summary { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
.ledger-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ledger-filters button { font: inherit; font-size: .88rem; padding: 7px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; cursor: pointer; }
.ledger-filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Mobile: ledger rows become cards */
@media (max-width: 680px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 4px 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
  td.claim { min-width: 0; }
}

/* ---------- Placeholder / pending blocks ---------- */
.placeholder {
  border: 2px dashed var(--main); border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--mist) 0 14px, #fff 14px 28px);
  padding: 20px 22px; color: var(--ink-soft); font-size: .95rem;
}
.placeholder strong { color: var(--ink); }
.placeholder .ph-label { display: inline-block; background: var(--ink); color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; margin-bottom: 8px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.pending-note { display: inline-block; font-size: .78rem; color: var(--ink-soft); background: var(--mist); border-left: 3px solid var(--gold); padding: 4px 10px; margin-top: 10px; }
.on-dark .pending-note, .hero .pending-note, .site-footer .pending-note { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }

/* ---------- Forms ---------- */
.subscribe { background: var(--ink); color: var(--white); position: relative; overflow: hidden; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); padding: 96px 0 72px; }
.subscribe h2 { color: var(--white); }
.subscribe p { color: rgba(255, 255, 255, .8); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; margin-top: 20px; }
input[type="email"], input[type="text"], textarea, select {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--white); width: 100%;
}
.form-row input { flex: 1 1 260px; width: auto; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(255, 203, 37, .7); outline-offset: 2px; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; }
.form-msg { margin-top: 12px; font-size: .9rem; color: var(--gold); min-height: 1.2em; }

/* ---------- Article / unit (8-part skeleton) ---------- */
.article-head { padding-bottom: 120px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; color: rgba(255, 255, 255, .78); font-size: .9rem; }
.article-meta .tag { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .25); }
.article-body { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.skeleton-nav { position: sticky; top: 84px; font-size: .86rem; }
.skeleton-nav ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.skeleton-nav a { display: block; padding: 6px 14px; text-decoration: none; color: var(--ink-soft); margin-left: -2px; border-left: 2px solid transparent; }
.skeleton-nav a:hover { color: var(--ink); border-left-color: var(--gold); }
.skeleton-nav .locked a { color: var(--gray); }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; max-width: 980px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .skeleton-nav { display: none; } }

.part { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.part:last-child { border-bottom: 0; }
.part-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.part-no {
  flex: none; width: 40px; height: 32px; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: var(--ink); color: var(--white); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.part-head h2 { font-size: 1.35rem; margin: 0; }
.part-head .free-scope { margin-left: auto; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; }
.quote { font-size: 1.3rem; font-weight: 600; line-height: 1.45; border-left: 4px solid var(--gold); padding: 4px 0 4px 18px; margin: 0 0 14px; }
.premise-list { list-style: none; padding: 0; margin: 0; }
.premise-list li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.premise-list li:last-child { border-bottom: 0; }
.figure { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.figure .frame { aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #eef1f5 0 12px, #f7f8fa 12px 24px); border: 1px dashed var(--gray); color: var(--ink-soft); font-size: .9rem; text-align: center; padding: 12px; }
.figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.disproof { background: var(--ink); color: var(--white); padding: 20px 22px; border-radius: var(--radius); border-left: 6px solid var(--gold); }
.disproof strong { color: var(--gold); }
.locked-block {
  position: relative; background: linear-gradient(160deg, var(--sub), var(--ink)); color: var(--white); border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
}
.locked-block::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: rgba(255, 203, 37, .14); transform: rotate(30deg); }
.locked-block h3 { color: var(--white); }
.locked-block ul { margin: 0 0 18px; padding-left: 20px; color: rgba(255, 255, 255, .86); }
.ledger-status { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 12px 28px; align-items: center; background: var(--mist); border-radius: var(--radius); padding: 18px 22px; border: 1px solid var(--line); }
.ledger-status .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; display: block; }
@media (max-width: 680px) { .ledger-status { grid-template-columns: 1fr 1fr; } }

/* ---------- Course page ---------- */
.module { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.module:last-child { border-bottom: 0; }
.module .m-no { font-size: 3rem; font-weight: 800; color: var(--main); line-height: 1; }
.module .m-no small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-top: 6px; }
.module h3 { font-size: 1.35rem; }
.units { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.units li { font-size: .95rem; padding-left: 16px; position: relative; }
.units li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--main); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.units li b { display: block; color: var(--ink); }
.units li span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 680px) { .module { grid-template-columns: 1fr; gap: 6px; } .units { grid-template-columns: 1fr; } }
.compare td:nth-child(2), .compare td:nth-child(3) { width: 34%; }
.price-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border-top: 6px solid var(--gold); }
.price-card .price { font-size: 2.2rem; font-weight: 800; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li { padding: 6px 0 6px 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 6px; border-left: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(-45deg); }

/* ---------- Learn (student area) ---------- */
.learn-bar { background: var(--ink); color: var(--white); font-size: .88rem; }
.learn-bar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 12px; flex-wrap: wrap; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--main); }
.module-card .unit-links { list-style: none; padding: 0; margin: 12px 0 0; font-size: .93rem; }
.module-card .unit-links li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.module-card .unit-links li:last-child { border-bottom: 0; }
.module-card .unit-links a { text-decoration: none; color: var(--ink); }
.module-card .unit-links a:hover { color: var(--sub); text-decoration: underline; }
.video-frame { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink), var(--sub)); border-radius: var(--radius); display: grid; place-items: center; color: rgba(255, 255, 255, .85); text-align: center; padding: 20px; position: relative; overflow: hidden; }
.video-frame .play { width: 72px; height: 72px; background: var(--gold); clip-path: polygon(20% 8%, 92% 50%, 20% 92%); margin: 0 auto 14px; }
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.downloads .ftype { font-family: var(--mono); font-size: .75rem; background: var(--mist); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; color: var(--sub); }
.unit-pager { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 0; flex-wrap: wrap; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--mist); border-left: 4px solid var(--main); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.callout.gold { border-left-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 56px 0 32px; font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: var(--white); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Fixes after visual check ---------- */
td[data-label="Last updated"], td[data-label="Verdict"] { white-space: nowrap; }
.subscribe .pending-note { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.part-head { flex-wrap: wrap; }
@media (max-width: 680px) {
  .article-layout { padding: 0 14px; gap: 0; }
  .article-layout > article.card, article.card { padding: 4px 18px !important; }
  .part-head .free-scope { margin-left: 54px; white-space: normal; }
  .quote { font-size: 1.12rem; }
  .ledger-status > div:last-child { text-align: left !important; }
  td[data-label="Last updated"] { white-space: normal; }
}
.post-list .tag { justify-self: start; }
.locked-block::before { background: rgba(255, 255, 255, .07); }
.learn-bar .pending-note { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }

/* ---------- Notes built from content (tools/build_notes.py) ---------- */
.note-body p, .note-body li { overflow-wrap: anywhere; }
.note-body .prose-list { padding-left: 22px; margin: 0 0 16px; }
.note-body .prose-list li { margin-bottom: 8px; }
.note-body .prose-table { margin: 16px 0; }
.note-body .prose-table th { text-transform: none; letter-spacing: 0; font-size: .86rem; }
.note-body .disproof p { margin: 0 0 10px; }
.note-body .disproof p:last-child { margin-bottom: 0; }
.tag.wrap { white-space: normal; }
.figure-ph .frame { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; aspect-ratio: auto; min-height: 220px; }
.figure-ph .ph-label { display: inline-block; background: var(--ink); color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.figure-ph .fig-desc { max-width: 520px; line-height: 1.5; }
.note-group { margin-bottom: 44px; }
.note-group h2 { display: flex; align-items: center; gap: 10px; }
.note-group h2 .count { font-size: .8rem; font-weight: 700; color: var(--sub); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
a.note-type { text-decoration: none; color: inherit; display: block; }
a.note-type:hover h3 { color: var(--sub); text-decoration: underline; }
.part-head h2 { flex: 1 1 0; min-width: 0; }
@media (max-width: 680px) { .part-head .free-scope { flex-basis: 100%; margin-top: -6px; } }
