/* 15 Günlük Hava Durumu — tek stil dosyası, mobil öncelikli */
:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-2: #eff4f9;
  --border: #dfe7ef;
  --text: #13202e;
  --muted: #5d6c7d;
  --accent: #0a7bd6;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2fc;
  --warm: #d9480f;
  --cool: #1c6dd0;
  --rain: #2f80ed;
  --rain-soft: #dce9fa;
  --good: #1f9d55;
  --mid: #d08700;
  --bad: #d64545;
  --we: rgba(10, 123, 214, .045);
  --shadow: 0 1px 2px rgba(16, 32, 48, .05), 0 6px 20px rgba(16, 32, 48, .05);
  --radius: 16px;
  --hero-a: #24589a;
  --hero-b: #0f2f5c;
  --chip-on: #0f2f5c;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* Koyu tema yalnızca kullanıcı üst bardan "Koyu" seçerse açılır (varsayılan açık).
   data-theme, head içindeki küçük betikle sayfa çizilmeden önce atanır. */
:root[data-theme="dark"] {
  --bg: #0b1219;
  --surface: #121c26;
  --surface-2: #192532;
  --border: #243344;
  --text: #e6edf5;
  --muted: #97a7b9;
  --accent: #4aa8ff;
  --accent-ink: #06121e;
  --accent-soft: #13293d;
  --warm: #ff8f61;
  --cool: #74b4ff;
  --rain: #5aa2ff;
  --rain-soft: #1a3350;
  --good: #3ccf7f;
  --mid: #f2b33d;
  --bad: #ff6b6b;
  --we: rgba(74, 168, 255, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --hero-a: #134a85;
  --hero-b: #0a1a30;
  --chip-on: #2f6db5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 4.6vw, 2.15rem); letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
h4 { font-size: .9rem; margin: 1em 0 .4em; color: var(--muted); font-weight: 600; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.t-max { color: var(--warm); font-weight: 700; }
.t-min { color: var(--cool); }
.t-max, .t-min, .now-t, .d-temp, .h-t, .hr b { font-variant-numeric: tabular-nums; }

/* ---------- Üst bar ---------- */
.site-header { position: relative; z-index: 20; }
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 16px; padding-bottom: 8px; }
.brand { order: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 13px; box-shadow: 0 4px 12px rgba(11, 47, 94, .25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme { order: 2; display: inline-flex; margin-left: auto; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.theme button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--chip-on); color: #fff; }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search { order: 3; position: relative; flex: 1 1 100%; display: flex; gap: 8px; }
.search input { width: 100%; height: 46px; padding: 0 46px 0 42px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-i { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search .locate { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; }
.search .locate:hover { background: var(--accent-soft); }
.search .locate svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search .locate.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hdr-chips { order: 4; flex: 1 1 100%; display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hdr-chips::-webkit-scrollbar { display: none; }
.hdr-chips a { flex: 1 0 auto; text-align: center; padding: 8px 16px; border-radius: 999px; color: var(--text); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr-chips a:hover { background: var(--surface-2); }
.hdr-chips a[aria-current="page"] { background: var(--chip-on); color: #fff; }
.search.big { max-width: 640px; margin-top: 8px; flex: none; order: 0; }
.search.big input { height: 54px; font-size: 17px; padding-right: 14px; }
@media (min-width: 900px) {
  .hdr { flex-wrap: nowrap; padding-top: 22px; padding-bottom: 10px; }
  .search { order: 2; flex: 0 1 300px; margin-left: auto; }
  .hdr-chips { order: 3; flex: 0 0 auto; }
  .hdr-chips a { flex: none; }
  .theme { order: 4; margin-left: 0; }
}

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

main.wrap { padding-top: 12px; padding-bottom: 32px; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
@media (min-width: 720px) { .card { padding: 20px 22px; } }
.sec-title { font-size: 1.2rem; margin: 24px 0 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
.grid > .card, .stack > .card { margin-bottom: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
@media (min-width: 760px) {
  .advice .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tek sayıda kart varsa sonuncusu boşluk bırakmasın */
  .advice .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 940px) { .grid.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--surface-2); font-size: .82rem; line-height: 1.5; white-space: nowrap; }
.chip.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: color-mix(in srgb, var(--good) 80%, var(--text)); }
.chip.warn { background: color-mix(in srgb, var(--mid) 16%, transparent); }
.chip.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); }

/* Hava ikonları */
.wi { width: 34px; height: 34px; flex: none; vertical-align: middle; }
.wi-s { width: 26px; height: 26px; }
.wi-l { width: 48px; height: 48px; }
.wi-xl { width: 84px; height: 84px; }

/* ---------- İl sayfası ---------- */
.page-head { margin: 4px 0 14px; }
.page-head .sub { color: var(--muted); font-size: .88rem; margin: 0; }

/* İki sütunlu üst düzen: solda bugün + seçili gün, sağda 15 günlük liste */
.city-top { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.side > *, .city-top > * { min-width: 0; }
@media (min-width: 980px) {
  .city-top { grid-template-columns: 350px minmax(0, 1fr); gap: 24px; }
  .side { align-self: start; }
}
.city-top .card { margin-bottom: 0; }

/* Bugün kartı (koyu lacivert gradyan) */
.hero { position: relative; overflow: hidden; color: #fff; padding: 20px 20px 18px; border-radius: 26px; background: radial-gradient(110% 70% at 100% 0%, rgba(120, 180, 255, .22), transparent 60%), linear-gradient(160deg, var(--hero-a), var(--hero-b)); box-shadow: 0 14px 34px rgba(11, 47, 94, .28); }
.hero-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hero-left { min-width: 0; }
.hero h1 { margin: 0; color: #fff; line-height: 1.15; }
.h1-row { display: flex; align-items: center; gap: 6px; }
.hero .pin { width: 22px; height: 22px; flex: none; fill: none; stroke: #9fd0ff; stroke-width: 2; }
.h1-city { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.h1-sub { display: block; margin: 2px 0 0 28px; font-size: .82rem; font-weight: 600; opacity: .72; }
.hero-date { margin: 8px 0 0; opacity: .9; font-size: .95rem; }
.hero-ic { width: 96px; height: 96px; flex: none; margin: -6px -8px 0 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28)); }
.hero-temp { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.hero .now-t { font-size: 4.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.now-side { display: flex; flex-direction: column; gap: 2px; }
.now-side b { font-size: 1.02rem; white-space: nowrap; }
.now-side span { color: #a9d3ff; font-size: .92rem; }
.hero-stats { list-style: none; margin: 18px 0 0; padding: 12px 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); }
.hero-stats li { display: grid; grid-template-columns: 22px auto; column-gap: 8px; align-items: center; padding: 2px 10px; }
.hero-stats li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-stats svg { grid-row: span 2; width: 20px; height: 20px; fill: none; stroke: #9fd0ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-stats span { font-size: .76rem; color: #a9d3ff; }
.hero-stats b { font-size: 1.05rem; white-space: nowrap; }
.hero-meta { margin: 10px 2px 0; font-size: .74rem; opacity: .62; }

/* Dikkat / En güzel gün */
.hl2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hlc { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 2px 8px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.hlc:hover { border-color: var(--accent); }
.hl-k { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); align-self: center; }
.hl-best .hl-k { color: #b4610a; }
.hl-calm .hl-k { color: var(--good); }
.hl-ic { width: 26px; height: 26px; grid-row: 1; grid-column: 2; }
.hlc b { grid-column: 1 / -1; font-size: 1.05rem; margin-top: 8px; line-height: 1.3; }
.hl-t { grid-column: 1 / -1; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }

/* Seçili gün detayı */
.daydetail { border-radius: 24px; padding: 20px; }
.dd { display: none; }
.dd.on { display: block; }
/* JS yoksa: bağlantıyla hedeflenen gün gösterilir */
.daydetail:not(.js) .dd:target { display: block; }
.daydetail:not(.js):has(.dd:target) .dd.on:not(:target) { display: none; }
.dd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dd-k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dd-head h3 { margin: 4px 0 0; font-size: 1.25rem; font-weight: 800; }
.dd-note { margin: 14px 0 0; font-size: .97rem; line-height: 1.6; }
.dd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.dd-tiles div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.dd-tiles span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.25; }
.dd-tiles b { display: block; margin-top: 6px; font-size: 1.05rem; }
.dd-tiles b.rain { color: var(--rain); }
.daydetail .hours { margin-top: 14px; }
.dd-more { margin: 10px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }

.summary p { font-size: 1.02rem; }
.summary p:last-child { margin-bottom: 0; }

/* 15 günlük eğilim ve tahmin kartı */
.forecast { border-radius: 24px; padding: 20px 16px; }
@media (min-width: 720px) { .forecast { padding: 24px; } }
.fc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fc-head h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.fc-sub { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.range-chip { flex: none; padding: 6px 12px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font: 600 .8rem ui-monospace, Consolas, monospace; line-height: 1.35; text-align: center; }
.trend-box { padding: 6px 8px 4px; border-radius: 18px; background: var(--surface-2); }
.trend { position: relative; height: 110px; color: var(--accent); }
.trend-svg { position: absolute; left: 0; top: 0; width: 100%; height: 110px; overflow: visible; }
.tmx { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tdot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); pointer-events: none; }
.tl { position: absolute; transform: translateX(-50%); font-size: .66rem; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--muted); }
.tl.key { color: var(--text); font-weight: 800; }
.tdot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.tdot.key { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
@media (min-width: 640px) { .tl { font-size: .74rem; } }
.tcol { position: absolute; top: 0; bottom: 0; border-radius: 10px; }
.tcol { cursor: pointer; }
/* Seçili gün: grafikteki nokta turuncu ve büyük */
.tdot.on { z-index: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #f59f00; border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px #f08c00; }
.tdot.on::before, .tdot.on::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #f59f00; opacity: 0; animation: ripple 2s ease-out infinite; }
.tdot.on::after { animation-delay: 1s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tdot.on::before, .tdot.on::after { animation: none; } }
.tl.on { color: #e8590c; font-weight: 800; transform: translate(-50%, -7px); }
.tcol:hover { background: transparent; }
.trend-mask { position: absolute; top: 0; bottom: 0; right: 0; left: 100%; background: color-mix(in srgb, var(--surface-2) 72%, transparent); pointer-events: none; transition: left .3s ease; }
.fc-bar { display: flex; justify-content: flex-end; margin: 14px 0 6px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.tabs button, .seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .85rem; padding: 6px 14px; min-height: 34px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Gün satırları: gün + tarih | ikon %yağış | min | maks | güven */
.days { list-style: none; margin: 0; padding: 0; }
.days[data-range="7"] > li:nth-child(n+8), .days[data-range="10"] > li:nth-child(n+11) { display: none; }
.days > li { border-bottom: 1px solid var(--border); }
.days > li:last-child { border-bottom: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 58px 46px 76px 14px; align-items: center; gap: 6px; padding: 12px 10px; margin: 2px -6px; border: 1px solid transparent; border-radius: 16px; color: var(--text); text-decoration: none; transition: background .2s, border-color .2s; }
.row:hover { background: var(--surface-2); }
.row.on { background: var(--surface-2); border-color: var(--border); box-shadow: var(--shadow); }
.r-name { min-width: 0; line-height: 1.25; }
.r-name b { font-weight: 600; font-size: .98rem; }
.r-name small { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.r-wx { display: flex; align-items: center; gap: 4px; }
.r-wx .wi { width: 24px; height: 24px; }
.r-p { color: var(--muted); font-size: .84rem; font-weight: 600; }
.r-p.wet { color: var(--rain); }
.r-temp { display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-max { font-size: 1.15rem; font-weight: 600; line-height: 1; }
.r-min { color: var(--muted); font-size: .85rem; font-weight: 600; }
.row .conf { justify-self: end; }
.r-desc { display: none; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-desc-m { color: var(--muted); }
.r-wind { display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: var(--muted); font-size: .84rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-wind svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.r-wind small { display: none; font-size: .76rem; font-weight: 500; }
.r-wind.strong { color: #c2410c; }
@media (min-width: 640px) { .r-wind small { display: inline; } .r-wind { justify-content: flex-start; } }
/* Listenin içinde (dar ekran) açılan detay: kutu/çerçeve yok, satırın devamı gibi */
.days .daydetail { margin: 0 0 6px; padding: 10px 6px 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.days .daydetail .dd-k { display: none; }
.days .daydetail .dd-head h3 { font-size: 1.05rem; }
.days > li.has-dd { border-bottom: 1px solid var(--border); }
/* Aç / kapat: satır oku ve detay altındaki kapat butonu (yalnızca liste içinde) */
.r-chev { width: 16px; height: 16px; justify-self: end; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.row.on .r-chev { transform: rotate(180deg); stroke: var(--accent); }
.daydetail.closed { display: none; }
/* JS yoksa: bağlantıyla hedeflenen gün yine görünür */
.daydetail.closed:not(.js):has(.dd:target) { display: block; }
.dd-close { display: none; }
.days .daydetail .dd-close { display: flex; align-items: center; gap: 6px; margin: 12px auto 0; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.days .daydetail .dd-close:hover { color: var(--accent); border-color: var(--accent); }
.dd-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 640px) {
  .row { grid-template-columns: minmax(130px, .8fr) 88px minmax(0, 1.2fr) 92px 100px 18px; gap: 10px; padding: 12px 14px; }
  .r-desc { display: block; }
  .r-desc-m { display: none; }
  .r-name small { margin-left: 6px; }
}
@media (max-width: 639px) { .r-name small { display: block; overflow: hidden; text-overflow: ellipsis; } }

/* Güven etiketi */
.conf { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; line-height: 1.3; white-space: nowrap; flex: none; }
.conf-high { color: color-mix(in srgb, var(--good) 82%, var(--text)); background: color-mix(in srgb, var(--good) 14%, transparent); }
.conf-mid { color: color-mix(in srgb, var(--accent) 85%, var(--text)); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.conf-low { color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
/* Güven seviyesi değiştiği yerde ince ayraç */
.days .sep { display: flex; align-items: center; gap: 10px; margin: 12px 4px 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.days .sep::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.days .sep.conf-mid::before { background: var(--accent); }
.days .sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.days .sep.conf-mid, .days .sep.conf-low { background: none; border: 0; }

.d-more { padding: 4px 4px 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.facts div { background: var(--surface-2); border-radius: 10px; padding: 7px 10px; }
.facts dt { font-size: .74rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hr { flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--surface-2); scroll-snap-align: start; font-size: .82rem; }
.hr b { font-size: 1rem; }
.h-t { color: var(--muted); }
.h-p { color: var(--rain); }
.h-w { color: var(--muted); font-size: .72rem; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.legend .lg-item { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }

/* Grafik */
.chart-wrap, .climate-wrap { overflow-x: auto; margin: 0 -4px; padding-bottom: 4px; }
.chart { display: block; min-width: 100%; height: auto; }
.chart text, .climate text { font: 600 12px var(--font); text-anchor: middle; fill: var(--text); }
.chart .c-tmin, .climate .c-tmin { fill: var(--cool); }
.chart .c-tmax, .climate .c-tmax { fill: var(--warm); }
.chart .c-p { fill: var(--rain); font-size: 11px; }
.chart .c-day, .climate .c-day { fill: var(--text); font-weight: 600; }
.chart .c-date, .climate .c-date { fill: var(--muted); font-weight: 500; font-size: 11px; }
.c-max { fill: none; stroke: var(--warm); stroke-width: 2.5; stroke-linejoin: round; }
.c-min { fill: none; stroke: var(--cool); stroke-width: 2.5; stroke-linejoin: round; }
.c-norm { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .8; }
.c-band { fill: var(--warm); opacity: .07; }
.c-dmax { fill: var(--surface); stroke: var(--warm); stroke-width: 2; }
.c-dmin { fill: var(--surface); stroke: var(--cool); stroke-width: 2; }
.c-bar { fill: var(--rain); opacity: .85; }
.c-bar-bg { fill: var(--rain-soft); }
.c-we { fill: var(--we); }
.c-cur { fill: var(--accent-soft); }
.climate { display: block; width: 100%; min-width: 340px; height: auto; }
.climate text { font-size: 10px; }
.lg { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; }
.lg-max { background: var(--warm); }
.lg-min { background: var(--cool); }
.lg-norm { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.lg-bar { background: var(--rain); height: 8px; width: 10px; }

/* Öneri kartları */
.adv h3 { font-size: 1.02rem; margin-bottom: 10px; }
.wear { list-style: none; margin: 0; padding: 0; }
.wear li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); }
.wear li:first-child { border: 0; }
.wear li.first { flex-wrap: wrap; padding-bottom: 8px; }
.w-d { width: 58px; flex: none; font-weight: 600; font-size: .9rem; }
.wear li:not(.first) .chip { padding: 2px 6px; }
.acts { list-style: none; margin: 0; padding: 0; }
.acts li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 7px 0; border-top: 1px solid var(--border); }
.acts li:first-child { border: 0; }
.a-n { font-weight: 600; font-size: .92rem; }
@media (min-width: 420px) { .acts li { grid-template-columns: 150px 1fr; align-items: center; } }
.risks { list-style: none; margin: 0; padding: 0; }
.risks li { padding: 6px 0; border-top: 1px solid var(--border); }
.risks li:first-child { border: 0; }
.risks b { margin-right: 6px; font-size: .9rem; }
.ok-line { margin: 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tile { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--border); }
.tile span { font-size: .75rem; color: var(--muted); }
.tile b { font-size: 1.15rem; }
.tile small { font-size: .76rem; color: var(--muted); }
.lv-good { border-left-color: var(--good); }
.lv-mid { border-left-color: var(--mid); }
.lv-bad { border-left-color: var(--bad); }
.tips { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.verdict { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--border); }
.mini { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 8px; font-variant-numeric: tabular-nums; }
.mini th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; padding: 4px 6px; }
.mini td { padding: 5px 6px; border-top: 1px solid var(--border); }

/* İklim, geçen yıl, güneş */
.anomaly { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.anomaly b { font-size: 1.5rem; }
.anomaly.warm b { color: var(--warm); }
.anomaly.cold b { color: var(--cool); }
.ly { display: flex; align-items: center; justify-content: space-around; gap: 10px; text-align: center; margin-bottom: 10px; }
.ly > div:not(.ly-vs) { display: flex; flex-direction: column; align-items: center; font-size: 1.05rem; }
.ly small { color: var(--muted); font-size: .78rem; }
.ly-vs { color: var(--muted); font-weight: 700; }
.sun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.sun div { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.sun span { display: block; font-size: .76rem; color: var(--muted); }
.sun b { font-size: 1.1rem; }

/* Paylaş */
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn.wa { color: #128c4a; }
.btn.fb { color: #1877f2; }
.wk-prev img { display: block; width: 100%; max-width: 270px; height: auto; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; }
.share h3 { margin-top: 6px; }

/* Komşular ve il listeleri */
.nb, .cities { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.nb a, .cities a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; min-height: 48px; }
.nb a:hover, .cities a:hover { border-color: var(--accent); }
.nb-n, .c-n { flex: 1 0 100%; font-weight: 600; font-size: .92rem; }
.nb .wi, .cities .wi { width: 28px; height: 28px; }
.c-t { font-size: .9rem; white-space: nowrap; }
.reg { font-size: .95rem; color: var(--muted); margin: 18px 0 8px; }

/* SSS */
.faq details { border-top: 1px solid var(--border); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; padding: 12px 0; list-style: none; position: relative; padding-right: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; font-size: 1rem; margin: 0; }
.faq p { color: var(--muted); }
.seo-note { margin-top: 8px; }

/* ---------- Ana sayfa ---------- */
/* Ana sayfa üst bölüm: solda başlık + arama + popüler iller, sağda "şu an" kartı */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; margin: 4px 0 16px; padding: 26px 20px; border-radius: 28px; background: radial-gradient(90% 120% at 100% 100%, rgba(40, 110, 190, .55), transparent 60%), linear-gradient(120deg, #0d2547 0%, #133a6b 55%, #1c548f 100%); }
@media (min-width: 900px) { .home-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 40px 36px 38px 40px; } }
.hh-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .8rem; font-weight: 600; }
.home-hero h1 { display: block; margin: 14px 0 10px; color: #fff; font-size: clamp(1.9rem, 5.2vw, 2.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.home-hero .lead { margin: 0; max-width: 56ch; color: #dbeaff; font-size: 1.02rem; line-height: 1.55; }
.hh-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; margin-top: 24px; padding: 5px 5px 5px 48px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.hh-search .search-i { position: absolute; left: 19px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #5d6c7d; stroke-width: 2; stroke-linecap: round; }
.hh-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: #13202e; font: inherit; font-size: 16px; }
.hh-search input::placeholder { color: #6b7a8b; }
.hh-search input:focus { outline: none; }
.hh-search:focus-within { box-shadow: 0 0 0 3px rgba(120, 180, 255, .55), 0 10px 30px rgba(0, 0, 0, .2); }
.hh-search button { flex: none; height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: #0f2a50; color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.hh-search button:hover { background: #17407a; }
.hh-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; }
.hh-pop span { color: #a9d3ff; font-size: .88rem; margin-right: 4px; }
.hh-pop a { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .13); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; }
.hh-pop a:hover { background: rgba(255, 255, 255, .22); }

.hh-card { padding: 22px; border-radius: 24px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hc-k { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fd0ff; }
.hc-n { display: block; margin-top: 4px; font-size: 1.45rem; font-weight: 800; }
.hc-ic { width: 52px; height: 52px; flex: none; }
.hc-mid { display: flex; align-items: center; gap: 18px; margin: 14px 0 18px; }
.hc-t { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hc-side { display: flex; flex-direction: column; gap: 4px; }
.hc-l { font-size: 1rem; }
.hc-d { font-size: .85rem; color: #b9dcff; }
.hc-btn { display: block; padding: 13px 16px; border-radius: 999px; background: #fff; color: #0f2a50; font-weight: 700; font-size: .95rem; text-align: center; text-decoration: none; }
.hc-btn:hover { background: #e9f3ff; }
.hc-loc { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 6px; border: 0; background: transparent; color: #a9d3ff; font: inherit; font-size: .85rem; cursor: pointer; }
.hc-loc:hover { color: #fff; }
.hc-loc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hc-loc.busy svg { animation: spin 1s linear infinite; }
.map-card { padding-bottom: 12px; }
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.map-head h2 { margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.map { position: relative; }
.trmap { display: block; width: 100%; height: auto; }
.trmap path { fill: var(--surface-2); stroke: var(--surface); stroke-width: .9; transition: fill .35s ease; cursor: pointer; }
.trmap path:hover, .trmap path.on { stroke: var(--text); stroke-width: 1.6; }
.trmap text { display: none; font: 700 11px var(--font); text-anchor: middle; dominant-baseline: middle; fill: #13202e; paint-order: stroke; stroke: rgba(255, 255, 255, .75); stroke-width: 2.6px; pointer-events: none; }
@media (min-width: 700px) { .trmap text { display: block; } }
.map-tip { position: absolute; z-index: 5; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); font-size: .9rem; pointer-events: auto; }
.map-tip b { display: block; font-size: 1rem; }
.map-tip a { font-weight: 600; }
.map-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.map-ctrl .play { width: 46px; height: 46px; padding: 0; border-radius: 50%; flex: none; }
.map-ctrl .play svg { width: 22px; height: 22px; fill: currentColor; }
.map-ctrl .i-pause { display: none; }
.map-ctrl .playing .i-pause { display: block; }
.map-ctrl .playing .i-play { display: none; }
.map-range { flex: 1; accent-color: var(--accent); min-width: 0; height: 32px; }
.map-day { min-width: 140px; font-weight: 600; font-size: .92rem; text-align: right; }
.map-legend { margin: 8px 0 4px; }
.map-legend > div { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.map-legend i { flex: 1; height: 8px; border-radius: 99px; }
.lg-temp i { background: linear-gradient(90deg, #4575b4, #74add1, #abd9e9, #e0f3c8, #fee08b, #fdae61, #f46d43, #d73027); }
.lg-rain i { background: linear-gradient(90deg, #eaf1f8, #b2d2f0, #5aa0e6, #1654b4); }
.hl { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
.hl-v { grid-column: 1 / -1; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.prose { max-width: 100%; }
.prose p, .prose li { max-width: 75ch; }
.prose h2 { margin-top: 1.2em; }
.err { margin-top: 12px; }

/* Widget oluşturucu */
.wb-form { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.wb-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.wb-form select { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.wb-out { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .wb-out { grid-template-columns: 340px 1fr; } }
.wb-prev iframe { border: 0; width: 100%; max-width: 340px; }
.wb-code textarea { width: 100%; font: 13px/1.4 ui-monospace, Consolas, monospace; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); margin: 6px 0 8px; }
.wb-code label { font-weight: 600; font-size: .9rem; }

/* ---------- Alt bilgi ---------- */

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 60; }

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

/* ---------- Hareketli hava ikonları (kartlar) ---------- */
.anim .a-rays, .anim .a-core, .anim .a-moon { transform-box: fill-box; transform-origin: center; }
.anim .a-rays { animation: ai-spin 14s linear infinite; }
.anim .a-core { animation: ai-pulse 3.2s ease-in-out infinite; }
.anim .a-moon { animation: ai-rock 6s ease-in-out infinite alternate; }
.anim .a-cloud { animation: ai-drift 5s ease-in-out infinite alternate; }
.anim .a-drop { animation: ai-fall 1.15s linear infinite; }
.anim .a-flake { animation: ai-snow 2.6s linear infinite; }
.anim .a-bolt { animation: ai-flash 3s ease-in-out infinite; }
.anim .a-fog { animation: ai-fog 4s ease-in-out infinite alternate; }
.anim .a-fog2 { animation-delay: -2s; }
.anim .a-wind path { stroke-dasharray: 60; animation: ai-wind 2.4s ease-in-out infinite; }
.anim .a-wind path:nth-child(2) { animation-delay: .3s; }
.anim .a-wind path:nth-child(3) { animation-delay: .6s; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ai-rock { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
@keyframes ai-drift { from { transform: translateX(-1.5px); } to { transform: translateX(2px); } }
@keyframes ai-fall { 0% { transform: translateY(-4px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes ai-snow { 0% { transform: translate(0, -4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(2px, 8px); opacity: 0; } }
@keyframes ai-flash { 0%, 40%, 50%, 100% { opacity: 1; } 44%, 48% { opacity: .15; } }
@keyframes ai-fog { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@keyframes ai-wind { 0% { stroke-dashoffset: 60; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }
@media (prefers-reduced-motion: reduce) {
  .anim * { animation: none !important; }
}

/* ---------- İl arama: otomatik tamamlama listesi ---------- */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ac-list { scrollbar-width: thin; scrollbar-color: var(--border) transparent; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; min-width: 280px; max-height: 380px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; text-align: left; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(15, 47, 92, .2), 0 2px 6px rgba(15, 47, 92, .08); animation: ac-in .14s ease-out; }
@keyframes ac-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ac-head { padding: 8px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--text); }
.ac-item[aria-selected="true"] { background: var(--surface-2); }
.ac-pin { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ac-pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ac-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ac-txt b { font-weight: 600; font-size: .98rem; }
.ac-txt mark { background: none; color: var(--accent); font-weight: 800; }
.ac-txt small { font-size: .78rem; color: var(--muted); }
.ac-go { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.ac-item[aria-selected="true"] .ac-go { opacity: 1; color: var(--accent); }
.ac-empty { padding: 14px 12px; color: var(--muted); font-size: .9rem; }
/* Ana sayfadaki büyük arama: liste açıkken alt köşeler birleşsin */
.hh-search .ac-list { top: calc(100% + 6px); color: var(--text); }

/* ---------- İl / ilçe: SEO bölümleri ---------- */
.hero-short { margin: 10px 0 0; font-size: .86rem; line-height: 1.45; color: #cfe6ff; }
.hourly h2 { font-size: 1.05rem; margin: 0 0 10px; }
.hourly .hours { margin: 0; }
.hourly .hr.now { background: var(--accent-soft); }
.hourly .hr.now .h-t { color: var(--accent); font-weight: 700; }
.grid.two-eq { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid.two-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick h2 { font-size: 1.05rem; margin: 0 0 10px; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.q-row + .q-row { border-top: 1px solid var(--border); }
.q-row > div { display: flex; flex-direction: column; min-width: 0; }
.q-t { font-size: 1.3rem; font-weight: 600; }
.q-l { color: var(--muted); font-size: .86rem; }
.quick p { margin: 8px 0 0; font-size: .92rem; }
.compare h2 { font-size: 1.05rem; }
.compare p:last-child { margin: 0; }
.siblings h2 { font-size: 1.05rem; }
.sib { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sib a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .88rem; text-decoration: none; }
.sib a:hover { color: var(--accent); }
.nb-n small { font-weight: 500; font-size: .76rem; }

/* İlçe sayfası: üstte bağlı olduğu il */
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 8px 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #dcecff; font-size: .8rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; transition: background .15s; }
.hero-kicker:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-kicker svg { width: 14px; height: 14px; fill: none; stroke: #9fd0ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-kicker .chev { width: 12px; height: 12px; opacity: .7; }

/* ================= Liste sayfaları (billboard) ================= */
.lst-head { padding: 6px 2px 4px; margin-bottom: 14px; }
.lst-k { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-bottom: 6px; }
.lst-head h1 { margin: 0; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.01em; }
.lst-date { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.lst-lead { margin: 12px 0 0; font-size: 1.04rem; line-height: 1.55; max-width: 72ch; }
.lst-nav, .lst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.lst-nav a, .lst-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; font-weight: 600; text-decoration: none; }
.lst-nav a:hover, .lst-chips a:hover { border-color: var(--accent); color: var(--accent); }
.lst-nav a[aria-current="page"] { background: var(--chip-on); border-color: var(--chip-on); color: #fff; }
.lst-more h2 { margin-top: 0; font-size: 1.05rem; }
.lst-more .lst-chips { margin-top: 8px; }
@media (min-width: 720px) { .lst-head h1 { font-size: 2.1rem; } }

.lst-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 8px; }
.lst-ctrl h2 { flex: 1 1 220px; margin: 0; font-size: 1.05rem; }
.lst-filter select { font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; min-height: 36px; }
.lst-legend { margin: 12px 0 0; }
.lst-empty { margin: 8px 0; padding: 16px; border-radius: 14px; background: var(--surface-2); line-height: 1.5; }

.bb-list, .d-top { list-style: none; margin: 0; padding: 0; }
.bb + .bb { border-top: 1px solid var(--border); }
.bb[hidden], tr[hidden] { display: none; }
.bb summary, .bb-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; min-height: 56px; }
.bb summary { cursor: pointer; list-style: none; }
.bb summary::-webkit-details-marker { display: none; }
.bb summary:hover .bb-name a { color: var(--accent); }
.bb-rank { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: .88rem; font-variant-numeric: tabular-nums; }
.bb.top .bb-rank { background: var(--accent-soft); color: var(--accent); }
.bb.top:first-child .bb-rank { background: #ffc93c; color: #13202e; }
.bb-ch { flex: none; width: 38px; text-align: center; font-size: .74rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.bb-ch.up { color: var(--good); }
.bb-ch.down { color: var(--bad); }
.bb-ch.new { color: #fff; background: var(--good); border-radius: 6px; padding: 2px 0; font-size: .64rem; letter-spacing: .04em; }
.bb-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bb-name a { color: var(--text); font-weight: 700; text-decoration: none; }
.bb-name small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.bb .wi { flex: none; width: 30px; height: 30px; }
.bb-v { flex: none; min-width: 58px; text-align: right; font-size: 1.2rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bb-v small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.bb-v.snow, b.snow { color: var(--cool); }
.bb-v.rain { color: var(--rain); }
.bb-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; }
.bb details[open] .bb-chev { transform: rotate(180deg); stroke: var(--accent); }
.bb-stats { padding: 0 2px 14px 40px; }
.bb-stats dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 8px 0 0; }
.bb-stats dt { font-size: .74rem; color: var(--muted); }
.bb-stats dd { margin: 1px 0 0; font-weight: 700; }
@media (min-width: 640px) { .bb-stats dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bb-spark { display: block; width: 150px; height: 34px; overflow: visible; }
.bb-spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bb-spark circle { fill: var(--accent); }
.bb-spark .sp-top { stroke: var(--border); stroke-dasharray: 3 3; }
.ds-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.ds-list li { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; }
.ds-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.ds-list a:hover { color: var(--accent); }

.d-top li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.d-top li + li { border-top: 1px solid var(--border); }
.d-top .bb-name { flex-direction: row; align-items: baseline; gap: 6px; }
.d-top .bb-name small { font-size: .78rem; }
.d-top .wi { width: 26px; height: 26px; flex: none; }
.d-top b { min-width: 54px; text-align: right; white-space: nowrap; }

.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.wk { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.wk th, .wk td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.wk thead th { font-size: .78rem; color: var(--muted); font-weight: 700; }
.wk thead th small { display: block; font-weight: 500; font-size: .7rem; }
.wk tbody th { text-align: left; position: sticky; left: 0; background: var(--surface); padding-right: 10px; white-space: nowrap; }
.wk tbody th a { color: var(--text); font-weight: 700; text-decoration: none; }
.wk .we { background: var(--we); }
.wk td.on span { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--accent-soft); color: var(--cool); font-weight: 800; }
.wk td.heavy span { background: var(--cool); color: #fff; }

.hub-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 8px; }
.hub-card { display: flex; flex-direction: column; gap: 8px; margin: 0; color: var(--text); text-decoration: none; }
.hub-card:hover { border-color: var(--accent); }
.hub-t { font-size: 1.05rem; }
.hub-top { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.hub-top li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.hub-top li + li { border-top: 1px solid var(--border); }
.hub-go { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .88rem; }

/* İl sayfası: bugünkü sıra rozeti */
.hero-rank { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 201, 60, .16); border: 1px solid rgba(255, 201, 60, .35); color: #ffe39a; font-size: .8rem; font-weight: 700; text-decoration: none; }
.hero-rank:hover { background: rgba(255, 201, 60, .26); color: #fff3cc; }
.hero-rank .up { color: #8ff0b4; }
.hero-rank .down { color: #ffb0a8; }
.hl-more { margin: -4px 2px 18px; font-size: .9rem; font-weight: 600; }

/* ================= Footer ================= */
.site-footer { margin-top: 32px; padding: 40px 0 24px; font-size: .9rem; color: #c9dbef; background: radial-gradient(80% 120% at 100% 0%, rgba(120, 180, 255, .14), transparent 60%), linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.site-footer a { color: #e3eefb; text-decoration: none; }
.site-footer a:hover { color: #ffc93c; }
.ft-top { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-brand { grid-column: 1 / -1; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; }
.ft-logo svg { width: 40px; height: 40px; flex: none; }
.ft-logo b { font-size: 1.12rem; font-weight: 800; color: #fff; }
.ft-brand p { margin: 12px 0 0; max-width: 40ch; line-height: 1.55; color: #b5cbe3; }
.ft-stats { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ft-stats li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: #b5cbe3; }
.ft-stats b { color: #fff; font-size: .95rem; margin-right: 2px; }
.ft-col h2 { margin: 0 0 12px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffc93c; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.ft-col ul.ft-one { grid-template-columns: minmax(0, 1fr); }
.ft-col li a { display: inline-block; padding: 2px 0; }
.ft-all { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .85rem; color: #ffc93c !important; }
.ft-all:hover { color: #fff !important; }
.ft-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.ft-bottom p { margin: 0; font-size: .78rem; color: #93aeca; line-height: 1.5; }
.ft-bottom .attrib { max-width: 80ch; }
.ft-bottom a { color: #b5cbe3; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 559px) { .ft-col:nth-of-type(3), .ft-col:nth-of-type(4) { grid-column: auto; } .ft-top > .ft-col:first-of-type, .ft-top > .ft-col:nth-of-type(2) { grid-column: 1 / -1; } .ft-top > .ft-col:first-of-type ul, .ft-top > .ft-col:nth-of-type(2) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .ft-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
  .ft-brand { grid-column: auto; }
}
:root[data-theme="dark"] .site-footer { background: linear-gradient(160deg, #0f2440, #070f1a); border-top: 1px solid var(--border); }
/* Kısa sayfalarda footer en altta kalsın */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .wrap { width: 100%; }

/* Uyarılar, rüzgâr, normallerden sapma, toplam yağış */
.wn-sum { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 10px; padding: 0; }
.wn-f { font: inherit; font-size: .82rem; color: var(--text); padding: 5px 11px; min-height: 34px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: background .15s, border-color .15s; }
.wn-f:hover { border-color: var(--accent); }
.wn-f[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: #fff; }
.wn-sum b { font-size: .95rem; margin-right: 2px; }
.wn-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin: 0 4px; }
.wn-dot.lv1 { background: #f2c230; box-shadow: 0 0 0 4px rgba(242, 194, 48, .2); }
.wn-dot.lv2 { background: #f07b1f; box-shadow: 0 0 0 4px rgba(240, 123, 31, .22); }
.wn-list .bb-row { align-items: flex-start; }
.wn-list .wn-dot { margin-top: 6px; }
.wn-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wn-chip { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.wn-chip.lv1 { background: #fff4cc; color: #7a5800; }
.wn-chip.lv2 { background: #ffe2c9; color: #8f3d00; }
:root[data-theme="dark"] .wn-chip.lv1 { background: rgba(242, 194, 48, .18); color: #ffd866; }
:root[data-theme="dark"] .wn-chip.lv2 { background: rgba(240, 123, 31, .2); color: #ffad6b; }
.an-bar, .tt-bar { position: relative; flex: 0 0 22%; max-width: 160px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.an-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border); }
.an-bar i, .tt-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.an-bar i.w { background: var(--warm); }
.an-bar i.c { background: var(--cool); }
.tt-bar i { left: 0; background: var(--rain); }
b.rain { color: var(--rain); }
@media (max-width: 479px) { .an-bar, .tt-bar { flex-basis: 16%; } }

/* Ana sayfa: 2×2 öne çıkanlar + sağda uyarılar kartı */
.hl-alerts { grid-column: 1 / -1; grid-template-rows: auto auto 1fr auto; align-content: stretch; }
.hl-alerts .hl-k { color: #c2410c; }
.hl-alerts-ic { fill: none; stroke: #e8710a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hw-list { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; }
.hw-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .9rem; }
.hw-list li + li { border-top: 1px solid var(--border); }
.hw-list .wn-dot { width: 9px; height: 9px; margin: 0 2px; }
.hw-n { font-weight: 700; }
.hw-t { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.hw-go { grid-column: 1 / -1; align-self: end; margin-top: 8px; color: var(--accent); font-weight: 700; font-size: .86rem; }
@media (min-width: 760px) {
  .hl:has(.hl-alerts) { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); }
  .hl-alerts { grid-column: 3; grid-row: 1 / span 2; }
}
@media (min-width: 760px) { .hl:not(:has(.hl-alerts)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ================= Uyarı bandı (ticker) ================= */
.ticker { background: linear-gradient(90deg, var(--hero-b), var(--hero-a)); color: #e3eefb; font-size: .86rem; margin-bottom: 4px; }
.tk-in { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.tk-label { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #f07b1f; color: #fff; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.tk-label:hover { background: #ff8c2e; color: #fff; }
.tk-label svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tk-label b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .25); font-size: .74rem; letter-spacing: 0; }
.tk-view { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-track { display: flex; width: max-content; animation: tk-scroll var(--tk-dur, 60s) linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-list { display: flex; list-style: none; margin: 0; padding: 0; }
.tk-list li { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 0; white-space: nowrap; }
.tk-list li::after { content: ""; width: 4px; height: 4px; margin-left: 14px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.tk-list a { color: #d6e6f8; text-decoration: none; }
.tk-list a:hover { color: #ffc93c; }
.tk-list b { color: #fff; font-weight: 700; margin-right: 2px; }
.tk-list small { color: #ffc93c; font-weight: 700; font-size: .74rem; }
.tk-list .wn-dot { width: 8px; height: 8px; margin: 0; }
.tk-all { flex: none; color: #ffc93c; font-weight: 700; font-size: .8rem; text-decoration: none; }
.tk-all:hover { color: #fff; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 639px) { .tk-word, .tk-all { display: none; } .tk-in { gap: 8px; } .ticker { font-size: .82rem; } }
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; }
  .tk-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tk-list[aria-hidden="true"] { display: none; }
}

/* Banttan gelinen il satırı: başlığın altında kalmasın, kısa süre vurgulansın */
.wn-list .bb { scroll-margin-top: 90px; }
.wn-list .bb:target { animation: tk-hit 2.4s ease-out 1; border-radius: 12px; }
@keyframes tk-hit { 0%, 40% { background: rgba(240, 123, 31, .16); box-shadow: 0 0 0 2px rgba(240, 123, 31, .5); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .wn-list .bb:target { animation: none; background: rgba(240, 123, 31, .12); } }

/* İl/ilçe sayfası: meteorolojik uyarılar şeridi */
.cw { padding: 14px 16px; border-color: rgba(240, 123, 31, .35); background: linear-gradient(180deg, rgba(240, 123, 31, .07), transparent 70%), var(--surface); }
.side > .cw { margin-top: 16px; margin-bottom: 0; }
.cw-head { display: flex; align-items: center; gap: 8px; }
.cw-head svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #e8710a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cw-head h2 { margin: 0; font-size: .98rem; line-height: 1.3; }
.cw-day { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.cw-d { flex: none; width: 42px; padding-top: 3px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.cw-day .wn-chips { margin-top: 0; }
.cw-day .wn-chip { white-space: normal; }
.cw-go { display: inline-block; margin-top: 12px; font-size: .84rem; font-weight: 700; text-decoration: none; }
/* Banttaki seviye simgesi: küçük uyarı üçgeni (sarı dikkat, turuncu önemli) */
.tk-ic { width: 15px; height: 15px; flex: none; }
.tk-ic path:first-child { fill: #f2c230; stroke: #f2c230; stroke-width: 1.5; stroke-linejoin: round; }
.tk-ic.lv2 path:first-child { fill: #f07b1f; stroke: #f07b1f; }
.tk-ic path + path { fill: none; stroke: #13202e; stroke-width: 2.6; stroke-linecap: round; }

/* Hero: ilçeler açılır menüsü */
.hero-kick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.hero-kick-row .hero-kicker { margin: 0; }
.hero-dd summary { list-style: none; cursor: pointer; user-select: none; }
.hero-dd summary::-webkit-details-marker { display: none; }
.hero-dd summary b { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .72rem; }
.hero-dd .dd-ic { width: 14px; height: 14px; fill: none; stroke: #9fd0ff; stroke-width: 2; stroke-linecap: round; }
.hero-dd .dd-chev { transition: transform .2s; }
.hero-dd[open] .dd-chev { transform: rotate(180deg); }
.hero-dd[open] summary { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-dd-panel { position: absolute; left: 14px; right: 14px; top: 58px; z-index: 6; max-height: min(300px, calc(100% - 72px)); overflow-y: auto; padding: 10px; border-radius: 16px; background: #0f2f5c; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); overscroll-behavior: contain; }
.hero-dd-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.hero-dd-panel a { display: block; padding: 7px 10px; border-radius: 9px; color: #dcecff; font-size: .88rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-dd-panel a:hover, .hero-dd-panel a:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-dd-panel a[aria-current="page"] { background: rgba(255, 201, 60, .18); color: #ffd866; font-weight: 700; }
@media (min-width: 560px) and (max-width: 979px) { .hero-dd-panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Hero istatistikleri: birim küçük ve sayıya bitişik, kutudan taşmasın */
.hero-stats b .u { margin-left: 2px; font-size: .68em; font-weight: 600; color: #a9d3ff; letter-spacing: 0; }
.hero-stats li { min-width: 0; }

/* Logo: lacivert kare + güneş, yanında iki satır kalın yazı */
.brand { gap: 10px; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 4px 12px rgba(11, 37, 70, .28); }
.brand-text { line-height: 1; gap: 1px; }
.brand-text b { font-size: 1.24rem; font-weight: 900; letter-spacing: -.03em; line-height: .98; color: #0d1b2e; white-space: nowrap; }
:root[data-theme="dark"] .brand-text b { color: var(--text); }
.ft-logo { gap: 10px; }
.ft-logo .ft-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.ft-logo .brand-text b { color: #fff; font-size: 1.18rem; }
/* Ana sayfa: arama önerileri panelin dışına (haritanın üstüne) taşabilsin */
.home-hero { overflow: visible; position: relative; z-index: 5; }

/* ================= Başa dön butonu ================= */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: radial-gradient(120% 120% at 30% 20%, #2a5fa0, #0b2546 70%); box-shadow: 0 10px 26px rgba(11, 37, 70, .35), 0 2px 6px rgba(11, 37, 70, .25); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease, box-shadow .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 14px 32px rgba(11, 37, 70, .45), 0 2px 6px rgba(11, 37, 70, .25); }
.to-top:hover .tt-arrow { transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid #ffc22e; outline-offset: 3px; }
.to-top > svg { grid-area: 1 / 1; }
.tt-ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.tt-track { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; }
.tt-prog { fill: none; stroke: #ffc22e; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--tt, 0)); transition: stroke-dashoffset .1s linear; }
.tt-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
:root[data-theme="dark"] .to-top { box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); }
@media (max-width: 639px) { .to-top { width: 46px; height: 46px; } .tt-ring { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .tt-arrow, .tt-prog { transition: none; } }
#main[tabindex="-1"]:focus { outline: none; }
