/* Türkiye Biyoçeşitlilik — tek stil dosyası. Tasarım notu: site/DESIGN.md */

/* ------------------------------------------------------------------ token'lar */
:root {
  color-scheme: light;
  --paper: #F5F1E8;
  --paper-2: #ECE6D8;
  --surface: #FAF7F0;
  --ink: #1C211E;
  --ink-2: #454C46;
  --ink-3: #5E655E;
  --rule: #DCD4C3;
  --rule-strong: #B9AF9B;
  --forest: #2D4A3A;
  --link: #2F5D45;
  --rust: #9C4A24;
  --focus: #9C4A24;
  --warn-bg: #F3E7DA;

  --c-obs: #1F7349;
  --c-obs-strong: #17573A;
  --c-dna: #BD7A24;
  --c-dna-bg: #F2E3CB;
  --c-dna-text: #8A5512;

  --map-0: #E6E0D2;
  --map-1: #93B57F;
  --map-2: #6E9C63;
  --map-3: #4E804C;
  --map-4: #346439;
  --map-5: #1D4728;
  --map-hl: #9C4A24;

  --ed-deadly: #8A1C1C;
  --ed-poisonous: #A63A1C;
  --ed-psychoactive: #6A4A78;
  --ed-caution: #7F5A10;
  --ed-allergenic: #7F5A10;
  --ed-inedible: #5F5B52;
  --ed-edible: #3B6634;
  --ed-choice: #2D5528;
  --ed-medicinal: #3A5F6A;

  --ph-sage-bg: #DCE2D2; --ph-sage-fg: #5D7155;
  --ph-sand-bg: #E8DDC8; --ph-sand-fg: #7D6748;
  --ph-clay-bg: #E7D6CB; --ph-clay-fg: #84584A;
  --ph-slate-bg: #D9DEDE; --ph-slate-fg: #55666A;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px;
  --maxw: 1240px;
  --measure: 68ch;
  --radius: 3px;
  --shadow-pop: 0 10px 30px rgba(28, 33, 30, .12), 0 1px 3px rgba(28, 33, 30, .08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141917; --paper-2: #1B211E; --surface: #1A201C;
    --ink: #ECE7DB; --ink-2: #C2BCAE; --ink-3: #949C93;
    --rule: #2D3530; --rule-strong: #47514A;
    --forest: #A8C9AE; --link: #9DCAA8; --rust: #E39A6B; --focus: #E39A6B; --warn-bg: #2A2119;
    --c-obs: #4FA46C; --c-obs-strong: #7CC496; --c-dna: #C77A35; --c-dna-bg: #2E2418; --c-dna-text: #E0A867;
    --map-0: #222A25; --map-1: #3D5E45; --map-2: #4E7A57; --map-3: #66996D; --map-4: #88B98B; --map-5: #B5D8AF; --map-hl: #E39A6B;
    --ed-deadly: #F08A80; --ed-poisonous: #EE9A72; --ed-psychoactive: #C9A7DA; --ed-caution: #E2B65C; --ed-allergenic: #E2B65C;
    --ed-inedible: #B5B0A5; --ed-edible: #9CCB8E; --ed-choice: #B4DCA6; --ed-medicinal: #93C2CE;
    --ph-sage-bg: #222B24; --ph-sage-fg: #8FA787; --ph-sand-bg: #2B2620; --ph-sand-fg: #B39C7A;
    --ph-clay-bg: #2D2320; --ph-clay-fg: #B88C7D; --ph-slate-bg: #212829; --ph-slate-fg: #8EA2A5;
    --shadow-pop: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141917; --paper-2: #1B211E; --surface: #1A201C;
  --ink: #ECE7DB; --ink-2: #C2BCAE; --ink-3: #949C93;
  --rule: #2D3530; --rule-strong: #47514A;
  --forest: #A8C9AE; --link: #9DCAA8; --rust: #E39A6B; --focus: #E39A6B; --warn-bg: #2A2119;
  --c-obs: #4FA46C; --c-obs-strong: #7CC496; --c-dna: #C77A35; --c-dna-bg: #2E2418; --c-dna-text: #E0A867;
  --map-0: #222A25; --map-1: #3D5E45; --map-2: #4E7A57; --map-3: #66996D; --map-4: #88B98B; --map-5: #B5D8AF; --map-hl: #E39A6B;
  --ed-deadly: #F08A80; --ed-poisonous: #EE9A72; --ed-psychoactive: #C9A7DA; --ed-caution: #E2B65C; --ed-allergenic: #E2B65C;
  --ed-inedible: #B5B0A5; --ed-edible: #9CCB8E; --ed-choice: #B4DCA6; --ed-medicinal: #93C2CE;
  --ph-sage-bg: #222B24; --ph-sage-fg: #8FA787; --ph-sand-bg: #2B2620; --ph-sand-fg: #B39C7A;
  --ph-clay-bg: #2D2320; --ph-clay-fg: #B88C7D; --ph-slate-bg: #212829; --ph-slate-fg: #8EA2A5;
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
}

/* ------------------------------------------------------------------ temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; }
i.sci, .sci { font-style: italic; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: 0; transform: translateY(-120%); z-index: 50; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); }
.skip:focus { transform: translateY(var(--s2)); }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 920px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* rütbe etiketi ve küçük başlıklar */
.rank, .label, .label-h, .h-sm, .ib-h {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.h-sm { margin: var(--s5) 0 var(--s2); }
.h-sm:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ başlık çubuğu */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 20; }
.hdr {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand search theme" "nav nav nav";
  align-items: center;
  column-gap: var(--s5);
  padding-top: var(--s4);
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 24px; height: 24px; color: var(--forest); flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }
.brand:hover .brand-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.theme-btn { grid-area: theme; width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn:hover { border-color: var(--rule); color: var(--ink); }
.nav { grid-area: nav; margin-top: var(--s3); }
.nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: var(--s2) 0 10px; color: var(--ink-2); text-decoration: none; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--forest); }

/* arama */
.search { grid-area: search; position: relative; justify-self: end; width: min(100%, 420px); }
.search input {
  width: 100%; height: 40px; padding: 0 38px 0 36px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-ico { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.kbd { position: absolute; right: 9px; top: 9px; font: 500 .72rem/20px var(--sans); color: var(--ink-3); border: 1px solid var(--rule-strong); border-radius: 3px; width: 20px; text-align: center; background: var(--paper); }
.search input:focus ~ .kbd, .search input:not(:placeholder-shown) ~ .kbd { display: none; }

.ac {
  position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 440px); max-width: calc(100vw - 2 * var(--gutter));
  margin: 0; padding: var(--s1) 0; list-style: none;
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); z-index: 40;
}
.ac li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 6px var(--s3); cursor: pointer; }
.ac li[aria-selected="true"] { background: var(--paper-2); }
.ac .ac-th { width: 40px; height: 40px; border-radius: 2px; overflow: hidden; background: var(--paper-2); }
.ac .ac-th img { width: 40px; height: 40px; object-fit: cover; }
.ac .ac-th .ph { font-size: 1rem; }
.ac .ac-t { display: block; font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac .ac-s { display: block; font-size: .82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac mark { background: none; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.ac .ac-r { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 2px; padding: 1px 5px; }
.ac .ac-all { grid-template-columns: 1fr; border-top: 1px solid var(--rule); margin-top: var(--s1); padding: 10px var(--s3); font-size: .88rem; color: var(--link); }
.ac .ac-empty { grid-template-columns: 1fr; color: var(--ink-3); font-size: .9rem; cursor: default; }

@media (max-width: 760px) {
  .hdr { grid-template-columns: 1fr auto; grid-template-areas: "brand theme" "search search" "nav nav"; padding-top: var(--s3); row-gap: var(--s3); }
  .search { width: 100%; justify-self: stretch; }
  .nav { margin-top: 0; }
  .nav ul { gap: var(--s4); margin-right: calc(-1 * var(--gutter)); padding-right: 40px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .kbd { display: none; }
  .ac { width: 100%; }
}

/* ------------------------------------------------------------------ breadcrumb */
.crumbs { margin: var(--s5) 0 var(--s4); font-size: .84rem; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: baseline; }
.crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.incertae { font-style: italic; color: var(--ink-3); }

/* ------------------------------------------------------------------ takson başlığı */
.t-head, .k-head, .p-head { margin: var(--s5) 0 var(--s6); }
.kicker { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin: 0 0 var(--s3); }
.t-title, .k-title, .p-head h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.45rem);
  font-weight: 400; letter-spacing: -.012em; line-height: 1.04;
  font-variation-settings: "opsz" 72;
}
.t-title.is-sci { font-style: normal; }
.t-title .sci { font-style: italic; }
.t-title .auth, .t-sci .auth { font-family: var(--sans); font-style: normal; font-size: .95rem; letter-spacing: 0; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.t-title .auth { font-size: clamp(.9rem, .8rem + .3vw, 1.05rem); vertical-align: .35em; margin-left: .2em; }
.t-sci { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); color: var(--ink-2); margin: var(--s2) 0 0; }
.t-tr { font-style: normal; }
.t-figures { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: baseline; margin: var(--s4) 0 0; font-size: .95rem; color: var(--ink-2); }
.t-figures .big { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-variant-numeric: lining-nums; }
.p-head .lead, .lead { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch; margin-top: var(--s4); }
.p-head h1 { margin: 0; }

.tag { display: inline-block; font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; }
.tag-draft { color: var(--rust); }
.tag-dna { color: var(--c-dna-text); }

/* ------------------------------------------------------------------ takson ızgarası */
.t-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "main hero" "main info";
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  align-items: start;
}
.t-main { grid-area: main; min-width: 0; }
.t-grid > .hero { grid-area: hero; margin: 0 0 var(--s5); }
.t-grid > .infobox { grid-area: info; }
@media (max-width: 1000px) {
  .t-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "main" "info"; grid-template-rows: auto; }
  .t-grid > .hero { max-width: 560px; }
  .t-grid > .infobox { margin-top: var(--s6); max-width: 560px; }
}
.t-sec { margin-bottom: var(--s6); }
.t-sec > h2, .sec-h h2 { font-size: 1.6rem; font-weight: 500; margin: 0 0 var(--s3); letter-spacing: -.005em; }
.t-main > .t-sec:first-child > h2 { font-size: 1.25rem; font-family: var(--sans); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; font-size: .72rem; color: var(--ink-3); margin-bottom: var(--s3); }
.t-auto { margin: 0 0 var(--s6); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; }
.t-auto summary { cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.t-auto .prose { margin-top: var(--s3); font-size: 1.05rem; }

/* ------------------------------------------------------------------ düzyazı */
.prose { font-family: var(--serif); font-size: 1.19rem; line-height: 1.6; max-width: var(--measure); text-wrap: pretty; hyphens: manual; }
.prose p { margin: 0 0 .9em; }
.prose b, .prose strong { font-weight: 600; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.08rem; font-weight: 600; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose a { color: var(--link); }
.prose blockquote { margin: 1em 0; padding-left: var(--s4); border-left: 2px solid var(--rule-strong); color: var(--ink-2); }
.prose table { font-family: var(--sans); font-size: .9rem; border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.prose .ev { margin-right: 6px; }

.src { font-size: .82rem; color: var(--ink-3); margin: var(--s3) 0 0; max-width: var(--measure); }
.src a { color: var(--ink-2); }

/* sözlük ipucu */
.gl { position: relative; }
.gl-term, .prose .gl-term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: help; }
.gl-term:hover { color: var(--link); text-decoration-color: currentColor; }
.gl-tip {
  display: none;
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30;
  width: max-content; max-width: min(320px, 80vw);
  padding: 10px 12px; background: var(--ink); color: var(--paper);
  font: 400 .85rem/1.45 var(--sans); font-style: normal; text-align: left; white-space: normal;
  border-radius: var(--radius); box-shadow: var(--shadow-pop);
  pointer-events: none;
}
.gl-tip b { display: block; font-weight: 600; margin-bottom: 2px; }
.gl:hover .gl-tip, .gl-term:focus-visible + .gl-tip { display: block; }
.gl.is-hidden .gl-tip { display: none !important; }
.gl-tip.flip { left: auto; right: 0; }
@media (max-width: 600px) {
  .gl-tip { position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); top: auto; width: auto; max-width: none; }
  .gl-tip.flip { left: var(--s4); right: var(--s4); }
}

/* ------------------------------------------------------------------ görsel */
.hero figure, figure.hero { margin: 0; }
.hero-media { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; border-radius: 2px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero figcaption { font-size: .78rem; line-height: 1.45; color: var(--ink-3); margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: 0 .6em; }
.hero-label { width: 100%; color: var(--ink-2); }
.where { color: var(--ink-2); }
.credit a { color: var(--ink-3); }
.credit a:hover { color: var(--ink); }

/* tipografik yer tutucu */
.ph { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--serif); font-style: italic; font-weight: 400; line-height: 1; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); letter-spacing: .01em; }
.ph::after { content: ""; position: absolute; inset: 8px; border: 1px solid currentColor; opacity: .18; border-radius: 1px; }
.ph-xs { font-size: 1.05rem; }
.ph-xs::after { inset: 3px; }
.ph-lg { font-size: clamp(3rem, 2rem + 4vw, 5rem); }
.ph-sage { background: var(--ph-sage-bg); color: var(--ph-sage-fg); }
.ph-sand { background: var(--ph-sand-bg); color: var(--ph-sand-fg); }
.ph-clay { background: var(--ph-clay-bg); color: var(--ph-clay-fg); }
.ph-slate { background: var(--ph-slate-bg); color: var(--ph-slate-fg); }
.hero-ph { display: flex; aspect-ratio: 16 / 9; }

/* ------------------------------------------------------------------ künye */
.infobox { border-top: 2px solid var(--ink); font-size: .9rem; }
.ib-sec { padding: var(--s3) 0 var(--s2); }
.ib-sec + .ib-sec { border-top: 1px solid var(--rule-strong); }
.ib-h { margin: 0 0 var(--s2); font-family: var(--sans); }
.infobox dl { margin: 0; }
.ib-row { display: grid; grid-template-columns: 44% 1fr; gap: var(--s3); padding: 5px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ib-row:last-child { border-bottom: 0; }
.ib-row dt { color: var(--ink-3); font-size: .82rem; }
.ib-row dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.ib-row dd a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.ib-row dd a:hover { text-decoration-color: currentColor; }
.ib-tax .ib-row dd { font-size: .92rem; }
.auth { color: var(--ink-3); font-size: .85em; }
.ib-row .muted { font-size: .82rem; }
.ed-link { text-decoration: none; display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* kanıt işaretleri: dolu = fiziksel, içi boş = DNA */
.ev { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: .05em; flex: none; }
.ev-obs { background: var(--c-obs); }
.ev-dna { border: 1.5px solid var(--c-dna); background: transparent; }
.evs { display: inline-flex; gap: .8em; white-space: nowrap; }
.evn { display: inline-flex; align-items: baseline; }
.lg-hatch { display: inline-block; width: 12px; height: 9px; margin: 0 5px 0 10px; border: 1px solid var(--c-dna); background: repeating-linear-gradient(135deg, var(--c-dna) 0 1.2px, transparent 1.2px 3.5px); vertical-align: -.05em; }

/* yenilebilirlik */
.ed { display: inline-block; font: 500 .74rem/1.5 var(--sans); padding: 1px 7px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.ed-sm { font-size: .66rem; padding: 0 5px; margin-left: .4em; }
.ed-deadly { color: var(--ed-deadly); font-weight: 600; }
.ed-poisonous { color: var(--ed-poisonous); }
.ed-psychoactive { color: var(--ed-psychoactive); }
.ed-caution, .ed-allergenic { color: var(--ed-caution); }
.ed-inedible { color: var(--ed-inedible); }
.ed-edible { color: var(--ed-edible); }
.ed-choice { color: var(--ed-choice); }
.ed-medicinal { color: var(--ed-medicinal); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 1px; background: currentColor; vertical-align: -.02em; }
.ed-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.ed-desc { color: var(--ink-2); font-size: .92rem; margin-left: .4em; }
.danger { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 6px; }
.danger .ed { min-width: 9.5em; text-align: center; margin-right: .6em; }

/* uyarı */
.warn { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--rust); background: var(--warn-bg); font-size: .9rem; line-height: 1.5; color: var(--ink); max-width: var(--measure); }
.warn p { margin: 0; }
.warn p + p { margin-top: var(--s2); }
.warn a { color: var(--ink); }
.warn .tel { font-weight: 600; font-variant-numeric: lining-nums; color: var(--rust); }
.warn-wide { max-width: none; margin: var(--s6) 0 0; }

/* ------------------------------------------------------------------ bölümler */
.band { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.wrap.band { border-top: 0; position: relative; }
.wrap.band::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); margin-bottom: var(--s5); }
.sec-h h2 { margin: 0; }
.sec-note { margin: 0; font-size: .88rem; color: var(--ink-3); }
.more-link { margin: var(--s5) 0 0; font-size: .92rem; }
.more-link a::after { content: " →"; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s6) var(--s7); }

/* ------------------------------------------------------------------ kartlar */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s6) var(--s5); }
.cards-lg { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: var(--s5) var(--s4); }
.card-a { display: block; color: inherit; text-decoration: none; }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .2s ease; }
.card-a:hover .card-media img { transform: scale(1.025); filter: brightness(.95); }
.card-body { display: block; padding-top: 10px; }
.card-body .rank { display: block; margin-bottom: 2px; }
.card-title { display: block; font-family: var(--serif); font-size: 1.17rem; line-height: 1.22; font-weight: 500; color: var(--ink); }
.card-title.is-sci { font-weight: 400; }
.card-a:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card-sci { display: block; font-size: .86rem; color: var(--ink-2); margin-top: 1px; }
.card-meta { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.card-meta .sep { margin: 0 .3em; }
.cards-lg .card-title { font-size: 1.45rem; }
.cards-sm .card-title { font-size: 1.05rem; }
@media (max-width: 520px) {
  .cards, .cards-lg, .cards-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
  .cards-lg { grid-template-columns: minmax(0, 1fr); }
  .card-title { font-size: 1.05rem; }
  .card-meta .evs { flex-wrap: wrap; gap: 0 .8em; }
}

/* ------------------------------------------------------------------ tablolar */
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data th, .data td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.data thead th { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--rule-strong); padding-top: 0; white-space: nowrap; }
.data tbody th { font-weight: 400; }
.data .n { text-align: right; font-variant-numeric: tabular-nums lining-nums; padding-right: 0; padding-left: var(--s3); white-space: nowrap; }
.data a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.data a:hover { text-decoration-color: currentColor; }
.dist { display: block; font-size: .78rem; color: var(--ink-3); margin-top: 1px; }
.dist-inline { font-size: .78rem; color: var(--ink-3); margin-left: .3em; }
.data-wide { margin-top: var(--s4); }
.kv { border-collapse: collapse; width: 100%; max-width: 560px; font-size: .92rem; }
.kv th, .kv td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.kv th { font-weight: 400; color: var(--ink-3); width: 45%; padding-right: var(--s4); }
.more-btn { margin-top: var(--s3); font: inherit; font-size: .85rem; color: var(--link); background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; }
.more-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-link { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ------------------------------------------------------------------ yayılış */
.dist-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: var(--s6) var(--s7); align-items: start; }
@media (max-width: 900px) { .dist-grid { grid-template-columns: minmax(0, 1fr); } }
.dist-side .h-sm:first-child { margin-top: 0; }
.map { margin: 0; position: relative; }
.map-canvas { aspect-ratio: 1000 / 424; width: 100%; background: transparent; position: relative; }
.map-canvas svg { width: 100%; height: 100%; display: block; overflow: visible; }
.map-canvas:empty { background: repeating-linear-gradient(90deg, var(--paper-2) 0 1px, transparent 1px 40px); opacity: .5; }
.map path { fill: var(--map-0); stroke: var(--paper); stroke-width: .9; stroke-linejoin: round; transition: fill .15s; }
.map path.c1 { fill: var(--map-1); } .map path.c2 { fill: var(--map-2); } .map path.c3 { fill: var(--map-3); }
.map path.c4 { fill: var(--map-4); } .map path.c5 { fill: var(--map-5); }
.map path.dnaonly { fill: url(#map-hatch); }
.map path.is-hl { stroke: var(--map-hl); stroke-width: 2.4; }
.map path.has-link { cursor: pointer; }
.map path.is-hover { stroke: var(--ink); stroke-width: 1.6; }
.map .hatch-bg { fill: var(--map-0); }
.map .hatch-ln { stroke: var(--c-dna); stroke-width: 1.4; }
.map .pt { fill: var(--c-obs-strong); stroke: var(--paper); stroke-width: 1; pointer-events: none; }
.map .pt-dna { fill: none; stroke: var(--c-dna); stroke-width: 1.4; pointer-events: none; }
.map .pts { mix-blend-mode: normal; }
.map-cap { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; margin-top: var(--s3); font-size: .8rem; color: var(--ink-3); line-height: 1.45; }
.map-note { flex: 1 1 280px; max-width: 70ch; }
.map-legend { display: inline-flex; align-items: center; gap: 0; flex-wrap: wrap; }
.map-legend:empty { display: none; }
.lg-step { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lg-sw { width: 40px; height: 9px; margin-right: 2px; display: block; }
.lg-sep { width: 14px; }
.lg-key { display: inline-flex; align-items: center; gap: 5px; margin-left: var(--s3); font-size: .74rem; }
.lg-key svg { width: 12px; height: 12px; }
.lg-dnaonly { width: 18px; height: 10px; border: 1px solid var(--c-dna); background: repeating-linear-gradient(135deg, var(--c-dna) 0 1.2px, var(--map-0) 1.2px 3.5px); display: inline-block; }
.tip {
  position: absolute; z-index: 60; pointer-events: none;
  background: var(--ink); color: var(--paper); font: 400 .8rem/1.4 var(--sans);
  padding: 6px 9px; border-radius: var(--radius); box-shadow: var(--shadow-pop); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}
.tip b { font-weight: 600; display: block; }
.ptable .data th { width: 100%; }

/* ------------------------------------------------------------------ grafikler */
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s6) var(--s7); }
.chart-fig { margin: 0; position: relative; }
.chart-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); font-size: .82rem; color: var(--ink-3); margin-bottom: var(--s2); }
.chart-t { font-size: .72rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.legend { display: inline-flex; align-items: center; font-size: .8rem; }
.bars { position: relative; padding-top: 18px; }
.bars-max { position: absolute; top: 0; right: 0; font-size: .72rem; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bars-plot { position: relative; height: 132px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-strong); }
.bars .col { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; min-width: 0; cursor: default; }
.bars .bar { display: block; width: min(64%, 22px); flex: none; }
.bars-m .bar { border-radius: 4px 4px 0 0; }
.bars .bar.obs { background: var(--c-obs); }
.bars .bar.peak { background: var(--c-obs-strong); }
.bars .bar.dna { background: repeating-linear-gradient(135deg, var(--c-dna) 0 1.2px, var(--c-dna-bg) 1.2px 4px); box-shadow: inset 0 0 0 1px var(--c-dna); }
.bars .bar.obs + .bar.dna { margin-bottom: 1px; }
.bars .col:hover .bar { opacity: .78; }
.bars-y .bars-plot { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 1px; }
.bars-y .bar { width: min(100%, 12px); }
.bars-y .col-old { border-right: 3px solid var(--paper); }
.bars-axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); text-align: center; font-size: .72rem; color: var(--ink-3); padding-top: 6px; line-height: 1.2; }
.bars-axis-abs { display: block; position: relative; height: 22px; padding: 0; }
.bars-axis-abs span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars-axis-abs .ax-s { left: 0 !important; transform: none; }
.bars-axis-abs .ax-e { left: auto !important; right: 0; transform: none; }
.dist-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s5) var(--s6); }
.dist-bars figure { margin: 0; }
.band .dist-bars { max-width: 900px; }
.hbars { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); padding: 5px 0 6px; border-bottom: 1px solid var(--rule); }
.hb-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-label a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.hb-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hb-track { grid-column: 1 / -1; height: 4px; margin-top: 4px; background: transparent; }
.hb-bar { display: block; height: 4px; background: var(--c-obs); border-radius: 0 2px 2px 0; }
.hbars.plain li { padding: 6px 0; }

/* ------------------------------------------------------------------ fotoğraf galerisi */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s5) var(--s4); }
.gallery figure { margin: 0; }
.g-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.g-media img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.g-media:hover img { filter: brightness(.94); }
.gallery figcaption { font-size: .76rem; line-height: 1.45; color: var(--ink-3); margin-top: 6px; display: flex; flex-direction: column; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); } }

/* ------------------------------------------------------------------ Vikipedi ve kaynaklar */
.wiki-src { font-family: var(--sans); font-size: .8rem; color: var(--ink-3); margin-bottom: var(--s4) !important; }
.wiki-src a { color: var(--ink-2); }
.wiki-more { font-family: var(--sans); font-size: .9rem; }
.wiki-en { margin-top: var(--s5); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; max-width: var(--measure); }
.wiki-en summary { cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.wiki-en > .prose { margin-top: var(--s4); font-size: 1.08rem; color: var(--ink-2); }
.wiki-en .wiki-src { margin: var(--s3) 0 0 !important; }
.src-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: var(--s6) var(--s7); }
@media (max-width: 900px) { .src-grid { grid-template-columns: minmax(0, 1fr); } }
.links { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.links li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.links a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.links a::after { content: " ↗"; color: var(--ink-3); font-size: .85em; }
.people { font-size: .86rem; line-height: 1.6; color: var(--ink-2); }
.refs { font-size: .86rem; line-height: 1.5; padding-left: 1.3em; margin: 0; color: var(--ink-2); overflow-wrap: anywhere; max-width: var(--measure); }
.t-refs h2 { font-size: 1.25rem !important; }
.refs li { margin-bottom: var(--s2); }
.names { margin: 0; max-width: 560px; }
.names div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s3); padding: 7px 0; border-bottom: 1px solid var(--rule); }
.names dt { font-family: var(--serif); font-size: 1.1rem; }
.names dd { margin: 0; font-size: .86rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ âlem sayfası */
.k-title { margin: 0; }
.k-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6) var(--s8); align-items: start; }
@media (max-width: 900px) { .k-intro { grid-template-columns: minmax(0, 1fr); } }
.prose.lead { font-size: 1.28rem; color: var(--ink); margin: 0; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.figures > div { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); }
.figures > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.figures > div:nth-child(even) { padding-left: var(--s4); }
.figures dt { font-size: .76rem; color: var(--ink-3); letter-spacing: .02em; display: flex; align-items: center; }
.figures dd { margin: 2px 0 0; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; font-variant-numeric: lining-nums proportional-nums; color: var(--ink); }
.figures .slash, .figures .of { color: var(--ink-3); font-size: .6em; }
.months .month-tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.month-tabs button { font: inherit; font-size: .86rem; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 10px; color: var(--ink-3); cursor: pointer; }
.month-tabs button:hover { color: var(--ink); }
.month-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--forest); }
@media (max-width: 600px) { .month-tabs button { padding: 6px 7px; font-size: .8rem; } }

/* kök sayfa */
.r-head { margin: var(--s8) 0 var(--s7); max-width: 900px; }
.r-title { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1; font-variation-settings: "opsz" 72; }
.r-lead { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; color: var(--ink-2); margin-top: var(--s5); max-width: 58ch; }
.label-h { margin: 0 0 var(--s4); padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); font-family: var(--sans); }
.realm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s6); }
@media (max-width: 860px) { .realm-list { grid-template-columns: minmax(0, 1fr); } }
.realm-a { display: block; color: inherit; text-decoration: none; }
.realm-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.realm-media img { width: 100%; height: 100%; object-fit: cover; }
.realm-body { display: block; padding-top: var(--s3); }
.realm-title { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; margin: 4px 0 var(--s2); }
a.realm-a:hover .realm-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.realm-figs { display: flex; flex-wrap: wrap; gap: 0 var(--s4); font-size: .92rem; color: var(--ink-2); }
.realm-figs .num { color: var(--ink); font-weight: 500; }
.realm-note { display: block; margin-top: var(--s2); font-size: .88rem; color: var(--ink-3); }
.is-soon .realm-title { color: var(--ink-3); }
.is-soon .realm-media { opacity: .65; }
@media (min-width: 861px) { .is-soon .realm-media { aspect-ratio: 3 / 2; } }
.r-notes { margin: var(--s8) 0 0; }
.r-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s4) var(--s7); font-size: .95rem; color: var(--ink-2); max-width: 1000px; }

/* ------------------------------------------------------------------ keşfet */
.x-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s7); align-items: start; }
.x-filters { position: sticky; top: var(--s4); max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; }
.x-disc > summary { list-style: none; font-size: .72rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); cursor: default; }
.x-disc > summary::-webkit-details-marker { display: none; }
.x-fields { display: grid; gap: var(--s4); padding-top: var(--s4); }
.fld { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 6px; }
.fld > label, .fld legend { font-size: .76rem; color: var(--ink-3); padding: 0; margin-bottom: 2px; }
.fld legend { margin-bottom: 6px; }
.fld input[type="search"], .fld select, .x-sort select {
  width: 100%; height: 36px; font: inherit; font-size: .9rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0 10px;
}
.fld select, .x-sort select { -webkit-appearance: none; appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.fld select:disabled { opacity: .55; }
.fld-radio label, .fld-check label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.fld-radio input, .fld-check input { accent-color: var(--forest); margin: 0; }
.x-reset { margin: 0; font-size: .85rem; }
.x-active { color: var(--rust); margin-left: .3em; }
.x-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); }
.x-count { margin: 0; font-size: .92rem; color: var(--ink-2); }
.x-count .num { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-right: .15em; }
.x-sort { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.x-sort select { width: auto; height: 32px; }
.x-list { list-style: none; margin: 0; padding: 0; }
.x-row a { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 170px) 150px 56px; gap: var(--s4); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.x-row a:hover { background: var(--paper-2); }
.x-row a:hover .x-tr, .x-row a:hover .x-name > .sci:only-child { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.x-thumb { width: 56px; height: 56px; overflow: hidden; border-radius: 2px; background: var(--paper-2); display: block; }
.x-thumb img { width: 56px; height: 56px; object-fit: cover; }
.x-name { min-width: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; }
.x-tr { display: block; color: var(--ink); }
.x-tr + .sci { display: block; font-family: var(--sans); font-size: .84rem; color: var(--ink-2); }
.x-fam { font-size: .82rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-ev { font-size: .84rem; text-align: right; color: var(--ink-2); }
.x-prov { font-size: .84rem; text-align: right; color: var(--ink-3); }
.x-more { text-align: center; padding: var(--s5) 0; }
@media (max-width: 900px) {
  .x-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .x-filters { position: static; max-height: none; overflow: visible; }
  .x-disc > summary { cursor: pointer; display: flex; justify-content: space-between; }
  .x-disc > summary::after { content: "+"; font-size: 1rem; line-height: 1; }
  .x-disc[open] > summary::after { content: "–"; }
  .x-fields { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: var(--s5); }
}
@media (max-width: 600px) {
  .x-row a { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "th name ev" "th fam prov"; row-gap: 0; column-gap: var(--s3); }
  .x-thumb, .x-thumb img { width: 48px; height: 48px; }
  .x-thumb { grid-area: th; }
  .x-name { grid-area: name; font-size: 1rem; }
  .x-fam { grid-area: fam; }
  .x-ev { grid-area: ev; }
  .x-prov { grid-area: prov; }
}

/* ------------------------------------------------------------------ ağaç */
.tree-tools { font-size: .88rem; color: var(--ink-3); margin: var(--s3) 0 0; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { border-top: 2px solid var(--ink); }
.tree ul { margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--rule); }
.tree summary, .tn-leaf { display: grid; grid-template-columns: 16px 74px minmax(0, 1fr) auto; align-items: baseline; gap: 0 var(--s2); padding: 7px 0; border-bottom: 1px solid var(--rule); cursor: pointer; list-style: none; }
.tn-leaf { cursor: default; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--ink-3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transform: translateY(-1px); transition: transform .15s; }
.tree details[open] > summary::before { transform: translateY(-1px) rotate(90deg); }
.tn-leaf::before { content: ""; }
.tn-rank { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tree a { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.tree a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.tn-name { min-width: 0; }
.tn-tr { color: var(--ink-3); font-size: .86rem; margin-left: .4em; }
.tn-n { font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.tn-phylum > details > summary a { font-size: 1.3rem; }
@media (max-width: 520px) {
  .tree summary, .tn-leaf { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .tn-rank { display: none; }
  .tree ul { margin-left: 4px; padding-left: 12px; }
}

/* ------------------------------------------------------------------ sözlük */
.az ul { list-style: none; margin: 0 0 var(--s6); padding: var(--s2) 0; display: flex; flex-wrap: wrap; gap: 2px 6px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.az a { display: inline-block; min-width: 28px; padding: 4px 6px; text-align: center; font-family: var(--serif); font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.az a:hover { background: var(--paper-2); }
.gl-letter { margin-bottom: var(--s6); }
.gl-L { font-size: 2.4rem; font-weight: 400; color: var(--ink-3); border-bottom: 1px solid var(--rule-strong); padding-bottom: var(--s1); margin-bottom: var(--s2); }
.gl-list { margin: 0; }
.gl-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s2) var(--s6); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: var(--s5); }
.gl-item:target { background: linear-gradient(90deg, var(--warn-bg), transparent 70%); }
.gl-item dt { display: flex; flex-direction: column; gap: 4px; }
.gl-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.gl-item dd { margin: 0; }
.gl-eq { font-size: .82rem; color: var(--ink-3); margin: 0 0 var(--s1); }
.gl-def { font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; max-width: var(--measure); }
.gl-def p { margin: 0 0 .5em; }
.gl-syn, .gl-rel { font-size: .84rem; color: var(--ink-3); margin: var(--s1) 0 0; }
@media (max-width: 700px) { .gl-item { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ düz sayfalar */
.page-body { margin-bottom: var(--s6); }
.page-body h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.page-body .ev { margin-right: 6px; }
.toc { font-family: var(--sans); font-size: .9rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; margin-bottom: var(--s5); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; }
.emergency { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: start; padding: var(--s5) 0; border-top: 2px solid var(--rust); border-bottom: 1px solid var(--rule); margin-bottom: var(--s6); }
.emergency p { margin: 0 0 var(--s2); max-width: var(--measure); }
.em-num { font-family: var(--serif); font-size: 4.2rem; line-height: .9; margin: 0 !important; }
.em-num a { color: var(--rust); text-decoration: none; font-variant-numeric: lining-nums; }
@media (max-width: 520px) { .emergency { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }
.links-plain { list-style: none; padding: 0; margin: 0; font-size: 1.05rem; }
.links-plain li { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.ds-table th { max-width: 520px; }

/* ------------------------------------------------------------------ alt bilgi */
.site-footer { margin-top: var(--s9); border-top: 1px solid var(--rule); padding: var(--s6) 0 var(--s7); font-size: .84rem; color: var(--ink-2); background: var(--paper); }
.ftr { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--s5) var(--s7); }
@media (max-width: 860px) { .ftr { grid-template-columns: minmax(0, 1fr); } }
.ftr p { margin: 0 0 var(--s2); line-height: 1.55; }
.ftr .label { margin-bottom: var(--s2); }
.ftr-brand { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.ftr a { color: var(--ink-2); }
.ftr a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ hareket ve yazdırma */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-a:hover .card-media img { transform: none; }
}
@media print {
  .site-header, .site-footer, .more-btn, .x-filters, .theme-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .band { break-inside: avoid; }
}
.realm-rank { display: flex; gap: .6em; align-items: baseline; }
.realm-rank .sci { font-size: .86rem; color: var(--ink-3); }
.full-list { margin-top: var(--s6); max-width: 980px; }

/* Markdown tabloları (editör içeriği) */
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.4em; border-top: 2px solid var(--ink); -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll:focus-visible { outline-offset: 4px; }
.prose .md-table { margin: 0; min-width: 560px; font-size: .86rem; line-height: 1.45; }
.prose .md-table th { font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); vertical-align: bottom; border-bottom: 1px solid var(--rule-strong); }
.prose .md-table td { vertical-align: top; }
.prose .md-table td:first-child { font-weight: 500; }
.prose.page-body { max-width: none; }
.prose.page-body > :not(.table-scroll) { max-width: var(--measure); }
.table-scroll {
  background:
    linear-gradient(to right, var(--paper) 30%, transparent) 0 0,
    linear-gradient(to left, var(--paper) 30%, transparent) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .14), transparent) 0 0,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .14), transparent) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.ref-host { font-size: .78rem; color: var(--ink-3); }
.refs a { color: var(--ink-2); text-decoration-color: var(--rule-strong); }
.js tr.more:not(.shown) { display: none; }
html:not(.js) .more-btn[data-more] { display: none; }
.gl-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 var(--s4); }
.gl-cats .rank { margin-right: 4px; }
.gl-cats button { font: inherit; font-size: .84rem; color: var(--ink-2); background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.gl-cats button:hover { border-color: var(--ink-3); color: var(--ink); }
.gl-cats button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gl-cats button[aria-pressed="true"] .muted { color: inherit; opacity: .7; }
html:not(.js) .gl-cats { display: none; }
