/* v2 / TL;DR: the short front door. Same column and type as the Article; details open in place. */
main { max-width: var(--site-column); margin: 0 auto; padding: 0 15px; }

.post-header { padding: 3.25rem 0 .5rem; }
.post-header .venue { margin: 0 0 .9rem; font-size: .9rem; font-weight: 500; color: var(--global-text-color-light); }
.post-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12; font-weight: 300; letter-spacing: -.01em; }
.post-header h1 b { font-weight: 700; }
.post-header .subtitle { margin: .9rem 0 0; font-size: 1.15rem; color: var(--global-text-color-light); }
.post-header .authors { margin: 1.25rem 0 0; line-height: 1.8; }
.post-header .aff { color: var(--global-text-color-light); }
.post-header .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0 0; font-weight: 500; }
.post-header .howto { margin: 1.5rem 0 0; font-size: .95rem; color: var(--global-text-color-light); }
.post-header .howto em { font-style: normal; font-weight: 500; color: var(--global-text-color); }
.post-header .all-btn { margin-left: .35rem; padding: .2rem .6rem; font-size: .85rem; }

.beat { margin-top: 3.5rem; scroll-margin-top: 72px; }
.beat > h2 { margin: 0 0 .9rem; font-size: 1.6rem; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; scroll-margin-top: 72px; }
.beat > h2 .n { color: var(--global-theme-color); font-variant-numeric: tabular-nums; margin-right: .5rem; }
.beat:focus, .detail:focus { outline: none; }

.prose { font-size: 1.0625rem; line-height: 1.72; }
.prose p { margin: 0 0 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.05rem; }
.prose li { margin: .35rem 0; }
.prose strong { font-weight: 600; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; font-weight: 600; padding: .5rem .6rem; border-bottom: 2px solid var(--global-divider-color); }
.prose td { padding: .55rem .6rem; border-top: 1px solid var(--global-divider-color); vertical-align: top; }
.prose .katex-display { overflow-x: auto; overflow-y: hidden; padding: .35rem 0; }
.prose .katex { font-size: 1.04em; }

/* Live figures break out of the column like the Article's; with the side rail they extend right only. */
figure.fig { width: min(1120px, calc(100vw - 2rem)); margin: 1.75rem 0 2rem 50%; transform: translateX(-50%); padding: 0; }
body.sb-has-rail figure.fig { width: min(1120px, calc(50vw + 376px)); margin-left: 0; transform: none; }

/* Beat 5's three headline numbers. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0 1.5rem; }
.stats > div { padding: .9rem 1rem; background: var(--global-card-bg-color); border: 1px solid var(--global-divider-color); border-radius: 12px; }
.stats p { margin: 0; font-size: .92rem; line-height: 1.4; }
.stats .city { font-size: .8rem; font-weight: 600; color: var(--global-text-color-light); }
.stats .big { margin: .2rem 0 .1rem; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--global-theme-color); font-variant-numeric: tabular-nums; }
.stats .sub { margin-top: .3rem; font-size: .82rem; color: var(--global-text-color-light); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* The static "corners" sketch. */
figure.sketch { margin: 1.5rem 0 1.75rem; padding: 1rem 1.1rem .9rem; background: var(--global-card-bg-color); border: 1px solid var(--global-divider-color); border-radius: 12px; }
figure.sketch svg { display: block; width: 100%; height: auto; }
figure.sketch .true { fill: none; stroke: var(--global-theme-color); stroke-width: 3; stroke-linejoin: miter; }
figure.sketch .soft { fill: none; stroke: var(--global-text-color-light); stroke-width: 2.25; stroke-dasharray: 7 6; }
figure.sketch .axis { stroke: var(--global-divider-color); stroke-width: 1.5; }
figure.sketch .dot-true { fill: var(--global-theme-color); }
figure.sketch .dot-soft { fill: var(--global-card-bg-color); stroke: var(--global-text-color-light); stroke-width: 2.25; }
figure.sketch text { font: 500 13px var(--site-font); fill: var(--global-text-color); }
figure.sketch text.muted { fill: var(--global-text-color-light); }
figure.sketch figcaption { margin-top: .4rem; font-size: .85rem; color: var(--global-text-color-light); }

/* Disclosure: "Show the details" opens the full essay sections in place. */
.more { margin: .25rem 0 0; }
.more-btn, .all-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem;
  font: 600 .92rem var(--site-font); color: var(--global-theme-color); cursor: pointer;
  background: var(--global-card-bg-color); border: 1px solid var(--global-divider-color); border-radius: 8px;
}
.more-btn:hover, .all-btn:hover { border-color: var(--global-theme-color); }
.more-btn .chev { width: .8rem; height: .8rem; transition: transform .2s; }
.more-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.more-btn { flex-wrap: wrap; text-align: left; max-width: 100%; }
.details { margin: 1.25rem 0 0; padding: .25rem 0 .5rem 1.25rem; border-left: 2px solid var(--global-theme-color); }
.details[hidden] { display: none; }
.detail { scroll-margin-top: 72px; }
.detail + .detail { margin-top: 2.5rem; }
.detail h3 { margin: .75rem 0 .4rem; font-size: 1.25rem; font-weight: 600; scroll-margin-top: 72px; }
.detail .takeaway { margin: 0 0 1rem; font-weight: 500; color: var(--global-text-color); }
.details figure.fig { width: min(1120px, calc(100vw - 2rem - 1.25rem)); margin-left: calc(50% - .625rem); }
body.sb-has-rail .details figure.fig { width: min(1100px, calc(50vw + 350px)); margin-left: 0; }
.seen-above { margin: 1rem 0; font-size: .92rem; color: var(--global-text-color-light); font-style: italic; }

.onward { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--global-divider-color); }
.onward h2 { margin: 0 0 .75rem; font-size: 1.25rem; font-weight: 600; }
.onward ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.onward li a { font-weight: 600; }
.onward li span { color: var(--global-text-color-light); }

.cite { margin-top: 3rem; }
.cite h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 .75rem; }
.cite pre { margin: 0; padding: 1rem; overflow-x: auto; font-size: .82rem; line-height: 1.5; background: var(--global-code-bg-color); border-radius: 8px; }
.cite button { margin-top: .6rem; font: 500 .9rem var(--site-font); color: var(--global-theme-color); background: none; border: 1px solid var(--global-divider-color); border-radius: 6px; padding: .35rem .8rem; cursor: pointer; }

@media (max-width: 600px) {
  .prose { font-size: 1rem; }
  .details { padding-left: .85rem; }
  .details figure.fig { width: calc(100vw - 2rem - .85rem); margin-left: calc(50% - .425rem); }
}
@media (prefers-reduced-motion: reduce) { .more-btn .chev { transition: none; } }
