/* City-pair pages (/time-difference/**). Layered on styles.css; generated by tools/build-pairs.mjs. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section.tdp { max-width: 820px; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.tdp > .display { margin-bottom: 18px; }
.tdp > .lede { margin-bottom: 32px; }
.tdp > .lede strong { color: var(--fg); }
.tdp h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin: 52px 0 14px; }
.tdp p { color: var(--fg-soft); max-width: 62ch; }
.tdp p strong, .tdp .tdp__cta p { color: inherit; }
.tdp__crumbs { font-size: 14px; color: var(--fg-mute); margin-bottom: 22px; }
.tdp__crumbs a { color: var(--fg-soft); border-bottom: 1px solid var(--line); }
.tdp__crumbs a:hover { color: var(--fg); }
.tdp .pair__offset { font-variant-numeric: tabular-nums; }
.tdp__note { margin-top: 12px; font-size: 14px; color: var(--fg-mute); }

.tdp__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tdp__table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-mute); padding: 8px 12px 8px 0; }
.tdp__table td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); }
.tdp__table td i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 10px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.tdp__table small { color: var(--fg-mute); margin-left: 6px; }
.tdp__table .muted { color: var(--fg-mute); font-size: 14px; }

.tdp .faq { display: block; }

.tdp__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; padding: 26px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.tdp__cta h2 { margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 24px); }
.tdp__cta p { color: var(--fg-soft); font-size: 15.5px; max-width: 46ch; }

.tdp__related, .tdp__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tdp__related a { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--fg-soft); }
.tdp__related a:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.tdp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tdp__card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.tdp__card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.tdp__card span { font-size: 14px; color: var(--fg-mute); }

/* ---------- picker (/time-difference/) ---------- */
.tool { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; margin-bottom: 8px; }
.combo { position: relative; min-width: 0; }
.combo label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 6px; }
.combo input { width: 100%; font: inherit; font-size: 17px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 16px; }
.combo input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.combo ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #14141B; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); max-height: 320px; overflow: auto; }
.combo li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.combo li span { color: var(--fg-mute); font-size: 14px; }
.combo li[aria-selected="true"], .combo li:hover { background: rgba(255,255,255,.08); }
.tool__swap { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg-soft); cursor: pointer; display: grid; place-items: center; transition: color .2s, transform .2s var(--ease); }
.tool__swap:hover { color: var(--fg); transform: rotate(180deg); }
.tool__hint { min-height: 22px; margin: 10px 0 28px; font-size: 14px; color: var(--fg-mute); }
#result > .lede { margin-bottom: 24px; }
@media (max-width: 620px) {
  .tool { grid-template-columns: 1fr; }
  .tool__swap { justify-self: center; transform: rotate(90deg); }
  .tool__swap:hover { transform: rotate(270deg); }
}
.tdp__another { margin-top: 22px; }
.tdp__credit { margin-top: 40px; }
