:root { color-scheme: light; --paper: #f1f3f7; --ink: #202f4d; --body: #202f4d; --muted: #202f4d; --line: #d5d8de; --gold: #a8823a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #ded6c3; color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 7px; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 12px; background: white; z-index: 2; }
.skip-link:focus { top: 12px; }
.page { max-width: 996px; padding: 0 48px; margin: 0 auto; }
.header { max-width: 900px; margin: 0 auto; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0; }
.brand { display: flex; align-items: flex-end; flex-shrink: 0; }
.brand img { display: block; width: 140px; height: auto; }
nav { display: flex; align-items: center; gap: 25px; font-size: 13px; font-weight: 400; letter-spacing: normal; }
nav a { padding: 10px 0; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
nav .nav-contact { padding: 7px 11px; border: 1px solid #bcc5d3; color: var(--ink); white-space: nowrap; }
nav .nav-contact:hover { background: #e5e9f0; border-color: var(--ink); text-decoration: none; }
main { max-width: 900px; margin: 0 auto; }
.intro { padding: 20px 0 40px; }
h1,h2,h3 { font-family: 'Gambetta', Georgia, serif; }
h1 { margin: 0; font-size: clamp(36px, 5.2vw, 62px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; white-space: nowrap; }
h1 span { font-weight: 300; }
.mission { max-width: 570px; margin: 35px 0 0; font-size: 15px; line-height: 1.85; color: var(--body); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
h2 { margin: 0; font-size: 30px; font-weight: 400; letter-spacing: -.025em; }
.section-caption { font-size: 11px; color: var(--muted); }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { position: relative; padding: 25px 0 27px; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 10px; margin-bottom: 10px; }
.post-category { letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.status { color: var(--muted); border-left: 1px solid #bdc3ce; padding-left: 12px; }
h3 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 400; letter-spacing: -.015em; }
.footer { margin-top: 44px; background: var(--paper); color: var(--ink); }
.footer-inner { max-width: 996px; margin: 0 auto; padding: 24px 48px 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.footer img { display: block; width: 174px; height: auto; }
.footer span { font-size: 10px; opacity: .75; }
@media (min-width: 1500px) { .intro { padding-top: 20px; } }
@media (max-width: 600px) {
  .page { padding: 0 25px; }
  .header { padding: 24px 0; gap: 12px; }
  .brand img { width: 112px; }
  .header { align-items: flex-start; }
  nav { justify-content: flex-end; flex-wrap: wrap; gap: 15px 17px; max-width: 220px; padding-top: 10px; font-size: 12px; letter-spacing: normal; }
  nav .nav-contact { padding: 6px 9px; }
  .intro { padding: 16px 0 30px; }
  h1 { font-size: clamp(24px, 5.9vw, 35px); }
  .mission { font-size: 14px; margin-top: 27px; line-height: 1.85; }
  h2 { font-size: 27px; }
  h3 { font-size: 22px; }
  .section-caption { font-size: 10px; }
  .footer { margin-top: 34px; }
  .footer-inner { padding: 20px 25px 28px; }
  .footer img { width: 132px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.about-intro { padding: 20px 0 36px; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.person img, .portrait-placeholder { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; background: #e5e9ef; }
.person img { object-position: center; }
.person img.portrait-scott { object-position: 24% center; }
.person img.portrait-lennard { object-position: center 20%; }
.person h3 { margin-top: 13px; font-size: 23px; }
.portrait-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #617088; }
.portrait-placeholder span { font-family: 'Gambetta', Georgia, serif; font-size: 54px; font-weight: 300; }
.portrait-placeholder small { font-size: 11px; }
.advisors { margin-top: 48px; }
@media (min-width: 601px) and (max-width: 800px) { .header { flex-wrap: wrap; } nav { gap: 20px; flex-wrap: wrap; } }
@media (max-width: 600px) {
  .about-intro { padding: 16px 0 28px; }
  .people-grid { gap: 25px 16px; }
  .person h3 { font-size: 19px; }
  .portrait-placeholder span { font-size: 36px; }
  .portrait-placeholder small { font-size: 9px; text-align: center; }
}
@media (max-width: 420px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid .person:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - 16px) / 2); }
}

.careers-page .intro { padding-bottom: 38px; }
.careers-page .mission { margin-top: 23px; max-width: 590px; }
.careers-page .section-heading { padding-bottom: 16px; }
.careers-page .section-heading h2 { font-size: 27px; }
.career-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 28px; margin: 27px 0 0; padding: 0; list-style: none; }
.career-roles li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.6; }
.career-roles li::before { content: ""; position: absolute; top: .65em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.career-contact { margin-top: 43px; padding-top: 28px; border-top: 1px solid var(--line); }
.career-contact h2 { font-size: 27px; }
.career-contact p { max-width: 550px; margin: 15px 0 18px; font-size: 15px; line-height: 1.85; }
.career-contact > a { display: inline-block; font-size: 15px; text-decoration: underline; text-decoration-color: #a4adbd; text-underline-offset: 6px; }
.career-contact > a:hover { text-decoration-color: var(--ink); }
.career-contact > a span { display: inline-block; margin-left: 5px; }
@media (max-width: 600px) {
  .careers-page .intro { padding-bottom: 30px; }
  .career-roles { grid-template-columns: 1fr; gap: 14px; margin-top: 23px; }
  .career-contact { margin-top: 32px; padding-top: 25px; }
  .career-contact p { font-size: 14px; }
}

.draft-note { max-width: 380px; margin: 8px 0 30px auto; padding: 18px 20px; background: #fff2b8; color: #514524; border-top: 3px solid #e4c969; box-shadow: 2px 4px 9px rgb(32 47 77 / 8%); transform: rotate(1deg); }
.draft-note-label { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.draft-note p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; }
@media (max-width: 600px) { .draft-note { max-width: 100%; transform: none; } }

.team-note { display: flex; align-items: center; }
.team-note .draft-note { width: 100%; margin: 0; padding: 17px; }
@media (max-width: 420px) { .people-grid .team-note { grid-column: 1 / -1; } }

.mission-statement { max-width: 900px; margin-top: 20px; }
.mission-statement p { margin: 0; }
.mission-statement p + p { margin-top: 14px; }
.mission-statement strong { font-weight: 500; }
.synthesis-figure { width: 100%; max-width: 900px; margin: 32px 0 0; }
.figure-draft-frame { position: relative; padding: 0; }
.figure-draft-frame::after { content: ""; position: absolute; inset: 0; border: 3px solid #eac531; border-radius: 48% 52% 49% 51% / 10% 12% 11% 13%; transform: rotate(-.7deg); pointer-events: none; opacity: 0; }
.figure-draft-frame a { display: block; }
.figure-draft-frame img { display: block; width: 100%; max-width: 100%; height: auto; }
.figure-draft-tag { position: absolute; top: -10px; right: 8%; z-index: 1; padding: 5px 13px; background: #f7dc67; color: #514524; font-size: 12px; transform: rotate(3deg); }
.synthesis-figure figcaption { margin-top: 16px; text-align: center; font-size: 12px; line-height: 1.6; }
.synthesis-figure figcaption strong { font-weight: 500; }
@media (max-width: 950px) {
  .synthesis-figure { width: 100%; margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .mission-statement { margin-top: 18px; }
  .synthesis-figure { margin-top: 30px; }
  .figure-draft-frame { padding: 0; }
  .synthesis-figure figcaption { font-size: 11px; text-align: left; }
}

.intro > .synthesis-figure:first-child { margin-top: 8px; margin-bottom: 30px; }



.posts h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-page { padding-top: 20px; }
.article-back { display: inline-block; margin-bottom: 28px; font-size: 13px; }
.article-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.markdown-article { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.markdown-article h1 { white-space: normal; font-size: clamp(23px, 2.5vw, 27px); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 12px; }
.markdown-article h2 { margin: 38px 0 16px; }
.markdown-article h3 { margin: 28px 0 12px; }
.markdown-article p { margin: 0 0 20px; }
.markdown-article a { text-decoration: underline; text-underline-offset: 3px; }
.markdown-article img { max-width: 100%; height: auto; }
.markdown-article iframe { display: block; width: 100%; margin: 24px 0; border: 0; }
.markdown-article pre { overflow-x: auto; padding: 18px; background: #e5e9ef; font-size: 13px; line-height: 1.65; }
.markdown-article code { font-family: ui-monospace, monospace; }
.markdown-article :not(pre) > code { padding: 2px 4px; background: #e5e9ef; font-size: .88em; }
.markdown-article blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--gold); }
.markdown-article table { display: block; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.markdown-article th, .markdown-article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.markdown-article hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
#article-status { font-size: 14px; }

.markdown-article h1 + p:has(> em:only-child) { margin-top: -8px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; color: #53617a; }
.markdown-article h1 + p > em:only-child { font-style: normal; }

.post-subtitle { margin: 3px 0 0; font-size: 13px; line-height: 1.65; color: #53617a; }
.post-subtitle[hidden] { display: none; }
.research-draft-note { position: relative; flex-shrink: 0; font-size: 11px; color: #514524; }
.research-draft-note summary { padding: 7px 10px; background: #fff2b8; cursor: pointer; box-shadow: 1px 2px 5px rgb(32 47 77 / 7%); }
.research-draft-note summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.research-note-body { position: absolute; z-index: 2; right: 0; top: calc(100% + 8px); width: 260px; max-width: calc(100vw - 50px); padding: 18px; border-top: 3px solid #e4c969; background: #fff2b8; box-shadow: 2px 4px 9px rgb(32 47 77 / 10%); font-size: 13px; line-height: 1.7; }

.article-meta { margin: 0 0 22px; font-family: 'Inter', sans-serif; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; line-height: 1.6; color: #53617a; }
.article-authors { padding-left: 18px; border-left: 1px solid var(--line); }
.author-draft-note { max-width: 430px; margin-top: 8px; padding: 8px 12px; background: #fff2b8; color: #514524; font-size: 12px; line-height: 1.65; }
.author-draft-note summary { cursor: pointer; font-weight: 500; }
.markdown-article .author-draft-note p { margin: 4px 0 0; }

/* Compact, keyboard-accessible explanation in the benchmark header. */
.difficulty-info-trigger { anchor-name: --kattis-difficulty; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 18px; height: 18px; padding: 0; vertical-align: middle; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font: 500 12px/1 Arial, sans-serif; cursor: pointer; }
.difficulty-info-trigger:focus-visible, .difficulty-info-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#kattis-difficulty-info { position: fixed; position-anchor: --kattis-difficulty; inset: auto; position-area: top; position-try-fallbacks: flip-block; margin: 0.5rem; box-sizing: border-box; width: min(26rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 2.5rem 1.25rem 1.25rem; border: 1px solid #e0e4eb; border-radius: 12px; background: white; color: #202f4d; box-shadow: 0 8px 32px #202f4d26; }
.difficulty-info-close { position: absolute; top: 0.5rem; right: 0.5rem; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 20px/1 Arial, sans-serif; cursor: pointer; }

.notes-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 20; padding: 10px 16px; background: #fff2b8; color: #202f4d; border: 1px solid #e4c969; font: 13px system-ui; box-shadow: 0 2px 8px #0001; cursor: pointer; }
body:has(a[href="/__editor/"]) .notes-toggle { bottom: 70px; }
.notes-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:is(.draft-note, .team-note, .research-draft-note, .author-draft-note, .figure-draft-tag, .margin-note-anchor, .notes-toggle) { display: none !important; }
.figure-draft-frame::after { display: none; }

.markdown-article th { white-space: nowrap; vertical-align: middle; }

.margin-note-anchor { position: relative; }
.markdown-article .selection-margin-note { margin: 0 0 16px; transform: none; }
.markdown-article .selection-margin-note p { margin: 8px 0 0; }
/* Keep the article centered; fit editorial notes into its right margin. */
.article-page { position: relative; }
@media (min-width: 1280px) {
  .article-meta { position: relative; }
  .markdown-article .selection-margin-note,
  .article-meta > .author-draft-note {
    position: absolute; top: 0; left: calc(100% + 20px);
    width: min(210px, calc((100vw - 900px) / 2 - 40px));
    max-width: none; margin: 0; padding: 12px;
    font-size: 12px; overflow-wrap: anywhere;
  }
  .markdown-article .selection-margin-note p { font-size: inherit; }
}

.post-subtitle a { text-decoration: underline; text-underline-offset: 3px; }

/* Fill Figure 1 with the artwork, trimming the image's empty outer border. */
.synthesis-figure a[href$="/assets/galilei-illustration-v5.jpg"],
.markdown-article a:is([href$="/assets/galilei-illustration-v5.jpg"], [href$="/fig-pipeline.jpg"]):has(img) {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 2924 / 637;
  overflow: hidden;
}
.synthesis-figure img[src$="/assets/galilei-illustration-v5.jpg"],
.markdown-article img:is([src$="/assets/galilei-illustration-v5.jpg"], [src$="/fig-pipeline.jpg"]) {
  position: absolute;
  width: 106.84%;
  max-width: none;
  height: auto;
  left: -3.42%;
  top: -20.4%;
}

.markdown-article p:has(img:is([src$="/assets/galilei-illustration-v5.jpg"], [src$="/fig-pipeline.jpg"])) { margin: 0 0 8px; padding: 0; }

.mission-statement a { text-decoration: underline; text-underline-offset: 3px; }

.synthesis-figure figcaption a { text-decoration: underline; text-underline-offset: 3px; }

.pipeline-faq { border-top: 1px solid var(--line); }
.pipeline-faq details { border-bottom: 1px solid var(--line); }
.pipeline-faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; font-weight: 700; cursor: pointer; list-style: none; }
.pipeline-faq summary::-webkit-details-marker { display: none; }
.pipeline-faq summary::after { content: "+"; flex-shrink: 0; font-weight: 400; }
.pipeline-faq details[open] > summary::after { content: "−"; }
.pipeline-faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.markdown-article .pipeline-faq p { margin: 0; padding: 0 28px 20px 0; }

/* Keep blog prose left-aligned. */
.blog-article p { text-align: left; }
.blog-article :is(.article-meta, .draft-note, .author-draft-note) p { text-align: left; }

/* Blog reading dimensions match the Theorem article reference. */
.page:has(.blog-article) { padding-inline: 20px; }
.article-page:has(.blog-article) { max-width: 800px; }
.blog-article { font-size: 17px; line-height: 1.7; }
.blog-article p { margin-bottom: 16px; }
.blog-article h1 { font-size: 50px; line-height: 55px; margin-bottom: 16px; }
.blog-article h2 { font-size: 28px; line-height: 45px; margin: 40px 0 12px; }
@media (max-width: 600px) {
  .blog-article h1 { font-size: 36px; line-height: 40px; }
  .blog-article h2 { line-height: 34px; }
}
@media (min-width: 1280px) {
  .blog-article .selection-margin-note,
  .blog-article .article-meta > .author-draft-note {
    width: min(210px, calc((100vw - 800px) / 2 - 40px));
  }
}

/* Strong section hierarchy, matching the reference's bold sans-serif headings. */
.blog-article h2,
.blog-article h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}
.blog-article h3 { font-size: 20px; line-height: 1.4; }

.pipeline-figure {
  width: min(1120px, calc(100vw - 64px));
  max-width: none;
  margin: 40px 0 28px;
  margin-left: calc((100% - min(1120px, 100vw - 64px)) / 2);
}
.pipeline-panels { display: grid; grid-template-columns: 974fr 903fr 1417fr 1007fr 903fr; align-items: start; gap: 0; }
.pipeline-panels img { display: block; width: 100%; height: auto; }
.pipeline-figure figcaption { margin-top: 12px; text-align: center; font-size: 13px; line-height: 1.5; color: #53617a; }
@media (max-width: 700px) {
  .pipeline-figure { width: 100%; margin-left: 0; }
  .pipeline-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pipeline-panels img:nth-child(3) { grid-column: 1 / -1; width: 75%; justify-self: center; }
  .pipeline-figure figcaption { text-align: left; }
}

/* Place connectors over the gaps without reducing the figure's width. */
.pipeline-panels { position: relative; }
.pipeline-connector { position: absolute; top: 28%; width: 22px; height: 16px; transform: translateX(-50%); pointer-events: none; color: var(--ink); }
.pipeline-connector:nth-of-type(1) { left: 18.7%; }
.pipeline-connector:nth-of-type(2) { left: 36.1%; }
.pipeline-connector:nth-of-type(3) { left: 63.3%; }
.pipeline-connector:nth-of-type(4) { left: 82.7%; }
@media (max-width: 700px) { .pipeline-connector { display: none; } }

.pipeline-connector::before { content: ""; position: absolute; left: 0; right: 2px; top: 7px; border-top: 2px solid currentColor; }
.pipeline-connector::after { content: ""; position: absolute; right: 2px; top: 3px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* Keep the section menu in the left margin without moving the article. */
.blog-article { position:relative; }
.article-toc-rail { display:none; }
@media (min-width:1280px) {
  .article-toc-rail { display:block; position:absolute; top:0; bottom:0; left:calc((800px - 100vw) / 2 + 24px); width:min(170px, calc((100vw - 800px) / 2 - 48px)); z-index:2; }
  .article-toc { position:sticky; top:28px; display:flex; flex-direction:column; align-items:stretch; gap:9px; padding:4px 8px 4px 0; background:var(--paper); border-left:1px solid #d5dbe4; max-height:calc(100vh - 56px); overflow:auto; }
  .article-toc a { display:block; padding:0 0 0 12px; margin-left:-1px; border-left:2px solid transparent; color:var(--ink); font:500 12px/1.45 'Inter',sans-serif; text-align:left; text-decoration:none; }
  .article-toc a[aria-current="location"] { border-left-color:#265eae; color:#265eae; font-weight:500; }
  .article-toc a:hover, .article-toc a:focus-visible { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
}
.blog-article h2 { scroll-margin-top:28px; }

.markdown-article iframe.focus-spec-embed { margin:8px 0 12px; }
.markdown-article p:has(+ iframe.focus-spec-embed) { margin-bottom:8px; }

.markdown-article iframe[id] { scroll-margin-top:28px; }

.pipeline-figure figcaption a { text-decoration:underline; text-underline-offset:3px; }

.portrait-crop { aspect-ratio:1; overflow:hidden; }
.person img.portrait-tristan { object-position:center 30%; transform:scale(1.35); transform-origin:50% 0; }

/* Keep editorial notes above overlapping illustrations and embeds. */
.margin-note-anchor { z-index:5; }
.draft-note, .author-draft-note { position:relative; z-index:5; }
@media (min-width:1280px) {
  .markdown-article .selection-margin-note, .article-meta > .author-draft-note { position:absolute; }
}

.products-menu { position:relative; }
.products-menu > summary { display:flex; align-items:center; gap:5px; padding:10px 0; cursor:pointer; list-style:none; }
.products-menu > summary::-webkit-details-marker { display:none; }
.products-menu > summary:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.products-menu[open] > summary svg { transform:rotate(180deg); }
.products-dropdown { position:absolute; top:100%; left:0; z-index:30; width:230px; padding:10px; background:white; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px #202f4d18; }
.products-dropdown .product-focus { display:flex; align-items:center; gap:10px; padding:10px; border-radius:6px; font-weight:500; }
.products-dropdown .product-focus:hover { background:var(--paper); text-decoration:none; }
.product-focus > svg { margin-left:auto; }
.extraction-apis { margin-top:6px; padding:0 0 6px; }
.product-section-title, .extraction-apis p { margin:4px 0 8px; font-size:11px; font-weight:600; color:#68758c; text-align:left; }
.extraction-apis ul { list-style:none; margin:0; padding:0; }
.extraction-apis li { padding:6px 10px; font-size:13px; }
@media(max-width:600px) { .products-dropdown { left:auto; right:0; width:210px; } }

.verification-infobox { margin:24px 0; padding:18px 22px; background:#e7edf6; border:1px solid #bccbe0; border-left:4px solid #648fc4; border-radius:10px; font-size:15px; line-height:1.65; }
.verification-infobox > strong { display:flex; align-items:center; gap:9px; margin-bottom:8px; }
.verification-infobox > strong::before { content:"i"; display:inline-flex; align-items:center; justify-content:center; flex:none; width:19px; height:19px; border:1.5px solid #536f99; border-radius:50%; color:#536f99; font:600 13px/1 Georgia,serif; }
.markdown-article .verification-infobox p { margin:0; }
@media(max-width:600px) { .verification-infobox { padding:15px 17px; } }

/* Clickable paper references, also accessible on hover and keyboard focus. */
.paper-footnote { position:relative; display:inline-block; }
.paper-footnote-marker { padding:0 1px; color:inherit; font-size:0.7em; line-height:0; vertical-align:super; cursor:help; text-decoration:none; }
.paper-footnote-popup { display:none; position:absolute; bottom:100%; right:0; z-index:20; width:340px; box-sizing:border-box; padding:16px 18px; background:#fff; color:var(--ink); border:1px solid #bccbe0; border-radius:10px; box-shadow:0 6px 24px #202f4d20; font:400 13px/1.55 'Inter',sans-serif; text-align:left; }
.paper-footnote-popup > span { display:block; margin-top:10px; }
.paper-footnote-popup a { text-decoration:underline; text-underline-offset:2px; }
.paper-footnote:hover .paper-footnote-popup, .paper-footnote:focus-within .paper-footnote-popup { display:block; }
@media(max-width:600px) { .paper-footnote-popup { position:fixed; bottom:20px; left:20px; right:20px; width:auto; } }

/* Keep the problem and difficulty together, with the algorithm below on phones. */
@media (max-width:600px) {
  #appendix-a-problem-list ~ table { display:block; width:100%; overflow:visible; font-size:14px; line-height:1.5; }
  #appendix-a-problem-list ~ table :is(thead, tbody) { display:block; }
  #appendix-a-problem-list ~ table tr { display:grid; grid-template-columns:minmax(0, 1fr) 88px; column-gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
  #appendix-a-problem-list ~ table :is(th, td) { min-width:0; border:0; padding:0; }
  #appendix-a-problem-list ~ table th { white-space:normal; font-size:12px; }
  #appendix-a-problem-list ~ table :is(th, td):nth-child(2) { text-align:right; }
  #appendix-a-problem-list ~ table td:first-child { font-weight:600; overflow-wrap:anywhere; }
  #appendix-a-problem-list ~ table td:nth-child(3) { grid-column:1 / -1; margin-top:5px; color:#53617a; font-size:13px; }
  #appendix-a-problem-list ~ table th:nth-child(3) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #appendix-a-problem-list ~ table .difficulty-info { position:relative; }
  #appendix-a-problem-list ~ table .difficulty-info div { position:absolute; right:0; z-index:10; width:220px; max-width:calc(100vw - 64px); box-sizing:border-box; border:1px solid var(--line); border-radius:8px; box-shadow:0 4px 14px #202f4d18; }
}

.verification-infobox.article-abstract > strong::before { content:none; }

.pipeline-artwork { position:relative; }
.pipeline-figure .illustration-credit { position:absolute; right:2px; bottom:2px; color:#68758c; font:400 9px/1.5 "Inter",sans-serif; }
.pipeline-figure .illustration-credit a { color:inherit; text-decoration:none; }
.pipeline-figure .illustration-credit a:hover, .pipeline-figure .illustration-credit a:focus-visible { text-decoration:underline; }

/* Comfortable reading sizes on phones. */
@media (max-width:600px) {
  .markdown-article, .blog-article { font-size:18px; line-height:1.75; }
  .mission, .career-contact p, .career-contact > a, .career-roles li { font-size:17px; }
  nav { font-size:14px; }
  .post-subtitle, .markdown-article h1 + p:has(> em:only-child) { font-size:16px; }
  .verification-infobox { font-size:17px; }
  .pipeline-figure figcaption { font-size:14px; }
  .article-byline, .post-meta { font-size:13px; }
  #appendix-a-problem-list ~ table { font-size:16px; }
  #appendix-a-problem-list ~ table td:nth-child(3) { font-size:15px; }
  #appendix-a-problem-list ~ table th { font-size:13px; }
}

@media (max-width:600px) { .markdown-article .display-math { max-width:100%; overflow-x:auto; overflow-y:hidden; } }
