/* Vesperalba time zone pages. Same palette as the extension's Vibe design and the share page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F1EEFF;
  --ink: #1A1446;
  --muted: #4A4380;
  --surface: #FFFFFF;
  --sun: #FFD23F;
  --off: #2A2363;
  --avail: #FFFFFF;
  --now: #FF4D2E;
  --ok: #12B886;
  --line: rgba(26, 20, 70, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120E33;
    --ink: #F1EEFF;
    --muted: #A9A2DA;
    --surface: #1D1850;
    --off: #0B0826;
    --avail: #E9E5FF;
    --line: rgba(241, 238, 255, 0.14);
  }
}

html { background: var(--bg); }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page { max-width: 780px; margin: 0 auto; padding: 0 16px 40px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.get { font-size: 0.85rem; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 12px; white-space: nowrap; }

.crumbs { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* Heading and the short answer */
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.035em; margin-top: 10px; }
.lead { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }
.lead p + p { margin-top: 10px; }
.answer { margin-top: 20px; background: var(--sun); color: #1A1446; border-radius: 22px; padding: 18px 20px; }
.answer .cap { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.answer .big { font-size: clamp(1.25rem, 4.5vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 6px; }
.answer .small { font-size: 0.92rem; margin-top: 6px; opacity: 0.8; }

/* The live tool */
.tool { margin-top: 16px; background: var(--surface); border-radius: 22px; padding: 16px; }
.tool-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.tool-date { display: flex; flex-direction: column; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tool-date input { font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 8px; margin-top: 3px; color-scheme: light dark; }
.tool-step { display: flex; align-items: center; gap: 8px; }
.tool-step button, .tool-now { font: inherit; font-weight: 700; font-size: 0.9rem; min-width: 44px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 0 10px; }
.tool-step button:hover, .tool-now:hover { border-color: var(--ink); }
.tool-read { text-align: center; min-width: 96px; }
.tool-t { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tool-l { font-size: 0.7rem; color: var(--muted); }
.tool-range { width: 100%; margin: 16px 0 4px; accent-color: var(--now); }
.tool-rows .row { padding: 12px 0; border-top: 1px solid var(--line); }
.tool-rows .row:first-child { border-top: 0; }
.row-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row-name { font-weight: 700; }
.row-meta { font-size: 0.78rem; color: var(--muted); }
.row-right { text-align: right; white-space: nowrap; }
.row-t { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.row-d { font-size: 0.78rem; color: var(--muted); }
.ribbon { position: relative; height: 12px; border-radius: 6px; background: var(--off); margin-top: 10px; }
.ribbon .work { position: absolute; top: 0; bottom: 0; background: var(--avail); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.ribbon .mark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--now); border: 3px solid var(--surface); }
.row-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; margin-top: 6px; color: var(--muted); }
.row-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.row.in .row-status { color: var(--ink); }
.row.in .row-status .dot { background: var(--ok); }
.tool-sum { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 0.92rem; }
.tool-share { margin-top: 10px; font-size: 0.85rem; text-align: right; }
.tool-share a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.tool noscript, .tool .static { color: var(--muted); font-size: 0.9rem; }

/* Sections */
section.s { margin-top: 34px; }
h2 { font-size: clamp(1.25rem, 4vw, 1.55rem); letter-spacing: -0.025em; line-height: 1.2; }
section.s > p, section.s > ul { margin-top: 10px; }
section.s ul { padding-left: 1.2em; }
section.s li + li { margin-top: 6px; }
.muted { color: var(--muted); }
.table-wrap { margin-top: 12px; overflow-x: auto; background: var(--surface); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { white-space: nowrap; }
.yes { color: var(--ok); font-weight: 700; }

/* FAQ */
.faq { margin-top: 12px; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Call to action */
.cta { margin-top: 36px; background: var(--ink); color: var(--bg); border-radius: 24px; padding: 24px 20px; }
.cta h2 { color: var(--bg); }
.cta p { margin-top: 8px; opacity: 0.85; }
.cta a.btn { display: inline-block; margin-top: 16px; background: var(--sun); color: #1A1446; font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 14px; }

/* Related pages */
.links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { text-decoration: none; background: var(--surface); padding: 8px 12px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; }
.links a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hub-group { margin-top: 26px; }

footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
