/* puanlar v3 — "Skorboard": beyaz gövde, mürekkep bantlar, fosforlu keyword vurgusu.
   Space Grotesk (display/rakam) + Inter (gövde) + JetBrains Mono (veri etiketi). Mobil uyumlu. */
:root {
  /* Site genelinde TEK aksan: petrol. Sınav bazlı varyasyon kullanılmıyor (kullanıcı kararı);
     değişken adları kural referansları bozulmasın diye korunuyor, değerleri aynı. */
  --accent-lgs: #0f9b8e;
  --accent-yks: #0f9b8e;
  --accent-dgs: #0f9b8e;
  --accent: var(--accent-yks);
  --accent-one: #0f9b8e;   /* etkin site aksanı: petrol (tasarımdaki accent-dgs) */
  --inv: #ffffff;
  --band-bg: #101014;
  --band-fg: #ffffff;
  --ink: #101014;
  --ink-2: #2b2b30;
  --ink-3: #57575e;
  --ink-4: #6a6a70;   /* küçük metinlerde de AA (beyaz üstünde 5.37:1) */
  --ink-5: #c6c6cc;
  --hata: #c0392b;   /* form hata metni (aksan değil; işlevsel durum rengi) */
  --line: #e9e9e6;
  --line-2: #f3f3f0;
  --paper: #ffffff;
  --paper-soft: #f7f7f4;
  --pill-bg: #efefec;
  --row-h: 38px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 4px;
  --r-lg: 8px;
  --content-w: 1000px;  /* toplam genişlik (büyük ekranlarda en çok 1000px) */
  --content-pad: 15px;  /* yatay iç boşluk: iç alan = 1000 - 2*15 = 970px */
}
.app[data-sinav="lgs"] { --accent: var(--accent-lgs); }
.app[data-sinav="yks"] { --accent: var(--accent-yks); }
.app[data-sinav="dgs"] { --accent: var(--accent-dgs); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); }

/* Kısa içerikte footer viewport altına yapışır (main esner) — footer altında boşluk kalmaz. */
.app { width: 100%; min-height: 100vh; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; }
.app > .page { flex: 1 0 auto; width: 100%; }

/* ═══ Header — mürekkep bandı ═══ */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--band-bg); color: var(--band-fg); }
.hdr-inner { max-width: var(--content-w); margin: 0 auto; display: grid; grid-template-columns: auto auto 1fr; align-items: center; padding: 12px var(--content-pad); gap: 22px; }
.logo { display: flex; align-items: center; gap: 0; background: none; border: 0; padding: 0; color: #fff; }
.logo-mark { min-width: 24px; height: 24px; padding: 0 8px; background: var(--accent); border-radius: var(--r); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; transition: background .2s; }
.logo-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.logo-year { font-family: var(--mono); font-size: 10px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); padding: 2px 7px; border-radius: 999px; }
.nav { display: flex; gap: 6px; }
.nav-item { position: relative; background: none; border: 0; padding: 9px 18px; border-radius: var(--r); font-family: var(--display); font-size: 15.5px; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: 0.02em; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.1); }
/* Aktif: dolu petrol blok yerine beyaz metin + ince petrol alt çizgi (nav göstergesi). */
.nav-item.active { color: #fff; background: none; }
.nav-item.active:hover { background: rgba(255,255,255,.1); }
.nav-item.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2.5px; background: var(--accent); border-radius: 2px; }
.search-wrap { position: relative; }
.search-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); color: rgba(255,255,255,.72); font-size: 13px; min-width: 210px; }
.search-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.search-btn span { flex: 1; text-align: left; }
.search-btn kbd { font-family: var(--mono); font-size: 10px; background: rgba(255,255,255,.14); border: 0; border-radius: 3px; padding: 1px 6px; color: rgba(255,255,255,.7); }
.search-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 420px; max-width: calc(100vw - 32px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 48px rgba(16,16,20,.22); padding: 8px; z-index: 60; }
.search-pop input { width: 100%; padding: 12px; border: 0; outline: 0; font-family: var(--sans); font-size: 15px; background: transparent; border-bottom: 2px solid var(--ink); }
.search-results { list-style: none; margin: 0; padding: 4px 0; max-height: 360px; overflow-y: auto; }
.search-results li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); cursor: pointer; }
.search-results li:hover { background: var(--paper-soft); }
.search-tip { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--ink-3); padding: 2px 6px; background: var(--pill-bg); border-radius: 3px; text-align: center; }
.search-ad { font-size: 14px; color: var(--ink); font-weight: 500; }
.search-alt { font-size: 12px; color: var(--ink-4); }
.search-empty { padding: 16px; color: var(--ink-4); font-size: 13px; }

/* ═══ Arama modalı ═══ */
.search-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(16,16,20,.55); }
.search-modal-panel { position: relative; width: 560px; max-width: 100%; max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(16,16,20,.35); padding: 8px; }
.search-modal-panel input { width: 100%; padding: 13px 12px; border: 0; outline: 0; font-family: var(--sans); font-size: 16px; color: var(--ink); background: transparent; border-bottom: 2px solid var(--accent); }
.search-modal-panel .search-results { overflow-y: auto; }
.search-results li > a { display: contents; color: inherit; text-decoration: none; }
.search-results li.sel { background: color-mix(in oklab, var(--accent) 14%, var(--paper)); box-shadow: inset 3px 0 0 var(--accent); }
.icon-btn:disabled, .profil-btn:disabled { opacity: .4; cursor: default; }
.icon-btn:disabled:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.profil-btn:disabled:hover { background: #fff; color: #101014; }
.app[data-theme="dark"] .search-modal-backdrop { background: rgba(0,0,0,.65); }

/* ═══ Erişilebilirlik ═══ */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r); font-family: var(--display); font-weight: 700; font-size: 14px; text-decoration: none; }
.skip-link:focus { left: 12px; }
#icerik { scroll-margin-top: 70px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hdr :focus-visible, .foot :focus-visible { outline-color: #fff; }
.search-modal-panel input:focus-visible { outline: 0; box-shadow: 0 2px 0 var(--ink); }

/* ═══ Page ═══ */
.page { max-width: var(--content-w); margin: 0 auto; padding: 26px var(--content-pad) 72px; }
.crumbs { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-bottom: 16px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: 0.02em; }
.crumb { background: none; border: 0; padding: 0; color: var(--ink-3); font-family: inherit; font-size: inherit; text-transform: inherit; letter-spacing: inherit; }
.crumb:hover { color: var(--accent); }
.crumb-cur { color: var(--ink); font-weight: 600; }
.crumb-sep { color: var(--ink-5); }

/* ═══ SEO başlık — fosforlu vurgu ═══ */
.seo-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.seo-head-text { flex: 1; min-width: 0; }
.seo-kicker { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.05em; margin-bottom: 10px; text-transform: uppercase; }
.seo-kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
/* Vurgu şeridi text-decoration ile: gradyan bg çok satırda tek bant çizip satır ortasından geçiyordu;
   kalın yarı saydam underline HER SATIRIN altına ayrı çizilir (skip-ink none: kesintisiz bant). */
.seo-h1 { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.14; margin: 0 0 12px; text-wrap: balance; width: fit-content; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 32%, transparent); text-decoration-thickness: 0.25em; text-underline-offset: -0.1em; text-decoration-skip-ink: none; }
.seo-lead { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.seo-lead strong { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.seo-update { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.03em; }
.seo-update i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fav-btn-lg { padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: all .15s; }
.fav-btn-lg:hover { background: var(--ink); color: var(--inv); }
.fav-btn-lg[data-on="1"] { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ═══ Stat kartları — skor tahtası ═══ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.stat-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 15px 12px; background: var(--paper); position: relative; overflow: hidden; }
.stat-card dt { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-4); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card dd { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat-card dd small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-4); letter-spacing: 0; margin-left: 4px; }
.stat-card .stat-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-card[data-hero="1"] { border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 color-mix(in oklab, var(--accent) 55%, transparent); }
.stat-card[data-hero="1"] dd { color: var(--accent); }

/* ═══ Bölüm başlıkları ═══ */
.sec { margin-top: 34px; }
.sec-h2 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; }
.sec-sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 12px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-head-row .sec-sub { margin: 0; }
.sec-link { background: none; border: 0; padding: 0; font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; text-decoration: none; }
.sec-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ═══ Grafik kartı ═══ */
.chart-card { border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 6px 6px 2px; background: var(--paper); }
.chart-legend { display: flex; gap: 16px; align-items: center; font-size: 11.5px; color: var(--ink-3); margin: 2px 2px 4px; flex-wrap: wrap; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .lg i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .delta { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.chart-legend .delta[data-dir="up"] { color: #fff; background: var(--accent); }
.chart-legend .delta[data-dir="down"] { color: #fff; background: var(--accent); }
.trend-svg { width: 100%; height: auto; display: block; }
.trend-svg text { font-family: var(--mono); }
.trend-svg .nokta { cursor: pointer; }
.grafik-tip { position: fixed; z-index: 90; transform: translate(-50%, -100%); pointer-events: none; background: rgba(20,20,24,.96); color: #fff; padding: 6px 9px; border-radius: var(--r); line-height: 1.5; box-shadow: 0 2px 10px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.grafik-tip[hidden] { display: none; }   /* .grafik-tip{display:flex} [hidden]'ı ezmesin */
.grafik-tip b { font-weight: 600; font-size: 11.5px; }
.grafik-tip span { font-family: var(--mono); font-size: 11px; opacity: .9; }

/* ═══ Bar list ═══ */
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 78px; gap: 12px; align-items: center; }
.bar-label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; background: none; border: 0; padding: 0; }
.bar-label:hover { color: var(--accent); }
.bar-label small { color: var(--ink-4); font-weight: 400; margin-left: 5px; }
.bar-track { height: 20px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: color-mix(in oklab, var(--accent) 72%, white); border-radius: 3px 0 0 3px; min-width: 2px; }
.bar-row:first-child .bar-fill { background: var(--accent); }
.bar-val { font-family: var(--display); font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ═══ Filtre çubuğu ═══ */
.filter-bar { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px 15px 11px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.filter-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-group-wide { flex: 1 1 200px; min-width: 180px; }
.filter-label { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-transform: none; }
.text-input { border: 1px solid var(--ink-5); background: var(--paper); padding: 7px 10px; border-radius: var(--r); font-family: var(--sans); font-size: 13px; color: var(--ink); outline: 0; min-width: 150px; }
.text-input:focus { border-color: var(--ink); box-shadow: 2px 2px 0 color-mix(in oklab, var(--accent) 45%, transparent); }
select.text-input { cursor: pointer; padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23101014' d='M0 0h10L5 6z'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: var(--paper); border: 1px solid var(--ink-5); padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip-active { background: var(--ink); border-color: var(--ink); color: var(--inv); }
.dual-range { position: relative; height: 18px; padding-top: 7px; }
.dual-range input[type=range] { position: absolute; left: 0; right: 0; pointer-events: none; appearance: none; -webkit-appearance: none; background: transparent; height: 4px; width: 100%; }
.dual-range input[type=range]::-webkit-slider-runnable-track { background: var(--ink-5); height: 2px; border-radius: 999px; }
.dual-range input[type=range]::-moz-range-track { background: var(--ink-5); height: 2px; border-radius: 999px; }
.dual-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2.5px solid var(--paper); margin-top: -7px; cursor: pointer; box-shadow: 0 0 0 1px var(--ink-5), 0 1px 3px rgba(0,0,0,.25); }
.dual-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2.5px solid var(--paper); cursor: pointer; box-shadow: 0 0 0 1px var(--ink-5), 0 1px 3px rgba(0,0,0,.25); }
.filter-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.filter-summary b { color: var(--ink); font-weight: 700; font-family: var(--display); }
.filter-reset { background: none; border: 0; padding: 4px 8px; border-radius: var(--r); font-size: 12px; color: var(--ink-3); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-5); }
.filter-reset:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ═══ Tablo ═══ */
.table-wrap { border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--paper); }
.ptbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptbl thead th { position: sticky; top: 0; z-index: 2; background: var(--paper-soft); padding: 10px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; text-transform: uppercase; letter-spacing: 0.04em; }
.ptbl thead th:hover { color: var(--ink); }
.ptbl thead th.sorted { color: var(--paper); background: var(--ink); }
.ptbl thead th.num { text-align: right; }
.ptbl thead th .sort-ind { display: inline-block; margin-left: 3px; opacity: 0.45; font-size: 10px; }
.ptbl thead th.sorted .sort-ind { opacity: 1; }
.ptbl tbody td { padding: 0 10px; border-bottom: 1px solid var(--line-2); height: var(--row-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.ptbl tbody tr:last-child td { border-bottom: 0; }
.ptbl tbody tr:hover { background: var(--paper-soft); }
.ptbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; }
.ptbl td.strong { color: var(--ink); font-weight: 600; }
.ptbl td.cur { color: var(--ink); font-weight: 700; font-family: var(--display); font-size: 13px; background: color-mix(in oklab, var(--accent) 7%, transparent); box-shadow: inset 2px 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
/* taban puan kolonunun başlığı da aynı vurguyu taşır (sticky olduğundan opak: paper-soft ile mix) */
.ptbl thead th.cur { color: var(--ink); background: color-mix(in oklab, var(--accent) 7%, var(--paper-soft)); box-shadow: inset 2px 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
.ptbl td.muted { color: var(--ink-3); }
.ptbl td.dim { color: var(--ink-4); }
.ptbl td.small { font-size: 12px; }

/* LGS okul tablosu: sabit kolon genişlikleri (fixed layout) — kalan TÜM genişlik OKUL kolonunda.
   tür ~4 kelime (uzunlar ellipsis), alan ~3 kelime, dil pill içeriğine göre sabit; sayısal kolonlar dar sabit. */
.ptbl-okullar { table-layout: fixed; }
.ptbl-okullar th.col-dil { width: 92px; }
.ptbl-okullar th.col-tur { width: 170px; }
.ptbl-okullar th.col-alan { width: 160px; }
.ptbl-okullar th.col-kont { width: 56px; }
.ptbl-okullar th.col-taban { width: 96px; }
.ptbl-okullar th.col-yuzdelik { width: 76px; }
.ptbl-okullar th.col-detay { width: 44px; }
.ptbl-okullar td.col-detay { text-align: center; padding: 0; }
.ptbl-okullar tbody td { max-width: none; }   /* global 250px sınırı okul kolonunu kısıtlamasın */
/* YKS bölüm program tablosu: üniversite+program esnek (kalan genişliği paylaşır), sayı kolonları sabit. */
.ptbl-programlar { table-layout: fixed; }
.ptbl-programlar th.col-sehir { width: 120px; }
.ptbl-programlar th.col-uni   { width: 210px; }   /* üniversite tablosu: ad dar (uzunlar ellipsis), kalan genişlik PROGRAM'a */
.ptbl-programlar th.col-puan  { width: 54px; }    /* puan türü pill (SAY/EA/SÖZ…) — üniversite tablosu */
.ptbl-programlar th.col-kont  { width: 56px; }    /* "9999" + KONT. başlığı */
.ptbl-programlar th.col-taban { width: 108px; }   /* 5 basamak "547,69436" + TABAN PUANI başlığı */
.ptbl-programlar th.col-sira  { width: 108px; }   /* "2.999.999" + BAŞARI SIRASI başlığı */
.ptbl-programlar th.col-detay { width: 44px; }
.ptbl-programlar td.col-detay { text-align: center; padding: 0; }
.ptbl-programlar tbody td { max-width: none; }
/* Program detay: yıllık geçmiş tablosu — dar (full-width değil). */
.ptbl-gecmis { min-width: 0; }   /* tam genişlik (max-width yok); mobilde 880px min-width'i geçersiz kılar */
/* detaya git ikonu (lise detayı noindex -> link rel=nofollow) — petrol vurgulu, hover'da dolu */
.detay-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: var(--paper); text-decoration: none; vertical-align: middle; transition: all .12s; }
.detay-btn:hover { background: var(--accent); color: #fff; }

/* Sayfa altı belirgin gezinme linkleri (başlıksız; SSS + güncelleme damgasının altında) */
.alt-linkler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.alt-link { display: inline-flex; align-items: center; padding: 11px 20px; background: var(--paper); border: 1.5px solid var(--accent); border-radius: 999px; font-family: var(--display); font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; transition: all .12s; }
.alt-link:hover { background: var(--accent); color: #fff; }

/* Üniversite bilgi kartı (YÖK verisi: logo/şehir/tür/kuruluş/web/adres) */
.uni-kart { display: flex; gap: 16px; align-items: flex-start; background: var(--paper-soft); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: inset 0 3px 0 color-mix(in oklab, var(--accent) 45%, transparent); }
.uni-kart-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; flex-shrink: 0; }
.uni-kart-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 0; flex: 1; min-width: 0; }
.uni-kart-dl div { display: flex; flex-direction: column; gap: 2px; }
.uni-kart-dl .genis { grid-column: 1 / -1; }
.uni-kart-dl .cift { grid-column: span 2; }   /* "İl / İlçe" gibi uzun değerler: 2 kolon kaplar, satır boşluğu da dolar */
.uni-kart-dl dt { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 600; }
.uni-kart-dl dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.uni-kart-dl dd a { color: var(--accent); text-decoration: none; }
.uni-kart-dl dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Lise detay: program bölümleri — KART görünümü (ayırt edici zemin + çerçeve + petrol sol şerit).
   İçindeki stat/net kartları paper zeminli kaldığı için paper-soft kart üstünde katman etkisi verir. */
/* Üniversite detayındaki fakülte tablosu (.table-wrap) ile aynı çerçeve dili:
   ink üst bant (2px) + line çerçeve + yalnız alt köşeler yuvarlak. Yeşil inset şerit kaldırıldı. */
.prog-blok { background: var(--paper-soft); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 18px 20px 16px; }
.prog-tur { color: var(--ink-3); font-size: 13px; margin: 4px 0 0; }
.mini-baslik { font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 14px 0 8px; }
/* net kartları: stat-card dilinin minyatürü (etiket üstte mono, değer altta display) */
.net-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.net-kart { min-width: 82px; padding: 8px 12px 7px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.net-kart span { display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); margin-bottom: 3px; }
.net-kart b { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.dil-pill { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 2px 7px; background: var(--pill-bg); border-radius: 999px; color: var(--ink-3); }
.cell-link { background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; color: inherit; text-align: left; font-weight: inherit; }
.cell-link:hover { color: var(--accent); }
.puan-pill { font-family: var(--mono); font-size: 10px; padding: 2px 7px; background: var(--pill-bg); border-radius: 3px; color: var(--ink-2); font-weight: 600; }
.empty { padding: 40px; text-align: center; color: var(--ink-4); font-size: 13px; }

/* ═══ SSS ═══ */
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px; font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary .faq-ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--r); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink); transition: all .15s; }
.faq-list details[open] summary .faq-ic { transform: rotate(45deg); border-color: var(--accent); color: #fff; background: var(--accent); }
.faq-list .faq-a { padding: 0 34px 16px 2px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.faq-list .faq-a strong { font-variant-numeric: tabular-nums; }

/* ═══ İlgili linkler ═══ */
.rel-row { display: flex; flex-wrap: wrap; gap: 7px; }
.rel-chip { display: inline-flex; align-items: baseline; background: var(--paper); border: 1px solid var(--ink-5); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: all .12s; }
.rel-chip:hover { border-color: var(--ink); background: var(--ink); color: var(--inv); }
.rel-chip:hover small { color: inherit; opacity: .65; }
.rel-chip small { color: var(--ink-4); margin-left: 6px; font-family: var(--mono); font-size: 10px; }
/* aktif tür çipi (bulunulan il×tür sayfası) — tek-accent petrol vurgu, tıklanamaz */
.rel-chip.is-active, .rel-chip.is-active:hover { background: color-mix(in oklab, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--ink); cursor: default; }
.rel-chip.is-active small, .rel-chip.is-active:hover small { color: var(--ink-3); opacity: 1; }

/* ═══ Ana sayfa hero ═══ */
.hero-search { padding: 36px 0 28px; text-align: center; }
.hero-search h1 { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin: 0 auto 8px; text-wrap: balance; line-height: 1.14; width: fit-content; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 32%, transparent); text-decoration-thickness: 0.25em; text-underline-offset: -0.1em; text-decoration-skip-ink: none; }
.hero-search > p { color: var(--ink-3); font-size: 14.5px; margin: 0 auto 22px; text-wrap: pretty; }
.hero-search > p strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-search-box { position: relative; max-width: 560px; margin: 0 auto; }
.hero-search-box input { width: 100%; padding: 15px 18px 15px 48px; font-size: 16px; font-family: var(--sans); border: 2px solid var(--ink); border-radius: var(--r-lg); outline: 0; background: var(--paper); color: var(--ink); transition: box-shadow .15s; }
.hero-search-box input:focus { box-shadow: 4px 4px 0 color-mix(in oklab, var(--accent) 55%, transparent); }
.hero-search-box input:focus-visible { outline: none; }   /* kalıcı border + petrol box-shadow yeterli odak ipucu */
.hero-search-box > svg { position: absolute; left: 17px; top: 27px; transform: translateY(-50%); color: var(--ink-3); }
/* Hero arama açılır sonuç kutusu — header dropdown'ının aksine tam genişlik, sola hizalı;
   .hero-search-box .hero-pop (0,2,0) mobildeki .search-pop fixed kuralını (0,1,0) yener. */
.hero-search-box .hero-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); width: auto; text-align: left; }
.hero-search-tags { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.hero-search-tags a, .hero-search-tags button { background: var(--paper); border: 1px solid var(--ink-5); padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.hero-search-tags a:hover, .hero-search-tags button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.hero-stats { display: flex; gap: 28px; justify-content: center; margin-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; flex-wrap: wrap; }
.hero-stats b { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0; margin-right: 3px; }
.home-section { margin-top: 34px; }

/* ═══ Sınav kartları ═══ */
.sinav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sinav-grid.ikili { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }   /* DGS gizliyken 2 kart */
.sinav-card { --card-accent: var(--accent); text-align: left; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--card-accent); border-radius: var(--r-lg); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 176px; transition: all .15s; }
.sinav-card, .popular-card, .quick-link { text-decoration: none; }
.sinav-card:hover { border-color: var(--card-accent); box-shadow: 4px 4px 0 color-mix(in oklab, var(--card-accent) 30%, transparent); transform: translate(-1px, -1px); }
.sinav-card-head { display: flex; align-items: center; gap: 10px; }
.sinav-badge { font-family: var(--display); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r); color: #fff; background: var(--card-accent); letter-spacing: 0.03em; }
.sinav-card h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.sinav-card-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; flex: 1; }
.sinav-card-stats { display: flex; gap: 18px; padding-top: 10px; border-top: 1px solid var(--line); margin: 0; }
.sinav-card-stats div { display: flex; flex-direction: column; }
.sinav-card-stats dt { font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.sinav-card-stats dd { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.sinav-card-go { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--card-accent); }

/* ═══ Popüler kartlar ═══ */
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.popular-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px 14px; text-align: left; display: flex; flex-direction: column; gap: 5px; transition: all .12s; }
.popular-card:hover { border-color: var(--ink); box-shadow: 3px 3px 0 color-mix(in oklab, var(--accent) 40%, transparent); }
.popular-card-rank { font-family: var(--mono); font-size: 10px; color: var(--accent); font-weight: 600; }
.popular-card-ad { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); min-height: calc(1.3em * 2); }
.popular-card-puan { font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.popular-card-puan small { font-family: var(--sans); font-size: 10.5px; color: var(--ink-4); font-weight: 500; margin-left: 4px; }
.popular-card-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-4); }
.popular-card-meta .pill { font-family: var(--mono); font-size: 10px; padding: 1px 6px; background: var(--pill-bg); border-radius: 3px; color: var(--ink-3); font-weight: 600; }

/* ═══ Hızlı linkler ═══ */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* YKS landing: puan türü KARTLARI (eski çip satırının kart hali; içerik/davranış aynı) */
.puan-kart-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.puan-kart-grid.dortlu { grid-template-columns: repeat(4, 1fr); }   /* bölüm alanı kartları (4 alan) */

/* YKS landing 4 tab paneli (ARIA tabs) + istemci filtresi */
/* Segment/pill tab bar. Aktif durum aria-selected ÜZERİNDEN (sunucu HTML'inde var -> ilk paint'te
   JS beklemeden vurgulu; JS geçişte aria-selected'i günceller). */
/* Kapsayıcı tab kartı: sinav-card dilini yeniden kullanır (1px bordür + 3px petrol üst-bordür + r-lg
   radius + paper zemin). Üstte paper-soft sekme şeridi, altında panel gövdesi = tek kapsayıcı birim. */
.yks-panelbox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.yks-tablist { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px 0; border-bottom: 1px solid var(--accent); }
/* Folder/klasör sekmesi: aktif = paper zemin + petrol üst-şerit, alt kenarıyla panel gövdesine kaynaşır */
.yks-tab { padding: 10px 18px; background: none; border: 1px solid transparent; border-bottom: none; border-radius: 9px 9px 0 0; margin-bottom: -1px; font-family: var(--display); font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color .14s, background .14s; }
.yks-tab:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
/* Aktif: aria-selected (ilk paint, JS'siz) + .active (JS geçişi — sınıf değişimi her motorda kesin yeniden-boyar) */
.yks-tab.active, .yks-tab[aria-selected="true"] { background: var(--paper); border-color: var(--line); border-top: 2px solid var(--accent); border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); color: var(--ink); padding-top: 9px; }
.yks-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.yks-panel { padding: 22px 22px 12px; }
.filtre-input { display: block; width: 100%; max-width: 440px; padding: 11px 15px; margin-bottom: 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); font-family: var(--sans); font-size: 14px; color: var(--ink); }
.filtre-input::placeholder { color: var(--ink-4); }
.filtre-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.filtre-bos { color: var(--ink-3); font-size: 13.5px; padding: 8px 0; }
/* YKS panellerindeki üniversite/bölüm listeleri 2 kolon (global quick-grid 3 kolondur; LGS/ana sayfa etkilenmez) */
.yks-panel .quick-grid { grid-template-columns: repeat(2, 1fr); }
.puan-kart { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: all .12s; }
.puan-kart:hover { border-color: var(--accent); box-shadow: 3px 3px 0 color-mix(in oklab, var(--accent) 45%, transparent); }
.puan-kart-kod { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.puan-kart-ad { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.puan-kart-alt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-4); margin-top: 3px; }
.quick-link { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; transition: all .12s; }
.quick-link[hidden] { display: none; }   /* filtre öğeyi hidden yapınca gizlensin (sınıf display:flex'i ez) */
.quick-link:hover { border-color: var(--ink); background: var(--ink); color: var(--inv); }
.quick-link:hover span { color: inherit; opacity: .65; }
.quick-link span { color: var(--ink-4); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
/* "Son baktıkların" başlığı: link etiketi değil, okunur başlık — gerçek ellipsis için flex+min-width. */
.quick-link span.gecmis-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ═══ Landing ═══ */
.exam-hero { padding: 4px 0 20px; border-bottom: 2px solid var(--ink); }
.exam-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.exam-section { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); text-align: left; width: 100%; transition: all .13s; }
.exam-section:hover { border-color: var(--ink); box-shadow: 3px 3px 0 color-mix(in oklab, var(--accent) 40%, transparent); }
.exam-section-icon { width: 38px; height: 38px; border-radius: var(--r); background: var(--ink); display: grid; place-items: center; color: var(--inv); flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 14px; }
.exam-section:hover .exam-section-icon { background: var(--accent); }
.exam-section-body { flex: 1; min-width: 0; }
.exam-section-title { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.exam-section-desc { font-size: 12px; color: var(--ink-3); }
.exam-section-meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
.exam-section-arrow { color: var(--ink-4); font-size: 15px; transition: transform .15s; }
.exam-section:hover .exam-section-arrow { color: var(--accent); transform: translateX(3px); }

/* ═══ Liste kartları ═══ */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.list-card { text-align: left; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 96px; transition: all .12s; }
.list-card:hover { border-color: var(--ink); box-shadow: 3px 3px 0 color-mix(in oklab, var(--accent) 35%, transparent); }
.list-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.list-card-ad { font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); }
.list-card-badge { font-family: var(--mono); font-size: 10px; color: var(--inv); padding: 2px 7px; background: var(--ink); border-radius: 3px; flex-shrink: 0; font-weight: 600; }
.list-card-alt { font-size: 12px; color: var(--ink-4); margin-bottom: 6px; }
.list-card-stats { display: flex; gap: 14px; margin: auto 0 0; padding-top: 6px; }
.list-card-stats div { display: flex; flex-direction: column; }
.list-card-stats dt { font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.list-card-stats dd { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }

/* ═══ Yoğunluk ═══ */
.app[data-density="compact"] { --row-h: 31px; }
.app[data-density="compact"] .ptbl { font-size: 12px; }
.app[data-density="comfy"] { --row-h: 46px; }
.app[data-sort-ind="hidden"] .sort-ind { display: none !important; }

/* ═══ Footer — mürekkep bandı ═══ */
.foot { background: var(--band-bg); color: var(--band-fg); padding: 28px 0 32px; margin-top: 28px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 0.04em; flex-wrap: wrap; align-items: baseline; }
.foot-brand { font-family: var(--display); font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; text-transform: none; letter-spacing: 0; }
.foot-brand:hover { color: var(--accent); }
.foot-src { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; }
.foot-src:hover { color: #fff; }

/* ═══ Mobil alt sekmeler ═══ */
.mtabs { display: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1020px) {
  .app { width: 100%; }
}
@media (max-width: 760px) {
  .page { padding: 18px 12px 88px; }
  .hdr-inner { grid-template-columns: auto 1fr; padding: 10px 12px; gap: 10px; }
  .hdr .nav { display: none; }
  .search-btn { min-width: 0; padding: 8px 10px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-pop { position: fixed; left: 16px; right: 16px; top: 56px; width: auto; }

  .hero-search { padding: 24px 0 22px; }
  .hero-search h1 { font-size: 27px; }
  .hero-search > p { font-size: 13.5px; margin-bottom: 16px; }
  /* İstatistikler mobilde dağınık 3 satır yerine düzenli 2x2 ızgara */
  .hero-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 22px; justify-content: center; margin-top: 18px; text-align: left; }
  .hero-search-tags { gap: 5px; margin-top: 12px; }
  .hero-search-tags a, .hero-search-tags button { padding: 4px 10px; font-size: 11.5px; }
  .seo-h1 { font-size: 24px; }
  .seo-head { flex-direction: column; gap: 10px; }
  .seo-actions { flex-direction: row; flex-wrap: wrap; align-self: flex-start; }

  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card dd { font-size: 22px; }
  .sinav-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .yks-panel .quick-grid { grid-template-columns: 1fr; }   /* mobilde tek kolon (scoped kural specificity'sini yener) */
  /* mobilde sekmeler tek satıra SIĞAR: dar boşluk/padding/font + uzun etiketlerde "Bölümleri" gizli.
     overflow-x:auto yalnız güvenlik ağı (normalde sığdığı için kaydırma görünmez). */
  .yks-tablist { padding: 8px 8px 0; flex-wrap: nowrap; gap: 3px; overflow-x: auto; scrollbar-width: none; }
  .yks-tablist::-webkit-scrollbar { display: none; }
  .yks-tab { flex: 0 0 auto; padding: 8px 11px; font-size: 12.5px; }
  .yks-tab.active, .yks-tab[aria-selected="true"] { padding-top: 6px; }
  .tab-ek { display: none; }   /* "Bölümleri" mobilde gizli -> Lisans / Önlisans */
  .yks-panel { padding: 16px 14px 8px; }
  /* Kart grupları mobilde TEK SATIRLIK kompakt satırlar: solda ad, sağda tek istatistik.
     Örn. "Sağlık  TABAN PUANLARI →          4 Bölüm" */
  .puan-kart-grid, .puan-kart-grid.dortlu { grid-template-columns: 1fr; gap: 6px; }
  .puan-kart { flex-direction: row; align-items: center; gap: 8px; padding: 11px 14px; }
  .puan-kart-kod { font-size: 16px; }
  .puan-kart-alt { margin-top: 0; order: 2; }
  .puan-kart-ad { order: 3; margin-left: auto; font-size: 12px; white-space: nowrap; }
  .pk-program { display: none; }   /* alan kartında "· N Program" mobilde gizli, yalnız bölüm sayısı */
  .exam-sections { grid-template-columns: 1fr; }
  /* Popüler bölüm/üni kartları mobilde tek satır: "Tıp [SAY]   551,13" */
  .list-grid { grid-template-columns: 1fr; gap: 6px; }
  .list-card { flex-direction: row; align-items: center; gap: 10px; min-height: 0; padding: 11px 14px; }
  .list-card-head { flex: 1; min-width: 0; }
  .list-card-ad { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .list-card-alt { display: none; }
  .list-card-badge { display: none; }   /* mobil satırda puan türü / üni türü rozeti yok */
  .list-card-stats { margin: 0; padding: 0; }
  .list-card-stats div:first-child { display: none; }   /* en yüksek taban gizli; sağda program/bölüm sayısı */
  .list-card-stats div { flex-direction: row-reverse; align-items: baseline; gap: 3px; }
  /* Sağdaki sayı+etiket, puan türü satırlarındaki .puan-kart-ad ile AYNI stil */
  .list-card-stats dd, .list-card-stats dt { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
  .foot { padding: 24px 0 100px; }

  .bar-row { grid-template-columns: 128px 1fr 62px; gap: 8px; }
  .bar-label small { display: none; }

  /* Tablolar: yatay kaydırma */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ptbl { min-width: 880px; }
  .ptbl-gecmis { min-width: 0; }   /* geçmiş tablosu mobilde tek ekrana sığar (4 dar kolon) */
  .ptbl thead th { position: static; }

  .filter-group-wide { flex-basis: 100%; }

  /* Alt sekme çubuğu */
  .mtabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--band-bg); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
  .mtab { background: none; border: 0; border-radius: var(--r); padding: 7px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,.55); font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; }
  .mtab svg { display: block; }
  .mtab.active { color: #fff; background: rgba(255,255,255,.1); }
  .mtab.active .mtab-dot { background: var(--accent); }
  .mtab-dot { width: 14px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); }
}
@media (max-width: 420px) {
  .popular-grid { grid-template-columns: 1fr 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
}

/* ═══ v3.1 — tema, hesap, tercih ═══ */
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); color: rgba(255,255,255,.8); flex-shrink: 0; }
.icon-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.profil-btn { display: flex; align-items: center; height: 36px; padding: 0 14px; background: #fff; color: #101014; border: 0; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
.profil-btn:hover { background: var(--accent); color: #fff; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; border: 0; flex-shrink: 0; }
.avatar-sm:hover { filter: brightness(1.12); }

.seo-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex-shrink: 0; }
.seo-actions .fav-btn-lg { justify-content: center; }
.tercih-btn[data-on="1"] { border-color: var(--ink); background: var(--ink); color: var(--inv); }
.tercih-btn:disabled { opacity: .45; }
.foot-inner { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--content-pad); }
.inline-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* hesap ekranları */
.auth-wrap { max-width: 400px; margin: 36px auto 16px; }
.auth-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-lg); padding: 26px 24px; background: var(--paper); box-shadow: 6px 6px 0 color-mix(in oklab, var(--accent) 14%, transparent); }
.auth-h { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.02em; }
.auth-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.field input { border: 1px solid var(--ink-5); background: var(--paper); border-radius: var(--r); padding: 10px 12px; font: inherit; color: var(--ink); outline: 0; }
.field input:focus { border-color: var(--ink); box-shadow: 2px 2px 0 color-mix(in oklab, var(--accent) 45%, transparent); }
.btn-primary { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: 0; border-radius: var(--r-lg); font-family: var(--display); font-size: 14px; font-weight: 700; margin-top: 6px; }
.btn-primary:hover { filter: brightness(.94); }
.auth-alt { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.auth-alt button, .auth-alt a { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-hata { color: var(--hata); font-size: 13px; margin-bottom: 10px; }
.form-hata ul { margin: 0; padding-left: 18px; }
.alan-hata { display: block; color: var(--hata); font-size: 12px; margin-top: 4px; }
.field input.input-validation-error { border-color: var(--hata); }

/* Favori / tercih kaydet-butonları (detay sayfalarında) */
.kayit-aksiyonlari { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.kayit-aksiyonlari form { margin: 0; }
.kayit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--paper); border: 1.5px solid var(--accent); border-radius: 999px; font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; transition: all .12s; }
.kayit-btn:hover { background: var(--accent); color: #fff; }
.kayit-btn.kayitli { background: var(--accent); border-color: var(--accent); color: #fff; }
.kayit-btn.kayitli:hover { color: #fff; filter: brightness(1.06); }
.auth-note { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); text-align: center; margin-top: 14px; }

/* profil */
.prof-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 700; flex-shrink: 0; }
.prof-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.prof-mail { font-size: 13px; color: var(--ink-3); }
.btn-ghost { padding: 8px 14px; border: 1.5px solid var(--ink); background: none; color: var(--ink); border-radius: 999px; font-family: var(--display); font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.btn-ghost:hover { background: var(--ink); color: var(--inv); }

/* favori & tercih satırları */
.item-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.item-row:last-child { border-bottom: 0; }
.item-row:hover { background: var(--paper-soft); }
.item-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent); width: 24px; flex-shrink: 0; text-align: center; }
.item-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.item-main:hover .item-label { color: var(--accent); }
.item-label { font-weight: 600; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { font-size: 11.5px; color: var(--ink-4); display: flex; gap: 8px; flex-wrap: wrap; }
.item-val { font-family: var(--display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.item-acts { display: flex; gap: 4px; flex-shrink: 0; }
.item-acts button { width: 28px; height: 28px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-3); font-size: 13px; }
.item-acts button:hover { border-color: var(--ink); color: var(--ink); }
.item-acts button:disabled { opacity: .3; pointer-events: none; }
.item-acts .del:hover { border-color: var(--accent); color: var(--accent); }
.empty-card { border: 1.5px dashed var(--ink-5); border-radius: var(--r-lg); padding: 34px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty-card .btn-primary { width: auto; display: inline-block; padding: 10px 18px; margin-top: 14px; }

/* koyu tema */
.app[data-theme="dark"] {
  --ink: #ededf0; --ink-2: #cfcfd6; --ink-3: #9d9da6; --ink-4: #8a8a92; --ink-5: #3d3d46; --hata: #ff6b5e;
  --line: #26262c; --line-2: #1e1e24; --paper: #121216; --paper-soft: #1a1a1f; --pill-bg: #26262c;
  /* --ink-4 koyu temada da küçük metin için AA (#8a8a92 → koyu zeminde ~5.5:1) */
  --inv: #121216;
  --accent-lgs: #2ec7a0; --accent-yks: #2ec7a0; --accent-dgs: #2ec7a0; --accent-one: #2ec7a0;
  --band-bg: #0b0b0e;
}
body[data-theme="dark"] { background: #0b0b0e; }
.app[data-theme="dark"] .search-pop { box-shadow: 0 20px 48px rgba(0,0,0,.6); }
.app[data-theme="dark"] .profil-btn { background: #ededf0; }

/* tek renk modu */
.app[data-colormode="tek"] { --accent-lgs: var(--accent-one); --accent-yks: var(--accent-one); --accent-dgs: var(--accent-one); }

@media (max-width: 760px) {
  .prof-head { flex-wrap: wrap; }
  .auth-wrap { margin-top: 14px; }
  .hdr-right { gap: 6px; }
}
