

.fig { margin: 48px 0; max-width: var(--fig-w); }
.fig--wide { max-width: none; }
.fig-head { padding-top: 14px; border-top: 1px solid var(--foreground); }
.fig-title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.fig-take { margin-top: 6px; max-width: 60ch; font-family: var(--font-serif); font-size: 17px; line-height: 1.5; color: var(--muted-foreground); }
.fig-body { margin-top: 22px; }
.fig-src { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--muted-foreground); }
.fig-src > span:first-child { margin-right: 6px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--foreground); }
.fig-src a { color: var(--accent); }
.fig-src a:hover { text-decoration: underline; }


.fig-svg { width: 100%; height: auto; overflow: visible; }
.fig-svg--narrow { display: none; }
@media (max-width: 640px) { .fig-svg--wide { display: none; } .fig-svg--narrow { display: block; } }


.fig-svg text { font-family: var(--font-sans); fill: var(--foreground); }
.fig-svg .t { font-size: 13px; }
.fig-svg .ts { font-size: 12px; fill: var(--muted-foreground); }
.fig-svg .tn { font-size: 13px; font-weight: 600; }
.fig-svg .tb { font-size: 14px; font-weight: 600; }
.fig-svg .tbig { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.fig-svg .tm { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--muted-foreground); }
.fig-svg .tq { font-family: var(--font-serif); font-size: 17px; }
.fig-svg .ta { fill: var(--accent); }
.fig-svg .tw { fill: #fff; }
.fig-svg .m-ink { fill: var(--foreground); }
.fig-svg .m-acc { fill: var(--accent); }
.fig-svg .m-g1 { fill: var(--chart-g1); }
.fig-svg .m-g2 { fill: var(--chart-g2); }
.fig-svg .m-lil { fill: var(--publication-lilac); }
.fig-svg .m-soft { fill: var(--muted); }
.fig-svg .m-ho { fill: #fff; stroke: var(--foreground); stroke-width: 1.5; }
.fig-svg .m-hoa { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.fig-svg .m-hatch { fill: url(#hatch); stroke: var(--chart-g2); stroke-width: 1; }
.fig-svg .l-rule { stroke: var(--border); stroke-width: 1; fill: none; }
.fig-svg .l-ink { stroke: var(--foreground); stroke-width: 1; fill: none; }
.fig-svg .l-acc { stroke: var(--accent); stroke-width: 2; fill: none; }
.fig-svg .l-lead { stroke: var(--chart-g1); stroke-width: 1; fill: none; }
.fig-svg .l-g2 { stroke: var(--chart-g2); stroke-width: 1.5; fill: none; }
.fig-svg .l-dash { stroke-dasharray: 4 3; }
.fig-svg .l-thick { stroke-width: 6; stroke-linecap: round; }


.grow { transform-box: fill-box; transform-origin: 0 50%; }
.js .fig.rv:not(.is-in) .grow { transform: scaleX(0); }
.js .fig.rv:not(.is-in) .slide { transform: translateX(var(--dx, 0)); }
.js .fig.rv:not(.is-in) .fade { opacity: 0; }
.js .fig.rv .grow, .js .fig.rv .slide { transition: transform 0.9s var(--ease) calc(var(--i, 0) * 80ms); }
.js .fig.rv .fade { transition: opacity 0.5s ease calc(0.5s + var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .js .fig.rv:not(.is-in) .grow, .js .fig.rv:not(.is-in) .slide { transform: none; }
  .js .fig.rv:not(.is-in) .fade { opacity: 1; }
}



.sorter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sorter h4 { padding-bottom: 8px; border-bottom: 1px solid var(--foreground); font-size: 14px; font-weight: 600; }
.sorter h4.is-acc { color: var(--accent); }
.sorter li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sorter li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; background: var(--accent); }
.sorter .free li::before { background: #fff; border: 1.5px solid var(--foreground); }
.sorter b { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; }
.sorter small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted-foreground); }
.tag-reading { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--muted-foreground); }
@media (max-width: 640px) { .sorter { grid-template-columns: 1fr; gap: 24px; } }


.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0; font-size: 15px; line-height: 1.45; }
.rules svg { margin-top: 1px; }
.rules .is-yes { margin-top: 8px; padding: 16px; background: var(--publication-lilac); color: var(--publication-ink); }
.rules q { font-family: var(--font-serif); font-size: 17px; quotes: "\201C" "\201D"; }
.rules small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--publication-ink); }
.rules-us { margin-top: 14px; font-size: 13px; color: var(--muted-foreground); }


.wordings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wordings > div { padding: 18px; background: var(--muted); }
.wordings small { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.wordings blockquote { margin-top: 12px; font-family: var(--font-serif); font-size: 18px; line-height: 1.45; }
.wordings mark { background: none; color: var(--accent); text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
.wordings p { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
@media (max-width: 640px) { .wordings { grid-template-columns: 1fr; } }


.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tiles li { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 8px; background: var(--muted); font-size: 13px; line-height: 1.25; text-align: center; }
.tiles li small { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--muted-foreground); }
.tiles .is-half { background: #fff; outline: 1.5px solid var(--foreground); outline-offset: -1.5px; }
.tiles .is-out { background: #fff; outline: 1.5px dashed var(--chart-g2); outline-offset: -1.5px; color: var(--muted-foreground); }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


.matrix { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.matrix th, .matrix td { padding: 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.matrix thead th { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.matrix tbody th { font-size: 14px; font-weight: 600; }
.matrix td::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: baseline; }
.matrix .c-stop::before { background: var(--accent); }
.matrix .c-free::before { background: var(--foreground); }
.matrix .c-open::before { background: var(--chart-g1); }
.matrix-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--muted-foreground); }
.matrix-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; }
.matrix-key .c-stop::before { background: var(--accent); }
.matrix-key .c-free::before { background: var(--foreground); }
.matrix-key .c-open::before { background: var(--chart-g1); }
@media (max-width: 760px) {
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tr { margin-bottom: 14px; border-top: 1px solid var(--foreground); }
  .matrix th, .matrix td { border: 0; border-bottom: 1px solid var(--border); padding: 9px 0; }
  .matrix tbody th { padding-top: 10px; }
  .matrix td > i { display: block; margin-bottom: 2px; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted-foreground); }
  .matrix td::before { display: none; }
  .matrix td > span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; }
  .matrix .c-stop > span::before { background: var(--accent); }
  .matrix .c-free > span::before { background: var(--foreground); }
  .matrix .c-open > span::before { background: var(--chart-g1); }
}
@media (min-width: 761px) { .matrix td > i { display: none; } }


.labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.labels li { padding-top: 12px; border-top: 1px solid var(--foreground); }
.labels b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.labels i { display: block; margin-top: 4px; font-style: normal; font-size: 14px; }
.labels .is-acc i { color: var(--accent); }
.labels small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted-foreground); }
@media (max-width: 900px) { .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


.dates { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.dates h4 { padding-bottom: 8px; border-bottom: 1px solid var(--foreground); font-family: var(--font-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.dates ol { position: relative; margin-top: 4px; }
.dates ol::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 18px; width: 1px; background: var(--foreground); }
.dates li { position: relative; display: grid; grid-template-columns: 24px 96px 1fr; gap: 8px; align-items: baseline; padding: 10px 0; font-size: 14px; line-height: 1.4; }
.dates li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--foreground); transform: translateY(1px); }
.dates li.is-today::before { background: #fff; border: 1.5px solid var(--muted-foreground); }
.dates li.is-next::before { background: var(--accent); }
.dates li.is-soft::before { background: #fff; border: 1.5px solid var(--foreground); }
.dates time, .dates .when { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted-foreground); }
.dates small { display: block; font-size: 12px; color: var(--muted-foreground); }
.dates ul li { grid-template-columns: 24px 1fr; }
.dates ul li::before { background: #fff; border: 1.5px dashed var(--chart-g2); }
@media (max-width: 640px) {
  .dates { grid-template-columns: 1fr; gap: 24px; }
  .dates li { grid-template-columns: 20px 1fr; }
  .dates li > :nth-child(2) { grid-column: 2; }
  .dates li > :nth-child(3) { grid-column: 2; }
}


.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.doors a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 0 0; border-top: 1px solid var(--foreground); }
.doors a:hover .door-q { color: var(--accent); }
.door-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.door-n { font-size: 26px; font-weight: 650; line-height: 1.05; letter-spacing: -0.03em; }
.door-n .is-acc { color: var(--accent); }
.door-c { font-size: 13px; line-height: 1.45; color: var(--muted-foreground); }
.door-q { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.35; transition: color 0.2s; }
.door-q::after { content: " \2197"; color: var(--accent); }
.doors svg { width: 100%; max-width: 120px; height: 56px; }
@media (max-width: 1100px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr 1fr; } .doors li:last-child { grid-column: 1 / -1; } }


.peak {
  position: relative; z-index: var(--z-peak); margin-top: 0; padding: 56px 0 72px;
  background: var(--publication-lilac); color: var(--publication-ink);
  box-shadow: 0 0 0 100vmax var(--publication-lilac); clip-path: inset(0 -100vmax);
}
@media (min-width: 1024px) { .peak-inner { margin-left: calc(-1 * (var(--toc-w) + var(--toc-gap))); } }
.peak h2 { margin-bottom: 28px; max-width: 26ch; font-size: clamp(30px, 3.6vw, 48px); font-weight: 650; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.peak .eyebrow { color: var(--lilac-accent-text); }
.peak .fig { margin: 0; max-width: none; padding: 20px 22px 18px; background: #fff; color: var(--foreground); }
.peak .fig-head { border-top: 0; padding-top: 0; }
.peak-steps { margin-top: 28px; display: grid; gap: 16px; }
.peak-steps .prose { max-width: var(--measure); padding: 18px 20px; background: #fff; color: var(--publication-ink); border-left: 3px solid transparent; }

.rulings { display: grid; gap: 8px; }
.ruling {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); background: #fff; border-left: 3px solid var(--border);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s;
}
.ruling time, .ruling .when { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.ruling b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ruling small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted-foreground); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1.5px solid var(--foreground); }
.chip--ink { background: var(--foreground); color: #fff; }
.chip--acc { background: var(--accent); border-color: var(--accent); color: var(--accent-foreground); }
.chip--none { border-style: dashed; border-color: var(--chart-g2); color: var(--muted-foreground); font-weight: 500; }
.ruling.is-key { border-left-color: var(--accent); }
.ruling.is-empty { border-style: dashed; border-left-style: dashed; background: transparent; }
.ruling.is-empty b { color: var(--muted-foreground); font-weight: 500; }
@media (max-width: 640px) {
  .ruling { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 10px; }
  .ruling > :first-child { grid-column: 1 / -1; }
  .ruling b { font-size: 14px; }
  .ruling small { font-size: 12px; }
  .chip { font-size: 11px; padding: 2px 8px; }
  .chips { flex-direction: column; align-items: flex-end; gap: 4px; }
}


.peak--live .peak-scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.peak--live .peak-stage { position: sticky; top: calc(var(--nav-h) + 32px); grid-column: 2; grid-row: 1; }
.peak--live .peak-steps { grid-column: 1; grid-row: 1; margin: 0; gap: 0; padding: 12vh 0 30vh; }
.peak--live .peak-step { min-height: 72vh; display: flex; align-items: center; }
.peak--live .peak-step:first-child { min-height: 50vh; }
.peak--live .peak-step .prose { color: var(--muted-foreground); transition: border-color 0.3s, color 0.3s; }
.peak--live .peak-step.is-active .prose { border-left-color: var(--accent); color: var(--publication-ink); }
.peak--live .ruling { opacity: 0.22; transform: translateY(6px); }
.peak--live .ruling.is-shown { opacity: 1; transform: none; }
.peak--live .ruling.is-active { border-color: var(--foreground); border-left-color: var(--accent); background: color-mix(in srgb, var(--publication-lilac) 25%, white); }
.peak--live .ruling .chip { transition: transform 0.35s var(--ease); }
.peak--live .ruling:not(.is-shown) .chip { transform: scale(0.85); }
@media (max-width: 900px) {
  .peak--live .peak-scrolly { display: block; }
  .peak--live .peak-stage { top: var(--nav-h); z-index: 2; margin: 0 -18px; padding: 10px 18px 12px; background: var(--publication-lilac); }
  .peak--live .peak-stage .fig { padding: 12px 12px 10px; }
  .peak--live .peak-stage .fig-take, .peak--live .peak-stage .fig-src { display: none; }
  .peak--live .peak-steps { position: relative; z-index: 1; padding: 30vh 0 20vh; }
  .peak--live .peak-step { min-height: 0; margin-bottom: 70vh; }
  .peak--live .peak-step:last-child { margin-bottom: 0; }
  .peak--live .peak-step .prose { color: var(--publication-ink); font-size: 17px; }
}
@media (max-width: 900px) and (min-width: 641px) { .peak--live .peak-stage { margin: 0 -24px; padding-inline: 24px; } }
@media (max-width: 640px) {
  .peak--live .peak-stage .fig-title { font-size: 15px; }
  .peak--live .rulings { gap: 6px; }
  .peak--live .ruling { padding: 6px 10px; }
  .peak--live .ruling b { font-size: 13px; line-height: 1.25; }
  .peak--live .ruling small { font-size: 11.5px; line-height: 1.3; }
  .peak--live .ruling time, .peak--live .ruling .when { font-size: 10px; }
}
.peak-after { margin-top: 0; }
