/* =========================================================
   Tasarım değişkenleri (TechAgriculture)
   Renkler zümrüt yeşilinden camgöbeğine uzanan bir paletten gelir; bütün yazı/zemin
   çiftleri WCAG AA kontrastını (normal metinde en az 4,5:1) sağlar.
   ========================================================= */
:root {
  --bg: #f5f7f6;
  --bg-soft: #eef3f0;
  --ink: #0f1c16;
  --ink-2: #46554d;
  --ink-3: #56655d;
  --line: #e1e8e3;
  --line-2: #ccd6cf;
  --brand: #047857;
  --brand-dark: #064e3b;
  --brand-tint: #e2f5ec;
  --accent: #0e7490;
  --tech: #0e7490;
  --eco: #9c4a08;
  --farm: #047857;
  --alert: #b91c1c;
  --on-brand: #ffffff;
  --brand-hover: #065f46;
  --surface: #ffffff;
  --ph-bg: #e1e8e3;
  --trk-bg: #e3eae5;
  --dim: #b6c3bb;
  --tint-cool: #dff3f8;
  --tint-warm: #fdf0e0;
  --mark: #fde68a;
  --head-bg: rgba(255, 255, 255, .82);
  --shadow-sm: 0 1px 2px rgba(15, 28, 22, .05), 0 1px 3px rgba(15, 28, 22, .06);
  --shadow: 0 12px 32px -14px rgba(15, 28, 22, .22), 0 2px 6px -2px rgba(15, 28, 22, .06);
  /* Açık nane yeşili zemin: beyaz kartlar ve koyu yazı üzerinde net durur (açıklama 7:1, küçük etiketler 5,5:1) */
  --hero-bg: radial-gradient(1100px 380px at 95% -15%, rgba(8, 145, 178, .10), transparent 60%),
             linear-gradient(160deg, #f4fbf7 0%, #e8f5ee 100%);
  --grad: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0891b2 100%);
  /* Üzerinde beyaz yazı olan zeminler için koyu gradyan (beyaz yazıyla en az 5,4:1) */
  --grad-deep: linear-gradient(135deg, #065f46 0%, #115e59 50%, #0e7490 100%);
  --display: "Plus Jakarta Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1200px;
  --head-h: 64px;
  color-scheme: light;
}

/* Koyu tema (aynı değerler iki yerde durur: CSS'te iki seçiciyi tek kurala bağlamanın yolu yok).
   Sistem koyuysa kendiliğinden, ya da ziyaretçi başlıktaki düğmeyle seçtiyse (data-theme="dark").
   "Açık" seçimi (data-theme="light") sistem ayarını geçersiz kılar. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a110e;
    --bg-soft: #101a15;
    --ink: #e7f0ea;
    --ink-2: #b0c0b6;
    --ink-3: #93a69a;
    --line: #1f2d26;
    --line-2: #2f4038;
    --brand: #34d399;
    --brand-dark: #03261a;
    --brand-tint: #0e2a1f;
    --accent: #22d3ee;
    --tech: #67d4e9;
    --eco: #f0b45a;
    --farm: #34d399;
    --alert: #ff8a7a;
    --on-brand: #022016;
    --brand-hover: #6ee7b7;
    --surface: #111b16;
    --ph-bg: #1a2721;
    --trk-bg: #22302a;
    --dim: #3c4e45;
    --tint-cool: #0d2a33;
    --tint-warm: #33240f;
    --mark: #6b5a1d;
    --head-bg: rgba(10, 17, 14, .8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
    --hero-bg: radial-gradient(1200px 400px at 90% -10%, rgba(34, 211, 238, .14), transparent 60%),
               radial-gradient(900px 420px at -10% 110%, rgba(52, 211, 153, .14), transparent 60%), #0f1914;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a110e;
  --bg-soft: #101a15;
  --ink: #e7f0ea;
  --ink-2: #b0c0b6;
  --ink-3: #93a69a;
  --line: #1f2d26;
  --line-2: #2f4038;
  --brand: #34d399;
  --brand-dark: #03261a;
  --brand-tint: #0e2a1f;
  --accent: #22d3ee;
  --tech: #67d4e9;
  --eco: #f0b45a;
  --farm: #34d399;
  --alert: #ff8a7a;
  --on-brand: #022016;
  --brand-hover: #6ee7b7;
  --surface: #111b16;
  --ph-bg: #1a2721;
  --trk-bg: #22302a;
  --dim: #3c4e45;
  --tint-cool: #0d2a33;
  --tint-warm: #33240f;
  --mark: #6b5a1d;
  --head-bg: rgba(10, 17, 14, .8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --hero-bg: radial-gradient(1200px 400px at 90% -10%, rgba(34, 211, 238, .14), transparent 60%),
             radial-gradient(900px 420px at -10% 110%, rgba(52, 211, 153, .14), transparent 60%), #0f1914;
  color-scheme: dark;
}

/* =========================================================
   Temel
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* "display" verilen öğeler de hidden ile gizlenebilsin */
html { scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand-tint); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 0; color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Bot tuzağı: form kutularının "input { width: 100% }" kuralı genişliği ezmesin diye !important (yoksa sayfa yana taşar) */
.hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px !important; height: 1px !important; min-width: 0 !important;
  padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -40px; background: var(--brand); color: var(--on-brand); padding: 8px 12px; z-index: 100; border-radius: var(--r); }
.skip:focus { top: 8px; }
.muted { color: var(--ink-2); }

/* Fotoğraflar yüklenirken yer tutucu renk */
.ph { display: block; background: var(--ph-bg); overflow: hidden; border-radius: var(--r-lg); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

/* =========================================================
   Üst şerit, başlık, menü
   ========================================================= */
.topbar { background: #071a12; color: #cfe3d8; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar nav { display: flex; gap: 18px; }
.topbar a { color: #cfe3d8; }
.topbar a:hover { color: #fff; }
.tb-info { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.tb-info > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; background: rgba(207, 227, 216, .3); margin-inline-end: 10px; vertical-align: -1px; }
.tb-clock { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }

/* Tarih düğmesi ve küçük takvim (minical.js) */
.tb-cal { position: relative; display: inline-flex; }
.tb-date { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: #cfe3d8; background: none; border: 0; padding: 2px 4px;
  margin: 0 -4px; border-radius: 6px; cursor: pointer; min-height: 24px; }
.tb-date:hover, .tb-date[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.tb-date svg { width: 14px; height: 14px; flex: none; }
#todayShort { display: none; }
.minical { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 300; width: 300px; padding: 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  white-space: normal; font-size: 14px; }
.minical[hidden] { display: none; }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.mc-head b { font-size: 15.5px; text-transform: capitalize; }
.mc-nav { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; }
.mc-nav:hover { border-color: var(--brand); color: var(--brand); }
.mc-today { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.mc-today b { color: var(--ink); }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.mc-wd { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 2px 0 4px; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.mc-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 34px;
  border-radius: 9px; font: inherit; font-size: 13.5px; color: var(--ink); background: none; border: 1px solid transparent; padding: 0; }
.mc-day.is-past { color: var(--ink-3); opacity: .6; }
button.mc-day { cursor: pointer; }
button.mc-day:hover { border-color: var(--line-2); }
.mc-day.is-marked { font-weight: 700; }
.mc-day.is-today { background: var(--brand); color: #fff; font-weight: 700; opacity: 1; }
.mc-dots { display: flex; gap: 2px; height: 5px; margin-top: 1px; }
.mc-dots i, .mc-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.mc-day.is-today .mc-dots i { box-shadow: 0 0 0 1px #fff; }
.t-resmi { background: #dc2626; }
.t-dini { background: #7c3aed; }
.t-tarim { background: #16a34a; }
.t-ozel { background: #d97706; }
.t-etkinlik { background: #0284c7; }
.mc-list { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); max-height: 170px; overflow-y: auto; }
.mc-list li { display: grid; grid-template-columns: 8px auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 4px 6px;
  border-radius: 8px; font-size: 13px; line-height: 1.35; }
.mc-list li .mc-dot { width: 8px; height: 8px; align-self: center; }
.mc-list li b { white-space: nowrap; }
.mc-list li small { grid-column: 3; color: var(--ink-3); font-size: 11.5px; }
.mc-list li.is-past { opacity: .6; }
.mc-list li.is-focus { background: var(--brand-tint); }
.mc-list a { color: inherit; text-decoration: underline; }
.mc-none { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.mc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mc-link { font: inherit; font-size: 13px; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; }
.mc-foot .mc-link:only-child { margin-inline-start: auto; }
/* Takvim üst çubuğun içinde durduğu için oradaki açık renkli bağlantı stilini almasın */
.topbar .minical a { display: inline; min-height: 0; }
.topbar .minical a.mc-link, .topbar .minical a.mc-link:hover { color: var(--brand); }
.topbar .minical .mc-list a, .topbar .minical .mc-list a:hover { color: inherit; }
/* Sağdan sola dillerde (Arapça) "önceki ay" sağda durur; ok da o yöne baksın */
[dir="rtl"] .mc-nav { transform: scaleX(-1); }
.tb-wx { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.tb-wx .wx-ico { font-size: 14px; line-height: 1; }
.tb-wx .wx-t { color: #fff; font-weight: 600; }
.tb-wx button { font: inherit; color: #cfe3d8; background: rgba(255, 255, 255, .06); border: 1px solid rgba(207, 227, 216, .3); border-radius: 999px; padding: 1px 9px; cursor: pointer; min-height: 22px; }
.tb-wx button:hover { color: #fff; border-color: #fff; }

.site-head { position: sticky; top: 0; z-index: 30; background: var(--head-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.head-row { display: flex; align-items: center; gap: 18px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 4px 10px rgba(5, 150, 105, .3)); }
.brand-name { display: block; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navlist { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.navlist::-webkit-scrollbar { display: none; }
.navlist a { flex: none; padding: 8px 13px; color: var(--ink-2); font-weight: 600; font-size: 15px; border-radius: 999px; transition: background .15s, color .15s; }
.navlist a:hover { text-decoration: none; color: var(--ink); background: var(--bg-soft); }
.navlist a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); width: 250px; padding-block: 0; padding-inline: 12px 8px; height: 40px; transition: border-color .15s, box-shadow .15s, width .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); width: 300px; }
.search > svg { width: 17px; height: 17px; flex: none; color: var(--ink-3); }
.site-head .search input[type=search] { flex: 1; width: auto; min-width: 0; border: 0; border-radius: 0; padding: 0; height: 100%; background: transparent; outline: 0; font-size: 15px; box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.kbd { display: inline-flex; align-items: center; font: 600 11.5px/1 var(--sans); color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; background: var(--bg-soft); white-space: nowrap; }
.search:focus-within .kbd { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }
.search-btn { display: none; }

main { padding-top: 28px; padding-bottom: 64px; display: block; outline: 0; }
[data-page] { display: none; }
[data-page].on { display: block; }

/* =========================================================
   Ortak bloklar
   ========================================================= */
.block-h { font-size: 23px; font-weight: 800; margin: 0 0 14px; }
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 52px 0 18px; }
.band-head .block-h { margin: 0; }
.more { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: "→"; transition: transform .15s; }
.more:hover { text-decoration: none; }
.more:hover::after { transform: translateX(3px); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 70ch; }
.fineprint { font-size: 13.5px; color: var(--ink-2); max-width: 75ch; margin-top: 18px; }
.kicker { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.cat { font-size: 13.5px; font-weight: 600; color: var(--farm); }
.cat-teknoloji { color: var(--tech); }
.cat-ekonomi { color: var(--eco); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--ink-3); }
.meta .ic { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 15px; height: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-line { background: var(--surface); color: var(--brand); }
.btn-line:hover { background: var(--brand-tint); color: var(--brand-hover); }
.btn svg { width: 16px; height: 16px; }

.page-head { padding: 8px 0 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 10px; }
.page-head p { color: var(--ink-2); max-width: 70ch; margin: 0; font-size: 17px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.tabs { display: flex; gap: 6px; margin: 20px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs button { flex: none; border: 1px solid var(--line-2); background: var(--surface); padding: 7px 15px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); border-radius: 999px; cursor: pointer; transition: all .15s; }
.tabs button:hover { color: var(--ink); border-color: var(--ink-3); }
.tabs button[aria-selected="true"] { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
/* Görünür kaydırma çubuklu sekmeler (Firma rehberi): başlıklar sığmayınca altta ince, tema renginde bir çubuk çıkar */
.tabs.tabs-scroll { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: 10px; scroll-behavior: smooth; }
.tabs.tabs-scroll::-webkit-scrollbar { height: 8px; }
.tabs.tabs-scroll::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 999px; }
.tabs.tabs-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.tabs.tabs-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line-2); background: var(--surface); padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.seg button:hover { border-color: var(--brand); }
.seg button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.seg-sm button { padding: 4px 9px; font-size: 13px; }

.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.side { display: grid; gap: 28px; }
/* Haberler: yan sütun sağa yaslanır; haber kartları (her biri ızgara, yani yan sütunun altına taşmaz) yan sütun
   bitince sayfanın tam genişliğine yayılır, sağda boşluk kalmaz. Telefonda haberler önce, yan sütun sonra gelir. */
.with-side.news-flow { display: flow-root; }
.news-flow > .side { float: inline-end; width: 320px; margin-inline-start: 40px; margin-bottom: 28px; }
.news-flow .news-list { display: block; }
@media (max-width: 860px) {
  .with-side.news-flow { display: grid; }
  .news-flow > .side { float: none; width: auto; margin: 0; order: 1; }
}
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.side-h { font-size: 18px; margin-bottom: 10px; }
.side-box p { font-size: 15px; color: var(--ink-2); margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs > * + *::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }

.empty { padding: 32px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); text-align: center; background: var(--surface); }
.loading { color: var(--ink-3); padding: 20px 0; }
.status { font-size: 14px; color: var(--brand); }
.status.bad { color: var(--alert); }
mark { background: var(--mark); color: inherit; padding: 0 1px; }

/* =========================================================
   Ana sayfa
   ========================================================= */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
.lead-story a { color: inherit; }
.lead-story a:hover { text-decoration: none; }
.lead-story a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead-story .ph { aspect-ratio: 16 / 9; margin-bottom: 16px; }
.lead-story h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 12px; letter-spacing: -.01em; }
.lead-story p { font-size: 18px; color: var(--ink-2); max-width: 62ch; }

.latest { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.latest .block-h { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.latest-list { list-style: none; margin: 0 0 12px; padding: 0; }
.latest-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.latest-list a { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; margin: 2px 0 4px; }

.card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.card a.t { color: var(--ink); }
.card .ph { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.card h3 { font-size: 19px; line-height: 1.3; margin: 4px 0 8px; }

.band { background: var(--surface); margin: 52px -20px 0; padding: 4px 20px 28px; border-radius: 24px; border: 1px solid var(--line); }
.band .band-head { margin-top: 22px; }
.sys-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sys-tile .ph { aspect-ratio: 4 / 3; margin-bottom: 10px; }
.sys-tile h3 { font-size: 18px; }
.sys-tile p { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.quick { padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.quick .block-h { margin-bottom: 6px; }
.quick-note { font-size: 14.5px; color: var(--ink-2); }

.plant-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; padding-bottom: 6px; }
.plant-chip { color: var(--ink); }
.plant-chip:hover { text-decoration: none; color: var(--brand); }
.plant-chip .ph { aspect-ratio: 1; margin-bottom: 6px; }
.plant-chip span { font-weight: 600; font-size: 15px; }

/* =========================================================
   Haber listesi ve haber sayfası
   ========================================================= */
.news-list { display: grid; }
.news-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-row:first-child { padding-top: 0; }
.news-row .ph { aspect-ratio: 3 / 2; }
.news-row .row-title { font-size: 21px; line-height: 1.3; margin: 4px 0 8px; }
.news-row .row-title a { color: var(--ink); }
.news-row p { color: var(--ink-2); margin-bottom: 10px; }
.news-list.compact .news-row { grid-template-columns: 160px minmax(0, 1fr); padding: 14px 0; }
.news-list.compact .row-title { font-size: 18px; }
.news-list.compact p { display: none; }
.save { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--ink-3); cursor: pointer; font-size: 13.5px; }
.save:hover { color: var(--brand); }
.save[aria-pressed="true"] { color: var(--brand); }
.save svg { width: 15px; height: 15px; }

.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.rank li::before { content: counter(r); font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-3); line-height: 1.2; }
.rank.plain li { grid-template-columns: 1fr; }
.rank.plain li::before { display: none; }
.rank a { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.rank .meta { margin-top: 2px; }
.rank li.none { display: block; color: var(--ink-2); font-size: 15px; }
.rank li.none::before { display: none; }
.ext { list-style: none; margin: 0; padding: 0; }
.ext li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ext a { color: var(--ink); font-size: 15px; line-height: 1.4; }
.ext-src { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.ext a svg { width: 13px; height: 13px; margin-inline-start: 4px; vertical-align: -1px; color: var(--ink-3); }

.article h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.01em; margin: 6px 0 14px; max-width: 24ch; }
.article .meta { margin-bottom: 20px; }
.article figure { margin: 0 0 22px; }
.article figure .ph { aspect-ratio: 16 / 9; }
.article figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.article .body { font-family: var(--display); font-size: 19px; line-height: 1.7; max-width: 68ch; }
.source-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); padding: 16px 18px; border-radius: var(--r-lg); margin: 8px 0 36px; max-width: 68ch; }
.source-box p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.comments h2 { font-size: 24px; padding-top: 14px; border-top: 2px solid var(--ink); margin-bottom: 16px; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 16px; }
.comment-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment-h b { font-size: 15px; }
.comment-h time { font-size: 13px; color: var(--ink-3); }
.comment p, .post-body p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Formlar */
.form-box { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.form-box.narrow { max-width: 760px; }
.form-box h1 { font-size: 30px; }
.form-box h2 { font-size: 20px; }
.form-box p { margin: 0; }
label { display: grid; gap: 5px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 10px 12px; font-size: 15.5px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* Üyelik: forum formlarında giriş uyarısı ve form alanları (app.js applyAuth), hesap sayfası */
.form-box [data-fields] { display: grid; gap: 14px; }
.login-gate { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-lg); background: var(--brand-tint); font-size: 15px; }
.login-gate p { flex: 1 1 260px; }
.as-member { font-size: 14.5px; color: var(--ink-2); }
.account-forms { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.account-forms .danger { border-color: color-mix(in srgb, var(--alert) 45%, var(--line)); }
.form-box .alt-links { font-size: 14.5px; color: var(--ink-2); }
#accountLink { white-space: nowrap; }
[data-page^="hesap-"] > .form-box { margin-top: 24px; }
/* Kenar kutusundaki küçük form (etkinlik önerisi) */
.mini-form { display: grid; gap: 10px; margin-top: 12px; }
.mini-form label { font-size: 13.5px; }
.mini-form input:not([type=checkbox]):not([type=radio]), .mini-form textarea { padding: 8px 10px; font-size: 14.5px; }

/* =========================================================
   Teknoloji sayfası
   ========================================================= */
/* Bölüm başlığının arkasındaki fotoğraf bandı: her bölümün 5 fotoğrafı (app.js HEROES) sayfaya her girişte sıradakine
   geçer, sayfa açıkken 10 dakikada bir yumuşakça değişir. Fotoğraf süs içindir (alt=""); başlık ve açıklama üstündedir. */
.hero-band { position: relative; border-radius: 24px; overflow: hidden; background: var(--brand-dark); margin-bottom: 4px; }
/* Fotoğraf bandın tamamını kaplar; bandın yüksekliğini yazı belirler (en az --hero-h). Uzun açıklama ya da uzun
   çeviri bandı uzatır, yazının üstü kesilmez. */
.hero-band { --hero-h: clamp(200px, 28vw, 330px); }
.hero-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity 1.2s ease; }
.hero-img:not([src]) { visibility: hidden; }
.hero-img.hero-next { opacity: 0; }
.hero-img.hero-next.on { opacity: .72; }
/* Yalnız fotoğraflı bantlar: ana sayfa girişindeki .hero .hero-text'e dokunmasın */
.hero-band .hero-text { position: relative; min-height: var(--hero-h); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 32px; color: #fff; background: linear-gradient(rgba(10, 30, 20, .05), rgba(10, 30, 20, .8)); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.page-head .hero-text h1 { color: #fff; margin-bottom: 8px; }
/* Fotoğraflı başlıkta yazılar fotoğrafın tam genişliğini kullanır (satır sınırı yok) */
.page-head .hero-text p { margin: 0; font-size: 17.5px; max-width: none; color: #eef4f0; }
.page-head.has-hero p.page-more { margin-top: 16px; max-width: none; }
.page-head p.page-note { margin: 10px 0 0; }
.page-head.row.has-hero > div:first-child { flex: 1 1 100%; }
@media (max-width: 640px) {
  .hero-band { --hero-h: 230px; }
  .hero-band .hero-text { padding: 18px 18px 16px; }
  .page-head .hero-text p { font-size: 15.5px; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) { .hero-img { transition: none; } }
.sys-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 20px 0 8px; }
.sys-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sys-item .ph { aspect-ratio: 4 / 3; }
.sys-item h3 { font-size: 21px; }
.sys-item .full { font-size: 15px; color: var(--ink-2); margin: 2px 0 8px; }
.sys-item p { font-size: 15px; margin-bottom: 10px; }
.sys-item dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 14px; }
.sys-item dt { color: var(--ink-3); }
.sys-item dd { margin: 0; font-weight: 500; }

/* =========================================================
   Bitki rehberi
   ========================================================= */
.plant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.plant-card { color: var(--ink); }
.plant-card:hover { text-decoration: none; }
.plant-card:hover .card-title { color: var(--brand); }
.plant-card .ph { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.plant-card .card-title { font-size: 21px; }
.plant-card .en { font-size: 14px; color: var(--ink-3); }
.vals { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 22px; margin-top: 10px; font-size: 14px; }
.vals dt { color: var(--ink-3); font-size: 13px; }
.vals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.plant-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 36px; }
.plant-head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--ph-bg); }
.plant-head h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.plant-head h1 .en { display: block; font-family: var(--sans); font-weight: 400; font-size: 17px; color: var(--ink-3); margin-top: 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; }
/* Bitki sayfası: önce "Bitki hakkında" (başlık alanında), sonra "Topraksız tarımda yetiştirme" */
.about-h { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 6px; }
.grow-intro { font-size: 17px; line-height: 1.6; margin: 0 0 4px; }
.grow-facts { margin: 0 0 28px; }

.ranges { display: grid; gap: 18px; margin-bottom: 18px; }
.rg .lab { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.rg .val { font-variant-numeric: tabular-nums; color: var(--brand); }
.trk { position: relative; height: 12px; border-radius: 2px; background: var(--trk-bg); margin: 6px 0 4px; }
.fil { position: absolute; top: 0; bottom: 0; min-width: 8px; border-radius: 2px; background: var(--brand); transition: left .3s ease, width .3s ease; }
.fil.wh { background: rgba(255, 255, 255, .35); border: 2px solid var(--ink); }
.tk { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tip { background: var(--brand-tint); border-inline-start: 3px solid var(--brand); padding: 12px 16px; border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: var(--r); border-end-end-radius: var(--r); margin: 22px 0 36px; max-width: 75ch; }

.problems { display: grid; gap: 0; margin-bottom: 36px; border-top: 1px solid var(--line); }
.problem { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.problem h3 { font-size: 18px; }
.problem dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 12px; margin: 0; font-size: 15px; }
.problem dt { color: var(--ink-3); }
.problem dd { margin: 0; }
.defs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.def { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; text-align: center; }
.def svg { width: 64px; height: 82px; margin: 0 auto 6px; display: block; }
.def b { display: block; font-size: 15px; }
.def em { display: block; font-style: normal; font-size: 13px; color: var(--brand); margin: 2px 0 4px; }
.def span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
a.def { color: inherit; transition: border-color .15s, transform .15s; }
a.def:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }

/* Besin eksikliği rehberi (/besin-eksiklikleri) */
.note-box { padding: 14px 16px; border-radius: var(--r-lg); background: var(--brand-tint); margin: 0 0 18px; }
.note-box p { margin: 0; }
.note-box p + p { margin-top: 8px; }
.result.dx-table { max-width: none; margin-top: 8px; }
.result.dx-table td, .result.dx-table th { vertical-align: top; text-align: start; padding: 9px 12px 9px 0; }
.result.dx-table td { font-weight: 400; }
.result.dx-table td:first-child { color: var(--ink-2); white-space: nowrap; }
.result.dx-table td:last-child { font-weight: 700; }
.result.dx-table thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.dx-note { display: block; font-size: 13px; margin-top: 2px; font-weight: 400; }
.def-card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; padding: 18px; margin: 18px 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 90px; }
.def-card:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.def-photo { margin: 0; }
.def-photo img { width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: var(--r); background: var(--ph-bg); }
.def-photo figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.def-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.def-head h2 { margin: 0; font-size: 22px; }
.leaf-slot svg { width: 40px; height: 50px; display: block; }
.def-where { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.def-body h3 { font-size: 15.5px; margin: 14px 0 4px; }
.def-body ul, .def-body ol { margin: 0; padding-inline-start: 20px; }
.def-body li { margin: 2px 0; }
.def-body .hint { margin-top: 14px; }
.src-h { font-size: 15px; margin: 12px 0 6px; }
.rec-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
@media (max-width: 640px) {
  .def-card { grid-template-columns: minmax(0, 1fr); padding: 14px; }
}

.cmp { margin-top: 12px; }
.cr { display: grid; grid-template-columns: 82px 1fr 58px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.cr .trk { margin: 0; height: 8px; }
.cr.dim { color: var(--ink-3); }
.cr.dim .fil { background: var(--dim); }
.cr em { font-style: normal; text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12.5px; }

/* =========================================================
   Hesaplayıcılar
   ========================================================= */
.calc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.calc-tabs { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.calc-tabs button { text-align: start; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); padding: 13px 16px; font-weight: 600; cursor: pointer; border-inline-start: 3px solid transparent; }
.calc-tabs button:last-child { border-bottom: 0; }
.calc-tabs button:hover { background: var(--bg-soft); }
.calc-tabs button[aria-selected="true"] { background: var(--brand-tint); border-inline-start-color: var(--brand); color: var(--brand-hover); }
.calc-panel h2 { font-size: 26px; margin-bottom: 6px; }
.calc-panel > p { color: var(--ink-2); max-width: 70ch; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 640px; }
.fields .wide { grid-column: 1 / -1; }
.result { margin-top: 22px; width: 100%; max-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.result th, .result td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; }
.result th { font-weight: 400; color: var(--ink-2); }
.result td { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.result caption { caption-side: bottom; text-align: start; font-size: 13.5px; color: var(--ink-2); padding-top: 8px; }
.result .err td { color: var(--alert); text-align: start; font-weight: 500; }
/* Hazır gübre: ürün satırları tablosu (dar ekranda yana kayar, sayfa kaymaz) */
.lb-wrap { margin-top: 18px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.lb-table { border-collapse: collapse; min-width: 760px; font-size: 14px; }
.lb-table th { font-weight: 600; color: var(--ink-2); text-align: start; padding: 0 6px 6px 0; white-space: nowrap; }
.lb-table td { padding: 0 6px 8px 0; }
.lb-table td:first-child { min-width: 170px; }
.lb-table input:not([type=checkbox]):not([type=radio]), .lb-table select { padding: 7px 8px; font-size: 14.5px; min-width: 64px; }

/* =========================================================
   Forum
   ========================================================= */
.ftable { width: 100%; border-collapse: collapse; margin-bottom: 36px; }
.ftable th { text-align: start; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 8px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ftable td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.ftable .num { text-align: end; width: 80px; font-variant-numeric: tabular-nums; }
.ftable td.num { font-weight: 600; }
.ftable .last { width: 220px; color: var(--ink-2); font-size: 13.5px; }
.ftable .t a { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.ftable .t p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.ftable tbody tr:hover { background: var(--bg-soft); }

.topics { border-top: 1px solid var(--line); }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) 80px 200px; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.topic a.title { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.3; }
.topic .by { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.topic .n { text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.topic .n small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.topic .last { font-size: 13.5px; color: var(--ink-2); }

.thread-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; max-width: 30ch; }
.posts { border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 24px; overflow: hidden; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-author { background: var(--bg-soft); padding: 16px; font-size: 14px; }
.post-author .avatar { margin-bottom: 8px; }
.post-author b { display: block; overflow-wrap: anywhere; }
.post-author small { color: var(--brand); font-weight: 600; }
.post-body { padding: 14px 18px 18px; }
.post-body .meta { justify-content: space-between; margin-bottom: 6px; }

/* =========================================================
   Metin sayfaları (Gizlilik ve KVKK)
   ========================================================= */
.prose { max-width: 75ch; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-inline-start: 20px; display: grid; gap: 6px; }

/* =========================================================
   Bülten ve altbilgi
   ========================================================= */
.newsletter { background: var(--grad-deep); color: #fff; }
.newsletter h2, .newsletter p, .newsletter .consent, .newsletter .consent a, .newsletter .status { color: #fff !important; }
.newsletter .consent a { text-decoration: underline; }
.newsletter .btn { background: #fff; color: #065f46; border-color: #fff; }
.newsletter .btn:hover { background: #ecfdf5; border-color: #ecfdf5; }
.newsletter input[type=email] { border-color: transparent; }
.newsletter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.newsletter h2 { font-size: 24px; margin-bottom: 4px; }
.newsletter p { margin: 0; color: var(--ink-2); }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newsletter input[type=email] { flex: 1 1 220px; }
.newsletter .status { flex-basis: 100%; }
.newsletter .consent { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.newsletter .consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }

.footer { background: #06130d; color: #b9cbc1; font-size: 15px; }
.footer a { color: #e2ebe5; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.foot-cols p { margin: 12px 0 0; max-width: 46ch; }
.foot-cols h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.foot-cols nav { display: grid; gap: 6px; align-content: start; }
.brand-foot { color: #fff; }
.brand-foot .brand-name { font-size: 22px; background: linear-gradient(135deg, #6ee7b7, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-foot .brand-mark { width: 32px; height: 32px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2c3a33; padding: 16px 0 24px; font-size: 13.5px; color: #93a39a; }
.foot-bottom p { margin: 0; }

/* =========================================================
   Duyarlı düzen
   ========================================================= */
@media (max-width: 1000px) {
  .sys-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 860px) {
  /* minmax(0, 1fr): sütun içerikten (grafik, uzun satır) geniş olup sayfayı yana taşırmasın */
  .front, .with-side, .plant-head, .calc, .newsletter .wrap { grid-template-columns: minmax(0, 1fr); }
  .latest { border-inline-start: 0; padding-inline-start: 0; }
  .card-row { grid-template-columns: 1fr 1fr; }
  /* 3 kart iki sütunda tek kalanı gizler; 6 kart üç sıraya tam oturur */
  .card-row > :nth-child(3):last-child { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > :first-child { grid-column: 1 / -1; }
  .calc-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .calc-tabs button { border-bottom: 0; border-inline-start: 0; border-inline-end: 1px solid var(--line); border-top: 3px solid transparent; }
  .calc-tabs button[aria-selected="true"] { border-top-color: var(--brand); border-inline-start: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .topbar #today, .topbar nav a:first-child, .tb-wx .wx-d, .tb-wx .wx-bt { display: none; }
  .tb-wx button { padding: 1px 6px; }
  #todayShort { display: inline; }
  .minical { position: fixed; top: 42px; left: 12px; right: 12px; width: auto; max-width: 360px; margin: 0 auto; }
  .topbar .wrap { gap: 8px; }
  .topbar nav { gap: 12px; }
  .brand-name { font-size: 22px; }
  main { padding-top: 20px; }
  .card-row { grid-template-columns: 1fr; }
  .card-row > :nth-child(3):last-child { display: block; }
  .card-row > :nth-child(n+5) { display: none; }  /* telefonda sayfa çok uzamasın: en fazla 4 kart */
  .band { margin-inline-start: -16px; margin-inline-end: -16px; padding-inline-start: 16px; padding-inline-end: 16px; border-radius: 0; }
  .sys-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sys-tile p { display: none; }
  .plant-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
  .news-row, .news-list.compact .news-row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .news-row .row-title { font-size: 17px; }
  .news-row p { display: none; }
  .sys-item { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 1fr; gap: 6px; }
  .fields { grid-template-columns: 1fr; }
  .ftable thead { display: none; }
  .ftable tr { display: grid; grid-template-columns: 1fr auto auto; gap: 0 14px; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .ftable td { border: 0; padding: 0; }
  .ftable td.t { grid-column: 1 / -1; margin-bottom: 4px; }
  .ftable td.num { width: auto; text-align: start; font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
  .ftable td.num::after { content: attr(data-l); margin-inline-start: 4px; }
  .ftable td.last { width: auto; text-align: end; }
  .topic { grid-template-columns: minmax(0, 1fr) 56px; }
  .topic .last { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
  .post-author .avatar { margin: 0; width: 32px; height: 32px; font-size: 14px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Dokunma alanları: tek başına duran küçük bağlantı ve düğmeler en az 24 px yüksekliğinde
   ========================================================= */
.topbar a, .more, .save, .meta .ic, .crumbs a, .cr a, .ext a, .rank a, .latest-list a, .topic .by a { min-height: 24px; }
.topbar a, .more, .save, .meta .ic, .crumbs a, .cr a { display: inline-flex; align-items: center; }
.rank a, .ext a { display: inline-block; padding: 2px 0; }
.latest-list a { padding: 1px 0; }
.foot-cols nav a { padding: 2px 0; }

/* =========================================================
   Rehberler
   ========================================================= */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.guide-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.guide-card { color: var(--ink); display: flex; flex-direction: column; }
.guide-card:hover { text-decoration: none; }
.guide-card:hover h2, .guide-card:hover h3 { color: var(--brand); }
.guide-card .ph { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.guide-card h2 { font-size: 21px; margin-bottom: 6px; }
.guide-card h3 { font-size: 17px; margin-bottom: 4px; }
.guide-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 8px; }
.guide-card .meta { margin-top: auto; }
.lvl { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-hover); }
.lvl-orta { background: var(--tint-cool); color: var(--tech); }
.lvl-ileri { background: var(--tint-warm); color: var(--eco); }

.guide .lede { margin-bottom: 22px; }
.article .guide-body { font-family: var(--sans); font-size: 17px; line-height: 1.7; max-width: 70ch; color: var(--ink); }
.guide-body h2 { font-size: 26px; margin: 38px 0 12px; scroll-margin-top: 70px; }
.guide-body h3 { font-size: 20px; margin: 26px 0 8px; }
/* Rehber görselleri (pages/markup.py figure): çizimlerin kendi açık zemini vardır; koyu temada da okunaklı kalır */
.guide-body .guide-fig { margin: 22px 0 26px; padding: 0; }
.guide-body .guide-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #f7fbf8; }
.guide-body .guide-fig figcaption { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.guide-body pre.code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow-x: auto; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; direction: ltr; text-align: left; white-space: pre; }
.guide-body code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .92em; }
.sync-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sync-code code { font-size: 16px; font-weight: 700; letter-spacing: .04em; direction: ltr; unicode-bidi: embed; }
.sync-join { margin-top: 8px; }
.guide-body ul, .guide-body ol { padding-inline-start: 22px; margin: 0 0 1.1em; }
.guide-body li { margin-bottom: 6px; }
.guide-body li::marker { color: var(--brand); font-weight: 600; }
.guide-body .note { background: var(--brand-tint); border-inline-start: 4px solid var(--brand); padding: 14px 18px; border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: var(--r); border-end-end-radius: var(--r); margin: 0 0 1.2em; }
.guide-body .note p { margin: 0; }
/* position: relative: içerideki gizli ekran okuyucu yazıları (.sr) kaydırma kutusunun dışına taşıp sayfayı genişletmesin (sağdan sola dillerde görülüyordu) */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: var(--r); }
.guide-body table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.guide-body th, .guide-body td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-body thead th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
.guide-body tbody tr:last-child td { border-bottom: 0; }
.guide-foot { margin-top: 36px; padding: 18px 20px; background: var(--bg-soft); border-radius: var(--r-lg); }
.guide-foot p { margin: 0 0 10px; }
.toc { margin: 0; padding-inline-start: 20px; font-size: 15px; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand); }
@media (max-width: 900px) {
  .guide-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .toc-box { display: none; }
}
@media (max-width: 560px) {
  .guide-row .guide-card p { display: none; }
  .article .guide-body { font-size: 16px; }
  .guide-body h2 { font-size: 22px; }
}

/* =========================================================
   Bitki sayfası: dönem tablosu, verim, kaynaklar
   ========================================================= */
.stages { border-collapse: collapse; width: 100%; font-size: 15px; }
.stages th, .stages td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.stages thead th { background: var(--bg-soft); font-weight: 600; }
.stages tbody tr:last-child th, .stages tbody tr:last-child td { border-bottom: 0; }
.stages tbody th { font-weight: 600; white-space: nowrap; }
.stages td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stages .bar-col { width: 50%; }
.stages .trk { margin: 0; height: 8px; }
.plant-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: 4px 0 36px; }
.plant-extra h3 { font-size: 18px; margin-bottom: 4px; }
.plant-extra p { color: var(--ink-2); margin: 0; }
.sources { margin-top: 36px; }
.sources .fineprint { margin-top: 0; }
.src-list { font-size: 14.5px; color: var(--ink-2); padding-inline-start: 20px; display: grid; gap: 4px; margin: 8px 0 0; }
@media (max-width: 560px) {
  .plant-extra { grid-template-columns: 1fr; }
  .stages .bar-col { width: 35%; }
}

/* =========================================================
   Etkinlikler
   ========================================================= */
.events { display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event:first-child { padding-top: 4px; }
.event-date { text-align: center; border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 0 5px; line-height: 1.1; align-self: start; background: var(--bg); }
.event-date b { display: block; font-family: var(--display); font-size: 24px; color: var(--brand-hover); }
.event-date span { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.event-t { font-size: 20px; margin-bottom: 4px; }
.event-t a { color: var(--ink); display: inline; }
.event-t a:hover { color: var(--brand); }
.event-t svg { width: 14px; height: 14px; margin-inline-start: 6px; vertical-align: -1px; color: var(--ink-3); }
.event p { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; }
.events.past .event { opacity: .7; }
.events-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.events-row .event { border-bottom: 0; padding: 0; }
.events-row .event-t, .events.compact .event-t { font-size: 16.5px; }
.events.compact .event { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.events.compact .event-date b { font-size: 19px; }
@media (max-width: 900px) {
  .events-row { grid-template-columns: 1fr; gap: 0; }
  .events-row .event { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   Gübre reçetesi ve DLI hesaplayıcıları
   ========================================================= */
.calc-h { font-size: 19px; margin: 26px 0 0; }
.result.recipe th, .result.recipe td { text-align: end; }
.result.recipe th:first-child { text-align: start; }
.result.recipe thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-3); padding-bottom: 6px; }
.result.recipe tbody th { color: var(--ink); }
.result.recipe tr.off td { color: var(--alert); }
.result.recipe { margin-top: 8px; }
.calc-ec { margin: 16px 0 0; max-width: 640px; }
.calc-err { color: var(--alert); font-weight: 500; margin: 14px 0 0; }
.tanks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin-top: 10px; }
.tank { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; }
.tank h4 { margin: 0 0 8px; font-size: 15px; }
.tank ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.tank li { display: flex; justify-content: space-between; gap: 10px; }
.tank li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .tanks { grid-template-columns: 1fr; } }

/* =========================================================
   Forum: fotoğraflar ve rozetler
   ========================================================= */
.photo-pick { display: grid; gap: 8px; }
.photo-pick > label.btn { justify-self: start; cursor: pointer; position: relative; }
/* Dosya seçici görünmez ama klavyeyle erişilebilir; form alanlarının genişlik kuralı onu büyütmesin */
.form-box .photo-pick input[type=file] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.photo-pick > label.btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-pick .fineprint, .fineprint.ai-hint { margin: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.th { position: relative; width: 96px; height: 96px; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.uploading img { opacity: .45; }
.th.failed { border-color: var(--alert); }
.th.failed img { opacity: .25; }
.th-state { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 11.5px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.th.failed .th-state { color: var(--alert); }
.th-rm { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.post-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; max-width: 640px; }
.post-photos a { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.post-photos img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-hover); margin-inline-start: 6px; vertical-align: 2px; }
.badge.pin { background: var(--tint-warm); color: var(--eco); }
.post-author .badge { margin: 2px 0 0; }
.post.staff { background: linear-gradient(90deg, var(--brand-tint), transparent 40%); }
.post-author .badge.ai { display: table; margin-top: 4px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line-2); }
.post-body .ai-note { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-3); }
.ai-wait { margin: 0; padding: 14px 18px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }
.ai-wait::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--brand); vertical-align: 1px; animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ai-wait::before { animation: none; } }

/* =========================================================
   Araçlar: sayfa, günlük, takvim, sistem seçici, teşhis, firmalar
   ========================================================= */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tool-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.tool-card:hover { text-decoration: none; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .6); }
.tool-ico svg { width: 23px; height: 23px; }
.tool-card h2, .tool-card h3 { font-size: 19px; margin-bottom: 6px; }
.tool-card:hover h2, .tool-card:hover h3 { color: var(--brand); }
.tool-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.install { max-width: 640px; }
.install .btn { margin: 4px 0 8px; }

.filter-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.filter-row label { font-size: 14px; white-space: nowrap; }
.filter-row select { width: auto; min-width: 160px; }
.band-head .filter-row { margin: 0; }
.page-head .filter-row { margin-top: 18px; }

/* Üst çubuktaki tema düğmesi ve çevrimdışı uyarısı */
.offline-bar { margin: 0; padding: 8px 16px; text-align: center; font-size: 14px; background: var(--tint-warm); color: var(--eco); border-bottom: 1px solid var(--line); }

/* Çözelti günlüğü */
.charts { display: grid; gap: 18px; }
.chart { margin: 0; padding: 12px 14px 6px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.chart figcaption { font-size: 14.5px; margin-bottom: 4px; }
/* Grafik sayılardan oluşur: sağdan sola dillerde de soldan sağa çizilir; uçtaki yazılar grafiğin dışına taşmaz */
.chart-svg { width: 100%; height: auto; display: block; direction: ltr; overflow: hidden; }
.ch-band { fill: var(--brand); opacity: .16; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-text { fill: var(--ink-3); font-size: 12px; }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; }
.ch-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.ch-dot.out { fill: var(--alert); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-hover); }
.chip-high, .chip-low { background: var(--tint-warm); color: var(--eco); }
.j-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.journal td.bad { color: var(--alert); font-weight: 700; }
.journal .j-note { white-space: normal; min-width: 120px; }
.th-rm-btn { border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 6px; min-height: 24px; }
.th-rm-btn:hover { color: var(--alert); }
.advice { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--tint-warm); border: 1px solid var(--line); }
.advice h3 { font-size: 17px; margin-bottom: 6px; }
.advice ul { margin: 0 0 4px; padding-inline-start: 20px; }
.advice.ok { background: var(--brand-tint); color: var(--ink); }

/* Takvim: 12 aylık uygunluk şeridi */
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 12px 0 8px; }
.mo { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: var(--r); border: 2px solid transparent; font-size: 13px; }
.mo-n { font-weight: 700; }
.mo-t { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.mo-s { font-weight: 700; font-size: 15px; }
.mo-uygun { background: var(--brand-tint); color: var(--brand-hover); }
.mo-sinirda { background: var(--tint-warm); color: var(--eco); }
.mo-uygunsuz { background: var(--bg-soft); color: var(--ink-3); }
.mo.sow { border-color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; }
.mo-key { padding: 1px 10px; border-radius: 999px; font-weight: 600; }

/* Sistem seçici ve teşhis sonuç kartları */
.rec { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.rec.best { border-color: var(--brand); border-width: 2px; }
.rec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rec h3 { font-size: 20px; }
.rec h4 { font-size: 15px; margin: 12px 0 4px; font-family: var(--sans); }
.rec p { margin: 8px 0; }
.rec-score { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--brand); }
.score-bar { height: 8px; border-radius: 4px; background: var(--trk-bg); margin: 8px 0 10px; overflow: hidden; }
.score-bar div { height: 100%; background: var(--brand); border-radius: 4px; }
.reasons { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 3px; font-size: 15px; }
.reasons li::before { display: inline-block; width: 1.3em; font-weight: 700; }
.reasons .plus::before { content: "✓"; color: var(--brand); }
.reasons .minus::before { content: "!"; color: var(--eco); }
.steps { margin: 0 0 12px; padding-inline-start: 22px; }
.steps li { margin-bottom: 4px; }
.checks { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 12px; margin: 0; min-width: 0; }
.checks legend { font-weight: 700; padding: 0 6px; font-size: 14.5px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 15px; padding: 3px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }

/* Firma rehberi */
.suppliers { display: grid; gap: 14px; align-content: start; }
.supplier { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
/* Videolar (/videolar): "İzle"ye basılana kadar yalnızca düz bir kutu; YouTube hiçbir şey yüklenmez */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-bottom: 18px; }
.video-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-hover), var(--brand)); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
.video-play-ico { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative; }
.video-play-ico::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--brand); }
.video-play:hover .video-play-ico, .video-play:focus-visible .video-play-ico { transform: scale(1.06); }
.video-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.video-body h2 { font-size: 17px; margin: 0; }
.video-body p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.video-body .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-3); align-items: center; }
.video-body .meta .badge { margin: 0; }

/* Üretici ilanları (/ilanlar) */
.listings { display: grid; gap: 14px; align-content: start; }
.listing { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.listing h2 { font-size: 19px; margin: 6px 0 4px; }
.listing .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.listing .meta .badge { margin: 0; }
.ilan-price { font-weight: 700; margin: 0 0 6px; }
.ilan-desc { white-space: pre-line; margin: 0 0 8px; overflow-wrap: anywhere; }
.ilan-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14.5px; }
.ilan-contact a { overflow-wrap: anywhere; }
.ilan-code { font-size: 16px; font-weight: 700; letter-spacing: .04em; direction: ltr; unicode-bidi: embed; }
.ilan-filters { flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.ilan-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.supplier.sponsored { border-color: var(--eco); }
.sup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.supplier h2 { font-size: 19px; }
.supplier h2 svg { width: 13px; height: 13px; margin-inline-start: 4px; color: var(--ink-3); }
.supplier p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

/* Forum: çözüldü, bildirim, ipucu */
.badge.ok { background: var(--brand); color: var(--on-brand); }
.thread-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.thread-head .thread-title { margin-bottom: 0; }
.owner-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-lg); background: var(--brand-tint); font-size: 15px; }
.hint { padding: 10px 14px; border-radius: var(--r); background: var(--brand-tint); color: var(--ink); font-size: 14.5px; margin: 0 0 12px; }
.form-box .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.form-box .consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }

/* Rehberlerde telefon için açılır içindekiler (geniş ekranda yan sütun kullanılır) */
.toc-mobile { display: none; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.toc-mobile summary { cursor: pointer; font-weight: 700; }
.toc-mobile ol { margin: 8px 0 0; padding-inline-start: 20px; }
.toc-mobile li { padding: 3px 0; }

/* Hesaplayıcı sayfası: eylem düğmeleri; yazdırma başlığı yalnızca çıktıda görünür */
.calc-main { min-width: 0; }
.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.print-only { display: none; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-mobile { display: block; }
}
@media (max-width: 640px) {
  .tool-grid { grid-template-columns: 1fr; }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .filter-row { flex-wrap: wrap; }
}

/* =========================================================
   Yazdırma: yalnızca açık sayfanın içeriği (araçlar, günlük, takvim, hesaplayıcılar için)
   ========================================================= */
@media print {
  .topbar, .site-head, .tabbar, .palette, .hero-search, .quick-tools, .newsletter, .footer, .skip, .offline-bar, .calc-tabs, .calc-actions, .j-actions, .th-rm-btn,
  .filter-row, .side, .toc-mobile, .form-foot, #jForm, .owner-box { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .with-side, .calc { display: block; }
  main { padding: 0; }
  .print-only { display: block; margin: 0 0 12pt; padding-bottom: 6pt; border-bottom: 1px solid #000; }
  .print-only b, .print-only span { display: block; }
  .chart, .rec { break-inside: avoid; }
  a { color: #000; }
  .member-gate, .member-note { display: none !important; }
  /* Araç çıktısı üyelere açık: ziyaretçi tarayıcının kendi yazdır komutunu kullansa da araç sayfası yerine not basılır */
  html[data-auth="guest"] section[data-print-gate] > * { display: none !important; }
  html[data-auth="guest"] section[data-print-gate]::before { content: attr(data-print-gate); display: block; padding: 20mm 0; font-size: 14pt; text-align: center; }
}
@media print {
  /* Koyu temadayken de çıktı açık renkli olsun */
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #fff; --bg-soft: #f2f2f2; --surface: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #bbb; --line-2: #999;
    --brand: #1f6b45; --brand-hover: #134a2f; --brand-tint: #e6f0ea; --tint-warm: #f6ecdf; --ph-bg: #eee; --trk-bg: #ddd; --alert: #b8372a;
  }
}

/* =========================================================
   TechAgriculture: modern katman
   Giriş alanı, fotoğraflı kartlar, hızlı arama penceresi ve telefon alt çubuğu.
   ========================================================= */

/* --- Ana sayfa giriş alanı ---------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 56px); margin: 4px 0 8px; border-radius: 28px; background: var(--hero-bg);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.hero > * { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--brand); box-shadow: var(--shadow-sm); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 16px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 54ch; margin-bottom: 22px; }
.hero-search { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; height: 54px; padding: 0 12px 0 18px;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink-3); font-size: 16px; text-align: start;
  cursor: text; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.hero-search:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.hero-search > svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.hero-search span { flex: 1; }
.quick-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.quick-tools a { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); transition: color .15s, border-color .15s, transform .15s; }
.quick-tools a:hover { text-decoration: none; color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.hero-stats { display: flex; gap: 28px; margin: 26px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.hero-card { align-self: center; display: flex; flex-direction: column; }
.hero-card .block-h { font-size: 19px; margin-bottom: 4px; }
.hero-card .more { margin-top: auto; padding-top: 14px; }

/* --- Fotoğraflı kartlar ------------------------------------------------------- */
.guide-card, .plant-card, .card, .sys-tile, .plant-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.guide-card:hover, .plant-card:hover, .card:hover, .sys-tile:hover, .plant-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.guide-card:hover .ph img, .plant-card:hover .ph img, .card:hover .ph img, .sys-tile:hover .ph img, .plant-chip:hover .ph img { transform: scale(1.05); }
.guide-card .ph, .plant-card .ph, .card .ph, .sys-tile .ph, .plant-chip .ph { border-radius: 0; margin: 0 0 14px; }
.guide-card > :not(.ph), .plant-card > :not(.ph), .card > :not(.ph), .sys-tile > :not(.ph) { margin-inline-start: 16px; margin-inline-end: 16px; }
.guide-card > :last-child, .plant-card > :last-child, .card > :last-child, .sys-tile > :last-child { margin-bottom: 16px; }
.guide-card .meta { padding-top: 6px; }
.plant-chip { text-align: center; }
.plant-chip .ph { margin-bottom: 8px; }
.plant-chip span { display: block; padding: 0 8px 10px; }
.card-row { border-top: 0; padding-top: 0; margin-top: 24px; }
.news-row { padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.news-row:first-child { padding-top: 18px; }
.lead-story article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); padding-bottom: 18px; }
.lead-story article > a > :not(.ph), .lead-story article > .meta { margin-inline-start: 20px; margin-inline-end: 20px; }
.lead-story .ph { border-radius: 0; }
.sys-item { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.sys-item .ph { border-radius: var(--r); }
.plant-head img { border-radius: 24px; box-shadow: var(--shadow); }
.tip, .guide-body .note { border-radius: var(--r); }
.def, .tank, .rec, .supplier, .chart, .advice, .checks { border-radius: var(--r-lg); }
.event-date { border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.posts { border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ftable { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.topics { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 0 12px; box-shadow: var(--shadow-sm); }
.topics .topic:last-child { border-bottom: 0; }
.calc-tabs { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap { border-radius: var(--r); background: var(--surface); }
.trk { border-radius: 999px; }
.fil { border-radius: 999px; background: var(--grad); }
.cr.dim .fil { background: var(--dim); }
.fil.wh { background: rgba(255, 255, 255, .35); }

/* --- Hızlı arama penceresi (Ctrl+K) -------------------------------------------- */
.palette { width: min(640px, calc(100% - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.palette[open] { display: flex; animation: pal-in .16s ease-out; }
.palette::backdrop { background: rgba(6, 19, 13, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes pal-in { from { transform: translateY(-6px); } to { transform: none; } }

/* Üyelere açık işlemler (app.js membersOnly). <html data-auth="guest|member"> sayfa açılınca üyelik durumunu yazar. */
.member-gate { width: min(460px, calc(100% - 24px)); margin: 14vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.member-gate:not([open]) { display: none; }  /* kapalıyken sayfada hiç görünmesin (forumdaki .login-gate kutusundan ayrı) */
.member-gate[open] { animation: pal-in .16s ease-out; }
.member-gate::backdrop { background: rgba(6, 19, 13, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lg-box { padding: 26px 26px 22px; }
.lg-ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; color: var(--brand); background: var(--brand-tint); }
.lg-box h2 { font-size: 21px; margin: 14px 0 6px; }
.lg-box #lgWhat { font-weight: 600; margin: 0 0 8px; }
.lg-box .muted { margin: 0 0 12px; font-size: 14.5px; }
.lg-list { margin: 0 0 18px; padding-inline-start: 20px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-text { background: none; border: 0; padding: 10px 6px; color: var(--ink-2); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--ink); }
/* Ziyaretçiye: üyelere açık düğmelerde küçük kilit; üye olunca kaybolur */
html[data-auth="guest"] [data-members]::after { content: ""; display: inline-block; flex: none; width: 13px; height: 13px; background: currentColor; opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Ziyaretçiye gösterilen üyelik notu (araç sayfaları); üye ya da durum henüz bilinmiyorsa gizli */
html:not([data-auth="guest"]) [data-guest-only] { display: none !important; }
.member-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--brand-tint); color: var(--ink); font-size: 15px; line-height: 1.5; }
.member-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
.member-note p { margin: 0; }
.member-note a { font-weight: 600; }
.pal-box { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.pal-in svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.palette .pal-in input[type=search] { flex: 1; border: 0; border-radius: 0; box-shadow: none; padding: 18px 0; font-size: 17px; background: transparent; outline: 0; }
.pal-in input::-webkit-search-cancel-button { display: none; }
.pal-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; min-height: 0; flex: 1; }
.pal-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.pal-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 10px; border-radius: 12px; color: var(--ink); }
.pal-item:hover { text-decoration: none; }
.pal-item[aria-selected="true"] { background: var(--brand-tint); }
.pal-kind { grid-row: span 2; justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.pal-item[aria-selected="true"] .pal-kind { background: var(--surface); color: var(--brand); }
.pal-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-sub { grid-column: 2; font-size: 13px; color: var(--ink-3); }
.pal-foot { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); flex: none; }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* --- Telefon alt çubuğu (yalnızca dar ekranda görünür) -------------------------- */
.tabbar { display: none; }

/* --- Altbilgi ve bülten ------------------------------------------------------- */
.newsletter .wrap { padding-top: 40px; padding-bottom: 40px; }
.newsletter h2 { font-size: 26px; font-weight: 800; }
.foot-cols h2 { font-family: var(--display); letter-spacing: 0; }
.footer a:hover { color: #6ee7b7; text-decoration: none; }
/* Sosyal medya simgeleri (templates/_social.html). Açık ve koyu temada tema renklerini, altbilgide (her temada koyu) açık renkleri kullanır. */
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); transition: color .15s, border-color .15s, background-color .15s; }
.social svg { width: 20px; height: 20px; display: block; }
.social-dark a { color: #e2ebe5; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); }
/* Üzerine gelince (ya da klavyeyle seçilince) simge kendi platformunun rengine bürünür: daire marka renginde, simge beyaz.
   Her temada ve altbilgide aynı görünür. --sc kenar rengi, --sc-bg dolgu (Instagram'da renk geçişi). */
.social a { --sc: var(--brand); --sc-bg: var(--sc); }
.social a[data-platform="linkedin"] { --sc: #0a66c2; }
.social a[data-platform="youtube"] { --sc: #ff0000; }
.social a[data-platform="instagram"] { --sc: #d62976; --sc-bg: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social a[data-platform="x"] { --sc: #000; }
.social a[data-platform="discord"] { --sc: #5865f2; }
.social a[data-platform="reddit"] { --sc: #ff4500; }
.social a:hover, .social a:focus-visible { color: #fff; border-color: var(--sc); background: var(--sc-bg); text-decoration: none; }
/* X siyah: koyu temada ve altbilgide daire zemine karışmasın diye ince açık halka */
.social a[data-platform="x"]:hover, .social a[data-platform="x"]:focus-visible { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.side-box .social { margin-top: 4px; gap: 6px; }
.side-box .social a { width: 36px; height: 36px; }
.side-box .social svg { width: 19px; height: 19px; }


/* --- Duyarlı düzen -------------------------------------------------------------- */
@media (max-width: 1120px) {
  .search { width: 200px; }
  .search:focus-within { width: 240px; }
  .search .kbd { display: none; }
}
@media (max-width: 980px) {
  .plant-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .head-row { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .brand { margin-inline-end: auto; }
  .navlist { order: 3; flex-basis: 100%; margin: 4px -4px 6px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --head-h: 58px; }
  .head-row { flex-wrap: nowrap; padding-top: 0; }
  .navlist, .search { display: none; }
  .search-btn { display: inline-grid; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--head-bg); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; border-radius: 12px;
    color: var(--ink-3); font: 600 11.5px/1.2 var(--sans); cursor: pointer; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
  .hero { padding: 26px 20px; border-radius: 22px; }
  .hero::after { display: none; }
  .hero-search { height: 50px; }
  .hero-search .kbd { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats dd { font-size: 25px; }
  .quick-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline-end: -20px; padding-inline-end: 20px; padding-bottom: 4px; }
  .quick-tools::-webkit-scrollbar { display: none; }
  .quick-tools a { flex: none; }
  .band { border-radius: 20px; margin-inline-start: -8px; margin-inline-end: -8px; padding-inline-start: 14px; padding-inline-end: 14px; }
  .palette { margin-top: 12px; max-height: calc(100vh - 100px); }
  .pal-item { grid-template-columns: 78px minmax(0, 1fr); }
  .pal-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Çok dilli site: dil menüsü, Türkçe kalan içerik notu, yazı tipleri, sağdan sola (Arapça)
   ========================================================= */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; width: auto; min-width: 40px; padding: 0 10px; gap: 5px; grid-auto-flow: column; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu .lang-code { font: 700 12px/1 var(--sans); letter-spacing: .02em; }
.lang-menu[open] > summary { color: var(--brand); border-color: var(--brand); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  min-width: 168px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }
.lang-list a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: 15px; }
.lang-list a:hover { background: var(--bg-soft); text-decoration: none; }
.lang-list a[aria-current="true"] { background: var(--brand-tint); color: var(--brand-hover); font-weight: 700; }
.lang-note { display: inline-block; margin: 8px 0 16px; padding: 6px 12px; border-radius: 999px; background: var(--tint-cool);
  color: var(--ink-2); font-size: 13.5px; }

/* Latin dışı yazılar için sistem yazı tipleri (Plex ve Jakarta yalnızca Latin harfleri içerir) */
:root:lang(zh) { --sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:root:lang(ja) { --sans: "IBM Plex Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
:root:lang(ar) { --sans: "IBM Plex Sans", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif; }
/* Arapça harfler birbirine bitişir: harf aralığı bitişmeyi bozar. Çince ve Japoncada sıkıştırılmış aralık okunmaz. */
:root:lang(ar) body :not(.brand-name), :root:lang(zh) body :not(.brand-name), :root:lang(ja) body :not(.brand-name) { letter-spacing: normal; }
:root:lang(ar) body { line-height: 1.75; }

/* Sağdan sola: oklar ve kayan öğeler ters yönde */
[dir="rtl"] .more::after { content: "←"; }
[dir="rtl"] .more:hover::after { transform: translateX(-3px); }
/* Ölçek çubukları ve sayı aralıkları her dilde soldan sağa okunur (Arapçada da) */
.trk, .tk { direction: ltr; }
.rg .val, .cr em { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] dd { unicode-bidi: plaintext; text-align: right; }
[dir="rtl"] .result td, [dir="rtl"] .stages td { unicode-bidi: plaintext; text-align: left; }

/* Haber sayfası: ayrıntılı metin ve "Bu konuda sitede" kutusu (app.js → pageArticle, relatedBox) */
.article .body.lead p { font-weight: 500; color: var(--ink); margin-bottom: 1em; }
.article .news-body { margin-bottom: 26px; }
.news-body h2 { font-size: 23px; margin: 30px 0 10px; }
.related-box { max-width: 68ch; margin: 8px 0 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.related-box h2 { font-size: 20px; margin: 0 0 4px; }
.related-box > .muted { font-size: 14.5px; margin: 0 0 14px; }
.rel-plants { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rel-plant { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--bg-soft); color: var(--ink); }
.rel-plant:hover { text-decoration: none; background: var(--brand-tint); }
.rel-plant b { color: var(--brand-hover); }
.rel-vals { font-size: 13px; font-weight: 600; color: var(--ink-2); direction: ltr; unicode-bidi: isolate; text-align: start; }
.rel-sum { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rel-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.rel-links .chip { margin-inline-end: 4px; }

/* Yetiştirme sistemi sayfası (/teknoloji/<id>; app.js → pageSystem) ve tıklanabilir sistem kartları */
.sys-item h3 a { color: var(--ink); }
.sys-item h3 a:hover { color: var(--brand); text-decoration: none; }
.sys-item .more { display: inline-block; margin-top: 10px; font-size: 14.5px; }
.h1-sub { font-weight: 500; color: var(--ink-2); font-size: .62em; white-space: nowrap; }
.sys-facts { max-width: 68ch; margin: 4px 0 22px; padding: 14px 18px; background: var(--bg-soft); border-radius: var(--r-lg); }
.sys-facts dt { color: var(--ink-3); }
.sys-facts dd { margin: 0; font-weight: 600; }

/* Gübre reçetesi kartı (calculators.js printSheet): ekranda hiç görünmez; "Reçete kartı" ile yazdırırken
   sayfanın geri kalanı gizlenir, yalnızca A4 kart basılır. PDF için yazdırma penceresinde "PDF olarak kaydet". */
.sheet { display: none; }
@page { size: A4; margin: 14mm; }
@media print {
  body.printing-sheet > *:not(#recipeSheet) { display: none !important; }
  body.printing-sheet #recipeSheet { display: block; }
  .sheet { font: 10pt/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #000; }
  .sheet h1 { font-size: 18pt; margin: 2pt 0; }
  .sheet h2 { font-size: 11.5pt; margin: 12pt 0 4pt; padding-bottom: 2pt; border-bottom: 1px solid #000; break-after: avoid; }
  .sheet h3 { font-size: 10.5pt; margin: 0 0 3pt; }
  .sh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12pt; border-bottom: 2px solid #000; padding-bottom: 6pt; }
  .sh-head p { margin: 0; }
  .sh-site { font-size: 9pt; letter-spacing: .02em; }
  .sh-meta { text-align: end; font-size: 8.5pt; }
  .sh-meta span { display: block; word-break: break-all; max-width: 85mm; }
  .sh-blanks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10pt; margin: 8pt 0 0; }
  .sh-blank span { font-size: 8.5pt; }
  .sh-blank i { display: block; height: 14pt; border-bottom: 1px solid #000; }
  .sh-table { width: 100%; border-collapse: collapse; break-inside: avoid; }
  .sh-table th, .sh-table td { border: 1px solid #777; padding: 3pt 6pt; text-align: start; }
  .sh-table thead th { background: #eee; }
  .sh-check td:first-child, .sh-check th:first-child { width: 14pt; text-align: center; }
  .sh-log td { height: 18pt; }
  .sh-tanks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10pt; }
  .sh-steps { margin: 0; padding-inline-start: 16pt; }
  .sh-steps li { margin: 2pt 0; }
  .sh-warn { border: 1px solid #000; padding: 4pt 6pt; margin: 6pt 0 0; font-weight: 600; }
  .sh-small { font-size: 8.5pt; margin: 4pt 0 0; }
}

/* Araç sonuçlarının altındaki "sonuçlar yaklaşıktır" uyarısı (templates/_tool_note.html) */
.tool-note { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 8px; padding: 14px 16px; border: 1px solid var(--line);
  border-inline-start: 4px solid var(--eco); border-radius: var(--r); background: var(--tint-warm); color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.tool-note p { margin: 0; }
.tool-note strong { color: var(--ink); }
.tool-note-ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--eco); }
@media print { .tool-note { break-inside: avoid; background: none; } }

/* Bölüm başındaki ayrıntılı ikinci açıklama paragrafı */
.page-head p.page-more { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* =========================================================
   Topraksız tarım renkleri: bölüm renkleri ve topraktan yaprağa arka plan
   ========================================================= */
/* Palet: yaprak yeşili, filiz, yosun, besin çözeltisi (turkuaz), su (mavi), kokopit ve hasat (toprak tonları).
   Hepsi aynı aileden; açık temada metin olarak en az 4,5:1, koyu temada en az 8:1 kontrast verir.
   Her bölüm (html[data-sec], app.js showSection) bunlardan birini --sec olarak alır: menüdeki seçili sekme,
   alt menü ve sayfa başlığının altındaki çizgi bu renktedir. */
:root {
  --c-yaprak: #276b2c; --c-filiz: #436b0c; --c-yosun: #3f6212; --c-cozelti: #0f766e; --c-su: #0e7490;
  --c-kokopit: #8a5a33; --c-hasat: #7c6513;
  --t-yaprak: #e5eee5; --t-filiz: #e9eee1; --t-yosun: #e8ece3; --t-cozelti: #e2efee; --t-su: #e2eef2;
  --t-kokopit: #f1ebe7; --t-hasat: #efede3;
  --sec: var(--brand); --sec-tint: var(--brand-tint);
  /* Arka plan: toprak rengi ile yaprak yeşili arasında 10 dakikada bir yön değiştirir */
  --bg-soil: #f3eee6; --bg-leaf: #edf5ee;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-yaprak: #7fd48a; --c-filiz: #acd36a; --c-yosun: #a7cf72; --c-cozelti: #5fd4c4; --c-su: #67d4e9;
    --c-kokopit: #e2ad78; --c-hasat: #d9bd5f;
    --t-yaprak: #1e3324; --t-filiz: #263420; --t-yosun: #253322; --t-cozelti: #18332d; --t-su: #183336;
    --t-kokopit: #2f2a20; --t-hasat: #2e2d1d;
    --bg-soil: #16110c; --bg-leaf: #0a130d;
  }
}
:root[data-theme="dark"] {
  --c-yaprak: #7fd48a; --c-filiz: #acd36a; --c-yosun: #a7cf72; --c-cozelti: #5fd4c4; --c-su: #67d4e9;
  --c-kokopit: #e2ad78; --c-hasat: #d9bd5f;
  --t-yaprak: #1e3324; --t-filiz: #263420; --t-yosun: #253322; --t-cozelti: #18332d; --t-su: #183336;
  --t-kokopit: #2f2a20; --t-hasat: #2e2d1d;
  --bg-soil: #16110c; --bg-leaf: #0a130d;
}
/* Renkler üst menünün gruplarını izler (app.js NAV): aynı menü sekmesi her alt sayfada aynı renkte görünür */
:root[data-sec="bitkiler"], :root[data-sec="bitki"] { --sec: var(--c-yaprak); --sec-tint: var(--t-yaprak); }
:root[data-sec="rehberler"], :root[data-sec="rehber"], :root[data-sec="videolar"] { --sec: var(--c-filiz); --sec-tint: var(--t-filiz); }
:root[data-sec="teknoloji"], :root[data-sec="sistem"] { --sec: var(--c-su); --sec-tint: var(--t-su); }
:root[data-sec="araclar"], :root[data-sec="hesaplayicilar"], :root[data-sec="gunluk"], :root[data-sec="takvim"],
:root[data-sec="sistem-secici"], :root[data-sec="teshis"], :root[data-sec="besin-eksiklikleri"],
:root[data-sec="firmalar"], :root[data-sec="ilanlar"] { --sec: var(--c-cozelti); --sec-tint: var(--t-cozelti); }
:root[data-sec="haberler"], :root[data-sec="haber"], :root[data-sec="ara"] { --sec: var(--c-kokopit); --sec-tint: var(--t-kokopit); }
:root[data-sec="forum"], :root[data-sec="forum-kategori"], :root[data-sec="forum-konu"],
:root[data-sec="forum-yeni"], :root[data-sec="hesap"], :root[data-sec="hesap-giris"], :root[data-sec="hesap-kayit"],
:root[data-sec="hesap-sifre"] { --sec: var(--c-yosun); --sec-tint: var(--t-yosun); }
/* Etkinlikler menüde ayrı bir sekme değildir; kendi hasat rengini alır */
:root[data-sec="etkinlikler"] { --sec: var(--c-hasat); --sec-tint: var(--t-hasat); }

.navlist a[aria-current="page"], .tabbar a[aria-current="page"] { color: var(--sec); background: var(--sec-tint); }
/* Başlığın altındaki renkli çizgi yazının genişliği kadardır: başlık kendi yazısı kadar daralır (fit-content),
   çizgi de onun tamamını kaplar. Uzun başlık satıra sığmayıp kırılırsa çizgi en uzun satır kadar olur. */
.page-head h1 { width: fit-content; max-width: 100%; }
.page-head h1::after { content: ""; display: block; width: 100%; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--sec); }
.page-head.row h1::after { margin-top: 10px; }

/* Arka plan saate bağlı döngüdedir (theme.js --bg-phase'i saate göre ayarlar; sayfa yenilense de kaldığı yerden
   sürer): 0. dakika toprak, 10. dakika yaprak yeşili, 20. dakika yeniden toprak. Renk her karede değil, 5 saniyede
   bir gözle fark edilmeyecek kadar küçük bir adımla değişir; sürekli yeniden çizim olmaz, pil ve işlemci yorulmaz. */
@keyframes soil-to-leaf {
  0%, 100% { background-color: var(--bg-soil); }
  50% { background-color: var(--bg-leaf); }
}
body { animation: soil-to-leaf 1200s steps(120, end) var(--bg-phase, 0s) infinite; }
@media print { body { animation: none; } }

/* Telefon düzeltmeleri (detaylı test, 28.11.2026) */
/* Önce genel kural (geniş ekranda gizli), sonra telefonda gösteren kural: sıra önemli */
.more-toggle { display: none; margin: 6px 0 0; padding: 4px 0; border: 0; background: none; color: var(--sec); font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; min-height: 24px; }
.more-toggle:hover { text-decoration: underline; }
@media (max-width: 640px) {
  /* iPhone Safari 16 pikselden küçük yazılı alana dokununca sayfayı yakınlaştırır; alanlar en az 16 piksel */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  /* Bölüm başındaki uzun açıklama telefonda 3 satır görünür; "Devamını oku" ile açılır (app.js) */
  .page-more.clampable:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .more-toggle { display: inline-block; }
}
/* Dar telefonda üst çubukta şehir adı yarım kalıyordu ("İsta…"); sıcaklık ve simge kalır, tam bilgi düğmenin başlığında */
@media (max-width: 420px) { .tb-wx .wx-c { display: none; } }
/* Çok uzun manşet başlığı (çevrilmiş haberlerde 100+ karakter olabiliyor) daha küçük yazılır */
.lead-story h2.long { font-size: clamp(23px, 2.6vw, 30px); }
