/* The time zone converter and the meeting cost calculator: what site.css does not have. A list of places with an
   office-hours tint, a sentence beside a field when an entry is wrong, the search results and the result grid.
   Both themes through the shared tokens (site.css, style.css, dark.hand.css); logical properties only. */

/* ------------------------------------------------------------------ a sentence beside a field */
.tz-msg { margin: 0; font-size: 14px; line-height: 1.4; color: var(--bad); min-block-size: 0; }
.tz-msg:empty { display: none; }
.tz-hint { margin: 0; font-size: 14px; color: var(--cm-mute); }

/* ------------------------------------------------------------------ the places */
.tz-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tz-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  padding-block: 12px; padding-inline: 14px; border-radius: 14px; border: 1px solid var(--g-hair); background: var(--page); }
.tz-row.tz-work { background: var(--st-tint); }
.tz-row .st-field input { font-variant-numeric: tabular-nums; }
.tz-meta { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--cm-mute); }
.tz-zone { font-weight: 400; color: var(--cm-mute); }
.tz-own { font-size: 13px; color: var(--cm-mute); }

/* ------------------------------------------------------------------ search results */
.tz-found { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tz-found button { font: inherit; font-size: 15px; color: var(--ink); background: var(--cm-pill, var(--st-out));
  border: 1px solid var(--g-hair); border-radius: 999px; padding-block: 6px; padding-inline: 12px; cursor: pointer; }
.tz-found button:focus-visible, .tz-row button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ------------------------------------------------------------------ the sum */
.tz-sum { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tz-sum div { display: flex; flex-direction: column; gap: 2px; }
.tz-sum dt { font-size: 13px; color: var(--cm-mute); }
.tz-sum dd { margin: 0; font-size: 22px; font-weight: 500; color: var(--ink); }
.tz-formula { margin-block: 10px 0; font-size: 14px; color: var(--cm-mute); overflow-wrap: anywhere; }
.tz-formula:empty { display: none; }

@media (min-width: 720px) {
  .tz-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
