:root {
  --ink: #1a2238;
  --ink-2: #252f4d;
  --ink-3: #34406a;
  --dusk: #4b3f72;
  --amber: #f4a93b;
  --sky: #9cc3e6;
  --paper: #eef1f7;
  --white: #ffffff;
  --text: #1a2238;
  --muted: #5a6382;
  --line: #d5dbe8;
  --good: #2f8f6a;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
a { color: var(--dusk); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-head { background: var(--ink); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.brand svg { flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: #c9d3ea; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 40px 0 48px; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.here-label { color: var(--sky); font-size: 15px; margin: 0 0 4px; }
.big-time {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(64px, 14vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.big-time .sec { font-size: 0.32em; font-weight: 600; color: var(--amber); letter-spacing: 0; margin-left: 0.15em; }
.big-time .ampm { font-size: 0.26em; font-weight: 600; color: var(--sky); letter-spacing: 0; margin-left: 0.2em; }
.here-date { font-size: 20px; margin: 10px 0 0; color: #dfe5f3; }
.here-zone { font-size: 15px; color: #9aa6c6; margin: 2px 0 0; }

.toggle { display: inline-flex; border: 1px solid var(--ink-3); border-radius: 999px; padding: 3px; background: var(--ink-2); }
.toggle button { appearance: none; border: 0; background: transparent; color: #c9d3ea; font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--amber); color: var(--ink); font-weight: 700; }

/* The world ribbon: one 24-hour day, with each pinned city placed at its local hour */
.ribbon-wrap { margin-top: 40px; }
.ribbon-caption { display: flex; justify-content: space-between; color: #9aa6c6; font-size: 14px; margin-bottom: 10px; gap: 12px; }
.ribbon {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(90deg,
    #121a30 0%, #1b2547 18%, var(--dusk) 24%, #e88f5a 27%, var(--sky) 33%,
    #bcd8f0 50%, var(--sky) 70%, #e88f5a 77%, var(--dusk) 81%, #1b2547 87%, #121a30 100%);
  height: 14px;
}
.ribbon-hours { position: relative; height: 22px; margin-top: 6px; color: #7f8bb0; font-size: 12px; font-variant-numeric: tabular-nums; }
.ribbon-hours span { position: absolute; transform: translateX(-50%); }
.ribbon-pins { position: relative; }
.pin { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; transition: left 0.8s linear; }
.pin-stem { width: 2px; background: #6c78a0; }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); margin-top: -7px; }
.pin-label { font-size: 13px; color: #dfe5f3; margin-top: 4px; }
.pin-label b { font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.pin.is-here .pin-dot { background: var(--amber); width: 16px; height: 16px; margin-top: -9px; }
.pin.is-here .pin-label { color: var(--amber); }

/* ---------- Ad slots ---------- */
.ad { margin: 32px auto; text-align: center; }
.ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
h2 { font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
h3 { font-stretch: 105%; font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }

/* ---------- Clock list ---------- */
.clock-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 320px; max-width: 520px; }
.search input { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text); }
.search input:focus { border-color: var(--dusk); outline: none; }
.results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(26, 34, 56, 0.16); list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow: auto; }
.results[hidden] { display: none; }
.results li { padding: 9px 10px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.results li small { color: var(--muted); }
.results li[aria-selected="true"], .results li:hover { background: var(--paper); }
.results .empty { color: var(--muted); cursor: default; }

.clock-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.clock-row { display: grid; grid-template-columns: 34px 1fr auto auto 40px; align-items: center; gap: 14px; padding: 16px 18px; }
.clock-row + .clock-row { border-top: 1px solid var(--line); }
.clock-row .sky { width: 28px; height: 28px; }
.city-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.city-meta { color: var(--muted); font-size: 14px; }
.city-time { font-stretch: 115%; font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; text-align: right; line-height: 1; }
.city-time small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.city-day { color: var(--muted); font-size: 14px; text-align: right; min-width: 110px; }
.clock-row.is-here { background: #fff8ec; }
.clock-row.is-here .city-name::after { content: "You are here"; font-size: 12px; font-weight: 600; color: #9a5d00; background: #fde6c0; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.remove { appearance: none; border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.remove:hover { background: var(--paper); color: var(--ink); }

/* ---------- Converter ---------- */
.convert-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field select, .field input { font: inherit; font-size: 16px; color: var(--text); padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); min-width: 160px; }
.btn { appearance: none; border: 0; font: inherit; font-weight: 700; padding: 12px 18px; border-radius: var(--radius); background: var(--ink); color: var(--white); cursor: pointer; }
.btn:hover { background: var(--dusk); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }

.convert-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.convert-table th, .convert-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.convert-table th { font-size: 14px; color: var(--muted); font-weight: 600; background: #f7f8fc; }
.convert-table td.t { font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; font-size: 20px; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.tag.work { background: #dcf1e7; color: #1d6a4c; }
.tag.edge { background: #fdf0d8; color: #8a5600; }
.tag.sleep { background: #e5e7f2; color: #4b5375; }
.legend { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.guide article p { margin: 0 0 12px; max-width: 62ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin: 10px 0 0; max-width: 70ch; color: #333c5a; }

/* ---------- Plain pages ---------- */
.page { padding: 56px 0; }
.page .wrap { max-width: 760px; }
.page h1 { font-stretch: 115%; font-weight: 800; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; }
.page h2 { font-size: 24px; margin-top: 32px; }
.page p, .page li { max-width: 68ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #9aa6c6; padding: 36px 0; font-size: 15px; margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.visits { margin: 0; color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.site-foot a { color: #c9d3ea; text-decoration: none; margin-right: 18px; }
.site-foot a:hover { color: var(--white); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav > a:nth-child(n+3) { display: none; }
  .hero { padding-top: 28px; }
  .guide { grid-template-columns: 1fr; }
  .clock-row { grid-template-columns: 28px 1fr auto 34px; gap: 10px; padding: 14px 12px; }
  .clock-row .city-day { grid-column: 2 / 3; grid-row: 2; text-align: left; min-width: 0; }
  .city-time { font-size: 24px; }
  .clock-row.is-here .city-name::after { display: none; }
  .pin-label { font-size: 11px; }
  #converter .convert-table th:nth-child(3), #converter .convert-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pin { transition: none; }
}

/* ---------- City pages ---------- */
.crumbs { color: #9aa6c6; font-size: 14px; margin: 0 0 14px; }
.crumbs a { color: #c9d3ea; }
.city-hero h1.here-label { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.vs-you { color: var(--amber); font-weight: 600; margin: 8px 0 0; }
.city-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
.facts { padding-left: 20px; margin: 12px 0; }
.facts li { margin: 6px 0; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.related ul, .city-list { list-style: none; padding: 0; margin: 10px 0 0; }
.related li, .city-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.related a, .city-list a { font-weight: 600; text-decoration: none; }
.related a:hover, .city-list a:hover { text-decoration: underline; }
.city-list span { color: var(--muted); font-size: 14px; float: right; font-variant-numeric: tabular-nums; }
.page .wrap.wide { max-width: var(--wrap); }
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 12px; }
.region-grid h2 { font-size: 24px; }
.popular { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.popular a { font-weight: 600; text-decoration: none; }
.popular a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .city-grid, .related, .region-grid { grid-template-columns: 1fr; gap: 28px; }
  .popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Time difference pages ---------- */
.pair-clocks { display: flex; gap: 48px; flex-wrap: wrap; margin: 12px 0 4px; }
.pair-city { color: var(--sky); margin: 0; font-size: 16px; }
.pair-time { font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 9vw, 88px); line-height: 1; letter-spacing: -0.03em; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.hour-table td { padding: 8px 12px; }
.hour-table td.t { font-size: 16px; white-space: nowrap; }
.hour-table small { color: var(--muted); font-weight: 600; }

/* ---------- Flight arrival calculator ---------- */
.fl-intro { color: #dfe5f3; margin: 8px 0 0; max-width: 60ch; }
.fl-form { align-items: end; }
.fl-swap { padding: 10px 14px; font-size: 18px; line-height: 1; }
.fl-dur { display: flex; gap: 10px; }
.fl-dur label { display: flex; align-items: center; gap: 6px; }
.fl-dur input { width: 84px; min-width: 0 !important; }
.fl-result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 4px 0 14px; }
.fl-legs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.fl-label { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.fl-time { font-stretch: 125%; font-weight: 800; font-size: clamp(36px, 7vw, 64px); line-height: 1; letter-spacing: -0.03em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.fl-time.is-arrival { color: var(--dusk); }
.fl-day { margin: 0; font-weight: 600; }
.fl-arrow { font-size: 30px; color: var(--amber); }
.fl-shift { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f7; color: var(--muted); margin-left: 4px; vertical-align: 2px; }
.fl-shift.is-change { background: var(--amber); color: var(--ink); }
.fl-summary { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; }
.fl-routes span { color: var(--muted); font-size: 14px; float: right; }
.fl-promo { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.fl-promo h2 { font-size: 26px; margin: 0 0 4px; }
.fl-promo p { margin: 0; color: var(--muted); max-width: 60ch; }
.fl-promo .btn { text-decoration: none; }
@media (max-width: 760px) {
  .fl-legs { grid-template-columns: 1fr; gap: 14px; }
  .fl-arrow { transform: rotate(90deg); width: max-content; }
  .fl-form .field, .fl-form select, .fl-form input[type=date], .fl-form input[type=time] { width: 100%; }
  .fl-form > .field { flex: 1 1 100%; }
}

/* ---------- Time zones, converters, DST, meeting planner ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 0; max-width: 720px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.zone-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.zone-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.zone-grid a { text-decoration: none; color: var(--text); font-size: 15px; }
.zone-grid a strong { display: block; color: var(--dusk); font-size: 18px; }
.zone-grid [data-time] { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dst-answer { color: #dfe5f3; font-size: 19px; max-width: 62ch; margin: 10px 0 0; }
.dst-table td, .dst-table th[scope=row] { vertical-align: top; }
.dst-table small { color: var(--muted); }
.cv-out { margin: 0; font-size: 18px; flex: 1 1 320px; }
.cv-out strong { font-stretch: 112%; font-size: 30px; color: var(--dusk); }
.cv-out span { color: var(--muted); }
.mp-form .field { flex: 1 1 200px; }
.mp-form select { width: 100%; min-width: 0; }
.mp-best { font-size: 17px; margin: 0 0 14px; }
.mp-scroll { overflow-x: auto; }
.mp-table td { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; padding: 8px 14px; }
.mp-table td small { color: var(--muted); font-weight: 600; }
.mp-work { background: #e3f3ea; }
.mp-edge { background: #fbf0d9; }
.mp-night { background: #eceef4; color: var(--muted); }
.mp-best-row td { box-shadow: inset 0 2px 0 var(--good), inset 0 -2px 0 var(--good); }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-grid a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); }
.tool-grid a:hover { border-color: var(--dusk); }
.tool-grid strong { display: block; font-stretch: 110%; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.tool-grid span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cv-out strong { font-size: 24px; } }
@media (max-width: 760px) {
  .city-grid { grid-template-columns: minmax(0, 1fr); }
  .zone-table th:nth-child(4), .zone-table td:nth-child(4) { display: none; }
  .zone-table small { display: block; }
}
.hero { overflow-x: clip; }
.convert-table td.t { white-space: nowrap; }
a.btn { text-decoration: none; display: inline-block; }
a.btn:hover { color: var(--white); }

/* ---------- countdowns & game releases ---------- */
.cd { margin: 18px 0 6px; }
.cd-units { display: flex; gap: 12px; flex-wrap: wrap; }
.cd-units span { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 12px 10px 10px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #c9d3ea; }
.cd-units b { font-size: 46px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; font-stretch: 85%; margin-bottom: 4px; }
.cd-status { font-size: 28px; font-weight: 800; color: #f4a93b; margin: 6px 0 0; }
.cd-status:empty { display: none; }
.cd-sub { color: #c9d3ea; margin: 12px 0 0; }
.cd-sub strong { color: #fff; }
.cd-plat { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.cd-plat span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(244,169,59,.16); color: #f8c97c; }
.cd-note { padding: 12px 14px; border-left: 3px solid #f4a93b; background: rgba(244,169,59,.08); border-radius: 6px; }
.cd-extra { margin-bottom: 28px; padding: 16px; border-radius: 12px; background: #1a2238; color: #fff; }
.cd-extra h3 { margin: 0; color: #fff; }
.cd-extra .legend { color: #c9d3ea; }
.cd-extra .cd-units span { min-width: 64px; }
.cd-extra .cd-units b { font-size: 30px; }
.cd-custom { margin-top: 18px; padding: 18px; border-radius: 12px; background: #1a2238; color: #fff; }
.cd-custom h3 { margin: 0; color: #fff; }
.cd-custom .legend { color: #c9d3ea; }
.cd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cd-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; border: 1px solid #e3e7ef; text-decoration: none; color: inherit; background: #fff; }
.cd-list a:hover { border-color: #f4a93b; }
.cd-list strong { font-size: 16px; }
.cd-list span { font-size: 14px; color: #5b6478; }
.cd-list em { font-style: normal; font-weight: 700; color: #c2740d; font-variant-numeric: tabular-nums; }
.cd-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cd-list, .cd-games { grid-template-columns: minmax(0, 1fr); }
  .cd-units { gap: 8px; }
  .cd-units span { min-width: 0; flex: 1; padding: 10px 4px 8px; font-size: 11px; }
  .cd-units b { font-size: 32px; }
  .cd-extra .cd-units b { font-size: 24px; }
}
.brand { white-space: nowrap; }
.nav { align-items: center; }
.nav a { white-space: nowrap; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 15px; font-weight: 600; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.menu[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.menu summary:hover, .menu[open] summary { background: rgba(255,255,255,.18); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; display: grid; grid-template-columns: repeat(3, max-content); gap: 18px 40px; padding: 18px 24px; background: #fff; color: #1a2238; border-radius: 14px; box-shadow: 0 18px 50px rgba(10,16,32,.28); }
.menu-panel h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8a93a8; }
.menu-panel a { display: block; padding: 6px 0; color: #1a2238; text-decoration: none; font-size: 15px; }
.menu-panel a:hover { color: #c2740d; }
.nav .menu-panel a { color: #1a2238; }
@media (max-width: 860px) {
  .nav-quick { display: none; }
  .nav a.nav-quick, .nav a.nav-quick:nth-child(n+3) { display: none; }
  .menu-panel { position: fixed; left: 12px; right: 12px; top: 64px; grid-template-columns: minmax(0, 1fr); gap: 10px; max-height: calc(100vh - 80px); overflow-y: auto; }
}
/* trailers */
.trailer-block h2 { margin-top: 0; }
.yt, .yt-frame { display: block; width: 100%; max-width: 820px; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; overflow: hidden; background: #000; }
.yt { position: relative; padding: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .15s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: rgba(20,20,20,.82); transition: background .15s; }
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: #e62117; }
.yt-play::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.cd-list a.has-thumb img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 6px; margin-bottom: 6px; background: #e3e7ef; }
/* sunrise & sunset */
.sun-date { color: #c9d3ea; margin: 6px 0 14px; font-size: 17px; }
.sun-big { display: flex; flex-wrap: wrap; gap: 12px; }
.sun-big > div { display: flex; flex-direction: column; min-width: 150px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.sun-big small { color: #c9d3ea; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.sun-big b { color: #fff; font-size: 38px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; font-stretch: 88%; white-space: nowrap; }
.sun-ico { display: block; width: 34px; height: 17px; margin-bottom: 8px; border-radius: 34px 34px 0 0; background: #f4a93b; position: relative; }
.sun-ico::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -3px; height: 3px; background: #9cc3e6; border-radius: 2px; }
.sun-down { background: #e56b3d; }
.sun-next { color: #f8c97c; font-weight: 700; margin: 12px 0 0; min-height: 1.2em; }
.sun-more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; color: #c9d3ea; }
.sun-more b { color: #fff; margin-left: 4px; }
.sun-sub { color: #c9d3ea; margin: 8px 0 0; }
.sun-sub a { color: #9cc3e6; }
.sun-sub:empty { display: none; }
.sun-table small { color: #8a93a8; }
/* country & state pages */
.tz-rows { display: grid; gap: 10px; margin: 16px 0 6px; max-width: 760px; }
.tz-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.tz-row strong { display: block; color: #fff; font-size: 17px; }
.tz-row span { color: #c9d3ea; font-size: 14px; }
.tz-time { color: #fff; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zone-card { padding: 14px 16px; margin: 0 0 12px; border: 1px solid #e3e7ef; border-radius: 10px; background: #fff; }
.zone-card h3 { margin: 0 0 6px; font-size: 18px; }
.zone-card h3 small { font-weight: 500; color: #5b6478; font-size: 14px; margin-left: 6px; }
.zone-card p { margin: 6px 0 0; }
.state-list small { color: #c2740d; font-size: 12px; }
@media (max-width: 760px) {
  .sun-big > div { min-width: 0; flex: 1 1 40%; padding: 12px 14px; }
  .sun-big b { font-size: 28px; }
  .tz-time { font-size: 24px; }
  .tz-row { padding: 10px 12px; }
}
.sun-gold { color: #c9d3ea; margin: 10px 0 0; }
.sun-gold b { color: #f8c97c; }
/* menu with 5 groups */
.menu-panel { grid-template-columns: repeat(5, max-content); gap: 18px 32px; }
@media (max-width: 1100px) and (min-width: 861px) { .menu-panel { grid-template-columns: repeat(3, max-content); } }
/* tools */
.tm { max-width: 720px; padding: 22px; border-radius: 16px; background: #1a2238; color: #fff; text-align: center; }
.tm-display { font-size: clamp(64px, 16vw, 132px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; font-stretch: 85%; letter-spacing: -.02em; margin: 6px 0; }
.tm-small { font-size: clamp(44px, 10vw, 72px); }
.tm-msg { color: #f8c97c; font-weight: 700; min-height: 1.3em; margin: 4px 0 10px; }
.tm-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tm .btn { min-width: 110px; }
.tm .legend { color: #9aa5c2; margin-top: 14px; }
.tm-set { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 12px; }
.tm-set label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #c9d3ea; }
.tm-set input { width: 96px; padding: 8px 10px; font-size: 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; text-align: center; }
.tm-set input[type=time] { width: 150px; }
.tm-done { animation: tmflash 1s steps(2) infinite; }
@keyframes tmflash { 50% { background: #7a2a1d; } }
@media (prefers-reduced-motion: reduce) { .tm-done { animation: none; background: #7a2a1d; } }
.tm:fullscreen { max-width: none; display: flex; flex-direction: column; justify-content: center; }
.tm:fullscreen .tm-display { font-size: 24vw; }
.btn-ghost { background: transparent !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; }
.calc .btn-ghost, .convert-form .btn-ghost { border-color: #c9d0dd !important; color: #1a2238 !important; }
.btn-small { padding: 4px 12px; font-size: 14px; }
.sw-laps { list-style: none; padding: 0; margin: 14px auto 0; max-width: 420px; text-align: left; }
.sw-laps li { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }
.pm[data-mode="short"], .pm[data-mode="long"] { background: #1d3b34; }
.pm-label { font-size: 18px; font-weight: 700; color: #f8c97c; margin: 0; }
.preset-list li span { color: #5b6478; font-size: 14px; margin-left: 6px; }
.calc-out { margin: 14px 0 6px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e3e7ef; }
.calc-out:empty { display: none; }
.calc-out strong { display: block; font-size: 30px; font-weight: 800; color: #1a2238; line-height: 1.15; }
.calc-out span { display: block; color: #5b6478; margin-top: 4px; }
.big-out strong { font-size: 40px; }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.calc-inline { align-self: end; padding: 10px 0; font-weight: 700; font-size: 20px; }
.hc-table input { width: 100%; min-width: 92px; padding: 6px 8px; border: 1px solid #c9d0dd; border-radius: 6px; font: inherit; }
.hc-table td[data-total] { font-weight: 700; white-space: nowrap; }
.jl-out { margin-top: 16px; }
.jl-steps li { margin: 6px 0; }
.big-inline { font-size: 1.6em; color: #fff; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
tr.now-row { background: #fff6e5; }
/* calendar */
.cal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cal-month h3 { margin: 0 0 6px; font-size: 17px; }
.cal-month table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-month th { color: #8a93a8; font-weight: 600; font-size: 12px; padding: 3px 0; }
.cal-month td { padding: 4px 0; }
.cal-month td.hol { background: #fde7c4; border-radius: 4px; font-weight: 700; }
@media (max-width: 900px) { .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cal-grid { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .site-head, .site-foot, .hero .crumbs, .faq, .btn, .block:not(.cal-block), ins.adsbygoogle { display: none !important; }
  .hero { background: none !important; color: #000 !important; padding: 0 !important; }
  .here-label { color: #000 !important; }
  .cal-grid { grid-template-columns: repeat(4, 1fr); }
}
/* moon */
.moon-now { display: flex; gap: 18px; align-items: center; margin-top: 8px; color: #c9d3ea; line-height: 1.7; }
.moon-now b { color: #fff; }
.moon-pic { width: 120px; height: 120px; flex: none; }
.moon-pic svg, .moon-ico svg { width: 100%; height: 100%; display: block; }
.moon-ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.ecl-solar h3::before { content: "☀ "; color: #f4a93b; }
.ecl-lunar h3::before { content: "☾ "; color: #8a93a8; }
@media (max-width: 760px) {
  .tm { padding: 16px; }
  .tm-set input { width: 78px; font-size: 18px; }
  .calc-out strong { font-size: 24px; }
  .big-out strong { font-size: 28px; }
  .moon-pic { width: 88px; height: 88px; }
}
.tm .btn:not(.btn-ghost) { background: #f4a93b; color: #1a2238; }
.tm .btn:not(.btn-ghost):hover { background: #f8c97c; }
.hero .btn:not(.btn-ghost) { background: #f4a93b; color: #1a2238; }
.fl-intro a { color: #9cc3e6; }
/* open menu: backdrop catches clicks; only the menu scrolls */
html.menu-open { overflow: hidden; }
.menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 49; background: rgba(10,16,32,.25); cursor: default; touch-action: none; }
.menu summary { position: relative; z-index: 51; }
.menu-panel { max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 860px) {
  .menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); padding: 16px 18px; }
  .menu-panel a { padding: 7px 0; }
}
@media (max-width: 420px) { .menu-panel { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Killing-Time game (opens from the clock in the logo) ---------- */
.brand .kt-clock { cursor: pointer; transition: transform .25s; border-radius: 50%; }
.brand .kt-clock:hover { transform: rotate(-20deg) scale(1.12); }
.brand .kt-clock:focus-visible { outline: 2px solid #f4a93b; outline-offset: 3px; }
body.kt-open { overflow: hidden; }
#kt-game { position: fixed; inset: 0; z-index: 2147483000; background: #070b1a; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
#kt-game canvas { display: block; width: 100%; height: 100%; }
#kt-game .ktg-safe, #kt-game .ktg-safeb { position: absolute; top: 0; left: 0; width: 1px; height: env(safe-area-inset-top, 0px); pointer-events: none; }
#kt-game .ktg-safeb { height: env(safe-area-inset-bottom, 0px); }
#kt-game .ktg-top { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; display: flex; gap: 8px; z-index: 2; }
#kt-game .ktg-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 17px; display: grid; place-items: center; cursor: pointer; padding: 0; }
#kt-game .ktg-boost { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 70px; height: 70px; border-radius: 50%; border: 3px solid #4d7c0f; background: rgba(77,124,15,.25); color: #d9f99d; font: 900 13px system-ui, sans-serif; letter-spacing: .05em; z-index: 2; opacity: .55; touch-action: none; transition: transform .1s, opacity .15s; }
#kt-game .ktg-boost.ready { opacity: 1; border-color: #a3e635; box-shadow: 0 0 18px rgba(163,230,53,.45); }
#kt-game .ktg-boost.on { transform: scale(.92); background: rgba(163,230,53,.55); color: #1a2e05; }
@media (hover: hover) and (pointer: fine) { #kt-game .ktg-boost { display: none; } }
@media not ((hover: hover) and (pointer: fine)) { #kt-game .ktg-keys { display: none; } }
#kt-game .ktg-screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 3; background: rgba(5,8,20,.55); }
#kt-game .ktg-screen[hidden] { display: none; }
#kt-game .ktg-card { width: min(380px, 100%); max-height: 100%; overflow: auto; text-align: center; color: #eef3ff; background: linear-gradient(160deg, #1a2550, #0b1228); border: 1px solid rgba(244,169,59,.4); border-radius: 22px; padding: 22px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); font-family: system-ui, sans-serif; animation: ktIn .3s ease; }
@keyframes ktIn { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
#kt-game .ktg-card h2 { margin: 4px 0 10px; font: 900 26px system-ui, sans-serif; letter-spacing: .06em; color: #fff; text-shadow: 0 0 18px rgba(244,169,59,.75); }
#kt-game .ktg-logo { font-size: 38px; letter-spacing: -6px; }
#kt-game .ktg-card p { margin: 8px 0; line-height: 1.4; font-size: 15px; color: #eef3ff; }
#kt-game .ktg-small { font-size: 13px !important; color: #9cc3e6 !important; }
#kt-game .ktg-score { font: 900 48px system-ui, sans-serif; color: #facc15; margin: 4px 0; }
#kt-game .ktg-dist { font-size: 17px !important; color: #fff7e6 !important; margin: 2px 0 6px !important; }
#kt-game .ktg-pows { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; text-align: left; font-size: 12px; font-weight: 700; }
#kt-game .ktg-pows li { display: flex; align-items: center; gap: 7px; }
#kt-game .ktg-pows span { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
#kt-game .ktg-go { display: block; width: 100%; margin: 14px 0 6px; padding: 14px; border: 0; border-radius: 14px; background: linear-gradient(90deg, #f4a93b, #ef6b3b, #d6336c); color: #fff; font: 900 18px system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
#kt-game .ktg-alt { display: block; width: 100%; padding: 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: transparent; color: #eef3ff; font: 700 15px system-ui, sans-serif; cursor: pointer; }
.kt-play { display: inline-block; margin-top: 8px; padding: 14px 26px; border: 0; border-radius: 14px; background: linear-gradient(90deg, #f4a93b, #ef6b3b, #d6336c); color: #fff; font: 900 18px system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
/* ---------- World time zone globe (/time-zone-map/) ---------- */
.tzm-block { padding-top: 18px; }
.tzm { background: #070b1a; border-radius: 16px; padding: 10px; color: #e7eefc; box-shadow: 0 18px 50px rgba(10,16,32,.25); }
.tzm-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tzm-bar { justify-content: space-between; margin-bottom: 8px; }
.tzm-seg { display: inline-flex; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px; gap: 2px; }
.tzm button { border: 0; background: transparent; color: #cfdaf3; font: 600 14px/1 system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tzm button:hover { background: rgba(255,255,255,.08); color: #fff; }
.tzm button[aria-pressed="true"] { background: #f4a93b; color: #1a2238; }
.tzm-stage { position: relative; height: min(72vh, 640px); min-height: 360px; border-radius: 12px; overflow: hidden; touch-action: none; cursor: grab; background: #070b1a; user-select: none; -webkit-user-select: none; }
.tzm-stage:active { cursor: grabbing; }
.tzm-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tzm-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tzm-lbl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; white-space: nowrap; font: 600 12px/1.1 system-ui, sans-serif; color: #fff; text-decoration: none; pointer-events: auto; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9); will-change: transform; }
.tzm-lbl i { width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px #ffd27a; margin-left: -3.5px; flex: none; }
.tzm-lbl.night i { background: #9cc3e6; box-shadow: 0 0 6px #9cc3e6; }
.tzm-lbl b { font-weight: 600; opacity: .85; }
.tzm-lbl span { font-weight: 800; color: #ffe2a8; }
.tzm-lbl.night span { color: #cfe3ff; }
.tzm-lbl:hover b { opacity: 1; text-decoration: underline; }
.tzm-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #9cc3e6; font-weight: 600; text-align: center; padding: 20px; }
.tzm-status[hidden] { display: none; }
.tzm-card { position: absolute; left: 12px; bottom: 12px; width: min(330px, calc(100% - 24px)); background: rgba(12,18,40,.94); border: 1px solid rgba(244,169,59,.45); border-radius: 14px; padding: 14px 16px; color: #e7eefc; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.tzm-card[hidden] { display: none; }
.tzm-card .tzm-x { position: absolute; right: 6px; top: 6px; padding: 6px 9px; }
.tzm-big { font: 800 26px/1.1 system-ui, sans-serif; color: #fff; }
.tzm-off { margin-top: 4px; color: #9cc3e6; font-size: 13px; }
.tzm-off b { color: #f4a93b; }
.tzm-places, .tzm-dst { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #cfdaf3; }
.tzm-go { display: inline-block; margin-top: 10px; color: #f4a93b; font-weight: 700; text-decoration: none; }
.tzm-timebar { margin-top: 10px; flex-wrap: nowrap; }
.tzm-timebar input[type=range] { flex: 1; min-width: 80px; accent-color: #f4a93b; }
.tzm-timebar output { font: 600 13px system-ui, sans-serif; color: #cfdaf3; min-width: 150px; text-align: right; }
.tzm-legend { margin-top: 10px; font-size: 12px; color: #9cc3e6; }
.tzm-legend > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tzm-legend [hidden] { display: none !important; }
.tzm-grad { width: 180px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, hsl(200,60%,66%), hsl(260,60%,66%), hsl(320,60%,66%), hsl(20,60%,66%), hsl(80,60%,66%), hsl(140,60%,66%), hsl(200,60%,66%)); }
.tzm-legend em { font-style: normal; opacity: .8; flex-basis: 100%; }
.tzm-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tzm.tzm-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; display: flex; flex-direction: column; padding: 8px; }
.tzm.tzm-full .tzm-stage { flex: 1; height: auto; }
body.tzm-lock { overflow: hidden; }
.tzm-changes { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.tzm-changes li { display: grid; grid-template-columns: 150px 1fr; gap: 2px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.tzm-date { font-weight: 800; grid-row: span 2; }
.tzm-how { color: var(--muted); font-size: 14px; }
.tzm-how.fwd::before { content: "\2191  "; color: #2f8f6a; font-weight: 800; }
.tzm-how.back::before { content: "\2193  "; color: #c2740d; font-weight: 800; }
@media (max-width: 640px) {
  .tzm { padding: 6px; border-radius: 12px; }
  .tzm button { padding: 7px 9px; font-size: 13px; }
  .tzm-bar { justify-content: center; }
  .tzm-stage { height: 64vh; min-height: 320px; }
  .tzm-timebar output { min-width: 0; font-size: 12px; }
  .tzm-timebar { flex-wrap: wrap; }
  .tzm-timebar input[type=range] { order: 3; flex-basis: 100%; }
  .tzm-changes li { grid-template-columns: 1fr; }
  .tzm-date { grid-row: auto; }
  .tzm-lbl { font-size: 11px; }
}
/* homepage mini globe */
.tzm-mini .tzm-stage { height: 440px; min-height: 0; touch-action: pan-y; }
.tzm-minibar { margin-top: 10px; justify-content: flex-start; }
.tzm-open { margin-left: auto; color: #1a2238; background: #f4a93b; font: 700 14px/1 system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.tzm-open:hover { background: #ffbf5e; color: #1a2238; }
@media (max-width: 640px) { .tzm-mini .tzm-stage { height: 360px; } .tzm-open { margin-left: 0; flex-basis: 100%; text-align: center; } }
.tzm-mini .tzm-stage { cursor: pointer; }
/* globe in the homepage hero (right of the big clock) */
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tzm.tzm-hero { background: none; box-shadow: none; padding: 0; border-radius: 50%; }
.tzm-hero .tzm-stage { width: 300px; height: 300px; min-height: 0; border-radius: 50%; background: #1a2238; box-shadow: 0 0 40px rgba(110,168,220,.25); }
.tzm-hero .tzm-status { font-size: 13px; }
.tzm-hero .tzm-lbl { font-size: 11px; }
.hero-side .tzm-open { margin: 0; }
@media (max-width: 860px) {
  .hero-side { width: 100%; }
  .tzm-hero .tzm-stage { width: min(280px, 78vw); height: min(280px, 78vw); }
  .hero-side .tzm-open { flex-basis: auto; }
}
.hero-top:has(.hero-side) { align-items: center; }
.tzm-lbl.flip i { order: 3; margin-left: 0; margin-right: -3.5px; }
/* clock-change hint on the homepage */
.dst-soon { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(244,169,59,.15); color: #ffd28a; font-weight: 700; font-size: 14px; text-decoration: none; }
.dst-soon:hover { background: rgba(244,169,59,.28); color: #fff; }
.dst-soon[hidden] { display: none; }
.dst-next { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 18px; }
.dst-next a { font-weight: 700; }
/* clock-change pages */
.cc-mine { margin-top: 18px; }
.cc-mine .cd-sub { color: #cfdaf3; }
.cc-none { color: #ffd28a; }
/* widgets page */
.wg-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.wg-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.wg-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg-lab { font-weight: 700; min-width: 64px; }
.wg-seg { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.wg-seg label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.wg-form [hidden] { display: none !important; }
.wg-form select { width: 100%; }
.wg-out h2 { margin: 0 0 10px; font-size: 18px; }
.wg-preview { padding: 22px; border-radius: 14px; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 22px 22px; margin-bottom: 20px; display: flex; justify-content: center; }
.wg-preview.light { background: repeating-conic-gradient(#e3e8f2 0 25%, #f4f6fb 0 50%) 0 0 / 22px 22px; }
#wg-code { width: 100%; box-sizing: border-box; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; margin-bottom: 10px; }
@media (max-width: 760px) { .wg-grid { grid-template-columns: 1fr; } }
/* narrow hour tables on phones */
@media (max-width: 760px) { .hour-table th, .hour-table td { padding: 8px 6px; } .hour-table .tag { font-size: 12px; padding: 2px 6px; } }
