/* Timezone Overlap Calculator (/timezone-overlap-calculator/, generated by scripts/build-timezone-overlap.mjs).
   Builds on site.css tokens and the shared tool components (.bm-section, .bvr-calc, .bvr-field, .bvr-reset, .bvr-result,
   .bm-scroll, .hc-related). No inline styles anywhere (CSP): js/timezone-overlap.js places the bars through the CSSOM. */

.tzo-intro p { max-width: 760px; margin: 0 0 14px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.tzo-intro p:last-child { margin-bottom: 0; }

/* Timeline: always left-to-right, 0:00 to 24:00 UTC */
.tzo-timeline { margin: 0 0 24px; direction: ltr; }
.tzo-timeline figcaption { margin-bottom: 14px; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.tzo-chart { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 96px; padding-block: 6px; }
.tzo-line__name { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.tzo-line__name small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tzo-track { position: relative; height: 22px; border-radius: 7px; overflow: hidden; background-color: rgba(234, 242, 230, 0.05); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 25% 100%; }
.tzo-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; }
.tzo-band { position: absolute; top: 0; bottom: 0; z-index: 1; box-sizing: border-box; background: rgba(198, 239, 60, 0.16); border-inline: 2px solid var(--lime); border-radius: 4px; pointer-events: none; }
.tzo-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.tzo-c0 { background: #5cc8ff; }
.tzo-c1 { background: #ff9d5c; }
.tzo-c2 { background: #ff8fb1; }
.tzo-c3 { background: #b79cff; }
.tzo-c4 { background: #4fd6b0; }
.tzo-c5 { background: #e8e3d3; }
.tzo-axis { position: relative; height: 18px; margin-top: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tzo-axis span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.tzo-axis span:nth-child(1) { left: 0; transform: none; }
.tzo-axis span:nth-child(2) { left: 25%; }
.tzo-axis span:nth-child(3) { left: 50%; }
.tzo-axis span:nth-child(4) { left: 75%; }
.tzo-axis span:nth-child(5) { right: 0; transform: none; }
.tzo-axis i { font-style: normal; }
.tzo-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.tzo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tzo-legend__band { display: inline-block; width: 14px; height: 12px; box-sizing: border-box; background: rgba(198, 239, 60, 0.16); border-inline: 2px solid var(--lime); border-radius: 3px; }

/* Location rows */
.tzo-rows { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.tzo-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 46px; gap: 12px 14px; align-items: end; }
.tzo-row__name { display: inline-flex; align-items: center; gap: 8px; }
.tzo-remove { width: 46px; height: 46px; padding: 0; font: inherit; font-size: 24px; line-height: 1; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.tzo-remove:hover { color: var(--lime); border-color: var(--lime); }
.tzo-remove:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.tzo-add { margin-top: 18px; }

/* Result */
.tzo-result { margin-top: 22px; }
.tzo-result[data-tone="ok"] { border-inline-start-color: var(--lime); }
.tzo-result[data-tone="none"] { border-inline-start-color: var(--amber); }
.tzo-headline { margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.4px; line-height: 1.2; }
.tzo-result[data-tone="ok"] .tzo-headline { color: var(--lime); }
.tzo-result[data-tone="none"] .tzo-headline { color: var(--amber); }
.tzo-windows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 16.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tzo-windows b { font-weight: 800; }
.tzo-hint { margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; }
.tzo-hint--near { color: var(--muted); }
.tzo-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.tzo-share .bvr-reset { margin-top: 0; }
.tzo-status { color: var(--lime); font-size: 14px; font-weight: 700; }
.tzo-link { flex: 1 1 240px; min-width: 0; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tzo-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.tzo-result .col-note { margin-top: 14px; font-size: 13.5px; }

/* Typical overlap table */
.tzo-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tzo-table th, .tzo-table td { padding: 13px 18px; text-align: start; font-size: 15.5px; }
.tzo-table thead th { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.tzo-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.tzo-table tbody tr:hover > * { background: rgba(198, 239, 60, 0.06); }
.tzo-table tbody th { font-weight: 700; }
.tzo-table td { font-weight: 700; color: var(--lime); white-space: nowrap; }
.tzo-table td[data-none] { color: var(--muted); }
.tzo-table-intro { max-width: 760px; margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* FAQ accordion (native details, no script) */
.tzo-faq { display: grid; gap: 10px; }
.tzo-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.tzo-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; cursor: pointer; list-style: none; }
.tzo-faq summary::-webkit-details-marker { display: none; }
.tzo-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-inline-end: 4px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.tzo-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.tzo-faq summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.tzo-faq summary h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.tzo-faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* Closing block */
.tzo-next { padding-bottom: 56px; }
.tzo-next > p { max-width: 720px; margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.6; }

@media (max-width: 640px) {
  .tzo-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .tzo-row__city { grid-column: 1 / -1; }
  .tzo-add { width: 100%; }
  .tzo-axis i { display: none; }
  .tzo-faq summary { padding: 16px 18px; }
  .tzo-faq details p { padding: 0 18px 18px; }
  .tzo-table th, .tzo-table td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tzo-faq summary::after { transition: none; }
}
