/* Time of Meeting – time zone pair pages (/pst-to-est …). Loaded only by the generated pair pages, after
   assets/tokens.css and assets/planner.css, so it reuses those tokens (--card, --line, --muted, --cyan, --work …). */
.logo-home { display: block; line-height: 0; margin-left: -6px; border-radius: 8px; }
.logo-home img { width: auto; max-width: 100%; display: block; } /* height: planner.css header rules */
.logo-home:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

/* Slim overlap answer. --text is near-white on near-black, and near-black on the light page. */
.pair-h1 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}
/* Usual overlap statement under the H1 (server HTML, the build year's usual values). Plain text,
   --text on the page background for 7:1 contrast in both themes. */
.pair-usual { margin: 0 0 14px; color: var(--text); font-size: 0.95rem; line-height: 1.45; }
.pair-usual p { margin: 0; }
.pair-usual .pair-overlap { background: none; border: 0; border-radius: 0; padding: 0; color: var(--text); font-size: inherit; }
.pair-usual .pair-overlap-note { margin-top: 4px; }
.pair-lead { margin: 0 0 12px; color: var(--text); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.pair-sub { color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-left: 6px; }
html.light .pair-sub,
html.light #pair-now,
html.light .pair-cap,
html.light .pair-key,
html.light #pair-dst,
html.light .pair-side details p { color: var(--slate-700); }
.pair-answer { margin-top: 12px; font-size: 1.12rem; line-height: 1.5; color: var(--muted); }
.pair-answer strong { color: var(--text); font-weight: 700; }
.pair-answer b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Below the planner. */
.pair-info { margin-top: 26px; line-height: 1.5; }
.pair-info h2 { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.pair-overlap {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
    color: var(--muted); font-size: 1rem;
}
.pair-overlap strong { color: var(--text); }
.pair-go:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.pair-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px 40px; margin-top: 26px; }
.pair-dst-note {
    margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
    color: var(--text); font-size: 1rem;
}
.pair-cap { color: var(--muted); font-size: 0.85rem; margin: -4px 0 10px; }
/* The build writes "EST and PST"; the browser adds the date on the same line. Reserve that line. */
#common-cap { min-block-size: 1lh; color: var(--text); }

/* Common times: two short columns. The wrapper scrolls instead of overflowing a narrow column. */
.common-block { margin: 0 0 22px; }
.common-block h2 { margin-bottom: 8px; }
.common-wrap { overflow: auto; max-inline-size: 100%; container-type: inline-size; }
.common-times { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; color: var(--text); }
.common-times caption { caption-side: top; text-align: start; color: var(--text); font-size: 0.9rem; font-weight: 500; margin: 0 0 8px; }
.common-times th, .common-times td { text-align: start; font-size: 0.95rem; font-weight: 600; padding: 4px 8px 4px 0; }
.common-times tbody th { white-space: nowrap; }
.common-times thead th { font-size: 0.8rem; font-weight: 700; }
.common-eq { color: var(--text); font-weight: 500; margin-right: 6px; }
.common-dayshift { color: var(--text); font-size: 0.8rem; font-weight: 700; }

/* Hour table: 24 rows flowed into two columns of 12. Explicit ARIA roles keep it a table for screen readers. */
.pair-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pair-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pair-table tbody { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(12, auto); grid-auto-flow: column; gap: 2px 12px; }
.pair-table tr { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-radius: 8px; padding: 2px 6px; }
.pair-table tr.both { background: color-mix(in srgb, var(--work) 16%, transparent); }
.pair-table tr[aria-current] { box-shadow: inset 0 0 0 1.5px var(--cyan); }
.pair-table th, .pair-table td { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 600; text-align: left; padding: 3px 0; white-space: nowrap; }
/* Below 360px a day-shift pair (e.g. AEST to EST, "→20:00 −1") is ~15px wider than the screen; tighten the spacing there only. */
@media (max-width: 359px) {
    .pair-table tbody { column-gap: 6px; }
    .pair-table tr { padding-inline: 3px; }
    .pair-table th, .pair-table td { gap: 4px; }
}
.pair-arrow { order: -1; color: var(--muted); font-weight: 500; margin-right: -2px; }
.pair-table th::before, .pair-table td::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--night); }
.pair-table .work::before { background: var(--work); }
.pair-table .shoulder::before { background: var(--shoulder); }
.pair-table th button {
    background: none; border: 0; color: inherit; font: inherit; padding: 1px 3px; margin: -1px -3px; border-radius: 5px;
}
.pair-go { min-block-size: 44px; min-inline-size: 44px; }
.pair-table th button:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.pair-dayshift { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.pair-key { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }
.pair-key .sw { width: 10px; height: 10px; margin: 0 4px 0 8px; vertical-align: -1px; }
.pair-key .sw:first-child { margin-left: 0; }
.pair-key .sw.work { background: var(--work); }
.pair-key .sw.shoulder { background: var(--shoulder); }
.pair-key .sw.night { background: var(--night); }

/* DST note + FAQ. */
.pair-side h2 + * { margin-bottom: 22px; }
#pair-dst { color: var(--muted); }
#pair-dst p + ul { margin-top: 6px; }
.pair-changes { list-style: none; display: grid; gap: 6px; }
.pair-changes time { color: var(--text); font-weight: 700; margin-right: 4px; white-space: nowrap; }

/* Related pairs. */
.pair-related { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.pair-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pair-related li a {
    display: inline-flex; align-items: center; min-block-size: 44px; padding-block: 6px; padding-inline: 8px;
    border: 1px solid var(--line); border-radius: 999px;
    color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600; background: var(--card);
}
.pair-related li a:hover { border-color: var(--cyan); }
.pair-related a:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.pair-related p { margin-top: 14px; }
.pair-related p a { color: var(--cyan); text-underline-offset: 3px; }
html.light .pair-related p a { color: var(--link); }

@media (max-width: 760px) {
    .pair-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .pair-info { margin-top: 16px; }
    .pair-grid { margin-top: 16px; gap: 16px; }
    .pair-side h2 + * { margin-bottom: 16px; }
    .pair-related { margin-top: 16px; padding-top: 16px; }
}
@media (max-width: 600px) {
    .pair-h1 { font-size: 1rem; margin-bottom: 8px; }
    .pair-lead { font-size: 1.05rem; }
    .pair-sub { display: block; margin: 2px 0 0; font-size: 0.9rem; }
    .pair-answer { font-size: 1rem; }
    .pair-overlap { font-size: 0.92rem; padding: 12px 14px; }
    .pair-usual .pair-overlap { font-size: inherit; padding: 0; }
    .pair-usual { font-size: 0.9rem; }
}
@media (pointer: coarse) {
    .pair-table th button { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .pair-h1 { transition: none; }
}
@media (forced-colors: active) {
    .pair-h1, .pair-lead { color: CanvasText; }
}
