/* The Time tools, on site.css's tokens: the hub's cards, the strip that
   joins the tools, and the zone and language pickers they share. */

.time { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 64px; }
.time-lede { max-width: 44rem; margin: 8px 0 0; color: var(--muted); }

.time-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); margin: 32px 0; }
.time-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.time-card h2 { margin: 0; font-size: 1.2rem; }
.time-card h2 a { color: inherit; text-decoration: none; }
.time-card h2 a:hover, .time-card h2 a:focus-visible { color: var(--accent); text-decoration: underline; }
.time-card-text { margin: 0; flex: 1; }
.time-example { margin: 4px 0 0; font-weight: 600; }
.time-soon { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 0.85rem; font-weight: 600; }
.time-by { margin: 0; color: var(--muted); font-size: 0.88rem; }
.time-card.is-ready { border-color: var(--accent-soft); }
.time-dists { max-width: 44rem; color: var(--muted); font-size: 0.95rem; }

.time-tools { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 24px; font-size: 0.95rem; }
.time-tools a { color: var(--muted); }
.time-tools a[aria-current="page"] { color: var(--text); font-weight: 650; text-decoration: none; }

.time-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 0 0 24px; }
.time-form label { display: block; font-size: 0.88rem; color: var(--muted); margin: 0 0 4px; }
.time-form select, .time-form input { padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; max-width: 100%; }

.time-form .time-field { min-width: 0; max-width: 100%; }
.time-field-text { flex: 1 1 22rem; }
.time-field-text input { width: 100%; font-size: 1.1rem; }
.time-mode { border: 0; padding: 0; margin: 0; }
.time-mode legend { font-size: 0.88rem; color: var(--muted); margin: 0 0 4px; padding: 0; }
.time-mode label { display: block; color: var(--text); font-size: 0.95rem; margin: 0; }
.time-note { max-width: 44rem; color: var(--muted); font-size: 0.9rem; }
.time-result { margin: 8px 0 32px; }
.time-error { padding: 16px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.time-error p { margin: 0 0 6px; }
.time-answer, .time-found { padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.time-answer-words { margin: 0 0 8px; font-size: 1.45rem; font-weight: 650; }
.time-marked { margin: 0 0 14px; color: var(--muted); }
.time-marked mark { background: var(--accent-soft); color: var(--text); border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--accent); }
.time-facts { display: grid; gap: 6px 20px; grid-template-columns: max-content 1fr; margin: 0; }
.time-facts > div { display: contents; }
.time-facts dt { color: var(--muted); }
.time-facts dd { margin: 0; overflow-wrap: anywhere; }
.time-assumed { margin: 0; padding-left: 1.1em; }
.time-found-list { margin: 0; padding-left: 1.4em; }
.time-found-list li { margin: 0 0 6px; }
.time-examples h2 { font-size: 1.1rem; margin: 0 0 8px; }
.time-examples ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.time-runs { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 0.97rem; }
.time-runs caption { text-align: left; color: var(--muted); font-size: 0.88rem; padding: 0 0 6px; }
.time-runs th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.88rem; border-bottom: 1px solid var(--rule); padding: 6px 12px 6px 0; }
.time-runs td { border-bottom: 1px solid var(--rule); padding: 7px 12px 7px 0; vertical-align: top; }
.time-runs td:nth-child(3) { color: var(--muted); white-space: nowrap; }
.time-run-change td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.time-run-note { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); font-size: 0.82rem; }
.time-changes h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.time-change { padding: 10px 14px; margin: 0 0 8px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.time-change p { margin: 0 0 4px; }
.time-ical { margin: 18px 0 0; }
.time-ical summary { cursor: pointer; color: var(--muted); }
.time-ical pre { margin: 8px 0 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; }
.time-business-form { margin: 0 0 12px; }
.time-settings { border: 0; padding: 0; min-width: 0; }
.time-settings select { max-width: 100%; }
.time-settings legend, .time-question legend { font-weight: 650; padding: 0; margin: 0 0 8px; }
.time-questions { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: 8px 0 0; }
.time-question { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 0; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.time-question.is-asked { border-color: var(--accent); }
.time-question .time-field { width: 100%; }
.time-question label { display: block; font-size: 0.88rem; color: var(--muted); margin: 0 0 4px; }
.time-question input { width: 100%; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.time-question .time-check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 0.95rem; }
.time-question .time-check input { width: auto; }
.time-hol-head { font-size: 1.05rem; margin: 18px 0 6px; }
.time-holidays { margin: 0; padding-left: 1.2em; }
.time-holidays li { margin: 0 0 4px; }
.time-share { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 16px; }
.time-share[hidden] { display: none; }
#time-copied { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.time-result[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s 0.15s; }
@media (prefers-reduced-motion: reduce) { .time-result[aria-busy="true"] { transition: none; } }
.time-narrow { display: none; }
.time-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.time-zone-name { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.time-zone-table th[scope="row"] { text-align: left; font-weight: 600; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.time-zone-table td strong { font-size: 1.15rem; }
.time-zone-from th[scope="row"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.time-answer .time-change { margin: 0 0 12px; }
.time-day h2 { font-size: 1.1rem; margin: 26px 0 4px; }
.time-day-scroll { overflow-x: auto; margin: 8px 0 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.time-day-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.time-day-table { border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; min-width: 100%; }
.time-day-table th, .time-day-table td { padding: 4px 12px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.time-day-table thead th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 600; }
.time-day-table tbody th { font-weight: 600; }
.time-day-table td.is-working { background: var(--accent-soft); }
.time-day-table sup { color: var(--muted); margin-left: 2px; }
@media (max-width: 560px) { .time-facts { grid-template-columns: 1fr; } .time-facts dd { margin-bottom: 6px; } .time-runs td:nth-child(3) { white-space: normal; }
  .time-zone-table, .time-zone-table tbody, .time-zone-table tr, .time-zone-table th[scope="row"], .time-zone-table td { display: block; }
  .time-zone-table thead { display: none; }
  .time-zone-table caption { display: block; }
  .time-narrow { display: inline; color: var(--muted); }
  .time-zone-table tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .time-zone-table th[scope="row"], .time-zone-table td { border-bottom: 0; padding: 2px 0; }
  .time-zone-table td:nth-child(3) { white-space: normal; }
  .time-zone-table tr.time-zone-from { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
  .time-zone-from th[scope="row"] { box-shadow: none; padding-left: 0; }
}
