/* v2 / Article: reads like a post on sepehrelahi.com. One 800px column, figures break out as cards. */
main { max-width: var(--site-column); margin: 0 auto; padding: 0 15px; }

.post-header { padding: 3.25rem 0 1rem; }
.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; }

/* The summary: one line per section, linking to it. */
.tldr { margin: 2.25rem 0 0; padding: 1.25rem 1.4rem; background: var(--global-card-bg-color); border: 1px solid var(--global-divider-color); border-radius: 10px; }
.tldr h2 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 600; }
.tldr ol { margin: 0; padding-left: 1.3rem; }
.tldr li { margin: .35rem 0; padding-left: .2rem; }
.tldr li::marker { color: var(--global-theme-color); font-weight: 600; font-variant-numeric: tabular-nums; }
.tldr a { color: inherit; }
.tldr a:hover { color: var(--global-theme-color); }

article section { margin-top: 3.75rem; scroll-margin-top: 72px; }
article h2 { margin: 0 0 .5rem; font-size: 1.6rem; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; scroll-margin-top: 72px; }
article h2 .n { color: var(--global-theme-color); font-variant-numeric: tabular-nums; margin-right: .5rem; }
.takeaway { margin: .5rem 0 1.25rem; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--global-theme-color); font-size: 1.075rem; font-weight: 500; line-height: 1.55; }

.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 { width: 100%; 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; }

/* Figures break out of the reading column. */
figure.fig {
  width: min(1120px, calc(100vw - 2rem)); margin: 2rem 0 2.25rem 50%; transform: translateX(-50%);
  padding: 0;
}
.fig-missing { padding: 3rem 1rem; text-align: center; color: var(--global-text-color-light); }

.cite { margin-top: 4rem; }
.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; }
}

/* Wide tables scroll sideways on phones instead of overflowing the page. */
.prose table { display: block; overflow-x: auto; max-width: 100%; }

/* With the side rail, figures extend to the right only so they don't run under it. */
body.sb-has-rail figure.fig { width: min(1120px, calc(50vw + 376px)); margin-left: 0; transform: none; }
