/* WorldClock tools, part 3 */

/* Online clock */
.wc-oc__stage { text-align: center; padding: 28px 12px 22px; border-radius: 18px; background: var(--wc-surface, #fff); border: 1px solid var(--wc-line, #e3e6ec); }
.wc-oc__digital { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-variant-numeric: tabular-nums; line-height: 1; }
.wc-oc__time { font-size: clamp(3.6rem, 1rem + 13vw, 10rem); font-weight: 850; letter-spacing: -.04em; color: var(--wc-ink, #0e1a3a); }
.wc-oc__sec { font-size: clamp(1.6rem, .8rem + 4vw, 3.6rem); font-weight: 700; color: var(--wc-accent, #1f5eff); }
.wc-oc__ampm { font-size: clamp(1rem, .6rem + 1.4vw, 1.6rem); font-weight: 700; color: var(--wc-muted, #5b6475); }
.wc-oc__date { font-size: clamp(1.05rem, .9rem + .8vw, 1.6rem); font-weight: 650; margin: 14px 0 4px; }
.wc-oc__zone { color: var(--wc-muted, #5b6475); margin: 0; }
.wc-oc__zone .wc-flag { vertical-align: -3px; width: 22px; height: auto; }
.wc-oc__analog { display: none; width: min(420px, 78vw); height: auto; margin: 0 auto 6px; }
.wc-oc.is-analog .wc-oc__analog { display: block; }
.wc-oc.is-analog .wc-oc__time { font-size: clamp(2rem, 1rem + 4vw, 3.4rem); }
.wc-oc.is-analog .wc-oc__sec { font-size: clamp(1.2rem, .8rem + 1.6vw, 2rem); }
.wc-oc__rim { fill: var(--wc-bg, #f6f8fc); stroke: var(--wc-line, #d7dce6); stroke-width: 3; }
.wc-oc__analog line { stroke: #9aa3b5; stroke-width: 1.5; stroke-linecap: round; }
.wc-oc__analog line.is-big { stroke: var(--wc-ink, #0e1a3a); stroke-width: 3; }
.wc-oc__analog text { font-size: 15px; font-weight: 700; text-anchor: middle; fill: var(--wc-ink, #0e1a3a); font-family: inherit; }
.wc-oc__analog .wc-oc__h { stroke: var(--wc-ink, #0e1a3a); stroke-width: 7; }
.wc-oc__analog .wc-oc__m { stroke: var(--wc-ink, #0e1a3a); stroke-width: 4.5; }
.wc-oc__analog .wc-oc__s { stroke: #e5484d; stroke-width: 2; }
.wc-oc__pin { fill: #e5484d; }
.wc-oc__bar { margin-top: 16px; align-items: flex-end; }
.wc-oc__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-oc__btns [aria-pressed="true"] { background: var(--wc-accent-soft, #eef3ff); border-color: var(--wc-accent, #1f5eff); }
.wc-oc.is-dark .wc-oc__stage { background: #070b16; border-color: #070b16; }
.wc-oc.is-dark .wc-oc__time, .wc-oc.is-dark .wc-oc__date { color: #f2f5ff; }
.wc-oc.is-dark .wc-oc__sec { color: #ffb347; }
.wc-oc.is-dark .wc-oc__zone, .wc-oc.is-dark .wc-oc__ampm { color: #9aa3b5; }
.wc-oc.is-dark .wc-oc__rim { fill: #0e1426; stroke: #26304a; }
.wc-oc.is-dark .wc-oc__analog line.is-big, .wc-oc.is-dark .wc-oc__h, .wc-oc.is-dark .wc-oc__m { stroke: #f2f5ff; }
.wc-oc.is-dark .wc-oc__analog text { fill: #f2f5ff; }
.wc-oc:fullscreen { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.wc-oc.is-dark:fullscreen { background: #070b16; }
.wc-oc:fullscreen .wc-oc__bar { display: none; }
.wc-oc:fullscreen .wc-oc__stage { border: 0; background: transparent; }
.wc-oc:fullscreen .wc-oc__time { font-size: 22vw; }
.wc-oc:fullscreen .wc-oc__sec { font-size: 8vw; }
.wc-oc.is-analog:fullscreen .wc-oc__analog { width: min(70vh, 80vw); }
.wc-oc.is-analog:fullscreen .wc-oc__time { font-size: 7vw; }

/* Pomodoro */
.wc-pomo__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wc-pomo__tabs .wc-chip { cursor: pointer; font: inherit; font-weight: 650; }
.wc-pomo__tabs .wc-chip.is-on { background: var(--wc-accent, #1f5eff); color: #fff; border-color: var(--wc-accent, #1f5eff); }
.wc-pomo[data-phase="focus"] .wc-timer__fg { stroke: #e5484d; }
.wc-pomo[data-phase="short"] .wc-timer__fg { stroke: #16a34a; }
.wc-pomo[data-phase="long"] .wc-timer__fg { stroke: #1f5eff; }
.wc-pomo__dots { text-align: center; font-size: 1.3rem; margin: 0 0 14px; }
.wc-pomo__dots small { display: block; font-size: .9rem; color: var(--wc-muted, #5b6475); }
.wc-pomo__set { margin-top: 14px; }
.wc-pomo__set summary { cursor: pointer; font-weight: 650; }
.wc-field--check { flex-direction: row !important; align-items: center; gap: 8px; }

/* Interval timer */
.wc-int__display { text-align: center; border-radius: 18px; padding: 26px 16px 20px; background: #eef1f6; color: #0e1a3a; transition: background .3s; }
.wc-int[data-state="work"] .wc-int__display { background: #16a34a; color: #fff; }
.wc-int[data-state="rest"] .wc-int__display, .wc-int[data-state="setrest"] .wc-int__display { background: #1f5eff; color: #fff; }
.wc-int[data-state="prep"] .wc-int__display { background: #f59e0b; color: #fff; }
.wc-int[data-state="done"] .wc-int__display { background: #0e1a3a; color: #fff; }
.wc-int__phase { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.wc-int__v { font-size: clamp(4rem, 1.5rem + 12vw, 10rem); font-weight: 850; line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.wc-int__meta { margin: 0 0 12px; font-weight: 650; opacity: .9; min-height: 1.4em; }
.wc-int__bar { height: 8px; background: rgba(255,255,255,.35); border-radius: 99px; overflow: hidden; max-width: 520px; margin: 0 auto; }
.wc-int__bar span { display: block; height: 100%; width: 0; background: currentColor; border-radius: 99px; }
.wc-int [data-presets] { margin: 14px 0 6px; }
.wc-int [data-presets] .wc-chip { cursor: pointer; font: inherit; font-weight: 650; }
.wc-int__set .wc-field { max-width: 150px; }
.wc-int:fullscreen { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.wc-int:fullscreen .wc-int__set, .wc-int:fullscreen [data-presets], .wc-int:fullscreen .wc-tnote { display: none; }
.wc-int:fullscreen .wc-int__display { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.wc-int:fullscreen .wc-int__v { font-size: 28vw; }

/* Chess clock */
.wc-chess__board { display: grid; grid-template-rows: 1fr auto 1fr; gap: 10px; min-height: min(70vh, 560px); }
.wc-chess__side { border: 0; border-radius: 18px; background: #e9edf4; color: #0e1a3a; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .2s; }
.wc-chess__side--top { transform: rotate(180deg); }
.wc-chess__side.is-active { background: #16a34a; color: #fff; }
.wc-chess__side.is-active.is-low { background: #e5484d; }
.wc-chess__side.is-flag { background: #7f1d1d; color: #fff; }
.wc-chess__t { font-size: clamp(3rem, 1rem + 10vw, 7rem); font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.wc-chess__m { font-size: .95rem; font-weight: 650; opacity: .85; }
.wc-chess__mid { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.wc-chess [data-presets] { margin: 14px 0 6px; }
.wc-chess [data-presets] .wc-chip { cursor: pointer; font: inherit; font-weight: 650; }
@media (min-width: 900px) { .wc-chess__board { grid-template-rows: none; grid-template-columns: 1fr auto 1fr; min-height: 320px; } .wc-chess__side--top { transform: none; } .wc-chess__mid { flex-direction: column; justify-content: center; } }
.wc-chess:fullscreen { background: #fff; padding: 12px; display: flex; flex-direction: column; }
.wc-chess:fullscreen .wc-chess__board { flex: 1; min-height: 0; }
.wc-chess:fullscreen [data-presets], .wc-chess:fullscreen .wc-tbar, .wc-chess:fullscreen .wc-tnote { display: none; }

/* Sleep / hours / decimal shared two-box layout */
.wc-sleep__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wc-sleep__box { background: var(--wc-surface, #fff); border: 1px solid var(--wc-line, #e3e6ec); border-radius: 16px; padding: 18px; }
.wc-sleep__box h2 { margin-top: 0; font-size: 1.2rem; }
.wc-sleep__list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.wc-sleep__opt { border: 1px solid var(--wc-line, #e3e6ec); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wc-sleep__opt strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.wc-sleep__opt span { font-size: .82rem; color: var(--wc-muted, #5b6475); }
.wc-sleep__opt.is-best { border-color: #16a34a; background: #effaf2; }
.wc-sleep .wc-tnote input { width: 4.2em; }
.wc-hrs__out { margin-top: 12px; padding: 14px 16px; background: var(--wc-accent-soft, #eef3ff); border-radius: 12px; }
.wc-hrs__out p { margin: 0; }
.wc-hrs__big { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 850; font-variant-numeric: tabular-nums; margin-bottom: 4px !important; }
.wc-dec__chart { margin-top: 18px; }
.wc-dec__chart summary { cursor: pointer; font-weight: 650; margin-bottom: 8px; }
@media (min-width: 700px) { .wc-dec__table { max-width: 520px; } }

/* Time card */
.wc-tc__table input { width: 100%; min-width: 92px; font: inherit; padding: 6px 8px; border: 1px solid var(--wc-line, #d7dce6); border-radius: 8px; background: #fff; }
.wc-tc__table input[type="number"] { min-width: 64px; max-width: 90px; }
.wc-tc__table td[data-h] { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.wc-tc__table tfoot th { text-align: right; }
@media (max-width: 600px) {
	.wc-tc__table { font-size: .88rem; }
	.wc-tc__table th, .wc-tc__table td { padding: 6px 4px; }
	.wc-tc__table input { min-width: 0; width: 100%; padding: 5px 4px; font-size: .85rem; }
	.wc-tc__table input[type="time"] { min-width: 78px; }
	.wc-tc__table input[type="number"] { min-width: 44px; max-width: 56px; }
}
.wc-tc .wc-sunc__cards { margin-top: 16px; }
@media print { .wc-tc .wc-tbar, .wc-thero, .wc-tool-info, .wc-faq, .site-header, .site-footer { display: none !important; } }

/* Age */
.wc-age .wc-bigdisplay { margin: 18px 0; }
.wc-age .wc-bigdisplay__v { font-size: clamp(1.8rem, 1rem + 3.6vw, 3.4rem); }

/* Golden hour */
.wc-golden .wc-sunc__cards { margin-bottom: 18px; }

/* RTL (Hebrew / Arabic) — html[dir="rtl"], set by includes/rtl.php. Clocks and bars stay LTR. */
html[dir="rtl"] .wc-oc__digital, html[dir="rtl"] .wc-oc__time, html[dir="rtl"] .wc-oc__sec, html[dir="rtl"] .wc-oc__bar, html[dir="rtl"] .wc-int__display { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .wc-oc__zone, html[dir="rtl"] .wc-oc__date { unicode-bidi: isolate; }
html[dir="rtl"] .wc-tc__table tfoot th { text-align: left; }
/* end RTL */
