/* VFS project page — white, minimal, figure-led.
   One column (820px) for everything; every figure sits in the same framed panel,
   so left/right edges line up from top to bottom. */
:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --fg: #111418;
  --body: #262a31;
  --muted: #4c535e;
  --line: #e4e7eb;
  --line-strong: #cfd3d9;
  --accent: #9b1d4a;
  --good: #1f6f5c;
  --link: #1d3a8a;
  --col: 820px;
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16.5px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
html[data-lang="tr"] [lang="en"], html[data-lang="en"] [lang="tr"] { display: none !important; }

.col { max-width: calc(var(--col) + 40px); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }
h1, h2 { font-family: var(--f-display); font-weight: 500; color: var(--fg); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.8rem); line-height: 1.2; }
p { margin: 0; }
.label { font: 600 0.72rem/1.2 var(--f-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.measure { max-width: none; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* top bar */
.top { border-bottom: 1px solid var(--line); }
.top .col { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font: 600 0.95rem/1 var(--f-body); color: var(--fg); text-decoration: none; }
.brand b { color: var(--accent); font-weight: 600; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.lang a { font: 600 0.72rem/1 var(--f-body); color: var(--muted); padding: 5px 11px; border-radius: 999px; text-decoration: none; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="page"] { background: var(--fg); color: #fff; }

/* hero */
.hero { text-align: center; padding-block: 56px 36px; display: grid; gap: 22px; justify-items: center; }
.venue { display: inline-flex; gap: 10px; align-items: center; }
.venue b { width: 24px; height: 1px; background: var(--line-strong); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; max-width: 19ch; }
.hero h1 em { color: var(--accent); }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 1.05rem; color: var(--fg); }
.authors a.author { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .15s; }
.authors a.author:hover { border-bottom-color: var(--fg); }
.authors sup, .affil sup { color: var(--muted); font-size: .65em; }
.affil { display: grid; gap: 1px; font-size: 0.86rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 0.88rem var(--f-body); padding: 9px 18px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line-strong); color: var(--fg); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn.primary:hover { background: #2a2f37; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* sections */
section { padding-top: 52px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 16px; }
.lede { font: 400 1.06rem/1.7 var(--f-body); color: var(--fg); }

/* figure panel — identical frame for every figure */
.panel { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px 22px; display: grid; gap: 18px; background: #fff; }
.panel .media { display: flex; justify-content: center; }
.panel .media a { display: block; width: 100%; cursor: zoom-in; }
.panel img { display: block; width: 100%; height: auto; margin: 0 auto; }
/* inner widths chosen so faces appear at similar sizes across figures */
.w-full a { max-width: 100%; }
.w-set  a { max-width: 540px; }
.w-mid  a { max-width: 620px; }
figcaption { font-size: 0.9rem; color: #363b43; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; }
figcaption b { color: var(--fg); font-weight: 600; }
@media (max-width: 640px) { .panel { padding: 16px 14px 14px; border-radius: 12px; } }

/* chart keys and chart containers */
.keyline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--body); }
.keyline span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.keyline em { font-style: normal; font-weight: 400; color: var(--muted); }
.keyline i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.keyline .ring i { border: 2px solid #9aa1ac; width: 12px; height: 12px; }
.keyline .dash i { width: 16px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--muted); background: none; }
.scatter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 26px; }
.scatter > div, #auc { min-width: 0; }
.scatter svg, #auc svg { display: block; }
@media (max-width: 820px) { .scatter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .scatter { grid-template-columns: 1fr; } }

/* key numbers */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keys-panel { padding: 0; }
.key { padding: 22px 16px; text-align: center; display: grid; gap: 6px; align-content: start; }
.key + .key { border-left: 1px solid var(--line); }
.key .num { font: 500 1.7rem/1 var(--f-body); letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: tabular-nums lining-nums; }
.key .num.v { color: var(--accent); }
.key p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .keys { grid-template-columns: 1fr; } .key + .key { border-left: 0; border-top: 1px solid var(--line); } }

/* good / bad switch */
.seg { display: inline-flex; justify-self: start; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; font: 500 0.86rem var(--f-body); border: 0; background: none; color: var(--body); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.seg button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.seg button[aria-pressed="true"] { background: var(--fg); color: #fff; }
.seg button { white-space: nowrap; }
@media (max-width: 520px) {
  .seg button { padding: 7px 12px; font-size: 0.82rem; }
  .seg .cnt { display: none; }
  .measure { text-align: left; }
}

/* citation */
.citehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
pre.bib { margin: 0; background: var(--soft); border-radius: 14px; padding: 20px 24px; font: 0.8rem/1.65 var(--f-code); color: var(--fg); overflow-x: auto; }

footer { margin-top: 64px; border-top: 1px solid var(--line); }
footer .col { display: grid; gap: 6px; padding-block: 24px 40px; font-size: 0.8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

#scatter text, #auc text { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { pre.bib { white-space: pre-wrap; word-break: break-word; padding: 16px; } }
