/* Saat Tarih: tüm renkler tek merkezden (token) gelir. Açık: "kâğıt", koyu: "gece". */
:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --text: #1b1f27;
  --muted: #565c68;
  --border: #d6cfbf;
  --accent: #9a3f00;
  --accent-ink: #ffffff;
  --accent-soft: #f6e5d6;
  --focus: #1a5fd0;
  --ramadan: #dcebe1;
  --ok: #176b3a;
  --ok-bg: #e2f3e8;
  --err: #a31d1d;
  --err-bg: #fbe7e7;
  --shadow: 0 1px 2px rgb(27 31 39 / 0.06), 0 8px 24px rgb(27 31 39 / 0.06);
  --radius: 14px;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11141a;
    --surface: #1a1e26;
    --surface-2: #232834;
    --text: #eef0f4;
    --muted: #a5acb9;
    --border: #343b49;
    --accent: #f2a65a;
    --accent-ink: #11141a;
    --accent-soft: #3a2b1d;
    --focus: #7db2ff;
    --ramadan: #1f3a2c;
    --ok: #7fd9a1;
    --ok-bg: #16301f;
    --err: #ff9d9d;
    --err-bg: #3a1a1a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11141a;
  --surface: #1a1e26;
  --surface-2: #232834;
  --text: #eef0f4;
  --muted: #a5acb9;
  --border: #343b49;
  --accent: #f2a65a;
  --accent-ink: #11141a;
  --accent-soft: #3a2b1d;
  --focus: #7db2ff;
  --ramadan: #1f3a2c;
  --ok: #7fd9a1;
  --ok-bg: #16301f;
  --err: #ff9d9d;
  --err-bg: #3a1a1a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
}

/* Temaya göre görünen/gizlenen parçalar (tema simgesi, Bumba rozeti). */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: inline-block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: inline-block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }

/* Başlık */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin-inline-end: auto; }
.brand svg { width: 2rem; height: 2rem; color: var(--accent); }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; padding: 0.45rem 0.75rem; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn, .lang-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.7rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.icon-btn:hover, .lang-link:hover { background: var(--surface-2); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }

/* Genel bölümler */
.section { padding-block: 2.5rem; }
.section + .section { border-top: 1px solid var(--border); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
.crumbs { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-inline-end: 0.4rem; }
.crumbs a { color: var(--muted); }

/* Saat sahnesi: yatay kaydırmalı modeller */
.hero { padding-block: 2rem 1rem; }
.stage {
  --stage-h: clamp(26rem, 74svh, 46rem);
  position: relative; margin-top: 1.5rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.stage-track {
  display: flex; height: var(--stage-h); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.stage-track::-webkit-scrollbar { display: none; }
.stage-track:focus-visible { outline-offset: -4px; }
.slide {
  flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1.25rem 1rem; text-align: center;
}
.stage-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem;
  padding: 0.6rem 0.8rem; border-top: 1px solid var(--border); background: var(--surface);
}
.stage-name { margin: 0; font-weight: 600; flex: 1; text-align: center; min-width: 0; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; flex: 1 0 100%; }
.dot { position: relative; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::after { content: ""; position: absolute; inset: 0.45rem; border-radius: 50%; background: var(--border); border: 1px solid var(--muted); }
.dot[aria-current="true"]::after { background: var(--accent); border-color: var(--accent); inset: 0.35rem; }
.stage-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; flex: 1 0 100%; }
@media (min-width: 52rem) {
  .stage-name { flex: 0 1 12rem; }
  .dots { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; }
}
.stage-hint { text-align: center; margin: 0.6rem 0 0; color: var(--muted); font-size: 0.95rem; }
.stage-note { padding: 0 1rem 1rem; }

/* Tam ekran (Fullscreen API ya da onu desteklemeyen tarayıcılarda sabit kaplama) */
.stage:fullscreen, .stage.is-full { --stage-h: calc(100dvh - 9rem); border-radius: 0; border: 0; box-shadow: none; display: flex; flex-direction: column; background: var(--bg); }
.stage:fullscreen .stage-track, .stage.is-full .stage-track { height: auto; flex: 1; min-height: 0; }
.stage:fullscreen .slide, .stage.is-full .slide { background: var(--bg); }
.stage:fullscreen .stage-bar, .stage.is-full .stage-bar { background: var(--bg); }
.stage.is-full { position: fixed; inset: 0; z-index: 200; margin: 0; }
html.has-full { overflow: hidden; }
@media (min-width: 52rem) { .stage:fullscreen, .stage.is-full { --stage-h: calc(100dvh - 5rem); } }

.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.toggle {
  min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn[aria-pressed="true"] { background: var(--accent-soft); }

/* Ortak saat öğeleri */
.tz-label { margin: 0; color: var(--muted); font-weight: 600; }
.clock {
  display: block; margin: 0.25rem 0; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  font-size: clamp(2.9rem, 13.5vw, 7rem);
}
.s-digital .clock { font-size: clamp(2.9rem, 13.5vw, 9rem); }
.clock-sm { font-size: clamp(2rem, 8vw, 3.25rem); }
.date { font-size: clamp(1.1rem, 3.4vw, 1.75rem); font-weight: 600; margin: 0; min-height: 1.6em; }
.stage:fullscreen .s-digital .clock, .stage.is-full .s-digital .clock { font-size: clamp(3rem, 15vw, 14rem); }

/* Analog kadranlar */
.analog { color: var(--text); height: auto; aspect-ratio: 1; flex: none; }
.analog-lg { width: min(100%, calc(var(--stage-h) - 3rem)); }
.analog-md { width: min(100%, calc(var(--stage-h) - 7rem)); }
.analog-sm { width: min(15rem, 62vw); }
.analog-xs { width: min(11rem, 48vw); }
.analog .face { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; }
.analog .tick { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.analog .tick-major { stroke: var(--text); stroke-width: 3; }
.analog .num { fill: var(--text); font-size: 15px; font-weight: 600; font-family: inherit; }
.analog .hand { stroke: var(--text); stroke-linecap: round; }
.analog .hand-sec { stroke: var(--accent); stroke-width: 2; }
.analog .pin { fill: var(--accent); }
.analog-minimal .face { fill: none; stroke: var(--text); stroke-width: 1.5; }
.s-duo, .s-cal { flex-direction: column; gap: 1rem; }
@media (min-width: 52rem) {
  .s-duo, .s-cal { flex-direction: row; gap: 3rem; }
  .s-duo .duo-text { text-align: start; }
  .s-cal .cal-side { text-align: start; }
}

/* Aylık takvim */
.cal { min-width: 0; }
.cal-title { margin: 0 0 0.4rem; font-weight: 700; font-size: 1.1rem; text-transform: capitalize; }
.cal table { min-width: 0; width: auto; margin-inline: auto; border-collapse: separate; border-spacing: 2px; }
.cal th, .cal td {
  width: 2.2rem; height: 2rem; padding: 0; border: 0; text-align: center; font-size: 0.9rem; font-variant-numeric: tabular-nums;
  border-radius: 8px;
}
.cal thead th { background: none; color: var(--muted); font-weight: 600; font-size: 0.8rem; height: 1.6rem; }
.cal tbody th { color: var(--muted); font-weight: 500; font-size: 0.8rem; background: none; }
.cal td.today { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@media (min-width: 52rem) { .cal th, .cal td { width: 2.8rem; height: 2.4rem; font-size: 1rem; } }

/* Çevirmeli saat */
.flip { display: flex; align-items: flex-start; justify-content: center; gap: clamp(0.5rem, 2.5vw, 1.5rem); }
.flip-g { display: flex; gap: clamp(0.2rem, 0.8vw, 0.5rem); }
.flip-d {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: clamp(2.5rem, 11vw, 6.5rem); height: clamp(3.6rem, 16vw, 9rem);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  font-size: clamp(2.2rem, 10vw, 6rem); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text);
}
.flip-d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--bg); }
.flip-ampm { align-self: center; font-weight: 700; color: var(--muted); font-size: 1rem; }
html.sec-off .flip-sec { display: none; }

/* Yazıyla saat */
.words { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; font-size: clamp(1.9rem, 7vw, 4.25rem); max-width: 18ch; text-wrap: balance; }
.words::first-letter { text-transform: uppercase; }

/* Halka saat */
.rings { position: relative; width: min(100%, calc(var(--stage-h) - 7rem), 26rem); aspect-ratio: 1; }
.rings svg { width: 100%; height: 100%; }
.rings-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rings-text .clock { font-size: clamp(1.4rem, 6vw, 2.6rem); margin: 0; }
.ring-track, .ring { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--border); }
.ring { stroke-linecap: round; }
.r-h { stroke: var(--accent); }
.r-m { stroke: var(--text); }
.r-s { stroke: var(--muted); }

/* Büyük tarih */
.bigdate-day { margin: 0; font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-size: clamp(6rem, 30vw, 14rem); color: var(--accent); font-variant-numeric: tabular-nums; }
.bigdate-month { margin: 0; font-weight: 700; font-size: clamp(1.5rem, 5vw, 3rem); text-transform: capitalize; }
.bigdate-week { margin: 0; font-size: clamp(1.1rem, 3vw, 1.75rem); color: var(--muted); font-weight: 600; }

/* Bilgi kartları */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.fact dt { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.25rem; }
.fact dd { margin: 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact progress { width: 100%; height: 0.75rem; margin-top: 0.4rem; accent-color: var(--accent); }
.fact .note { display: block; font-size: 0.9rem; font-weight: 400; color: var(--muted); }

/* Şehir kartları ve tablo */
.city-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); list-style: none; margin: 0 0 1rem; padding: 0; }
.city-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.city-card a { display: block; padding: 1rem 1.1rem; color: var(--text); text-decoration: none; border-radius: var(--radius); height: 100%; }
.city-card a:hover { background: var(--surface-2); }
.city-card .city-name { font-weight: 600; display: block; }
.city-card .city-time { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; display: block; min-height: 1.3em; }
.city-card .city-diff { color: var(--muted); font-size: 0.9rem; display: block; min-height: 1.4em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
caption { text-align: start; padding: 0.9rem 1rem; color: var(--muted); font-size: 0.95rem; }
th, td { text-align: start; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
thead th { background: var(--surface-2); font-size: 0.95rem; }
td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
tbody th { font-weight: 600; }
tbody th a { color: var(--text); }

/* SSS */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; list-style-position: inside; min-height: 2.75rem; }
.faq details p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); }
.faq details[open] summary { padding-bottom: 0.5rem; }

/* Metin sayfaları */
.prose { max-width: 46rem; }
.prose ul { padding-inline-start: 1.25rem; }
.prose li { margin-bottom: 0.6rem; }
.prose h2 { margin-top: 2rem; }

/* E-posta listesi formu */
.list-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; max-width: 40rem; }
.list-box h2 { font-size: 1.3rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { font-weight: 600; }
input[type="email"], input[type="search"], input[type="number"], input[type="time"], input[type="text"], input[type="datetime-local"], input[type="date"], select {
  width: 100%; min-height: 2.9rem; padding: 0 0.9rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--muted); border-radius: 10px;
}
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.95rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.4rem;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.bot-tuzagi, .field .bot-tuzagi { position: absolute; left: 0; top: 0; width: 1px; max-width: 1px; height: 1px; padding: 0; margin: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); opacity: 0; pointer-events: none; }
.form-msg { display: none; padding: 0.8rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-weight: 600; }
.form-msg:target, .form-msg.is-shown { display: block; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.err { background: var(--err-bg); color: var(--err); }

/* Arama penceresi */
dialog.search {
  width: min(40rem, calc(100vw - 2rem)); max-height: 80vh; margin: 8vh auto auto; padding: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
dialog.search::backdrop { background: rgb(10 12 16 / 0.55); }
.search-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem; border-bottom: 1px solid var(--border); }
.search-head input { flex: 1; }
.search-body { padding: 0.5rem 0.9rem 0.9rem; max-height: 55vh; overflow-y: auto; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results a { display: block; padding: 0.65rem 0.75rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--accent-soft); }
.search-results .r-title { font-weight: 600; display: block; }
.search-results .r-desc { color: var(--muted); font-size: 0.92rem; display: block; }
.search-status { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0.25rem; }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding-block: 2rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--text); }
.footer-sign { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }
.footer-sign p { margin: 0; }
.rozet { display: inline-block; line-height: 0; }
.rozet img { height: 28px; width: auto; }

/* Hata sayfaları */
.center-page { text-align: center; padding-block: 4rem; }
.center-page .lead { margin-inline: auto; }
.center-page + .center-page { border-top: 1px solid var(--border); }

@media print { .site-header, .site-footer, dialog, .controls { display: none !important; } }

/* Senkron durum satırı */
.sync-line { text-align: center; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }

/* Yaklaşan günler */
.upcoming { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.up-item { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-inline-start: 5px solid var(--border); border-radius: var(--radius); }
.up-holiday { border-inline-start-color: var(--accent); }
.up-half { border-inline-start-color: var(--accent); border-inline-start-style: dashed; }
.up-religious { border-inline-start-color: var(--muted); }
.up-date { color: var(--muted); font-size: 0.95rem; text-transform: capitalize; }
.up-left { color: var(--accent); font-weight: 700; }

/* Yıllık takvim */
.year-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1rem; }
.year-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.year-nav ul a { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4rem; min-height: 2.75rem; padding: 0 0.6rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.year-nav ul a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.95rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.lg { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); }
.year-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.ymonth { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.4rem 0.5rem 0.6rem; }
.ymonth caption { padding: 0.4rem 0.25rem; font-weight: 700; text-align: start; color: var(--text); }
.ymonth th, .ymonth td { padding: 0; border: 0; text-align: center; font-size: 0.85rem; height: 1.9rem; width: 14.28%; border-radius: 6px; font-variant-numeric: tabular-nums; }
.ymonth thead th { height: 1.5rem; color: var(--muted); font-weight: 600; font-size: 0.75rem; background: none; }
.d-weekend { color: var(--muted); }
.d-ramadan, .lg-ramadan { background: var(--ramadan); }
.d-special, .lg-special { font-style: italic; text-decoration: underline; text-underline-offset: 3px; }
.lg-special { background: var(--surface-2); }
.d-religious, .lg-religious { box-shadow: inset 0 -3px 0 var(--accent); }
.d-half, .lg-half { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.d-holiday, .lg-holiday { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.lg-weekend { background: var(--surface-2); }
.d-today, .lg-today { outline: 3px solid var(--focus); outline-offset: -2px; font-weight: 800; }
.events-table { min-width: 36rem; }
.events-table tr.is-past { color: var(--muted); }
.events-table tr.is-next { background: var(--accent-soft); }

/* Araçlar */
.tool-grid .card-open { display: block; margin-top: 0.5rem; color: var(--accent); font-weight: 600; }
.tool { position: relative; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; padding: clamp(1rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.tool:fullscreen, .tool.is-full { justify-content: center; align-items: center; text-align: center; overflow: auto; background: var(--bg); border: 0; border-radius: 0; box-shadow: none; }
.tool.is-full { position: fixed; inset: 0; z-index: 200; margin: 0; }
.tool:fullscreen > *, .tool.is-full > * { max-width: 60rem; width: 100%; }
.tool-head { display: flex; align-items: center; justify-content: space-between; }
.tool-title { margin: 0; font-size: 1.1rem; color: var(--muted); }
.tool-h2 { font-size: 1.2rem; margin: 0.5rem 0 0; }
.big-time { margin: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(2.4rem, 11vw, 6.5rem); overflow-wrap: anywhere; }
.tool:fullscreen .big-time, .tool.is-full .big-time { font-size: clamp(3rem, 15vw, 13rem); }
.tool-actions, .tool-extra, .presets, .inputs-row, .tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; }
.tool-extra { gap: 0.75rem 1.25rem; }
.inputs-row { align-items: flex-end; }
.inputs-row .field { min-width: 6rem; margin: 0; }
.inputs-row .field.grow { flex: 1; min-width: 12rem; }
.check-inline { display: inline-flex; align-items: center; gap: 0.5rem; }
.check-inline input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.chip, .tabs [role="tab"] { min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.chip:hover, .tabs [role="tab"]:hover { background: var(--surface-2); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tool-progress { width: 100%; height: 0.8rem; accent-color: var(--accent); }
.cd-message { margin: 0; text-align: center; font-weight: 700; font-size: 1.3rem; color: var(--ok); }
.btn:disabled, .toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.laps table { min-width: 0; }
.laps tr.lap-best { color: var(--ok); font-weight: 700; }
.laps tr.lap-worst { color: var(--err); font-weight: 700; }
.alarm-form { display: grid; gap: 1rem; justify-items: center; }
.alarm-form .field { text-align: start; }
fieldset.days { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 12px; }
fieldset.days legend { padding: 0 0.4rem; font-weight: 600; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; }
.day span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; min-height: 2.75rem; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; cursor: pointer; }
.day input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.alarm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.alarm-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-align: start; }
.alarm-item input[type="checkbox"] { width: 1.5rem; height: 1.5rem; accent-color: var(--accent); }
.al-info { flex: 1; display: grid; }
.al-info strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.ring-banner { padding: 1rem; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.ring-banner[hidden] { display: none; }
.ring-title { margin: 0 0 0.75rem; font-weight: 700; font-size: 1.5rem; }
.ring-banner .btn { background: var(--accent-ink); color: var(--accent); }
.phase { margin: 0; text-align: center; font-weight: 700; font-size: 1.5rem; color: var(--accent); }
.phase[data-phase="short"], .phase[data-phase="long"] { color: var(--ok); }
.pomo-settings { margin: 0 auto; }
.pomo-settings summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; }
.pomo-settings .inputs-row { margin-top: 0.5rem; }

/* Bilgi sayfaları */
.info-big { margin-top: 1rem; }
.info-date { font-size: clamp(1.9rem, 7vw, 4.5rem); text-wrap: balance; }
.info-sub { text-align: center; margin: 0.5rem 0 0; }
.find-out { font-weight: 600; font-size: 1.1rem; min-height: 1.6em; }
.inline-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.inline-links a { font-weight: 600; }
.week-table tr[aria-current="date"] th { color: var(--accent); }

/* Saat farkı, çevirici, planlayıcı, geri sayım sayfaları */
.pair-live { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 1.25rem; }
.pair-city { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.pair-city .meta { margin: 0 0 0.25rem; font-weight: 600; }
.pair-city .big-time { font-size: clamp(2rem, 8vw, 3.5rem); }
.cv-result { font-size: clamp(1.3rem, 4vw, 2.2rem); line-height: 1.3; }
.chips-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.chip-item { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.25rem 0.25rem 0.9rem; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; }
.chip-item .toggle { min-height: 2.5rem; min-width: 2.5rem; padding: 0; }
.planner { min-width: 52rem; border-collapse: separate; border-spacing: 2px; }
.planner th, .planner td { padding: 0.3rem 0.2rem; border: 0; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.85rem; border-radius: 4px; }
.planner thead th { background: none; color: var(--muted); font-size: 0.75rem; }
.planner tbody th { text-align: start; padding-inline-start: 0.6rem; white-space: nowrap; background: none; font-size: 0.95rem; }
.pl-work, .lg-work { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.pl-edge, .lg-edge { background: var(--accent-soft); color: var(--text); }
.pl-night, .lg-night { background: var(--surface-2); color: var(--muted); }
.planner sup { font-size: 0.6rem; margin-inline-start: 1px; }
.pl-common { margin: 0; font-weight: 700; font-size: 1.15rem; text-align: center; }
.cd-name { margin: 0; text-align: center; font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.cdp { text-align: center; }
.cdp .tool-head { text-align: start; }
.d-school, .lg-school { background: var(--surface-2); text-decoration: underline dotted; text-underline-offset: 3px; color: var(--text); }

/* Tarih hesaplayıcı, gömme kodu, gömülü widget */
.dc-out { text-align: center; min-height: 3rem; }
.dc-out p { margin: 0.2rem 0; }
.dc-out .dc-main { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700; }
.eg-preview { display: flex; justify-content: center; overflow: auto; padding: 0.5rem; background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius); }
.eg-preview iframe { border: 0; max-width: 100%; background: transparent; }
.eg-code { width: 100%; font: 0.9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 0.75rem; background: var(--bg); color: var(--text); border: 1px solid var(--muted); border-radius: 10px; resize: vertical; }
html[data-embed] body { min-height: 100dvh; }
.embed-stage { flex: 1; display: flex; min-height: 0; --stage-h: calc(100dvh - 3.4rem); background: var(--surface); }
.embed-stage .slide { display: none; width: 100%; }
.embed-stage .slide.is-selected { display: flex; }
.embed-foot { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.35rem 0.5rem; font-size: 0.85rem; background: var(--surface-2); border-top: 1px solid var(--border); }
.embed-foot a { color: var(--text); font-weight: 600; }

/* Dil menüsü (5 dil) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.4rem); z-index: 60; margin: 0; padding: 0.35rem; list-style: none;
  min-width: 11rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.lang-menu li a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--text); text-decoration: none; min-height: 2.75rem; line-height: 1.6; }
.lang-menu li a:hover { background: var(--surface-2); }
.lang-menu li a[aria-current] { background: var(--accent-soft); font-weight: 600; }
.lang-menu summary:focus-visible, .lang-menu li a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Sağdan sola diller (Arapça): saat rakamları ve kaydırıcı hep soldan sağa */
html[dir="rtl"] .clock, html[dir="rtl"] .big-time, html[dir="rtl"] .flip, html[dir="rtl"] .rings,
html[dir="rtl"] .analog { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .stage-track { direction: ltr; }
html[dir="rtl"] .slide { direction: rtl; }
html[dir="rtl"] .crumbs li + li::before { content: "‹"; }
html[dir="rtl"] .num, html[dir="rtl"] td, html[dir="rtl"] th { unicode-bidi: plaintext; }
