/* Rates, calculator tabs and the office section. Loads after base.css and daylight.css. */

/* Rates: the reason to call sits beside the board */
.rates { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.rates__text { position: sticky; top: 110px; }
.rates__text p { margin: 14px 0 28px; color: var(--fg2); font-size: 1.1rem; }
.rates__board { padding: clamp(20px, 2.8vw, 40px); border: 1px solid var(--line); border-radius: 32px; background: #fff; box-shadow: var(--lift); }
.rates__status { display: flex; align-items: baseline; gap: 10px; font-size: .95rem; font-weight: 600; }
.rates__status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--field-line); transform: translateY(-1px); }
[data-state="live"] .rates__status::before { background: var(--orange); box-shadow: 0 0 0 5px rgba(238, 75, 43, .16); }
[data-state="snapshot"] .rates__status::before { background: var(--amber); }
.rates__table { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates__table th, .rates__table td { padding: 15px 0 15px 16px; text-align: right; }
.rates__table th:first-child { padding-left: 0; text-align: left; }
.rates__table thead th { padding-top: 6px; padding-bottom: 10px; font-size: .85rem; font-weight: 600; color: var(--fg2); }
.rates__table tbody tr { border-top: 1px solid var(--line); }
.rates__table tbody th { font-weight: 700; }
.rates__ours { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1; letter-spacing: -.02em; }
.rates__banks { color: var(--fg2); font-size: 1.05rem; font-weight: 500; }
.rates__fine { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.5; color: var(--fg2); }
[data-state="off"] .rates__fine { display: none; }

/* Calculators: one card, seven tabs */
.calc__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.calc__tabs button { min-height: 46px; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; font-weight: 650; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.calc__tabs button:hover { border-color: var(--ink); }
.calc__tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.calc__body { align-items: start; }
.calc__form { align-content: start; }
.calc__form label { display: flex; flex-direction: column; justify-content: flex-end; } /* fields stay level when one label wraps */
.calc__out { container-type: inline-size; }
.calc__pay { white-space: nowrap; font-size: clamp(2rem, 9vw, 3.4rem); }
@supports (width: 1cqi) { .calc__pay { font-size: clamp(1.6rem, calc(100cqi / (var(--len, 7) * .64)), 5rem); } }
.calc__sched { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.calc__sched caption { padding-bottom: 8px; text-align: left; font-weight: 600; }
.calc__sched th, .calc__sched td { padding: 9px 0 9px 10px; border-top: 1px solid var(--out-line, var(--line)); text-align: right; font-weight: 500; }
.calc__sched th:first-child { padding-left: 0; text-align: left; }
.calc__sched thead th { font-size: .82rem; opacity: .8; }
.calc__note { min-height: 0; line-height: 1.5; }

/* Office: the real front door, then how to reach it */
.about { align-items: center; row-gap: clamp(20px, 3vw, 36px); }
.about__photo img { aspect-ratio: 5 / 6; max-height: 680px; object-position: 50% 30%; }
.place { display: grid; gap: 14px; }
.visit { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 14px; }
.visit__card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; padding: clamp(26px, 3vw, 44px); border-radius: var(--r); background: var(--ink); color: #fff; --btn-bg: linear-gradient(120deg, var(--orange), var(--amber)); --btn-fg: var(--ink); --accent: var(--amber); }
.visit__card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.08; }
.visit__addr { margin-top: 14px; font-size: 1.1rem; font-weight: 600; }
.visit__hint { margin-top: 8px; color: #c3c6cf; }
.visit__map { display: block; width: 100%; height: 100%; min-height: clamp(320px, 34vw, 460px); border: 0; border-radius: var(--r); background: var(--surface); }

@media (max-width: 900px) {
  .rates, .visit { grid-template-columns: 1fr; }
  .rates__text { position: static; }
  .about__photo img { aspect-ratio: 4 / 5; max-height: 560px; }
  .visit__map { height: 340px; min-height: 0; }
}
@media (max-width: 760px) {
  .calc__tabs button { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
  .rates__table th, .rates__table td { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .calc__tabs button { transition: none; }
}
