/* timenow.click styles */
/* Layout: a left-aligned main column (clock, search, compare) with a right-hand ad rail on wide screens; ad spaces are plainly marked boxes. */
/* Single deliberate theme: white page, navy ink, royal-blue accents. */
:root {
  --paper: #FFFFFF;
  --surface: #F2F6FD;
  --surface-2: #E6EEFB;
  --ink: #0D1B36;
  --muted: #56688A;
  --line: #DAE3F1;
  --brass: #1F4FD1;
  --brass-soft: #D5E1FA;
  --night: #16295A;
  --dawn: #5F8BE6;
  --day: #CFE0FB;
  --focus: #1F4FD1;
  --display: "Nunito", "SF Pro Rounded", ui-rounded, "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ad-bg: #F7F9FD;
  --ad-line: #C9D6EC;
  color-scheme: light;
}

html, body { background: var(--paper); }
body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 48px;
}
.wrap { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.rail { display: none; }
@media (min-width: 1140px) {
  .page { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; }
  .rail { display: block; }
  .rail .ad { position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); }
}

/* Ad spaces: fixed sizes so nothing jumps when an ad loads */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ad-slot { width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-banner .ad-slot { max-width: 728px; height: 90px; }
.ad-tall .ad-slot { width: 300px; height: 600px; }
.ad-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ad-bg); border: 1px dashed var(--ad-line); border-radius: 10px; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.mark span { color: var(--brass); }
.utc { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* Hero clock */
.hero { display: flex; flex-direction: column; gap: 14px; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass);
}
.place { font-size: clamp(1.15rem, 3.4vw, 1.45rem); font-weight: 500; text-wrap: balance; margin: 0; }
.place .country { color: var(--muted); font-weight: 400; }
.time {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.4rem, 18vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 6px 0 2px;
}
.time .d { display: inline-block; width: 0.58em; text-align: center; }
.time .colon { display: inline-block; width: 0.26em; text-align: center; transform: translateY(-0.08em); }
.time .sec {
  font-size: 0.32em; margin-left: 0.25em; color: var(--muted); display: inline-flex; align-items: baseline;
}
.time .sec .d { width: 0.62em; }
.time .ampm {
  font-family: var(--mono); font-size: 0.14em; letter-spacing: 0.1em; margin-left: 0.6em; color: var(--brass);
  align-self: flex-start; margin-top: 0.9em;
}
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; }
.meta .off { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; align-self: center; }

.actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.compare { scroll-margin-top: 24px; }
.btn {
  font: inherit; font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; color: var(--brass); flex: none; }
.btn:hover:not(:disabled) { border-color: var(--brass); }
.btn:disabled { cursor: default; opacity: 0.55; }
.btn { text-decoration: none; }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #FFFFFF; }
.btn-primary svg { color: #FFFFFF; }
.btn-primary:hover:not(:disabled) { background: var(--night); border-color: var(--night); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Search */
.search, .compare { display: flex; flex-direction: column; gap: 22px; }
.sec-head { display: flex; flex-direction: column; gap: 6px; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.1; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); }
.search label { display: block; }
.field { position: relative; }
.field > svg { position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; color: var(--brass); pointer-events: none; }
#q {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: clamp(1.15rem, 3.6vw, 1.35rem); color: var(--ink);
  background: var(--surface); border: 2px solid var(--brass-soft); border-radius: 16px;
  padding: 18px 56px 18px 58px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
#q::placeholder { color: var(--muted); opacity: 0.85; }
#q:hover { border-color: var(--dawn); }
#q:focus { outline: none; border-color: var(--brass); background: var(--paper); box-shadow: 0 0 0 5px var(--brass-soft); }
#q::-webkit-search-cancel-button { display: none; }
.clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.clear:hover { color: var(--ink); background: var(--surface-2); }

/* Compare */
.pickers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.picker { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.picker label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass); }
.picker input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--brass-soft); border-radius: 12px; padding: 13px 14px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.picker input:hover { border-color: var(--dawn); }
.picker input:focus { outline: none; border-color: var(--brass); background: var(--paper); box-shadow: 0 0 0 4px var(--brass-soft); }
.swap { width: 48px; height: 48px; margin-bottom: 2px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--brass); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.swap:hover { border-color: var(--brass); background: var(--surface); }
.swap svg { width: 20px; height: 20px; }
.list {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; z-index: 5;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px -12px rgba(13, 27, 54, 0.28);
  max-height: 300px; overflow-y: auto; padding: 6px; list-style: none;
}
.list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.list li[aria-selected="true"], .list li:hover { background: var(--surface-2); }
.list li .lc { min-width: 0; overflow-wrap: anywhere; }
.list li .lc span { color: var(--muted); }
.list li .lo { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.list .empty { color: var(--muted); cursor: default; }
.list .empty:hover { background: none; }

.verdict { margin: 0; font-size: clamp(1.25rem, 4vw, 1.6rem); line-height: 1.35; text-wrap: balance; }
.verdict strong { color: var(--brass); font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pane { background: var(--surface); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pane .pl { font-weight: 500; overflow-wrap: anywhere; }
.pane .pl span { color: var(--muted); font-weight: 400; }
.pane .pt { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.pane .pt small { font-family: var(--mono); font-size: 0.28em; color: var(--brass); margin-left: 6px; letter-spacing: 0.08em; }
.pane .pd { color: var(--muted); font-size: 0.88rem; }

.convert { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 1.05rem; }
.convert input[type="time"] {
  font: inherit; font-family: var(--mono); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--brass-soft); border-radius: 10px; padding: 8px 10px;
}
.convert input[type="time"]:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.convert .ans { font-weight: 600; color: var(--brass); }
.convert .now { font: inherit; font-size: 0.85rem; color: var(--brass); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.results { display: flex; flex-direction: column; gap: 34px; }
.group { display: flex; flex-direction: column; }
.group h3 { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 1rem; }
.group h3 small { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

.row {
  font: inherit; color: inherit; text-align: left; width: 100%;
  background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
  padding: 14px 4px;
  transition: background-color .15s;
}
.group .row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { background: var(--surface); }
.row.active { background: var(--surface); }
.row.active .city::after { content: "  ·  Showing"; color: var(--brass); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.row .who { min-width: 0; }
.row .city { font-weight: 500; }
.row .zn { display: block; color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.row .rt { text-align: right; min-width: 92px; }
.row .rtime { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .rtime small { font-family: var(--mono); font-size: 0.62rem; color: var(--brass); margin-left: 4px; letter-spacing: 0.08em; }
.row .rdiff { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.03em; white-space: nowrap; }
.row .rdiff b { font-weight: 500; color: var(--brass); }

.note { color: var(--muted); margin: 0; }
.foot { color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 560px) {
  .page { padding-block: 20px 48px; }
  .wrap { gap: 44px; }
  .ad-banner .ad-slot { max-width: 320px; height: 100px; }
  .pickers { grid-template-columns: minmax(0, 1fr); }
  .swap { justify-self: center; margin: 0; transform: rotate(90deg); }
  .pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Site-wide additions (multi-page site) ---------- */
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--night); }
.mark { color: var(--ink); text-decoration: none; }
.mark:hover { color: var(--ink); }
.top-right { display: flex; align-items: baseline; gap: 18px; }
.top-link { font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.top-link:hover { text-decoration: underline; }
.place .pre { color: var(--muted); font-weight: 400; }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.85rem; color: var(--muted); }
.crumbs li { display: flex; gap: 8px; align-items: baseline; }
.crumbs li + li::before { content: "›"; color: var(--muted); opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brass); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Content sections */
.content { display: flex; flex-direction: column; gap: 18px; }
.content > p, .prose p, .prose li { max-width: 68ch; }
.content p { margin: 0; }
.lead { font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9rem; padding-right: 24px; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.facts dd small { color: var(--muted); }
.facts code, .mono { font-family: var(--mono); font-size: 0.85em; }

.table-wrap { overflow-x: auto; }
table.diff { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.diff th, table.diff td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.diff thead th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom-color: var(--line); }
table.diff tbody th { font-weight: 500; }
table.diff td.t { text-align: right; font-family: var(--display); font-weight: 500; font-size: 1.15rem; white-space: nowrap; }
table.diff thead th.t { text-align: right; }

.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq .qa { padding: 16px 4px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.faq h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.faq p { margin: 0; color: var(--ink); max-width: 68ch; }

.zones { display: flex; flex-direction: column; }
.zones .row:last-child { border-bottom: 1px solid var(--line); }

.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.links a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s, background-color .15s; min-width: 0; }
.links a:hover { border-color: var(--brass); background: var(--surface); color: var(--ink); }
.links a span:first-child { min-width: 0; overflow-wrap: anywhere; }
.links .lt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.more { font-weight: 500; }

.az { display: flex; flex-direction: column; gap: 22px; }
.az h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--brass); }
.az ul { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 24px; }
.az li { padding: 4px 0; break-inside: avoid; }
.az a { text-decoration: none; color: var(--ink); }
.az a:hover { color: var(--brass); text-decoration: underline; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { font-family: var(--mono); font-size: 0.8rem; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.jump a:hover { border-color: var(--brass); }

/* Text pages (About, Privacy, ...) */
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1.1; text-wrap: balance; }
.prose h2 { margin: 18px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.email { font-family: var(--mono); font-size: 1.05rem; padding: 12px 16px; background: var(--surface); border-radius: 10px; display: inline-block; user-select: all; }
.notfound { font-family: var(--display); font-weight: 400; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; color: var(--brass); margin: 0; }

/* Footer */
.foot { display: flex; flex-direction: column; gap: 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--brass); text-decoration: underline; }
.foot p { margin: 0; }
.row[hidden] { display: none !important; }
@media (max-width: 420px) {
  .utc { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Contact email */
.email-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eml a { word-break: break-all; }
.eml-img { display: inline-block; vertical-align: -4px; max-width: 100%; height: auto; }
.email .eml-img { vertical-align: middle; }
