/* Hocam Kim? — "Durgun Akademi" identity (owner's design gallery pick 1A): cool porcelain, petrol ink.
   Self-hosted Source Serif 4 headings over Inter, monospace figures; every colour is a token below. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f4f7f8; --surface: #ffffff; --raised: #edf2f4; --ink: #13232b; --ink-2: #36474f; --muted: #5a6a72;
  --line: #d8e0e4; --line-2: #e8eef0; --accent: #1d5d7a; --accent-2: #144a62; --on-accent: #ffffff; --accent-soft: #e2eef3;
  --star: #8f5c00; --star-soft: #fdf1cf; --duayen: #6a3fc2; --duayen-soft: #efe8fd; --hl: #fff0bf; --ok: #1f7a4d;
  /* Form field edges and errors stay at least 3:1 against --surface, --bg and --raised (WCAG 1.4.11). */
  --field-border: #7a8a91; --danger: #b42318;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;
  --f-d: "Source Serif 4", "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-b: "Inter", "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-n: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --r: 12px; --r-s: 8px; --pad: 20px;
  /* Goal colours from the UN SDG colour definitions; text chips carry no logos. */
  --sdg-1: #e5243b; --sdg-2: #dda63a; --sdg-3: #4c9f38; --sdg-4: #c5192d; --sdg-5: #ff3a21;
  --sdg-6: #26bde2; --sdg-7: #fcc30b; --sdg-8: #a21942; --sdg-9: #fd6925; --sdg-10: #dd1367;
  --sdg-11: #fd9d24; --sdg-12: #bf8b2e; --sdg-13: #3f7e44; --sdg-14: #0a97d9; --sdg-15: #56c02b;
  --sdg-16: #00689d; --sdg-17: #19486a; --sdg-light-ink: #13232b; --sdg-dark-ink: #fff;
  --sh: 0 1px 2px rgb(19 35 43 / 6%), 0 4px 16px rgb(19 35 43 / 4%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e171b; --surface: #142128; --raised: #1a2a31; --ink: #e7eff1; --ink-2: #c1cfd4; --muted: #93a5ab;
    --line: #25363e; --line-2: #1d2c33; --accent: #7cc3e0; --accent-2: #a6d8ec; --on-accent: #08202a; --accent-soft: #183644;
    --star: #f3c34f; --star-soft: #3b2f0e; --duayen: #c3a6ff; --duayen-soft: #2d2248; --hl: #4b3c10; --ok: #6fd19c; --sh: 0 1px 0 rgb(255 255 255 / 3%) inset;
    --field-border: #647981; --danger: #ff8a80;
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e171b; --surface: #142128; --raised: #1a2a31; --ink: #e7eff1; --ink-2: #c1cfd4; --muted: #93a5ab;
  --line: #25363e; --line-2: #1d2c33; --accent: #7cc3e0; --accent-2: #a6d8ec; --on-accent: #08202a; --accent-soft: #183644;
  --star: #f3c34f; --star-soft: #3b2f0e; --duayen: #c3a6ff; --duayen-soft: #2d2248; --hl: #4b3c10; --ok: #6fd19c; --sh: 0 1px 0 rgb(255 255 255 / 3%) inset;
  --field-border: #647981; --danger: #ff8a80;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
/* A short page keeps its footer at the bottom of the window (audit D19, 10 November): a full-height column, main grows. */
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::placeholder { color: var(--muted); opacity: 1; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 600; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin: 0; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .4rem; }
p { margin: 0 0 .75rem; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: var(--f-n); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; top: -10rem; left: 1rem; padding: .75rem 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); z-index: 20; }
.skip:focus { top: 1rem; }
/* A skip link past a drawing to its list: hidden until it has keyboard focus. */
.skip-to { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-to:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--surface); color: var(--accent); border: 1px solid var(--line); border-radius: var(--r-s); font-weight: 600; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 24px; }
main { display: block; flex: 1 0 auto; }
main:focus { outline: none; }
.page { padding: 28px 0 64px; }

/* ---------- vocabulary ---------- */
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 15px; height: 15px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: var(--pad); min-width: 0; }
.card > h2:first-child { margin-bottom: 14px; }
.card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { margin: 0; }
.card-h a { font-size: 13px; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font: 600 12.5px/1.3 var(--f-b); color: var(--accent); letter-spacing: .02em; margin: 0; }
.eyebrow a { color: inherit; }
.btn, .button, .action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px/1.2 var(--f-b); cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover, .action:hover { text-decoration: none; color: var(--ink); background: var(--raised); }
.button, .btn-p, .action--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.button:hover, .btn-p:hover, .action--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-g { background: transparent; border-color: transparent; color: var(--accent); }
.btn-g:hover { background: var(--accent-soft); color: var(--accent-2); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 13px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; padding: 0; }
.icon-button:hover { background: var(--raised); }
.icon-button svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font: 500 13px/1.35 var(--f-b); }
.chips.quiet .chip { background: transparent; border: 1px solid var(--line); color: var(--ink-2); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
/* Publication extras use the existing cards, chips and count badges in both themes. */
.funding-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.funding-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; font-size: 13px; }
.funding-list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.funding-list .count-badge { flex: none; }
.sdg-chips > li, .publication-keywords > li { max-width: 100%; min-width: 0; }
.sdg-chip { gap: 7px; border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); padding: 4px 8px 4px 4px; border-radius: var(--r-s); max-width: 100%; }
.sdg-chip > :nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.sdg-number { flex: none; display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 4px; border-radius: 5px; background: var(--sdg-colour); color: var(--sdg-number-ink, var(--sdg-dark-ink)); font: 600 12px/1 var(--f-n); }
.sdg-count, .keyword-count { flex: none; color: var(--muted); font: 500 12px/1.35 var(--f-n); }
.publication-keywords .chip { gap: 7px; max-width: 100%; overflow-wrap: anywhere; }
.sdg-1 { --sdg-colour: var(--sdg-1); }
.sdg-2 { --sdg-colour: var(--sdg-2); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-3 { --sdg-colour: var(--sdg-3); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-4 { --sdg-colour: var(--sdg-4); }
.sdg-5 { --sdg-colour: var(--sdg-5); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-6 { --sdg-colour: var(--sdg-6); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-7 { --sdg-colour: var(--sdg-7); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-8 { --sdg-colour: var(--sdg-8); }
.sdg-9 { --sdg-colour: var(--sdg-9); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-10 { --sdg-colour: var(--sdg-10); }
.sdg-11 { --sdg-colour: var(--sdg-11); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-12 { --sdg-colour: var(--sdg-12); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-13 { --sdg-colour: var(--sdg-13); }
.sdg-14 { --sdg-colour: var(--sdg-14); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-15 { --sdg-colour: var(--sdg-15); --sdg-number-ink: var(--sdg-light-ink); }
.sdg-16 { --sdg-colour: var(--sdg-16); }
.sdg-17 { --sdg-colour: var(--sdg-17); }
.record-detail { margin-top: 10px; color: var(--ink-2); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.record-detail summary { width: fit-content; max-width: 100%; cursor: pointer; color: var(--accent); font-weight: 600; }
.record-detail[open] summary { margin-bottom: 8px; }
.record-detail ul { margin: 0; padding-inline-start: 20px; }
.record-detail > ul > li { display: list-item; }
.record-detail p { margin: 0; white-space: pre-line; }
.record-labels { overflow-wrap: anywhere; }
.record-labels .tag { max-width: 100%; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); font: 500 12px/1.5 var(--f-b); }
.tag.strong { border-color: var(--accent); color: var(--accent-2); }
.tag.fix { border-color: var(--star); color: var(--star); }
.badge-star { display: inline-flex; align-items: center; gap: 4px; color: var(--star); background: var(--star-soft); border-radius: 999px; padding: 1px 9px; font: 600 12px/1.6 var(--f-b); white-space: nowrap; letter-spacing: 0; }
.notice { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-s); padding: 12px 16px; }
.source { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.count-badge, .tab-count { font: 500 11.5px/1 var(--f-n); color: var(--muted); background: var(--raised); padding: 3px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; vertical-align: middle; letter-spacing: 0; }
h2 .count-badge { font-size: 12.5px; margin-left: 4px; }
.self { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 1px; }
.sl { color: var(--muted); padding: 0 5px; }
.more-link { margin: 10px 0 0; font-size: 13.5px; font-weight: 500; }
.sel, .field-in { width: 100%; height: 42px; border: 1px solid var(--field-border); border-radius: var(--r-s); background: var(--surface); color: var(--ink); padding: 0 12px; min-width: 0; }
.sel { padding: 0 10px; }
.search-w { position: relative; display: flex; gap: 8px; min-width: 0; }
.search-w .in-w { position: relative; flex: 1; min-width: 0; display: flex; }
.search-w .in-w > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-w .field-in { padding-left: 40px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--raised); gap: 2px; }
.seg a, .seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: 500 13px/1.2 var(--f-b); color: var(--ink-2); text-decoration: none; }
.seg a:hover, .seg button:hover { color: var(--ink); text-decoration: none; }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 10%); font-weight: 600; }
.av, .person-avatar, .avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font: 600 15px/1 var(--f-b); flex: none; letter-spacing: .01em; overflow: hidden; }
.av.star { background: var(--star-soft); color: var(--star); }
.table-scroll { overflow-x: auto; max-width: 100%; }

/* ---------- header and footer (2A) ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.header-grid.no-search { grid-template-columns: 1fr auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 600 20px/1 var(--f-d); letter-spacing: -.012em; white-space: nowrap; justify-self: start; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.header-search .field-in { background: var(--bg); }
.header-search .search-go { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 6px; padding: 0; }
.header-search .search-go:hover { color: var(--accent); }
.site-nav { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-weight: 500; font-size: 14.5px; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--accent); }
.menu-button { display: none; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; padding: 36px 0 24px; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand p { max-width: 34ch; margin: 0; }
.footer-h { font: 600 13px/1.2 var(--f-b); color: var(--ink); margin: 0 0 10px; letter-spacing: .01em; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-cols ul a { color: var(--ink-2); }
.footer-bot { display: flex; justify-content: center; border-top: 1px solid var(--line-2); padding: 18px 0 24px; }
.footer-simple { padding: 20px 0 24px; }

/* ---------- home (3A) ---------- */
.home { display: grid; gap: 40px; }
.hero { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 28px 0 0; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.08; max-width: 18ch; }
.hero .lead { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin: 0; }
.hero-search { width: 100%; max-width: 640px; margin-top: 4px; }
.hero-search .field-in { height: 54px; font-size: 16px; border-radius: 14px; box-shadow: var(--sh); }
.hero-search .button { min-height: 54px; padding: 0 24px; border-radius: 14px; font-size: 15px; }
.hero > p.small { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); max-width: 1080px; width: 100%; margin: 0 auto; }
.stat { padding: 20px 12px; text-align: center; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font: 600 clamp(22px, 3.4vw, 30px)/1 var(--f-n); color: var(--ink); letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: 13.5px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; margin: 0; }
.sec-h > a { white-space: nowrap; font-weight: 500; font-size: 14px; }
.star-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
/* Showcase cards (owner, 3 November: "daha estetik olabilir"): one tone per showcase, the whole card is the
   profile link (the name's link stretched over it), the institution link sits above that layer. */
.showcase { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.showcase.stars { --tone: var(--star); --tone-soft: var(--star-soft); }
.showcase.duayens { --tone: var(--duayen); --tone-soft: var(--duayen-soft); }
.star-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); min-width: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.star-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tone); opacity: .55; }
.star-card.is-link:hover { border-color: var(--tone); box-shadow: 0 2px 4px rgb(19 35 43 / 6%), 0 10px 24px rgb(19 35 43 / 8%); transform: translateY(-1px); }
.sc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sc-head > .av, .sc-head > .person-photo { grid-column: 1; grid-row: 1; width: 48px; height: 48px; font-size: 16px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--tone-soft); }
.sc-mark { grid-column: 3; grid-row: 1; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tone-soft); color: var(--tone); font-size: 13px; line-height: 1; }
.sc-mark .ic { width: 15px; height: 15px; }
.sc-id { grid-column: 2; grid-row: 1; display: grid; gap: 1px; min-width: 0; padding-top: 2px; }
.star-card .nm { font: 600 15px/1.3 var(--f-b); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-card a.nm::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.star-card a.nm:hover { text-decoration: none; color: var(--accent-2); }
.star-card a.nm:focus-visible { outline: none; }
.star-card a.nm:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.star-card .gr { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-inst { position: relative; z-index: 2; justify-self: start; max-width: 100%; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sc-inst:hover { color: var(--accent-2); }
.star-card .pts { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line-2); min-width: 0; }
.pts-l { display: grid; gap: 1px; min-width: 0; }
.pts-period { font: 500 12px/1.3 var(--f-b); color: var(--muted); }
.pts-rank { font: 600 12.5px/1.35 var(--f-b); color: var(--ink-2); white-space: nowrap; }
.pts-l .rank-share { justify-self: start; margin-top: 3px; }
.star-card .pts .num { flex: none; color: var(--tone); font-weight: 600; font-size: 20px; line-height: 1; }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.tile-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14.5px; }
.tile-grid a:hover { border-color: var(--accent); text-decoration: none; color: var(--accent-2); }

/* ---------- lists, search (4A), pager, states (17A) ---------- */
.list-head { margin-bottom: 18px; display: grid; gap: 6px; }
.list-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
.list-head p { margin: 0; }
.list-title { font-size: clamp(1.6rem, 3.6vw, 2.25rem); margin-bottom: 18px; }
.search-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { display: grid; gap: 18px; align-content: start; }
.filters h2 { font: 600 15px/1.2 var(--f-b); letter-spacing: 0; margin: 0; }
.filter-field { display: grid; gap: 6px; }
.filter-field label, .title-filter legend { font-size: 13px; color: var(--muted); }
.title-filter { border: 0; padding: 0; margin: 0; min-width: 0; }
.title-filter legend { margin-bottom: 8px; padding: 0; }
.checks { display: grid; gap: 8px; font-size: 14px; }
.check { display: flex; gap: 9px; align-items: center; min-height: 28px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.results { min-width: 0; display: grid; gap: 10px; align-content: start; }
.results > p { margin: 0; }
.search-bar .button { min-height: 44px; }
.search-bar .field-in { height: 44px; }
.people { list-style: none; padding: 0; margin: 0; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.person:first-child { border-top: 1px solid var(--line-2); }
.person-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--raised); }
.person-avatar { width: 48px; height: 48px; font-size: 16px; }
.person-body { min-width: 0; display: grid; gap: 2px; }
.person-name { font: 600 16px/1.3 var(--f-b); color: var(--accent); }
span.person-name { color: var(--ink); }
.person-meta { color: var(--ink-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-end { text-align: right; display: grid; gap: 4px; justify-items: end; }
.person-score { font: 600 18px/1 var(--f-n); color: var(--ink); letter-spacing: -.02em; }
.person-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.person-pubs { font-size: 12px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 20px 0 6px; flex-wrap: wrap; align-items: center; }
.pager a, .pager span { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line); color: var(--ink); font: 500 13.5px/1 var(--f-b); background: var(--surface); }
.pager a:hover { border-color: var(--accent); color: var(--accent-2); text-decoration: none; }
.pager span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 34px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); max-width: 560px; margin: 24px auto; }
.state-ill { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.state-ill .ic { width: 28px; height: 28px; }
.state h1, .state h2 { font-size: 21px; margin: 0; }
.state p { font-size: 14.5px; color: var(--ink-2); max-width: 42ch; margin: 0; }
.state .btn { margin-top: 4px; }

/* ---------- institution and field heads (15A) ---------- */
.entity-head { display: grid; gap: 18px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); margin-bottom: 14px; }
.entity-top { display: flex; gap: 18px; align-items: center; min-width: 0; }
.entity-top > div { min-width: 0; display: grid; gap: 4px; }
.entity-top h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
.entity-id { display: grid; gap: 18px; min-width: 0; }  /* the unit header's identity block (21 November) */
.crest { width: 64px; height: 64px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 22px/1 var(--f-d); flex: none; }
.crest.ink { background: var(--ink); color: var(--bg); }
.entity-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--line); padding-top: 24px; margin: 0; }
.entity-stats div { display: grid; gap: 2px; text-align: center; align-content: start; }
.entity-stats div + div { border-left: 1px solid var(--line); }
.entity-stats dd { margin: 0; font: 600 22px/1 var(--f-n); color: var(--ink); order: -1; }
.entity-stats dt { font-size: 12.5px; color: var(--muted); }
.entity-stats dd small { font-size: .62em; color: var(--muted); font-weight: 500; }
.entity-stats .stat-note { display: block; font-size: 12px; }
.entity-note { margin: 0; font-size: 13px; color: var(--muted); }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.subtabs a { padding: 10px 12px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; font-size: 14.5px; }
.subtabs a:hover { color: var(--ink); text-decoration: none; border-color: var(--line); }
.subtabs a[aria-current] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.entity-search { margin-bottom: 14px; max-width: 640px; }

/* ---------- profile header (5B) and score card (6A) ---------- */
.profile { display: grid; gap: 22px; }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px 26px; align-items: stretch; }
.ph-photo { align-self: center; }  /* photo centred on the identity column (owner, 3 November) */
.portrait { display: block; width: 132px; height: auto; aspect-ratio: 4 / 5; border-radius: var(--r); object-fit: cover; background: var(--raised); border: 1px solid var(--line); }
.avatar { width: 112px; height: 112px; font: 600 2.2rem/1 var(--f-d); }
.identity { display: grid; gap: 8px; align-content: center; min-width: 0; }
.identity h1 { font-size: clamp(1.65rem, 3.4vw, 2.25rem); line-height: 1.1; overflow-wrap: anywhere; }
.affiliation { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.affiliation a { color: var(--ink); font-weight: 600; }
.field-line { color: var(--muted); font-size: 13.5px; margin: 0; }
.not-active { color: var(--muted); font-size: 13.5px; margin: 2px 0 4px; }
.aff-last { color: var(--muted); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.email-out { font-weight: 600; overflow-wrap: anywhere; }
.score-card { width: 360px; border-left: 1px solid var(--line); padding-left: 24px; display: grid; gap: 12px; align-content: center; text-align: center; }
.score-card > .eyebrow { justify-self: center; }
/* The career total on its own row (it can reach six digits), the last five years and the field rank side by side
   below it; a long field name wraps under the rank instead of pushing into the total (owner's report, 3 November). */
/* Owner, 20 November: two rows, each score with its own field rank beside it (career row first, larger). */
.trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.trio > div { display: grid; gap: 4px; justify-items: center; align-content: center; padding: 4px 8px; min-width: 0; }
.trio .rank { border-left: 1px solid var(--line); }
.trio .wide { grid-column: 1 / -1; }
.trio .hero, .trio .hero + .rank { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.rank-share { font: 600 12px/1.6 var(--f-b); font-style: normal; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0 9px; white-space: nowrap; letter-spacing: 0; }
.trio span:not(.badge-star) { overflow-wrap: anywhere; }
.trio strong { font: 600 22px/1 var(--f-n); color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
/* A long rank may break before its " / count", keeping each number whole (21 November). */
.trio .rank strong { white-space: normal; line-height: 1.15; }
.trio .rank strong small { white-space: nowrap; }
.trio .hero strong { font-size: clamp(34px, 4.2vw, 44px); letter-spacing: -.04em; }
.trio small { font-size: .62em; color: var(--muted); font-weight: 500; }
.trio span:not(.badge-star) { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.score-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.score-unranked { margin: 0; color: var(--ink-2); font-size: 14px; }
.score-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; margin: 0; }
.counts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.counts a { display: grid; gap: 2px; align-content: start; height: 100%; padding: 12px 14px; border-radius: var(--r-s); background: var(--raised); color: var(--ink); }
.counts a:hover { text-decoration: none; color: var(--ink); background: var(--accent-soft); }
.counts strong { font: 600 22px/1.1 var(--f-n); letter-spacing: -.02em; }
.counts span { font-size: 12.5px; color: var(--muted); }

/* ---------- profile layout with grouped side menu (7C) ---------- */
.profile-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.ptabs { position: sticky; top: 16px; border-right: 1px solid var(--line); padding-right: 14px; min-width: 0; }
.ptabs-toggle { display: none; }
.ptabs-h { font: 600 11.5px/1 var(--f-b); color: var(--muted); letter-spacing: .05em; padding: 16px 10px 6px; margin: 0; }
.ptabs-list > .ptabs-h:first-child { padding-top: 2px; }
.ptabs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tab { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-s); color: var(--ink-2); font-size: 14px; }
.tab:hover { background: var(--raised); text-decoration: none; color: var(--ink); }
.tab[aria-current="page"] { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.tab[aria-current="page"] .tab-count { background: var(--surface); color: var(--accent-2); }
.profile-panel { display: grid; gap: 20px; min-width: 0; align-content: start; }

/* ---------- overview (8A) ---------- */
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.ov-col { display: grid; gap: 20px; min-width: 0; }
.subh { font: 600 12.5px/1.2 var(--f-b); color: var(--muted); margin: 16px 0 8px; }
.card .subh:first-of-type { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline-item { position: relative; display: grid; gap: 2px; padding: 0 0 16px 22px; }
.timeline-item::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: -4px; width: 1.5px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ""; position: absolute; left: 1px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-years { font: 700 12.5px/1.3 var(--f-b); color: var(--accent); letter-spacing: .02em; }
.timeline-title { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.timeline-place { font-size: 13.5px; color: var(--ink-2); }
.timeline-unit { font-size: 12.5px; color: var(--muted); }
.thesis-box { display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 9px 12px; margin-top: 8px; }
.thesis-box q { font-style: italic; }
.thesis-label { font: 600 10.5px/1.2 var(--f-b); letter-spacing: .08em; color: var(--muted); }

/* ---------- publication records (10C) and other entries ---------- */
.entries { list-style: none; padding: 0; margin: 0; }
.entry { padding: 14px 0; border-top: 1px solid var(--line-2); display: grid; gap: 4px; min-width: 0; }
.entry:first-child { border-top: 0; padding-top: 2px; }
.entry-title { font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--accent); }
.entry-meta { color: var(--muted); font-size: 13.5px; }
.entry-people { color: var(--ink-2); font-size: 13.5px; }
.entry-people a { color: var(--ink-2); }
.entry-people a:hover { color: var(--accent); }
/* Linked author names and links inside running text carry the same thin underline as .prose links (WCAG 1.4.1;
   audit D4, D5, 10 November). */
.entry-people a, .text-link { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.entry-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.side-entry-title { font-weight: 600; }
.more-toggle { border: 0; background: none; padding: 0 2px; color: var(--accent); font: 600 13px/1 var(--f-b); cursor: pointer; }
.more-toggle:hover { text-decoration: underline; }
.entries.pubs { display: grid; gap: 12px; }
.entry.pub { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.entry.pub:first-child { padding-top: 16px; }
.pub-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pub-type { display: inline-flex; gap: 6px; align-items: center; font: 600 12px/1 var(--f-b); color: var(--accent-2); }
/* Publication kinds carry their own icon (owner, 3 November): article, proceedings, book */
.pub-type .ic { width: 16px; height: 16px; }
.pub-year { font: 500 12.5px/1 var(--f-n); color: var(--muted); }
.entry.pub .entry-title { font-size: 16.5px; line-height: 1.35; }
.entry.pub .entry-meta { font-style: normal; }
.pub-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line-2); padding-top: 10px; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; min-width: 0; }
.pub-mark { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; max-width: 100%; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); font: 500 11.5px/1.4 var(--f-b); overflow-wrap: anywhere; }
.pub-access { color: var(--accent-2); }
a.pub-access:hover { background: var(--accent-soft); text-decoration: none; }
.pub-pdf { padding-left: 6px; border-left: 1px solid var(--line); font-size: 10.5px; }
.pub-percentile { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.pub-corresponding { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.pub-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.cites { display: inline-flex; gap: 5px; align-items: center; font: 600 13px/1 var(--f-n); color: var(--ink); background: var(--raised); padding: 8px 10px; border-radius: var(--r-s); white-space: nowrap; }
.entries.compact .entry { padding: 12px 0; }
.entries.compact .entry:first-child { padding-top: 0; }
.entries.compact .entry-title { font-size: 14.5px; }
.kind-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13.5px/1 var(--f-b); }
.pill:hover { text-decoration: none; color: var(--ink); border-color: var(--muted); }
.pill[aria-current="true"], .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill[aria-current="true"] .tab-count { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.pub-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.pub-filters label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pub-filters input, .pub-filters select { height: 40px; padding: 0 10px; border: 1px solid var(--field-border); border-radius: var(--r-s); background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.pub-filter-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.profile-record-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.profile-record-filters > label { min-width: 0; }
.profile-record-filters input, .profile-record-filters select, .profile-record-filters .button { min-height: 44px; }
.profile-record-filters .pub-filter-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.profile-tab-results { margin: 0 0 16px; font-size: 13px; }
@media (max-width: 600px) {
  .pub-filters.profile-record-filters { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- change history and correction banner (16B) ---------- */
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table th { text-align: left; font: 600 12px/1.2 var(--f-b); color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--raised); white-space: nowrap; }
.history-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table time { font: 500 12.5px/1.6 var(--f-n); color: var(--muted); white-space: nowrap; }
.tbl-w { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.history-card > p { margin: 0 0 12px; }
.banner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.banner > div { display: flex; gap: 12px; align-items: center; min-width: 0; }
.banner p { margin: 0; }
.banner-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.history { margin: 0; padding-left: 1.1rem; }
.history time { color: var(--muted); margin-right: .5rem; }
.report { color: var(--muted); font-size: 14px; }

/* ---------- co-author network (9A) ---------- */
.network { display: grid; gap: 12px; }
.network-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.network-head h2 { margin: 0; }
.network-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.network-zoom { display: inline-flex; gap: 4px; }
.network-zoom .icon-button { width: 34px; height: 34px; font-size: 16px; }
.network-frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); overflow: hidden; }
.network-stage { aspect-ratio: 660 / 520; width: 100%; }
.network-svg { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; user-select: none; }
.net-spoke, .net-link { stroke: var(--muted); fill: none; vector-effect: non-scaling-stroke; }
.net-link.hot, .net-spoke.hot { stroke: var(--accent); }
.net-node { cursor: pointer; outline: none; }
.net-node:not(.net-self) { touch-action: none; -webkit-touch-callout: none; }
.net-node circle { stroke: var(--bg); stroke-width: 2; }
.net-node:focus-visible circle, .net-node:hover circle { stroke: var(--accent); stroke-width: 3; }
.net-self circle { fill: var(--ink); }
.net-own circle { fill: var(--accent); }
.net-other circle { fill: var(--muted); }
/* Same-institution people carry a thin outer ring besides the colour (WCAG 1.4.1). */
.net-node .net-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.net-initials { fill: var(--bg); font: 700 15px var(--f-b); text-anchor: middle; pointer-events: none; }
.net-label { fill: var(--ink); font: 600 12px var(--f-b); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.net-label.is-off { opacity: 0; }
.net-label.is-self { font-size: 13px; }
.dim { opacity: .14; }
.net-info { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-height: 44px; padding: 10px 14px; border-radius: var(--r-s); background: var(--raised); font-size: 13.5px; color: var(--ink-2); }
.net-info strong { color: var(--ink); }
.network-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ink-2); align-items: center; }
.network-legend li::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend-self::before { background: var(--ink); }
.legend-own::before { background: var(--accent); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--accent); }
.legend-other::before { background: var(--muted); }
.network-legend .legend-size::before { display: none; }
.network-legend .legend-size { color: var(--muted); }

/* ---------- score tab (11B) ---------- */
.score-comp { display: grid; gap: 14px; }
.score-comp > p { margin: 0; }
.donut-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: center; }
.donut { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.donut-track { fill: none; stroke: var(--raised); stroke-width: 42; }
.donut-seg { fill: none; stroke-width: 42; transition: opacity .15s; }
.donut-seg:focus-visible { outline: none; stroke-width: 48; }
.donut:has(.donut-seg:hover) .donut-seg:not(:hover) { opacity: .45; }
.donut-total { font: 600 32px var(--f-n); fill: var(--ink); text-anchor: middle; letter-spacing: -.03em; }
.donut-label { font: 500 12.5px var(--f-b); fill: var(--muted); text-anchor: middle; }
.s1 { stroke: var(--c1); } .s2 { stroke: var(--c2); } .s3 { stroke: var(--c3); } .s4 { stroke: var(--c4); }
.s5 { stroke: var(--c5); } .s6 { stroke: var(--c6); } .s7 { stroke: var(--c7); } .s8 { stroke: var(--c8); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; margin-right: 9px; vertical-align: 0; background: var(--muted); }
.sw.s1 { background: var(--c1); } .sw.s2 { background: var(--c2); } .sw.s3 { background: var(--c3); } .sw.s4 { background: var(--c4); }
.sw.s5 { background: var(--c5); } .sw.s6 { background: var(--c6); } .sw.s7 { background: var(--c7); } .sw.s8 { background: var(--c8); }
.score-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; margin: 0 0 14px; }
.score-table th, .score-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.score-table td { font-family: var(--f-n); }
.score-table th[scope="row"], .score-table thead th:first-child { text-align: left; font-weight: 500; font-family: var(--f-b); }
.score-table thead th { color: var(--muted); font: 600 12px/1.2 var(--f-b); }
.score-table tfoot th, .score-table tfoot td { border-bottom: 0; border-top: 1px solid var(--line); }
.score-table tbody tr.on { background: var(--raised); }
.donut-wrap .score-table { margin: 0; }
.rec { border-top: 1px solid var(--line); }
.rec:last-child { border-bottom: 1px solid var(--line); }
.rec summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 2px; cursor: pointer; font-weight: 600; }
.rec summary::-webkit-details-marker { display: none; }
.rec summary .ic { color: var(--muted); transition: transform .2s; }
.rec[open] summary .ic { transform: rotate(180deg); }
.rec-pts { margin-left: auto; font: 600 14px/1 var(--f-n); }
.rec .entries { padding: 0 0 10px 14px; }
.rec .entry { border-top: 1px dashed var(--line-2); }
.rec .entry:first-child { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.rec > p { padding: 0 0 12px 14px; margin: 0; }

/* ---------- field ranking (12B) ---------- */
.list-head.centered { text-align: center; justify-items: center; }
p.centered { text-align: center; }  /* empty states marked centred (21 November) */
.rank-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; border: 0; padding: 0; margin: 4px 0 0; }
.rank-filters legend { width: 100%; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13.5px/1 var(--f-b); cursor: pointer; }
.fchip input { accent-color: var(--accent); margin: 0; width: 15px; height: 15px; }
.fchip:has(input:checked) { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.fchip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ranked { list-style: none; padding: 0; margin: 0; }
.ranked-row { display: grid; grid-template-columns: minmax(44px, max-content) auto minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ranked-rank { font: 600 13px/1 var(--f-n); color: var(--muted); text-align: right; white-space: nowrap; }  /* long ranks widen their track (21 November) */
.ranked-row .person-photo, .ranked-row .person-avatar { width: 38px; height: 38px; font-size: 13px; }
.ranked-who { min-width: 0; display: grid; gap: 1px; }
.name-line > a, .name-line > span:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ranked-who .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranked-bar { width: 100%; height: 8px; display: block; border-radius: 4px; overflow: hidden; }
.ranked-bar .bg { fill: var(--line-2); }
.ranked-bar .fg { fill: var(--accent); }
.ranked-score { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; align-items: center; text-align: right; }
.ranked-score strong { font: 600 14.5px/1 var(--f-n); color: var(--ink); min-width: 4ch; }
.ranked-score .rank-share { order: -1; }
.podium-list .ranked { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 12px; align-items: end; }
.podium-list .ranked-row { grid-column: 1 / -1; order: 4; }
.podium-list .ranked-row.is-top { grid-column: auto; order: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 6px; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; margin-bottom: 8px; }
.podium-list .ranked-row.top-1 { order: 2; padding-block: 26px; border-color: var(--accent); box-shadow: var(--sh); }
.podium-list .ranked-row.top-3 { order: 3; }
.podium-list .is-top .ranked-rank { font: 600 12px/1 var(--f-n); color: var(--accent-2); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; text-align: center; }
.podium-list .is-top .person-photo, .podium-list .is-top .person-avatar { width: 54px; height: 54px; font-size: 18px; }
.podium-list .top-1 .person-photo, .podium-list .top-1 .person-avatar { width: 66px; height: 66px; }
.podium-list .is-top .ranked-who { justify-items: center; width: 100%; }
.podium-list .is-top .ranked-who > a, .podium-list .is-top .ranked-who > span:first-child { white-space: normal; }
.podium-list .is-top .ranked-score { justify-content: center; }
.podium-list .is-top .ranked-score strong { font-size: 22px; }

/* ---------- rising stars and duayens by field (13C) ---------- */
/* One field per page since the badge directories (3 November): the list uses the full width */
.rs-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 28px; align-items: start; }
.rs-group h2 { font-size: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin: 0 0 2px; }
.rs-groups .ranked-row { grid-template-columns: minmax(40px, max-content) auto minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; }
.rs-groups .ranked-rank { font-weight: 500; font-size: 13px; }
.rs-groups .ranked-row .person-photo, .rs-groups .ranked-row .person-avatar { width: 44px; height: 44px; }
.rs-groups .ranked-score strong { color: var(--star); }

/* ---------- method page (14A) ---------- */
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-toc { position: sticky; top: 16px; display: grid; gap: 2px; font-size: 14px; border-left: 2px solid var(--line); }
.doc-toc p { font: 600 11.5px/1 var(--f-b); color: var(--muted); letter-spacing: .05em; margin: 0 0 8px 12px; }
.doc-toc a { color: var(--ink-2); padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--accent); text-decoration: none; }
.doc-toc a[aria-current="true"] { color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ---------- prose: method and legal texts ---------- */
.prose { max-width: 70ch; font-size: 16px; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.card.prose { max-width: 52rem; margin: 0 auto; padding: 32px; }
.prose h1 { margin-bottom: 14px; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; color: var(--ink); scroll-margin-top: 16px; }
.prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.prose p, .prose li { color: var(--ink-2); }
/* Links inside running text carry a thin underline (WCAG 1.4.1); buttons keep their own look. */
.prose p a:not(.button):not(.btn), .prose li a:not(.button):not(.btn) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose ul { padding-left: 1.3rem; margin: 0 0 .9rem; display: grid; gap: 4px; }
.prose .score-table { margin: 14px 0 16px; font-size: 14.5px; }
.prose .score-table td { text-align: right; }
.prose .eyebrow { margin-bottom: 8px; }
.request-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.request-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; color: var(--ink); }
.request-form .hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
.request-form input, .request-form select, .request-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--field-border); border-radius: var(--r-s); background: var(--bg); color: var(--ink); }
.request-form textarea { min-height: 10rem; resize: vertical; }
.request-form .check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--ink-2); }
.request-form .check input { width: auto; margin-top: .3rem; }
.request-form [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.request-form .check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.request-form .check input[aria-invalid="true"]:focus-visible { outline-color: var(--accent); }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: .88rem; font-weight: 500; }
.field-error .ic { flex: none; }
.request-form label + .field-error { margin-top: -.6rem; }
.form-errors:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.request-form .code { max-width: 12rem; font-size: 1.4rem; letter-spacing: .3em; }
.form-errors { border-left: 3px solid var(--danger); }
.form-errors ul { margin: .25rem 0 0; }

/* ---------- administration panel (/yonetim), markup unchanged ---------- */
.profile-body { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin-top: 1.5rem; }
.profile-side { flex: 1 1 18rem; max-width: 23rem; }
.profile-main { flex: 999 1 34rem; min-width: 0; }
.search-bar { display: flex; gap: 8px; }
.search-bar > input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: var(--r-s); background: var(--surface); }
.admin-narrow { max-width: 30rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.admin-bar h1 { margin: 0; display: flex; align-items: center; gap: .6rem; }
.admin-bar form { display: flex; gap: .6rem; align-items: center; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-facts { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: .4rem 1rem; margin: 0 0 1rem; }  /* a long label never squeezes the values (owner, 18 November) */
.admin-facts dt { color: var(--muted); font-weight: 500; }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.secret { font-size: .95rem; overflow-wrap: anywhere; }
.status { font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink-2); }
.status-verified, .status-manual { background: var(--accent); color: var(--on-accent); }
.inline-form { display: inline; }
.admin-actions { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.admin-actions li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.field-form { grid-template-columns: 1fr auto; align-items: end; margin-top: .5rem; }
.admin-row { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.admin-row.is-hidden span:first-child { color: var(--muted); text-decoration: line-through; }
.admin-nav { margin-bottom: .25rem; }
.admin-bad { color: #b42318; font-weight: 600; }
.status-bad { background: #b42318; color: #ffffff; }
.status-good { background: var(--ok); color: var(--on-accent); }
.admin-search { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.admin-search label { display: grid; gap: .2rem; font-size: .85rem; color: var(--muted); }
.admin-meter { width: 100%; min-width: 6rem; height: .8rem; }
.admin-pager { display: flex; gap: .6rem; justify-content: space-between; margin-top: .75rem; }
.admin-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-bad { color: #ff8a80; }
  :root:not([data-theme="light"]) .status-bad { background: #ff8a80; color: #2a0b08; }
}
:root[data-theme="dark"] .admin-bad { color: #ff8a80; }
:root[data-theme="dark"] .status-bad { background: #ff8a80; color: #2a0b08; }

/* ---------- standalone maintenance page ---------- */
.standalone { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.standalone .state { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .score-card { width: auto; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .score-card { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}
@media (max-width: 960px) {
  .overview { grid-template-columns: minmax(0, 1fr); }
  .star-grid, .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
}
@media (max-width: 47.99rem) {
  .wrap { padding: 0 16px; }
  .page { padding: 20px 0 48px; }
  .header-grid, .header-grid.no-search { grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; padding-bottom: 12px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .menu-button { display: inline-flex; grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; justify-self: stretch; gap: 4px 18px; }
  .js-enabled .site-nav:not(.is-open) { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .home { gap: 30px; }
  .hero { padding-top: 12px; }
  .hero .lead { font-size: 16px; }
  .star-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .filters h2, .filters > .button, .filters > p { grid-column: 1 / -1; }
  .card { --pad: 16px; }
  .card.prose { padding: 20px 16px; }
  .profile-head { gap: 16px; }
  .portrait { width: 84px; }
  .avatar { width: 84px; height: 84px; font-size: 1.7rem; }
  .actions .btn { flex: 1 1 auto; }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .counts a { padding: 10px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ptabs { position: static; border-right: 0; padding-right: 0; }
  .js-enabled .ptabs-toggle { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font-weight: 600; text-align: left; }
  .ptabs-toggle .ic { margin-left: auto; transition: transform .2s; }
  .ptabs.is-open .ptabs-toggle .ic { transform: rotate(180deg); }
  .js-enabled .ptabs:not(.is-open) .ptabs-list { display: none; }
  .js-enabled .ptabs-list { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); padding: 6px; }
  .entity-head { padding: 18px; }
  .entity-stats { padding-top: 18px; }
  .entity-stats { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .entity-stats div:nth-child(3) { border-left: 0; }
  .donut-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ranked-row { grid-template-columns: minmax(30px, max-content) auto minmax(0, 1fr) auto; gap: 10px; }
  .ranked-bar { display: none; }
  .podium-list .ranked { gap: 6px; }
  .podium-list .ranked-row.is-top { padding: 12px 6px; }
  .podium-list .is-top .ranked-who .muted { display: none; }
  .podium-list .is-top .ranked-who > a { font-size: 13px; }
  .podium-list .is-top .ranked-score strong { font-size: 17px; }
  .podium-list .is-top .person-photo, .podium-list .is-top .person-avatar { width: 44px; height: 44px; }
  .entry.pub { padding: 14px; }
  .banner { padding: 14px 16px; }
}
@media (max-width: 30rem) {
  .person { grid-template-columns: auto minmax(0, 1fr); }
  .person-end { grid-column: 2; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
  .person-badges { justify-content: flex-start; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 14px 6px; }
  .stat-label { font-size: 12px; }
  .star-card { padding: 14px 12px 12px; gap: 10px; }
  .sc-head { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .sc-head > .av, .sc-head > .person-photo { width: 40px; height: 40px; font-size: 14px; }
  .sc-mark { grid-column: 2; justify-self: end; }
  .sc-id { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
  .star-card .nm { font-size: 14px; }
  .star-card .pts { flex-direction: column; align-items: flex-start; gap: 4px; }
  .star-card .pts .num { order: -1; font-size: 18px; }
  .ranked-score { flex-direction: column; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Kurumlar: the Kurum Endeksi list (owner, 3 November) */
.inst-list .ranked-row { grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) auto; }
.inst-counts { display: block; margin-top: 2px; }
.rank-filters select { margin-left: 4px; }

/* Badge directories: main field -> field cards with three faces (owner, 3 November) */
.badge-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; }
.badge-main { margin-bottom: 28px; }
.badge-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.badge-card { display: flex; flex-direction: column; gap: 10px; }
.badge-card > a.small { margin-top: auto; }  /* the link at every card's foot (21 November) */
.badge-card-head { display: grid; gap: 2px; color: var(--ink); }
.badge-faces { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.badge-faces li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.badge-faces a, .badge-faces span:not(.person-avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home: main fields that open their fields (owner, 3 November) */
/* (owner, 3 November: "daha estetik olabilir") the name on its own line, the count a quiet line under it, a chevron
   that turns when open, and the fields in two columns where the card is wide enough. */
.main-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.main-field { padding: 0; overflow: hidden; transition: border-color .15s; }
.main-field:hover, .main-field:has(details[open]) { border-color: var(--accent); }
.main-fields summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  min-height: 98px; }  /* owner, 5 Nov: every closed card the height of a two-line name */
.main-fields summary::-webkit-details-marker { display: none; }
.main-fields summary:focus-visible { outline-offset: -2px; border-radius: var(--r); }
.mf-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mf-name { font: 600 16px/1.3 var(--f-d); color: var(--ink); letter-spacing: -.005em; }
.mf-count { font-size: 13px; color: var(--muted); }
/* Only the chevron (the summary's own svg) turns; the field icon inside .field-mark stays upright (21 November). */
.main-fields summary > .ic { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--raised); color: var(--accent); transition: transform .2s; }
.main-fields details[open] summary > .ic { transform: rotate(180deg); }
/* Owner, 21 November: on wide screens a one-line name keeps a two-line slot, so the counts of a row share a line. */
@media (min-width: 768px) { .mf-name { min-height: 2.6em; display: flex; align-items: flex-end; } }
.main-fields details[open] summary { border-bottom: 1px solid var(--line-2); }
.main-field-list { list-style: none; margin: 0; padding: 10px 12px 12px; display: grid; gap: 2px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); max-height: 340px; overflow-y: auto; }
.main-field-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; padding: 5px 6px; border-radius: 6px; font-size: 13.5px; line-height: 1.35; }
.main-field-list li:hover { background: var(--raised); }
.main-field-list a { min-width: 0; color: var(--ink); }
.main-field-list a:hover { color: var(--accent-2); }
.main-field-list .num { flex: none; font-size: 12px; }

/* Footer: one centred copyright line (owner, 3 November) */
.copyright { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.copy-mark { width: 22px; height: 22px; flex: none; }
/* Profile contact: quiet pill links under the identity (owner, 3 November) */
.contact-row { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 13.5px/1.2 var(--f-b); cursor: pointer; text-decoration: none; }
.contact-link:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.contact-link .ic { color: var(--accent); }
.contact-link.email-out span { overflow-wrap: anywhere; }
.contact-link[aria-busy="true"] { cursor: progress; opacity: .7; }
.contact-link[hidden] { display: none; }  /* owner, 11 November: the e-mail button never flashes before the address */
/* Research areas: main field -> field, then the sub-fields (owner, 3 November) */
.area-tree { list-style: none; margin: 0 0 4px; padding: 0 0 0 14px; border-left: 2px solid var(--accent-soft); display: grid; gap: 10px; }
.area-tree li { display: grid; gap: 1px; }
.area-kind { font: 600 11px/1.3 var(--f-b); letter-spacing: .06em; color: var(--muted); }
.area-name { color: var(--ink); font-weight: 500; }
/* "Alt Alanlar" reads like its sibling labels ("Temel Alan", "Bilim Alanı") and keeps its space (audit D20). */
.card.research .subh { margin: 16px 0 8px; font: 600 12px/1.3 var(--f-b); letter-spacing: .06em; color: var(--muted); }
/* Badges right after a name in lists (owner, 3 November) */
/* Name and badges on one line; a badge is as wide as its text (owner, 3 November) */
.name-line, .person-line { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.is-top .name-line { justify-content: center; }
.badge-mini { flex: none; width: max-content; justify-self: start; margin-left: 0 !important; }
.badge-mini { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--star-soft); color: var(--star); font: 600 11px/1.7 var(--f-b); vertical-align: 2px; white-space: nowrap; }
.badge-mini.duayen { background: var(--duayen-soft); color: var(--duayen); }
/* Owner, 5 November: Duayen violet, Yükselen Yıldız gold. */
.badge-star.badge-duayen { color: var(--duayen); background: var(--duayen-soft); }
.ic-b { width: 1.15em; height: 1.15em; stroke-width: 2; }
/* Career and education headings with an icon, like trbio.info (owner, 3 November) */
.tl-head { display: flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--f-b); color: var(--ink); margin: 18px 0 12px; }
.card .tl-head:first-of-type { margin-top: 4px; }
.tl-head .ic { color: var(--accent); }
.timeline-item { padding-bottom: 20px; }
/* One line for the institution path; the full path in the title (owner, 3 November) */
/* A long institution path: the university, then the faculty and department on their own line (owner, 3 November) */
.affiliation.split { display: grid; gap: 2px; }
.affiliation.split .units { color: var(--ink-2); font-size: 13.5px; }
/* Home institution tiles: crest, name, city and people (owner, 3 November) */
.inst-tile { justify-content: flex-start !important; gap: 12px !important; min-height: 64px; }
.inst-tile-body { display: grid; gap: 2px; min-width: 0; }
.inst-tile-body strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest-s { width: 36px; height: 36px; font-size: 13px; flex: none; }

/* Clickable research areas, sub-fields, journals and tags (owner, 3 November) */
a.chip:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
a.area-name { color: var(--ink); }
a.area-name:hover { color: var(--accent-2); }
a.tag:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.venue-link { color: inherit; }
.venue-link:hover { color: var(--accent-2); }
.list-order { display: flex; width: fit-content; margin: 0 auto 12px; }  /* centred under the centred field search (21 November) */
a.timeline-place { color: var(--ink-2); } a.timeline-place:hover { color: var(--accent-2); }
/* Network: the hint, legend and note centred under the graph (owner, 3 November) */
.network .net-info { justify-content: center; text-align: center; }
.network .source { text-align: center; }
.network .network-legend { justify-content: center; text-align: center; }
.network .network-legend .legend-size { flex-basis: 100%; }
.entity-stats a { color: inherit; }
/* Owner, 21 November: one link per linked figure, the label's, stretched over the whole cell (one touch target and
   one tab stop), so linked and plain figures keep the same value and label lines; the ring is drawn on the cell. */
.entity-stats div:has(dt a) { position: relative; border-radius: var(--r-s); }
.entity-stats dt a::after { content: ""; position: absolute; inset: 0; }
.entity-stats dt a:focus-visible { outline: none; }
.entity-stats div:has(dt a:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.entity-stats div:has(dt a:hover) dd { color: var(--accent-2); }
.entity-stats a:hover { color: var(--accent-2); text-decoration: none; }
/* Pager with page numbers and the page count (owner, 3 November) */
.pager { flex-wrap: wrap; }
.pager-gap { padding: 0 2px; color: var(--muted); }
.pager-count { color: var(--muted); font-size: 13px; padding: 0 6px; }
/* A badge sits on the name's line, centred on it */
.badge-mini { align-self: center; line-height: 18px; padding-top: 1px; padding-bottom: 1px; }
/* Ctrl+K quick search (owner, 3 November) */
.kbd-open { border: 0; background: none; padding: 0 6px; cursor: pointer; color: var(--muted); }
kbd { font: 600 11px/1 var(--f-n); padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--raised); }
.palette { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 560px); padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); margin-top: 12vh; }
.palette::backdrop { background: rgba(5, 10, 14, .55); }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--field-border); border-radius: var(--r) var(--r) 0 0; }
.palette-in:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.palette-in input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 500 16px/1.4 var(--f-b); outline: none; min-width: 0; }
.palette-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: calc(min(70vh, 560px) - 110px); }
.palette-group { padding: 10px 10px 4px; font: 600 11px/1.2 var(--f-b); letter-spacing: .06em; color: var(--muted); }
.palette-list [role=option] a { display: grid; gap: 1px; padding: 8px 10px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.palette-list [role=option] span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-list [aria-selected=true] a, .live-list [aria-selected=true] a { outline: 2px solid var(--accent); outline-offset: -2px; }
.palette-list [aria-selected=true] a { background: var(--accent-soft); }
.palette-none { margin: 0; padding: 14px 18px; color: var(--muted); }
.palette-list ul, .live-list ul { list-style: none; margin: 0; padding: 0; }
.palette-all { display: block; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.palette-all[hidden] { display: none; }
/* University, city and title filters on the ranked lists (owner, 3 November) */
.list-filters { display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 900px; margin: 14px auto 0; }
.list-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 640px; }
.list-filter-row .filter-field { display: grid; gap: 4px; text-align: left; font-size: 12.5px; color: var(--muted); }
@media (max-width: 47.99rem) { .list-filter-row { grid-template-columns: minmax(0, 1fr); } }

/* ---- Profile tabs beyond publications (owner, 3 November): an icon in the heading, project and thesis cards,
   the overview timeline for education and duties, person cards for co-authors, icon tiles for the rest. ---- */
.tab-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab-h-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tab-h .count-badge { margin-left: 0; }
/* Cards: the publication card's frame */
.entries.tcards { display: grid; gap: 12px; }
.entry.tcard { gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s; }
.entry.tcard:first-child { padding-top: 16px; border-top: 1px solid var(--line); }
.entry.tcard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.entry.tcard .entry-title { font-size: 16px; line-height: 1.38; }
.entry.tcard .pub-type { min-width: 0; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 2px; color: var(--muted); font-size: 13px; }
.card-meta > span, .card-meta > a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.card-meta .ic { color: var(--accent); opacity: .85; }
/* Project status: done, ongoing, cancelled */
.state-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--ink-2); font: 600 12px/1.4 var(--f-b); white-space: nowrap; }
.state-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.state-pill.is-done { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.state-pill.is-going { background: var(--accent-soft); color: var(--accent-2); }
.state-pill.is-off { color: var(--muted); }
/* Project team as name chips; the principal investigator stands out */
.member-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.member { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; max-width: 100%; padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--ink-2); font: 500 13px/1.5 var(--f-b); overflow-wrap: anywhere; }
.member a { color: var(--ink); }
.member a:hover { color: var(--accent); }
.member .self { background: none; padding: 0; }
.member-role { color: var(--muted); font-weight: 400; font-size: 12px; }
.member-role::before { content: "·"; margin-right: 6px; }
.member.is-lead { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.member.is-lead .member-role { color: var(--accent-2); }
/* Thesis level pill and the quiet record link */
.level-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--ink-2); font: 600 12px/1.4 var(--f-b); }
.level-pill .ic { width: 14px; height: 14px; }
.level-pill.level-phd { background: var(--accent-soft); color: var(--accent-2); }
.level-pill.level-med, .level-pill.level-art { background: var(--star-soft); color: var(--star); }
.quiet-ext { margin-left: auto; color: var(--muted); font-weight: 500; }
.quiet-ext:hover { color: var(--accent-2); text-decoration: none; }
.card-meta .quiet-ext .ic { color: currentColor; opacity: 1; }
/* Education and duties: the overview timeline */
.tab-timeline { margin-top: 6px; }
.tab-timeline .timeline-item:last-child { padding-bottom: 0; }
.tab-timeline .timeline-title, .tab-timeline .timeline-place, .tab-timeline .timeline-unit { overflow-wrap: anywhere; }
/* Co-authors: small person cards */
.co-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.co-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; transition: border-color .15s; }
.co-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.person-avatar.co-av { width: 42px; height: 42px; font-size: 14px; }
.co-body { display: grid; gap: 2px; min-width: 0; }
.co-name { font: 600 15px/1.3 var(--f-b); color: var(--ink); overflow-wrap: anywhere; }
a.co-name:hover { color: var(--accent); text-decoration: none; }
.co-pos { font-size: 13px; color: var(--ink-2); }
.co-inst { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.co-shared { display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font: 600 12px/1.5 var(--f-b); }
/* Awards, memberships, lessons, art activities, patents: an icon tile, the body, the time on the right */
.entry.tcard.box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; }
.box-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.box-body { display: grid; gap: 4px; min-width: 0; }
.box-when { font: 700 12.5px/1.3 var(--f-b); color: var(--accent); letter-spacing: .02em; white-space: nowrap; padding-top: 3px; }
@media (max-width: 47.99rem) {
  .entry.tcard { padding: 14px; }
  .entry.tcard.box { grid-template-columns: auto minmax(0, 1fr); }
  .box-when { grid-column: 2; padding-top: 0; white-space: normal; }
  .box-ic { width: 34px; height: 34px; }
  .quiet-ext { margin-left: 0; }
}
@media (max-width: 47.99rem) { .entry.tcard:first-child { padding-top: 14px; } }
/* Home: the Kurum Endeksi top ten (owner, 3 November). Two columns of five rows (1-5 left, 6-10 right) on wide
   screens; .inst-logo is the logo slot (the initials crest until the logos arrive). */
.inst-top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 12px; }
.it-row { position: relative; display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); color: var(--ink); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.it-row:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; box-shadow: 0 2px 4px rgb(19 35 43 / 6%), 0 10px 24px rgb(19 35 43 / 8%); transform: translateY(-1px); }
.it-row.is-podium::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .55; }
.it-rank { justify-self: center; font: 600 18px/1 var(--f-n); color: var(--muted); }
.is-podium .it-rank { color: var(--accent); }
.inst-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex: none; }
.inst-logo > img { width: 100%; height: 100%; object-fit: contain; }
.inst-logo .crest-s { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); font-size: 14.5px; }
.it-row:hover .inst-logo .crest-s { background: var(--accent); color: var(--on-accent); }
.it-body { display: grid; gap: 1px; min-width: 0; }
.it-body strong { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.it-row:hover .it-body strong { color: var(--accent-2); }
.it-city { font-size: 12.5px; color: var(--muted); }
.it-top { justify-self: end; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; font-size: 14px; line-height: 1.2; }
@media (min-width: 48rem) { .inst-top-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; } }
@media (max-width: 30rem) {
  .it-row { grid-template-columns: 24px auto minmax(0, 1fr); gap: 10px; padding: 12px; }
  .inst-logo, .inst-logo .crest-s { width: 38px; height: 38px; font-size: 13px; }
  .it-top { grid-column: 3; justify-self: start; font-size: 13px; padding: 3px 9px; }
}
/* Search filters: the min/max pairs as two neat fields side by side (owner's screenshot, 3 November) */
.filters fieldset.range { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters fieldset.range legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.filters fieldset.range label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.filters fieldset.range input, .filters .filter-field input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 10px; border: 1px solid var(--field-border); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--f-b); }
/* Field icons (owner, 3 November: an icon specific to every field) */
.field-crest .ic { width: 34px; height: 34px; stroke-width: 1.6; }
.field-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.field-mark .ic { width: 22px; height: 22px; }
.badge-card-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.badge-card-head .field-mark { grid-row: span 2; }
/* Official institution logos (owner, 3 November) */
/* Owner, 3 November: every logo sits on the same white tile in both themes (true colours, crisp edges), with
   breathing room proportional to its size; a hairline keeps the tile apart from a white page. */
img.crest-logo, img.inst-mini, img.inst-row-logo, img.inst-head-logo {
  object-fit: contain; background: #fff; box-sizing: border-box; box-shadow: 0 0 0 1px rgb(19 35 43 / 10%);
  image-rendering: auto; }
img.crest-logo { padding: 6px; }
.inst-logo img.crest-logo, .inst-logo img.crest-logo:hover, .it-row:hover .inst-logo img.crest-logo { background: #fff; padding: 5px; }
.inst-mini { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; border-radius: 4px; padding: 1px; }
.inst-row-logo { width: 30px; height: 30px; border-radius: 7px; padding: 3px; flex: none; }
.inst-head-logo { width: 26px; height: 26px; vertical-align: -7px; margin-right: 9px; border-radius: 6px; padding: 2px; }
/* Profile overview: yearly chart, most cited works, most frequent co-authors (owner, 3 November) */
.yc-legend { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.yc-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.yc-articles::before { background: var(--accent); }
.yc-proceedings::before { background: var(--c1); }
.yc-books::before { background: var(--c4); }
.year-chart { display: flex; width: 100%; height: 166px; margin-top: 6px; }
.yc-slot { flex: 1 1 0; min-width: 0; height: 100%; padding-top: 24px; container: year-slot / inline-size; }
.yc-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; border-radius: 4px; cursor: pointer; transition: background .15s; }
.yc-bar:hover, .yc-bar:focus, .yc-bar.yc-active {
  background: color-mix(in srgb, var(--raised) 75%, var(--surface)); text-decoration: none; }
.yc-bar:focus-visible { outline-offset: 0; }
.yc-value { display: block; flex: none; width: max-content; color: var(--muted); font: 500 11px/14px var(--f-b); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.yc-column-graphic { display: block; flex: none; overflow: visible; }
/* Without JavaScript, hide a number when its complete label cannot fit in its own column. */
@container year-slot (max-width: 14px) { .yc-value[data-digits="1"] { visibility: hidden; } }
@container year-slot (max-width: 21px) { .yc-value[data-digits="2"] { visibility: hidden; } }
@container year-slot (max-width: 28px) { .yc-value[data-digits="3"] { visibility: hidden; } }
@container year-slot (max-width: 35px) { .yc-value[data-digits="4"] { visibility: hidden; } }
@container year-slot (max-width: 42px) { .yc-value[data-digits="5"] { visibility: hidden; } }
@container year-slot (max-width: 49px) { .yc-value[data-digits="6"] { visibility: hidden; } }
@container year-slot (max-width: 56px) { .yc-value[data-digits="7"] { visibility: hidden; } }
@container year-slot (max-width: 63px) { .yc-value[data-digits="8"] { visibility: hidden; } }
@container year-slot (max-width: 70px) { .yc-value[data-digits="9"] { visibility: hidden; } }
@container year-slot (max-width: 77px) { .yc-value[data-digits="10"] { visibility: hidden; } }
@container year-slot (max-width: 84px) { .yc-value[data-digits="11"] { visibility: hidden; } }
@container year-slot (max-width: 91px) { .yc-value[data-digits="12"] { visibility: hidden; } }
.yc-measured .yc-value { visibility: visible; }
.yc-measured .yc-value.yc-value-hidden { visibility: hidden; }
.yc-tooltip-layer { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.yc-tooltip { pointer-events: auto; position: relative; max-width: 100%; margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 14%); font: 500 12px/1.55 var(--f-b); overflow-wrap: anywhere; }
.yc-tooltip[data-placement="overlap"] { pointer-events: none; }
.yc-tooltip[data-placement="above"]::after, .yc-tooltip[data-placement="below"]::after {
  content: ""; position: absolute; inset-inline: 0; height: 6px;
}
.yc-tooltip[data-placement="above"]::after { top: 100%; }
.yc-tooltip[data-placement="below"]::after { bottom: 100%; }
.yc-tooltip[hidden] { display: none; }
.donut[hidden] { display: none; }  /* owner, 9 November: one ring at a time on every screen */
.yc-part { stroke: none; }
.yc-part.yc-articles { fill: var(--accent); }
.yc-part.yc-proceedings { fill: var(--c1); }
.yc-part.yc-books { fill: var(--c4); }
.yc-years { display: flex; margin-top: 8px; font-size: 10.5px; color: var(--muted); }  /* owner, 5 Nov: room under the bars */
.yc-years span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
.bibliometrics-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.bibliometrics-stats > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--raised); }
.bibliometrics-stats dt { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.bibliometrics-stats dd { order: -1; margin: 0; font: 600 22px/1.1 var(--f-n); letter-spacing: -.02em; overflow-wrap: anywhere; }
.topic-chips .chip { max-width: 100%; overflow-wrap: anywhere; }
.hbars.country-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding-block: 3px; }
.country-bars .hb-label { white-space: normal; overflow-wrap: anywhere; }
.country-bars .hb-count { grid-column: 2; grid-row: 1; }
.country-bars .hb-bar { grid-column: 1 / -1; grid-row: 2; height: 4px; }
.ov-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 63.99rem) { .ov-pair { grid-template-columns: minmax(0, 1fr); } }
.top-cited, .top-coauthors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top-cited li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.tc-count { font-weight: 700; font-size: 17px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-body { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.tc-body a { color: var(--ink); }
.top-coauthors li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tca-who { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; }
.tca-who > a { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tca-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tca-count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.similar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
@media (max-width: 47.99rem) { .similar-list { grid-template-columns: minmax(0, 1fr); } }
.similar-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; }
/* The faces fill their 38 px track (21 November; the shared face is 48 px). */
:is(.top-coauthors, .similar-list) :is(.person-photo, .person-avatar) { width: 38px; height: 38px; font-size: 13px; }
.sim-why { color: var(--accent); }
/* PDF report (owner, 3 November): the profile prints as a clean report, without site chrome or controls. */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { --bg: #fff; --surface: #fff; --raised: #f4f6f7; --ink: #000; --ink-2: #222; --muted: #444; --line: #bbb; --sh: none; }
  body { background: #fff !important; color: #000; font-size: 11pt; display: block; min-height: 0; }
  /* The e-mail never goes into an export (CLAUDE.md rule 12). */
  .site-header, .site-footer, .ptabs, .network, .no-print, .skip-link, dialog, [data-contact], .email-out { display: none !important; }
  .wrap, .page { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .profile-layout, .overview { display: block !important; }
  .profile-panel, .ov-col { width: auto !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid; margin: 0 0 8mm; }
  .profile-head { break-after: avoid; }
  .ov-pair, .similar-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .yc-part, .yc-legend li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .year-chart { height: 100px; }
}
.net-expand { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.net-expand:hover { background: var(--accent-soft); }
/* Province map (owner, 3 November) */
.map-card { display: grid; gap: 10px; }
.map-svg { width: 100%; height: auto; display: block; }
.province path, .province polygon { fill: var(--province-fill, var(--line-2)); stroke: var(--surface); stroke-width: 0.8; transition: fill .15s; }
/* Five steps, light to dark in the light theme; in the dark theme dark (few) to bright (many), the top three at least
   3:1 against the dark card (owner, 10 November, audit D3). */
:root { --map-1: #d6e8ef; --map-2: #a9cfdd; --map-3: #6fa9c0; --map-4: #3b7f9c; --map-5: #144a62; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --map-1: #1d3a47; --map-2: #2a5d73; --map-3: #3f7d99; --map-4: #62a8c6; --map-5: #a6d8ec; }
}
:root[data-theme="dark"] { --map-1: #1d3a47; --map-2: #2a5d73; --map-3: #3f7d99; --map-4: #62a8c6; --map-5: #a6d8ec; }
.province.m1 { --province-fill: url("#province-band-1") var(--map-1); }
.province.m2 { --province-fill: url("#province-band-2") var(--map-2); }
.province.m3 { --province-fill: url("#province-band-3") var(--map-3); }
.province.m4 { --province-fill: url("#province-band-4") var(--map-4); }
.province.m5 { --province-fill: url("#province-band-5") var(--map-5); }
.map-patterns { position: absolute; }
.map-patterns .m1 rect { fill: var(--map-1); }
.map-patterns .m2 rect { fill: var(--map-2); }
.map-patterns .m3 rect { fill: var(--map-3); }
.map-patterns .m4 rect { fill: var(--map-4); }
.map-patterns .m5 rect { fill: var(--map-5); }
.map-patterns path { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.map-patterns .m4 path { stroke: var(--surface); }
.map-patterns circle { fill: var(--surface); }
.map-stage a:hover path, .map-stage a:hover polygon, .map-stage a:focus path, .map-stage a:focus polygon { fill: var(--star); }
.map-info { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; min-height: 22px; font-size: 14px; color: var(--ink-2); }
.map-scale { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink); }
.map-scale li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px 2px 2px; border: 1px solid var(--field-border); border-radius: 4px; background: var(--surface); font-variant-numeric: tabular-nums; white-space: nowrap; }
.map-scale svg { flex: none; border-radius: 2px; }
.city-list { columns: 3 220px; column-gap: 28px; margin: 0; padding-left: 22px; }
.city-list li { break-inside: avoid; margin: 0 0 6px; }
.city-list .small { display: block; }
/* Science map (owner, 3 November) */
.science-card { display: grid; gap: 10px; }
.science-svg { width: 100%; height: auto; max-height: 78vh; display: block; }
.sci-link { stroke: var(--muted); vector-effect: non-scaling-stroke; }
.sci-link.hot { stroke: var(--accent); }
.sci-node circle { fill-opacity: .85; stroke: var(--surface); stroke-width: .8; }
.sci-node.hub circle { fill-opacity: 1; stroke-width: 2; }
.sci-node:hover circle, .sci-node:focus circle { stroke: var(--ink); stroke-width: 1.6; }
.sci-label { font-size: 9px; fill: var(--ink-2); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.sci-label.hub { font-size: 12px; font-weight: 700; fill: var(--ink); }
.science-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.science-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.sm0 circle, .science-legend .sm0::before { fill: var(--c1); background: var(--c1); }
.sm1 circle, .science-legend .sm1::before { fill: var(--c2); background: var(--c2); }
.sm2 circle, .science-legend .sm2::before { fill: var(--c3); background: var(--c3); }
.sm3 circle, .science-legend .sm3::before { fill: var(--c4); background: var(--c4); }
.sm4 circle, .science-legend .sm4::before { fill: var(--c5); background: var(--c5); }
.sm5 circle, .science-legend .sm5::before { fill: var(--c6); background: var(--c6); }
.sm6 circle, .science-legend .sm6::before { fill: var(--c7); background: var(--c7); }
.sm7 circle, .science-legend .sm7::before { fill: var(--c8); background: var(--c8); }
.sm8 circle, .science-legend .sm8::before { fill: #0f8a8a; background: #0f8a8a; }
.sm9 circle, .science-legend .sm9::before { fill: #8a5a2b; background: #8a5a2b; }
.sm10 circle, .science-legend .sm10::before { fill: #5f6b7a; background: #5f6b7a; }
.sm11 circle, .science-legend .sm11::before { fill: #b03f86; background: #b03f86; }
/* Institution and field charts (owner, 3 November) */
.dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.dashboard .dash-wide { grid-column: 1 / -1; }
@media (max-width: 47.99rem) { .dashboard { grid-template-columns: minmax(0, 1fr); } }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-bar { width: 100%; height: 10px; display: block; }
.hb-bar rect { fill: var(--accent); }
.hb-count { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.hbars-more { margin-top: 7px; }
.hbars-more > summary { width: fit-content; min-width: 44px; min-height: 44px; padding-block: 10px; color: var(--accent); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hbars-more > summary > .hbars-show-less,
.hbars-more[open] > summary > .hbars-show-all { display: none; }
.hbars-more[open] > summary > .hbars-show-less { display: inline; }
/* Institutions side by side (owner, 3 November) */
.compare-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.compare-form .sel { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.compare-card { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.compare thead th { vertical-align: bottom; }
.compare tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.compare-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.compare-mains { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.compare-link { text-align: center; margin: 8px 0; }
.compare .compare-detail-label { white-space: normal; min-width: 140px; }
.compare td { overflow-wrap: anywhere; }
.compare-cell-institution, .compare-year-card { display: none; }
.compare-best { color: var(--accent); font-weight: 700; }
.compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.compare-list li { min-width: 0; }
.compare-list a, .compare-mains a, .compare-name, .compare td > a { min-height: 44px; display: flex; align-items: center; gap: 6px; }
.compare-list a { width: fit-content; min-width: 44px; max-width: 100%; }
.compare-person-detail { display: block; }
.compare-list .sdg-chip { white-space: normal; }
.compare-form select, .compare-form button { min-height: 44px; }
.compare-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* A card the script reveals stays hidden until then, and when the drawing cannot load. */
.map-card[hidden], .science-card[hidden], .network[hidden] { display: none; }
.yc-years.upright { height: 34px; align-items: flex-start; }
.yc-years span i { font-style: normal; }
/* Upright years sit in the middle of their column (owner, 4 November: they leaned left of the bars). */
.yc-years.upright span { display: flex; justify-content: center; align-items: flex-start; }
.yc-years.upright span i { writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; }
@media screen and (max-width: 640px) {
  .yc-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
  .yc-plot { width: max-content; min-width: 100%; }
  .yc-slot[data-year], .yc-years > span:not(:empty) { min-width: 44px; }
  .yc-bar:focus-visible { outline-offset: -2px; }
  .yc-scroll .yc-years.upright { height: auto; }
  .yc-years.upright span i { writing-mode: horizontal-tb; transform: none; line-height: inherit; }
}
/* Lists of two cards: a card alone takes the whole row (owner, 3 November: no empty half beside it). */
.ov-pair > :only-child { grid-column: 1 / -1; }
.ov-pair > :only-child .top-cited, .ov-pair > :only-child .top-coauthors { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 47.99rem) { .ov-pair > :only-child .top-cited, .ov-pair > :only-child .top-coauthors { grid-template-columns: minmax(0, 1fr); } }
/* Select boxes (owner, 3 November): our own chevron, set in from the edge. */
select.sel { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 37%, var(--muted) 37% 63%, transparent 63%),
                    linear-gradient(-45deg, transparent 37%, var(--muted) 37% 63%, transparent 63%);
  background-repeat: no-repeat; background-position: right 22px center, right 17px center; background-size: 5px 5px; }
select.sel:hover, select.sel:focus-visible { border-color: var(--accent); }
@media (forced-colors: active) {
  select.sel { appearance: auto; padding-right: 10px; background-image: none; }
}
/* Pager (owner, 3 November): only the current page is filled; the gap and the count are plain text. */
.pager span.pager-gap, .pager span.pager-count { background: none; border-color: transparent; color: var(--muted); min-width: 0; padding: 0 4px; font-weight: 500; }
.pager span[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Podium cards: the meta line wraps inside its card. */
.podium-list .is-top .ranked-who { min-width: 0; max-width: 100%; }
.podium-list .is-top .ranked-who .muted { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; text-wrap: balance; }
/* Institution page rows: faculty / department · field. */
.person-unit { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; overflow-wrap: anywhere; }
.person-unit a { color: var(--accent-2); }
.person-unit .sl { margin: 0 5px; opacity: .6; }
/* Institution page: the search centred; ordering and compare on one toolbar. */
.entity-search { max-width: 760px; margin-left: auto; margin-right: auto; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.list-toolbar .seg { margin: 0; }
.toolbar-link { font-size: 14px; font-weight: 600; color: var(--accent-2); }
/* Overview headings that open the full list. */
.h-link { color: inherit; text-decoration: none; }
.h-link span { color: var(--accent); font-size: .8em; margin-left: 2px; transition: margin .15s; }
.h-link:hover { color: var(--accent-2); }
.h-link:hover span { margin-left: 6px; }
/* Kurumlar filters in the same form as the other lists. */
.inst-filters { display: flex; gap: 12px; align-items: flex-end; justify-content: center; flex-wrap: wrap; border: 0; }
.inst-filters .filter-field { display: grid; gap: 4px; text-align: left; font-size: 12.5px; color: var(--muted); min-width: 200px; }
.co-av.person-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.filter-pill-row { text-align: center; margin: 10px 0 0; }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; font-size: 14px; }
.filter-pill a { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: inherit; text-decoration: none; }
.filter-pill a:hover { background: var(--accent); color: var(--on-accent); }
/* Results while typing (owner, 3 November) */
form.has-live { position: relative; }
.live-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgb(19 35 43 / 16%);
  max-height: min(70vh, 560px); overflow-y: auto; text-align: left; }
.live-group { font: 600 11px/1 var(--f-b); letter-spacing: .06em; color: var(--muted); padding: 10px 10px 6px; }
.live-list [role=option] a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px;
  border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.live-list [role=option][aria-selected=true] a, .live-list [role=option] a:hover { background: var(--accent-soft); }
.live-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.live-logo { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #fff; padding: 4px; box-sizing: border-box; box-shadow: 0 0 0 1px rgb(19 35 43 / 10%); }
.live-initials { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font: 700 13px/1 var(--f-b); }
.live-initials.is-field { border-radius: 9px; background: var(--raised); }
.live-text { display: grid; gap: 2px; min-width: 0; }
.live-text strong { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-text span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-all { border-top: 1px solid var(--line-2); margin: 6px 0 0; padding: 8px 10px 4px; }
.live-all a { font-weight: 600; font-size: 13.5px; }
/* Strongest fields and sub-fields of an institution (owner, 3 November) */
.strong-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strong-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.strong-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font: 700 13px/1 var(--f-b); }
.strong-body { display: grid; gap: 1px; min-width: 0; }
.strong-body a { font-weight: 600; color: var(--ink); }
.strong-top { font: 700 14px/1 var(--f-n); color: var(--accent-2); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.subfield-cloud { gap: 8px; }
.chip-n { font-size: .82em; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* SJR quartile (owner, 4 November): one quiet badge for all four quartiles, on articles, journals and a journal's page */
.pub-end { display: inline-flex; gap: 8px; align-items: center; }
.q-badge { display: inline-block; font: 700 11px/1 var(--f-n); letter-spacing: .02em; color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; vertical-align: middle; white-space: nowrap; }
.q-badge-lg { font-size: 13px; padding: 4px 9px; margin-left: 6px; position: relative; top: -3px; }
.journal-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.journal-line > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.journal-line .q-badge { flex: none; }

/* Sub-field bubbles (trbio.info-like): three tones by size, the label and count inside, each a link. */
.bubble-cloud { width: 100%; height: auto; max-height: 420px; display: block; }
.bubble { stroke: var(--surface); stroke-width: 1.5; }
.bubble-1 { fill: var(--accent-2); }
.bubble-2 { fill: var(--accent); }
.bubble-3 { fill: var(--accent-soft); }
.bubble-text { fill: var(--on-accent); font-family: var(--f-b); font-weight: 600; pointer-events: none; }
.bubble-text .bubble-n { font-family: var(--f-n); font-weight: 500; opacity: .85; }
.bubble-cloud a:hover .bubble, .bubble-cloud a:focus .bubble { stroke: var(--ink); stroke-width: 3; }
.bubble-cloud a:has(.bubble-3) .bubble-text { fill: var(--accent-2); }

/* Owner, 4 November: the Rising Stars and Duayens rules on one line: the "all" link moves up beside the heading and
   the rule takes the whole width (it still wraps on a narrow screen). */
.showcase .sec-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.showcase .sec-h > div { display: contents; }
.showcase .sec-h h2 { grid-column: 1; grid-row: 1; }
.showcase .sec-h > a { grid-column: 2; grid-row: 1; }

/* Owner, 4 November: the home page counts are links to their lists. */
a.stat-link { color: inherit; text-decoration: none; transition: background .15s; }
a.stat-link:hover, a.stat-link:focus-visible { background: var(--raised); text-decoration: none; }
a.stat-link:hover .stat-label { color: var(--accent-2); }
.stats > :first-child { border-radius: var(--r) 0 0 var(--r); }
.stats > :last-child { border-radius: 0 var(--r) var(--r) 0; }

/* Owner, 4 November ("every page, fine filters"): one filter bar for the journal, field and sub-field directories:
   the name search widest, the selects beside it, the button last; one column on a phone. */
.journal-search { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; width: 100%; max-width: 980px; margin: 16px auto 0; }
.journal-search .field-in { flex: 2 1 280px; width: auto; padding: 0 14px; }
.journal-search .sel { flex: 1 1 200px; width: auto; }
.journal-search .button { flex: none; min-height: 42px; padding: 0 20px; }
.journal-search a.small { flex: none; }
/* Directory rows: rank, name, count, each in its own column so the counts line up. */
.journal-list .ranked-row { grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) auto; }
.journal-list .ranked-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.journal-list .ranked-score { flex-direction: row; align-items: baseline; min-width: 150px; }

/* Owner, 4 November: the all-publications filter bar: kind, quartile and index selects, two narrow year boxes,
   the journal name, the button. */
.works-filters { max-width: 1120px; }
.works-filters .sel { flex: 1 1 140px; }
.works-filters .works-year { flex: 0 1 120px; }  /* room for "From Year" (21 November) */
.works-filters .field-in:not(.works-year) { flex: 1 1 170px; }
.list-head .seg + .journal-search { margin-top: 12px; }
/* Owner, 4 November evening: the fields directory uses the home page's opening cards; the main field page link closes
   an opened card. */
.main-field-more { display: block; padding: 10px 18px 14px; border-top: 1px solid var(--line-2); color: var(--accent-2); text-align: right; }
.main-field-more:hover { color: var(--accent); }

/* Narrow-screen layouts. Keep every override below 1200 CSS pixels: the desktop
   cascade above is intentionally frozen, including its original breakpoints. */
@media (max-width: 1199px) {
  /* .page's padding shorthand otherwise cancels the shared .wrap gutter. */
  .wrap.page { padding: 28px 24px 56px; }
  .page > *, .home > *, .stack > * { min-width: 0; }

  .brand, .site-nav > a { min-height: 44px; align-items: center; }
  .site-nav > a { display: inline-flex; }
  .header-grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 20px; }
  .site-nav { flex-wrap: nowrap; gap: 12px; }
  .header-search .field-in { height: 48px; padding-left: 48px; font-size: 16px; }
  .header-search .search-go { width: 44px; height: 44px; left: 2px; }
  .icon-button { width: 44px; height: 44px; }
  .field-in, .sel, .range input, form.rank-filters select { min-height: 44px; font-size: 16px; }
  .btn, .button, .action, .btn-sm, .fchip, .check,
  .seg a, .seg button, .contact-link, a.chip, a.tag,
  .more-toggle, .kbd-open { min-height: 44px; }
  .seg a, .seg button { display: inline-flex; align-items: center; justify-content: center; }
  .seg { max-width: 100%; }
  .fchip { line-height: 1.35; }
  .check input, .fchip input { width: 18px; height: 18px; flex: none; }
  a.chip, a.tag { max-width: 100%; overflow-wrap: anywhere; }
  .chips { gap: 8px; }
  .pager a, .pager span { min-width: 44px; min-height: 44px; padding-inline: 10px; }
  .filter-pill a { width: 40px; height: 40px; flex: none; }
  .filter-pill { max-width: 100%; }
  .live-list { max-height: min(60vh, 480px); overscroll-behavior: contain; }
  .live-all a { display: flex; align-items: center; min-height: 44px; }

  .sec-h > a, .card-h > a, .h-link, .more-link > a, .toolbar-link,
  .footer-cols li > a, .main-field-list a, .badge-toc a,
  .city-list li > a, .strong-body > a, .doc-toc a,
  .badge-card > a.small, .ranked-who .name-line > a,
  .journal-list .ranked-who > a, .journal-line > a,
  .entry-title > a, .tc-body > a, a.venue-link, a.person-name {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer-cols { gap: 24px; }
  .footer-cols ul { gap: 2px; }
  .footer-cols li > a { width: 100%; }
  .copyright { align-items: flex-start; text-align: center; }

  .star-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-head { gap: 10px; }
  .star-card .nm { white-space: normal; overflow-wrap: anywhere; }
  .sc-inst { display: flex; align-items: center; min-height: 40px; white-space: normal; line-height: 1.4; }
  .star-card .pts { flex-wrap: wrap; row-gap: 8px; }
  .stat { min-width: 0; padding-inline: 8px; }
  .stat-value { font-size: clamp(22px, 2.5vw, 28px); }
  .main-field-list { overscroll-behavior: contain; }
  .main-field-list li { align-items: center; padding-block: 0; }
  .main-field-list a { flex: 1; }

  .map-card { margin-bottom: 16px; }
  .map-stage { min-width: 0; overflow-x: auto; }
  .map-svg { min-width: 600px; }
  .city-list { column-gap: 24px; }
  .city-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
  .city-list li > a { width: 100%; font-weight: 500; }
  .hbars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 4px; }
  .hb-label { white-space: normal; overflow-wrap: anywhere; }
  .hb-count { grid-column: 2; grid-row: 1; }
  .hb-bar { grid-column: 1 / -1; grid-row: 2; height: 8px; }
  .strong-list li { gap: 8px; }
  .strong-top { font-size: 13px; padding-inline: 8px; }
  .entity-stats div { min-width: 0; padding-inline: 8px; }
  .entity-stats dd { overflow-wrap: anywhere; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .site-nav { grid-column: 2; grid-row: 1; }
  .star-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .inst-top-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}

@media (max-width: 767px) {
  .hb-label > a { display: flex; align-items: center; min-width: 44px; min-height: 44px; }
  .hb-label > a:focus-visible { outline-offset: -2px; }
  .wrap.page { padding: 20px 16px 40px; }
  .header-grid, .header-grid.no-search { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
  .site-nav > a { flex: 1 1 auto; padding: 0 12px; border-radius: var(--r-s); background: var(--raised); }
  .hero { gap: 16px; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 36px); }
  .hero-search .button { padding-inline: 18px; }
  .home { gap: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
  .stat { padding: 18px 10px; gap: 8px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats > :first-child, .stats > :last-child { border-radius: 0; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 13px; }
  .star-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-head { padding: 16px; }
  .entity-top { gap: 12px; }
  .entity-top h1 { font-size: 26px; overflow-wrap: anywhere; }
  .entity-top .crest { width: 52px; height: 52px; }
  .entity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-stats dd { font-size: 20px; }
  .strong-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .strong-top { grid-column: 2; justify-self: start; }
  .map-card { padding: 12px; }
  .city-list { columns: 1; }
  .prose { overflow-wrap: anywhere; }
  .prose h1 { font-size: 28px; }
  .prose .score-table th, .prose .score-table td { padding-inline: 6px; }
}

@media (max-width: 599px) {
  .star-grid, .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .star-card { padding: 16px; }
  .sc-head { grid-template-columns: 44px minmax(0, 1fr) 26px; gap: 12px; }
  .sc-head > .av, .sc-head > .person-photo { width: 44px; height: 44px; }
  .sc-mark { grid-column: 3; grid-row: 1; }
  .sc-id { grid-column: 2; grid-row: 1; }
  .star-card .nm { font-size: 15px; line-height: 1.4; }
  .star-card .gr { white-space: normal; line-height: 1.4; }
  .star-card .pts { flex-direction: row; align-items: center; }
  .star-card .pts .num { order: 0; font-size: 20px; }
  .main-field-list { grid-template-columns: minmax(0, 1fr); }
  .showcase .sec-h { column-gap: 8px; }
  .showcase .sec-h h2 { font-size: 21px; }
  .sec-h > a { font-size: 13px; }
  .footer-cols { gap: 22px 16px; }
}

/* Narrow-screen lists and filters. Desktop rules above remain untouched. */
@media (max-width: 1199px) {
  .list-head, .list-head > *, .list-filters, .list-filter-row,
  .list-filter-row .filter-field, .rank-filters, .rank-filters > label,
  .journal-search, .compare-form, .filters, .filter-field { min-width: 0; max-width: 100%; }
  .list-head > p { overflow-wrap: anywhere; }
  .list-filters { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .rank-filters { width: 100%; }
  .rank-filters select { min-width: 0; max-width: 100%; width: 100%; margin-left: 0; }
  form.rank-filters:not(.inst-filters) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: 640px; gap: 10px; }
  form.rank-filters > label:not(.fchip) { display: grid; gap: 6px; text-align: left; }
  form.rank-filters select:not(.sel) { height: 44px; padding: 0 10px; border: 1px solid var(--field-border); border-radius: var(--r-s); background: var(--surface); color: var(--ink); }
  .inst-filters .filter-field { flex: 1 1 200px; min-width: 0; }
  .fchip { min-height: 44px; line-height: 1.35; padding: 8px 12px; }
  .fchip input { flex: none; width: 18px; height: 18px; }
  .ranked-who .name-line { max-width: 100%; }
  .ranked-who .name-line > a, .ranked-who .name-line > span:first-child { white-space: normal; overflow-wrap: anywhere; }
  .podium-list .is-top .name-line { justify-content: center; }
  .podium-list .is-top .name-line > a, .podium-list .is-top .name-line > span:first-child { width: 100%; line-height: 1.4; }
  .badge-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .badge-faces a { display: flex; align-items: center; min-height: 40px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .badge-toc { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-left: 0; padding: 2px 2px 10px; gap: 8px; }
  .badge-toc a { flex: 0 0 auto; max-width: 260px; min-height: 44px; display: flex; align-items: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
  .journal-search .field-in, .journal-search .sel { min-width: 0; max-width: 100%; }
  .works-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .works-filters .sel { grid-column: span 2; width: 100%; }
  .works-filters .works-year { grid-column: span 1; width: 100%; }
  .works-filters .field-in:not(.works-year) { grid-column: span 3; width: 100%; }
  .works-filters > a.small { grid-column: 1 / -1; justify-self: center; }
  .pub-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .pub-filters > label { min-width: 0; }
  .entry-title, .entry-people, .entry-meta { min-width: 0; overflow-wrap: anywhere; }
  .pub-bot, .pub-tags, .pub-right { min-width: 0; max-width: 100%; }
  .compare-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 900px; }
  .compare-form .sel { max-width: none; }
  .compare-form .button { grid-column: 1 / -1; justify-self: center; min-width: 160px; }
  .compare-card { max-width: 100%; overscroll-behavior-x: contain; }
  .compare { min-width: 640px; table-layout: fixed; }
  .compare tbody th { white-space: normal; }
  .compare th:first-child { width: 160px; position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
  .compare-name { align-items: flex-start; flex-wrap: wrap; }
  .compare-name span { min-width: 0; overflow-wrap: anywhere; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ranked-row { grid-template-columns: minmax(32px, max-content) auto minmax(0, 1fr) minmax(100px, .45fr) auto; }
  .podium-list .ranked { gap: 12px; }
  .podium-list .ranked-row.is-top { padding: 18px 14px; }
  .podium-list .ranked-row.top-1 { padding-block: 24px; }
  .podium-list .is-top .ranked-who .muted { font-size: 12px; }
  .journal-list .ranked-row { grid-template-columns: minmax(32px, max-content) minmax(0, 1fr) auto; }
  .journal-line > a { white-space: normal; line-height: 1.45; }
  .inst-list .ranked-row { grid-template-columns: minmax(32px, max-content) minmax(0, 1fr) auto; }
}

@media (max-width: 1023px) {
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .filters h2, .filters > .title-filter, .filters > p, .filters > .button { grid-column: 1 / -1; }
  .filters .checks { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 4px 12px; }
  .filters .check { min-height: 44px; }
  .filters > a.small { min-height: 40px; display: inline-flex; align-items: center; justify-self: start; }
}

@media (max-width: 767px) {
  .list-head { gap: 10px; margin-bottom: 20px; }
  .list-filters { padding: 14px; gap: 16px; }
  .list-filter-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rank-filters { justify-content: flex-start; gap: 8px; }
  .rank-filters legend { text-align: left; }
  .rank-filters > .button { width: 100%; min-height: 44px; }
  form.rank-filters:not(.inst-filters) { grid-template-columns: minmax(0, 1fr); }
  .inst-filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  .podium-list .ranked { display: block; }
  .podium-list .ranked-row.is-top { grid-template-columns: minmax(28px, max-content) 48px minmax(0, 1fr); justify-items: stretch; align-items: start; text-align: left; gap: 8px 10px; padding: 16px 12px; margin-bottom: 12px; }
  .podium-list .is-top .ranked-rank { grid-column: 1; grid-row: 1; min-width: 28px; min-height: 28px; display: grid; place-items: center; padding: 0; margin-top: 10px; }
  .podium-list .is-top .person-photo, .podium-list .is-top .person-avatar { grid-column: 2; grid-row: 1; width: 48px; height: 48px; }
  .podium-list .is-top .ranked-who { grid-column: 3; grid-row: 1; justify-items: start; gap: 6px; }
  .podium-list .is-top .name-line { justify-content: flex-start; gap: 6px; }
  .podium-list .is-top .ranked-who .muted { display: block; text-wrap: auto; font-size: 12px; line-height: 1.5; }
  .podium-list .is-top .ranked-score { grid-column: 3; grid-row: 2; justify-content: flex-start; align-items: flex-start; text-align: left; }
  .podium-list .is-top .ranked-score strong { font-size: 20px; }
  .podium-list .ranked-row:not(.is-top), .bar-list .ranked-row, .rs-groups .ranked-row { grid-template-columns: minmax(28px, max-content) 40px minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 14px 0; }
  .podium-list .ranked-row:not(.is-top) .ranked-rank, .bar-list .ranked-rank, .rs-groups .ranked-rank { grid-column: 1; grid-row: 1; align-self: start; padding-top: 13px; }
  .podium-list .ranked-row:not(.is-top) > .person-photo, .podium-list .ranked-row:not(.is-top) > .person-avatar,
  .bar-list .ranked-row > .person-photo, .bar-list .ranked-row > .person-avatar,
  .rs-groups .ranked-row > .person-photo, .rs-groups .ranked-row > .person-avatar { grid-column: 2; grid-row: 1; width: 40px; height: 40px; }
  .podium-list .ranked-row:not(.is-top) .ranked-who, .bar-list .ranked-who, .rs-groups .ranked-who { grid-column: 3; grid-row: 1; }
  .podium-list .ranked-row:not(.is-top) .ranked-score, .bar-list .ranked-score, .rs-groups .ranked-score { grid-column: 3; grid-row: 2; justify-content: flex-start; align-items: flex-start; text-align: left; }
  .ranked-who .muted { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
  .ranked-bar { display: none; }
  .journal-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; }
  .journal-search .field-in, .journal-search .sel, .journal-search .button { width: 100%; min-height: 44px; }
  .works-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-filters .sel, .works-filters .works-year { grid-column: span 1; }
  .works-filters .sel[name="dizin"], .works-filters .field-in:not(.works-year), .works-filters > .button { grid-column: 1 / -1; }
  .pub-bot { gap: 12px; }
  .journal-list .ranked-row, .inst-list .ranked-row { grid-template-columns: minmax(28px, max-content) minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 12px 0; }
  .journal-list .ranked-rank, .inst-list .ranked-rank { grid-column: 1; grid-row: 1; padding-top: 13px; }
  .journal-list .ranked-who, .inst-list .ranked-who { grid-column: 2; grid-row: 1; }
  .journal-list .ranked-score, .inst-list .ranked-score { grid-column: 2; grid-row: 2; min-width: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; text-align: left; gap: 6px; }
  .journal-line { width: 100%; align-items: flex-start; }
  .journal-line > a { flex: 1; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.45; }
  .journal-line .q-badge { margin-top: 10px; }
  .journal-list .ranked-who > a, .journal-line > a, .inst-list .name-line > a { display: flex; align-items: center; min-height: 40px; }
  .inst-list .name-line { flex-wrap: nowrap; align-items: flex-start; }
  .inst-list .name-line .inst-row-logo { flex: none; margin-top: 6px; }
  .inst-list .inst-counts { white-space: normal; }
  .compare-form { grid-template-columns: minmax(0, 1fr); }
  .compare-form .button { justify-self: stretch; width: 100%; min-height: 44px; }
  .compare-card { padding: 0; }
  .compare th, .compare td { padding: 12px; }
  .compare th:first-child { width: 140px; }
}

@media (max-width: 640px) {
  .compare-card { overflow: visible; }
  .compare-card:focus-visible { outline: none; }
  .compare, .compare thead, .compare tbody { display: block; min-width: 0; }
  .compare tr { display: flex; flex-wrap: wrap; }
  .compare th, .compare td { border: 0; }
  .compare th:first-child { border-right: 0; }
  .compare thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; }
  .compare thead th:not(:first-child), .compare td { flex: 1 1 0; min-width: 0; }
  .compare tbody th:first-child { position: static; width: 100%; padding-block: 8px; background: var(--raised); }
  .compare tbody th { color: var(--ink); font-weight: 700; }
  .compare-cell-institution { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
  .compare-cell-institution::before { content: attr(data-name); }
  /* Owner, 21 November: every cell of a row shares a name line and a value line, so a long institution name no
     longer pushes its value below its neighbours'. */
  .compare.cols-2 tr:not(.compare-list-row) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare.cols-3 tr:not(.compare-list-row) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare:is(.cols-2, .cols-3) tr:not(.compare-list-row) > th { grid-column: 1 / -1; }
  .compare:is(.cols-2, .cols-3) tr:not(.compare-list-row) > td { display: grid; grid-row: span 2; grid-template-rows: subgrid;
    row-gap: 4px; }
  .compare:is(.cols-2, .cols-3) tr:not(.compare-list-row) .compare-cell-institution { margin-bottom: 0; }
  .compare .compare-list-row { display: block; }
  .compare-list-row :is(th, td) { display: block; }
  .compare-list-row td + td { border-top: 1px solid var(--line-2); }
  .compare tr[data-compare-row="yearly_publications"] { display: none; }
  .compare-year-card { display: block; margin-top: 16px; }
}

@media (max-width: 480px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filters .checks { grid-template-columns: minmax(0, 1fr); }
}

/* Narrow profiles and data graphics. The desktop cascade is intentionally untouched. */
@media (max-width: 1199px) {
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  a.pub-mark { min-height: 40px; }
  .score-card { width: auto; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .profile-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .ptabs { padding-right: 12px; }
  .ptabs .tab { min-height: 44px; }
  .ptabs-h, .area-kind, .thesis-label { font-size: 12px; }
  .contact-row, .contact-row li, .contact-link { min-width: 0; max-width: 100%; }
  .contact-link span { overflow-wrap: anywhere; }
  .area-name { display: flex; align-items: center; min-height: 40px; }
  .score-foot > a { display: inline-flex; align-items: center; min-height: 40px; }
  .donut-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .score-comp .table-scroll { min-width: 0; }
  .score-table th, .score-table td { padding: 10px 8px; }
  .rec summary { flex-wrap: wrap; }
  .rec summary > span:first-child { min-width: 0; }
  .timeline-title, .timeline-place, .timeline-unit { overflow-wrap: anywhere; }
  .tca-who > a, .tca-who .small { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .tca-who > a { display: flex; align-items: center; min-height: 40px; }
  .top-coauthors li { gap: 10px; }
  .network-head { align-items: stretch; gap: 14px; }
  .network-controls { width: 100%; gap: 10px; }
  .network-zoom { gap: 8px; margin-left: auto; }
  .network-zoom .icon-button { width: 44px; height: 44px; }
  .network-stage { height: 420px; aspect-ratio: auto; overflow: auto; }
  .network-svg { width: auto; height: auto; max-width: none; margin-inline: auto; touch-action: pan-x pan-y; }
  .net-info { gap: 8px 14px; padding: 12px; }
  .net-info strong { flex-basis: 100%; overflow-wrap: anywhere; }
  .net-info a, .net-info .net-expand { display: inline-flex; align-items: center; min-height: 44px; }
  .network .network-legend { gap: 10px 16px; }
  .science-stage { max-height: 520px; overflow: auto; border-radius: var(--r-s); }
  .science-svg { width: auto; height: auto; max-width: none; max-height: none; margin-inline: auto; }
  .sci-label { font-size: 12px; }
  .sci-label:not(.hub) { display: none; }
  .science-legend { justify-content: flex-start; gap: 10px 18px; }
  .science-card .map-info { min-height: 44px; align-items: center; }
  .card:has(> .bubble-cloud) { overflow-x: auto; }
  .yc-years { font-size: 12px; }
  .yc-years.upright { height: 42px; }
  .yc-legend { flex-wrap: wrap; }
  .bubble-cloud { width: auto; min-width: 640px; max-width: none; max-height: none; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .donut-wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 767px) {
  .profile { gap: 16px; }
  .bibliometrics-stats { gap: 8px; }
  .bibliometrics-stats > div { padding: 10px; }
  .bibliometrics-stats dd { font-size: 20px; }
  .profile-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ph-photo { justify-self: center; }
  .portrait { width: 96px; border-radius: 10px; }
  .identity { text-align: center; gap: 10px; }
  .identity h1 { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
  .affiliation { overflow-wrap: anywhere; }
  .contact-row { justify-content: center; }
  /* Owner, 21 November (option A): institution, field and unit headers stack on the card's centreline on phones,
     like the profile; the crest above the eyebrow, title and PDF button. */
  .entity-top { flex-direction: column; text-align: center; }
  .entity-top > div { justify-items: center; }
  .entity-id { gap: 4px; justify-items: center; text-align: center; }
  /* Long institution names wrap in people rows instead of being cut (21 November), as in the ranked lists. */
  .person-meta { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .score-card { gap: 10px; padding-top: 16px; }
  .trio strong { font-size: 21px; }
  .trio .hero strong { font-size: 34px; }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counts strong { font-size: 20px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ptabs { padding-right: 0; }
  .js-enabled .ptabs-toggle { min-height: 48px; padding: 8px 14px; }
  .ptabs-list { max-height: 65vh; overflow-y: auto; }
  .network-controls > .small { flex-basis: 100%; }
  .network-zoom { margin-left: 0; }
  .network-stage { height: 360px; }
  .science-stage { max-height: 400px; }
  .science-legend { display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; }
  .rec summary { gap: 8px; }
  .rec-pts { font-size: 13px; }
  .rec .entries { padding-left: 0; }
}

@media (pointer: coarse) {
  a.pub-mark { min-height: 40px; }
}

/* Published institution records and unit directories reuse the public cards and theme palette. */
.official-stats { margin: 22px 0; min-width: 0; }
.official-stats > h2 { font-size: 22px; }
.official-stat-card { min-width: 0; }
.stat-total { margin: 0 0 18px; }
.stat-total > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stat-total dt { font-weight: 600; overflow-wrap: anywhere; }
.stat-total dd { margin: 0; font: 600 25px/1 var(--f-n); color: var(--ink); }
.official-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.official-groups > section { min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.unit-directory { margin: 16px 0; min-width: 0; }
.unit-directory summary { min-height: 40px; cursor: pointer; font-size: 20px; font-weight: 600; }
.unit-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.unit-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; }
.unit-list a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.unit-title-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
.unit-title-filter .filter-field { flex: 1 1 220px; max-width: 420px; }
.unit-title-filter > a { display: inline-flex; align-items: center; min-height: 40px; }
.unit-parent { margin: 0; }
.unit-parent a { display: inline-flex; align-items: center; min-height: 40px; }
.unit-distribution .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* Unit links: a 40px touch target from vertical padding on narrow and touch screens only, so the line keeps its height
   and desktop rows stay tight (audit D17, 10 November). */
@media (max-width: 1199px), (pointer: coarse) {
  .affiliation .units a, .person-unit a { padding-block: 10px; }
}
/* The additional filters keep the existing desktop form columns and row widths. */
.extra-filters { width: 100%; min-width: 0; text-align: left; }
.extra-filters > summary { min-height: 44px; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.extra-filters > summary::marker { color: var(--muted); }
.extra-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 8px 0 14px; }
.extra-filter-fields > .check { grid-column: 1 / -1; }
.extra-filter-fields .filter-field { min-width: 0; width: 100%; font-size: 13px; color: var(--muted); }
.extra-filter-fields .sel, .extra-filter-fields .field-in { width: 100%; min-width: 0; min-height: 44px; }
.extra-filter-fields .check { min-height: 44px; color: var(--ink); }
.filter-actions { display: flex; align-items: center; gap: 14px; }
.filter-actions .button, .filter-actions a { min-height: 44px; }
.filter-actions a { display: inline-flex; align-items: center; }
.filters .extra-filter-fields { grid-template-columns: minmax(0, 1fr); }
.list-filters .extra-filters { flex: 1 0 100%; }
.works-filters > .extra-filters { flex: 1 0 100%; grid-column: 1 / -1; }
.unit-title-filter > .extra-filters { flex: 1 0 100%; max-width: none; }
.works-filters > .filter-actions, .unit-title-filter > .filter-actions { flex: 1 0 100%; grid-column: 1 / -1; }
.works-filter-row { display: contents; }
.institution-people-filters { margin: 0 0 16px; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; min-width: 0; margin-bottom: 10px; }
.list-head.centered > .result-toolbar { justify-content: center; }
.result-toolbar > p { margin: 0; }
/* Owner, 6 November: a stable, centered pair below the filters, with a full-width panel below it. */
.filter-controls-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; width: 100%; min-width: 0; flex: 1 0 100%; grid-column: 1 / -1; padding-top: 4px; }
.extra-filters-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink-2); font: 500 13px/1.2 var(--f-b); white-space: nowrap; }
.extra-filters-toggle::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.extra-filters-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.extra-filters-toggle:hover { border-color: var(--accent); }
.extra-filters-toggle[hidden], .extra-filters[hidden] { display: none; }
.people-sort { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-width: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; }
.people-sort > span { white-space: nowrap; }
.people-sort .sel, .rank-filters .people-sort .sel { width: auto; min-height: 44px; max-width: 100%; margin-left: 0; font-weight: 500; }
.list-filters .rank-filters { width: 100%; }
.filters > [data-extra-panel] { grid-column: 1 / -1; }
@media (min-width: 1200px) {
  /* Keep the existing submit beside the title filters on desktop, before the new row. */
  .list-filters .rank-filters > .filter-controls-row { order: 1; }
  .list-filters .rank-filters > .extra-filters { order: 2; }
  .filters > details.extra-filters { order: 1; }
  .works-filters { display: grid; grid-template-columns: minmax(0, 1fr) max-content; }
  .works-filter-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
  .works-filters > .filter-actions { grid-column: 2; grid-row: 1; gap: 10px; }
  .works-filters > .filter-actions .button { min-height: 42px; }
  .works-filters > .filter-actions a { min-height: 0; }
  .unit-title-filter > .filter-controls-row { order: 1; }
  .unit-title-filter > .extra-filters { order: 2; }
  .unit-title-filter > .filter-actions { flex: none; gap: 12px; }
  .unit-title-filter > .filter-actions .button { min-height: 40px; }
  .unit-title-filter > .filter-actions a { min-height: 40px; }
  .institution-people-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
  .institution-people-filters > .extra-filters { grid-column: 1 / -1; }
  .institution-people-filters > .filter-actions { grid-column: 1 / -1; justify-content: center; }
}
.filter-suggest { position: relative; }
.filter-suggestions { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; max-height: 288px; overflow-y: auto; list-style: none; margin: 3px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); box-shadow: var(--sh); }
.filter-suggestions[hidden] { display: none; }
.filter-suggestions button { display: block; width: 100%; min-height: 44px; padding: 9px 10px; background: transparent; border: 0; border-radius: 4px; color: var(--ink); text-align: left; font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.filter-suggestions button:hover, .filter-suggestions [aria-selected="true"] button { background: var(--raised); color: var(--accent); }
@media (max-width: 1199px) {
  .list-filter-row, .works-filters, .extra-filter-fields, .filters { grid-template-columns: minmax(0, 1fr); }
  .works-filters .sel, .works-filters .works-year, .works-filters .field-in:not(.works-year) { grid-column: 1 / -1; }
  .list-filters .rank-filters > .extra-filters { max-width: none; }
  .list-filters .rank-filters > .button { width: 100%; min-height: 44px; }
  .list-filters .rank-filters > a.small { display: inline-flex; align-items: center; min-height: 44px; }
  .unit-title-filter { display: grid; grid-template-columns: minmax(0, 1fr); }
  .unit-title-filter .filter-field { max-width: none; }
  .filter-actions { width: 100%; flex-wrap: wrap; }
  .filter-actions .button { width: 100%; }
  .extra-filter-fields .check { min-height: 44px; }
}
@media (max-width: 767px) {
  .official-groups, .unit-list { grid-template-columns: minmax(0, 1fr); }
  .unit-title-filter .filter-field { max-width: none; min-width: 0; }
  .unit-title-filter .button { min-height: 44px; }
  .filter-actions { width: 100%; flex-wrap: wrap; }
  .filter-actions .button { width: 100%; }
  .extra-filter-fields { grid-template-columns: minmax(0, 1fr); }
  .filter-controls-row { column-gap: 18px; }
  .result-toolbar { align-items: stretch; }
}

/* Owner, 5 November (phones): the institutions order fits one row with short labels. */
@media (max-width: 767px) {
  .inst-order { display: flex; flex-wrap: nowrap; width: 100%; }
  .inst-order a { flex: 1 1 0; min-width: 0; padding: 6px 6px; white-space: nowrap; text-align: center; }
  .inst-order .seg-wide { display: none; }
}

/* Header menu (owner, 5 November): main sections plus one "Keşfet" menu. */
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover, .nav-more[open] > summary { color: var(--accent); }
.nav-more > summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.nav-more[open] > summary .ic { transform: rotate(180deg); }
.nav-more-list { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; min-width: 220px; list-style: none; margin: 0;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); }
.nav-more-list a { display: block; padding: 9px 12px; border-radius: var(--r-s); color: var(--ink-2); white-space: nowrap; }
.nav-more-list a:hover { background: var(--raised); color: var(--accent); text-decoration: none; }
@media (min-width: 1200px) {
  /* The search takes the room between the brand and the full menu, so the menu stays on one line. */
  .header-grid { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-nav { flex-wrap: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .site-nav { grid-column: 2; grid-row: 1; }
}
@media (max-width: 767px) {
  .nav-more { flex: 1 1 100%; }
  .nav-more > summary { min-height: 44px; padding: 0 12px; border-radius: var(--r-s); background: var(--raised); width: 100%; justify-content: center; }
  .nav-more-list { position: static; min-width: 0; margin-top: 8px; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-more-list a { min-height: 44px; display: flex; align-items: center; justify-content: center; white-space: normal; text-align: center; background: var(--raised); }
  .site-nav > a[href="/yontem"] { flex: 1 1 0; justify-content: center; }
}

/* Map interactions (owner, 5 November): scoped to the two map cards; profile tabs and network stay unchanged. */
.science-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.science-controls .network-zoom { gap: 6px; margin: 0; }
.science-controls .icon-button { width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
.science-controls .icon-button:disabled { opacity: .4; cursor: default; }
.science-card .science-stage { width: 100%; min-width: 0; height: clamp(340px, 64vh, 760px); max-height: none;
  overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); }
.science-card .science-svg { width: 100%; height: 100%; min-width: 0; max-width: none; max-height: none;
  margin: 0; touch-action: none; user-select: none; cursor: grab; }
.science-card .science-svg.is-panning { cursor: grabbing; }
@media (max-width: 640px) {
  .science-card:not(.science-fullscreen) .science-svg { touch-action: pan-y pinch-zoom; }
}
.science-card .sci-label { display: block; font-size: 12px; }  /* the 12 px floor (21 November) */
.science-card .sci-label.hub { font-size: 12px; }
.science-card .map-info { min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.science-card .map-info a { display: inline-flex; min-height: 44px; align-items: center; }
.science-card.science-fullscreen, .map-card.science-fullscreen { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--surface); color: var(--ink); display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; overflow: hidden; }
.science-card.science-fullscreen .science-stage, .map-card.science-fullscreen .map-stage { height: 100%; min-height: 0; }
.science-card.science-fullscreen .science-legend { display: flex; flex-wrap: wrap; justify-content: center;
  font-size: 13px; gap: 6px 14px; max-height: 24vh; max-height: 24dvh; overflow-y: auto; }
.science-card.science-fullscreen .map-info, .map-card.science-fullscreen .map-info { max-height: 16vh; overflow-y: auto; }
.science-card.science-overlay, .map-card.science-overlay { position: fixed; inset: 0; z-index: 200; height: 100vh; height: 100dvh; }
.science-modal-open, .science-modal-open body { overflow: hidden; }
.map-card .map-stage { min-width: 0; overflow: hidden; aspect-ratio: 1007.478 / 447; }  /* the drawing's own height (owner, 10 November: no empty band) */
.map-card.science-fullscreen .map-stage { width: 100%; aspect-ratio: auto; }
.map-card .map-svg { width: 100%; height: 100%; min-width: 0; touch-action: none; user-select: none; cursor: grab; }
.map-card .map-svg.is-panning { cursor: grabbing; }
.province-label { font-size: 12px; font-weight: 600; text-anchor: middle; dominant-baseline: central;
  fill: #172c38; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round;
  paint-order: stroke fill; pointer-events: none; }
:root[data-theme="dark"] .province-label { fill: #f4f7fa; stroke: #17242f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .province-label { fill: #f4f7fa; stroke: #17242f; }
}
@media (max-width: 1199px) {
  .province-label { font-size: 18px; stroke-width: 3px; }
  .province-label:not(.is-medium):not(.is-active) { visibility: hidden; }
}
@media (max-width: 600px) {
  .province-label { font-size: 32px; stroke-width: 5px; }
  .province-label:not(.is-major):not(.is-active) { visibility: hidden; }
  /* Owner, 21 November: a centred box, its swatches one under another. */
  .science-card .science-legend { display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; gap: 6px; }
}
.map-card .province-label { visibility: hidden; }
.map-card .province-label[visibility="visible"] { visibility: visible; }
.science-controls[hidden], .science-stage[hidden], .map-stage[hidden], .map-card .map-info[hidden] { display: none; }
/* Institution comparison: grouped years keep the shared chart proportions and theme tokens. */
.compare-year { min-width: 0; max-width: 100%; contain: inline-size; }
.compare-year-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 14px; padding: 0; color: var(--muted); font-size: 12px; }
.compare-year-legend li { min-width: 0; overflow-wrap: anywhere; }
.compare-year-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.compare-year-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 3px; }
.compare-year-columns { display: flex; width: 100%; }
.compare-year-column { display: flex; flex: 1 0 44px; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 44px; min-height: 198px; margin: 0; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.compare-year-column:hover, .compare-year-column:focus, .compare-year-column.compare-year-active {
  background: color-mix(in srgb, var(--raised) 75%, var(--surface)); }
.compare-year-column:focus-visible { outline-offset: 0; }
.compare-year-graphic { display: block; flex: none; width: 100%; height: 166px; border-bottom: 1px solid var(--line); }
.compare-year-label { color: var(--muted); font-size: 10.5px; line-height: 16px; font-variant-numeric: tabular-nums; }
.compare-year-series-0 { fill: var(--accent); }
.compare-year-series-1 { fill: var(--c2); }
.compare-year-series-2 { fill: var(--c7); }
.compare-year-legend .compare-year-series-0::before { background: var(--accent); }
.compare-year-legend .compare-year-series-1::before { background: var(--c2); }
.compare-year-legend .compare-year-series-2::before { background: var(--c7); }
.compare-year-tooltip-layer { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.compare-year-tooltip { position: relative; pointer-events: auto; max-width: 100%; margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 14%); font: 500 12px/1.55 var(--f-b); overflow-wrap: anywhere; }
.compare-year-tooltip[data-side="overlap"] { pointer-events: none; }
.compare-year-tooltip[data-side="above"]::before, .compare-year-tooltip[data-side="below"]::before {
  content: ""; position: absolute; inset-inline: 0; height: 12px;
}
.compare-year-tooltip[data-side="above"]::before { top: 100%; }
.compare-year-tooltip[data-side="below"]::before { bottom: 100%; }
.compare-year-tooltip[hidden] { display: none; }
/* Step 412 chart palette (WCAG 1.4.11, owner's approval from the before/after screenshots): every chart colour is
   at least 3:1 against --surface and --bg in its theme, same hues; stacked year parts are split by a 1px --surface
   gap. Kept in this one block so it can be reverted on its own. */
:root { --c2: #ea622d; --c3: #199f6f; --c4: #bd8000; --c5: #e35e90; --sm9: #8a5a2b; --sm10: #5f6b7a; --sm11: #b03f86; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sm9: #996430; --sm10: #647181; --sm11: #b9428d; }
}
:root[data-theme="dark"] { --sm9: #996430; --sm10: #647181; --sm11: #b9428d; }
.sm9 circle, .science-legend .sm9::before { fill: var(--sm9); background: var(--sm9); }
.sm10 circle, .science-legend .sm10::before { fill: var(--sm10); background: var(--sm10); }
.sm11 circle, .science-legend .sm11::before { fill: var(--sm11); background: var(--sm11); }
.yc-part { stroke: var(--surface); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.yc-part.yc-thin { stroke: none; }  /* review: a one-book sliver must not vanish under the gap */

/* ---------- Live design audit (owner's decisions, 10 November). Phone and tablet rules stay inside their media
   queries; the global rules are the intended desktop changes. ---------- */
/* D24: no text under 12px at any width (the narrow-screen rule now holds everywhere). */
.count-badge, .tab-count, .ptabs-h, .thesis-label, .area-kind,
.badge-mini, .q-badge, .chip-n, .doc-toc p,
.palette-group, .live-group, kbd, .yc-years, .pub-mark, .pub-pdf, .pub-corresponding, .compare-year-label { font-size: 12px; }
.q-badge.q-badge-lg { font-size: 13px; }
/* D7: a profile without left-column content gives the whole width to the other column. */
.overview.overview-wide { grid-template-columns: minmax(0, 1fr); }
/* D15: the institution toolbar keeps only the compare link, where it stood. */
.list-toolbar > .toolbar-link:only-child { margin-left: auto; }
/* D16: the request form's selects take the custom look at the height of its inputs. */
.request-form select.sel { height: auto; }
/* D25: the network info line stays for the selected person, quiet while empty. */
.net-info:empty { background: transparent; }
/* D2: the province map holds its place while the drawing loads; its controls and info line keep their room. */
.map-card.is-loading .science-controls, .map-card.is-loading .map-info { visibility: hidden; }
@media (scripting: none) { .map-card { display: none; } }
/* D11: the phone-only bubble labels (count alone where the name cannot be read). */
.bubble-narrow { display: none; }
/* D6: the sticky side menu scrolls inside the window when it is taller than the window. */
@media (min-width: 768px) {
  .ptabs { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
    padding-left: 4px; margin-left: -4px; padding-bottom: 4px; }  /* room for the focus ring inside the scroller */
}
/* D23: the profile count tiles in three columns on tablets (3 + 3). */
@media (min-width: 600px) and (max-width: 1199px) {
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* D14: the "Keşfet" toggle as tall as its neighbours on tablets. */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav-more > summary { min-height: 44px; }
}
/* D8: the filter forms fold behind one "Süz" panel (made by main.js on phones, on /ara up to 1023px). */
@media (max-width: 1023px) {
  .search-filter-disclosure { min-width: 0; width: 100%; justify-self: stretch; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .search-filter-disclosure > summary { min-height: 48px; padding: 12px 16px; color: var(--ink); font-weight: 600; cursor: pointer; }
  .search-filter-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
  .search-filter-disclosure > form { max-width: none; margin: 0; padding: 16px; border: 0; border-radius: 0; background: none; }
  .search-filter-disclosure .filters > h2 { display: none; }
  .card > .search-filter-disclosure { margin-bottom: 16px; }
}
@media (max-width: 767px) {
  /* D14: the phone menu as a two-column grid, "Keşfet" across both columns. */
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav > a { justify-content: center; text-align: center; }
  .nav-more { grid-column: 1 / -1; }
  .site-nav > .icon-button { width: 100%; }
  /* D10: result tabs wrap instead of scrolling out of sight. */
  .subtabs { flex-wrap: wrap; overflow-x: visible; }
  /* D8: the year pair of /yayinlar side by side (a later narrow rule had stacked them). */
  .works-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-filters .works-year { grid-column: span 1; }
  /* D11: the bubble cloud fits the card. */
  .card:has(> .bubble-cloud) { overflow-x: visible; }
  .bubble-cloud { width: 100%; min-width: 0; height: auto; }
  .bubble-wide { display: none; }
  .bubble-narrow { display: inline; }
  /* D12: the co-author network fits the screen width; the zoom buttons stay. */
  .network-stage { height: auto; aspect-ratio: 660 / 520; overflow: hidden; }
  .network-svg { width: 100%; height: 100%; touch-action: pan-y; }
  /* D22: each main field of the badge directories opens on a tap (main.js folds them on phones). */
  .badge-main:has(> .badge-fold) { margin-bottom: 0; }
  .badge-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
  .badge-fold > summary::-webkit-details-marker { display: none; }
  .badge-fold > summary > h2 { margin: 0; font-size: 17px; }
  .badge-fold > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
  .badge-fold[open] > summary::after { transform: rotate(-135deg); }
  .badge-fold[open] > .badge-cards { margin: 14px 0 22px; }
}
@media (max-width: 599px) {
  /* D22: the home page showcases as one row that swipes sideways. */
  .star-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: -4px -2px 0; }
  .star-grid > li { scroll-snap-align: start; }
}

/* ---------- The new reader's fields (owner, 11 November; Kararlar section 25). Same rules at every width: the
   timeline rows and the stat grid already fold on narrow screens. ---------- */
/* A career post's note as a small note on its row; a non-university post's job description. */
.timeline-note { justify-self: start; max-width: 100%; margin-top: 2px; padding: 1px 8px; border-radius: 6px; background: var(--raised); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.timeline-desc { margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
/* Web of Science and Scopus totals under the citation summary, each block named by its source. */
.source-metrics { margin-top: 16px; }
.bibliometrics-card h2 + .source-metrics { margin-top: 0; }
/* The admin person page: an old timeline row the page no longer shows (no buttons). */
.admin-row.is-gone span:first-child { color: var(--muted); }

/* Owner, 11 November: the home page's rising stars and duayens are 3 x 3 (9 people), wider cards; at two columns the
   ninth card is left out (4 full rows of 2); the phone keeps its sideways row of all 9 (D22). Other pages unchanged. */
.stars .star-grid, .duayens .star-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) and (max-width: 1023px) {
  .stars .star-grid, .duayens .star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stars .star-grid > li:nth-child(n+9), .duayens .star-grid > li:nth-child(n+9) { display: none; }
}
@media (max-width: 599px) {
  .stars .star-grid, .duayens .star-grid { grid-template-columns: none; }
}

/* Owner, 11 November: on a phone the method page's tables split words ("Katsa/yı", "Yürütüc/ü", "Araştırma/cı") because
   .prose breaks anywhere there. Table cells wrap only between words; the number columns and their headings stay on
   one line (a wide table scrolls inside .table-scroll). */
.prose .score-table th, .prose .score-table td { overflow-wrap: normal; }
.prose .score-table thead th:not(:first-child), .prose .score-table td { white-space: nowrap; }

/* Owner, 11 November: the request form's "Başvuruyu Gönder" button is centred. */
.form-submit { display: flex; justify-content: center; }

/* Owner, 11 November: the "Yöntemin Tamamı" link sits on its own line, centred, under the explanation it follows. */
.method-link { margin: 6px 0 14px; text-align: center; }

/* Owner, 11 November night (Kararlar section 25, "Alt bilgi"): the footer's groups balance. On a phone Keşfet (9 links)
   is the left column and Haklar sits under Şeffaflık in the right one (5 + 4); from 768 px .footer-side adds no box,
   Keşfet runs in two columns (5 + 4 links) so the three groups end level instead of one long column. */
.footer-side { display: contents; }
@media (min-width: 48rem) {
  .footer-cols { grid-template-columns: 1.3fr 2fr 1fr 1fr; }
  .footer-explore ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 24px; }
  /* Owner, 12 November: Keşfet visibly covers both of its columns: every group heading carries a rule as wide as
     its group, so Keşfet's runs over its two columns and the groups read as one row of equal headings. */
  .footer-cols nav .footer-h { padding-bottom: 9px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .footer-cols { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 47.99rem) {
  .footer-side { display: grid; gap: 22px; align-content: start; }
}

/* Owner, 11 November night and 12 November (Kararlar section 25, "Arama"): a search tab without filters (Alanlar,
   Dergiler) has no filter box; its results take the full width. The field tiles run three to a row on wide screens,
   and a long field name wraps instead of being cut. */
.search-layout.no-filters { grid-template-columns: minmax(0, 1fr); }
.search-fields .inst-tile-body strong { white-space: normal; }
/* 21 November: institution names wrap at every width, like the field tiles; the journal results get the directory's
   title and count columns instead of browser bullets. */
.search-institutions .inst-tile-body strong { white-space: normal; overflow-wrap: anywhere; }
.search-journals { list-style: none; margin: 0; padding: 0; }
.search-journals li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.search-journals li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.search-journals li > .muted { flex: none; white-space: nowrap; }
@media (min-width: 64rem) {
  .tile-grid.search-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phone search results, profile controls and the home counters. */
@media (max-width: 640px) {
  .search-institutions .inst-tile-body strong { white-space: normal; overflow-wrap: anywhere; }
  .kind-filter .pill { min-height: 44px; }
  .publication-support > summary, .project-abstract > summary { min-height: 44px; padding-block: 12px; line-height: 20px; }
  .stats > .stat-link:focus-visible { outline-offset: -2px; }
}

/* Owner, 12 November ("Tek satır, yana kayan"; Kararlar section 25): on a phone the search page's tabs stay one row
   that scrolls sideways (other result tabs still wrap, D10); main.js scrolls the selected tab into view. */
@media (max-width: 47.99rem) {
  .subtabs.search-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; }
  .subtabs.search-tabs a { flex: none; }
}
