/* Renter tools: save, shortlist, monthly cost, price watch, floor premium, sun, commute, compare,
   unit search, saved list, tool pages and the tower report. Same file on Austin, Dallas and Houston;
   only the token block below changes per site (docs/PORTING.md). */

/* ---- per site tokens (Dallas: navy, parchment and brass) ---- */
:root {
  --rt-ink: var(--ink, #142333);
  --rt-muted: var(--muted, #4c5662);
  --rt-ground: var(--ground, #f7f4ed);
  --rt-surface: #fff;
  --rt-soft: var(--surface, #efeadf);
  --rt-line: var(--stone, #e2dbcc);
  --rt-accent: var(--lake, #7a5c22);
  --rt-accent-ink: #fff;
  --rt-btn: var(--primary, #142333);
  --rt-btn-ink: var(--primary-ink, #f7f4ed);
  --rt-heart: #a3392b;
  --rt-c0: #142333; --rt-c1: #7a5c22; --rt-c2: #4f7a6a; --rt-c3: #8b6f9e;
  --rt-sun: #d99a2b; --rt-sun-w: #efcf8e; --rt-day: #ece6d8;
  --rt-font-ui: var(--font-ui, Manrope, "Helvetica Neue", Arial, sans-serif);
  --rt-font-head: var(--font-heading, "EB Garamond", Georgia, serif);
  --rt-radius: 4px;
  --rt-ease: cubic-bezier(.22, 1, .36, 1);
}
/* ---- end per site tokens ---- */

.rt-block, .rt-page, .rt-pill, .rt-toast { font-family: var(--rt-font-ui); color: var(--rt-ink); }
.rt-block :focus-visible, .rt-page :focus-visible, .rt-pill :focus-visible, .rt-save:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }

/* ---- blocks inside tower page sections ---- */
.rt-cost-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 980px) { .rt-cost-grid { grid-template-columns: 1.1fr 1fr; } .rt-cost-grid .rt-cost { grid-row: span 2; } }
.rt-block { background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: clamp(1.1rem, 2.5vw, 1.75rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.rt-cost-grid .rt-block { margin-top: 0; }
.rt-block h3 { font-family: var(--rt-font-head); font-size: 1.3rem; line-height: 1.2; margin: 0 0 .6rem; }
.rt-answer { font-size: 1rem; line-height: 1.55; margin: 0 0 1rem; max-width: 62ch; }
.rt-thin { color: var(--rt-muted); font-size: .9375rem; margin: 0; }
.rt-block .fine, .rt-page .fine { font-size: .875rem; line-height: 1.5; color: var(--rt-muted); margin: .9rem 0 0; }
.rt-block .fine a, .rt-page .fine a { color: var(--rt-accent); text-underline-offset: 3px; }
.rt-total { display: block; font-family: var(--rt-font-head); font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rt-total-l { display: inline-block; margin: .35rem .5rem 0 0; font-weight: 600; }
.rt-total-s { display: block; margin-top: .5rem; color: var(--rt-muted); font-size: .9375rem; }
.rt-calc { display: grid; gap: .75rem; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 1.1rem 0 0; }
.rt-calc > label { grid-column: span 2; }
.rt-calc > label:nth-child(-n+2) { grid-column: 1 / -1; }
.rt-calc label, .rt-fields label, .rt-full, .rt-inline label { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--rt-muted); }
.rt-calc > .rt-check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--rt-ink); font-size: .9375rem; line-height: 1.45; }
.rt-check input { width: 20px; height: 20px; margin: .1rem 0 0; flex: none; accent-color: var(--rt-accent); }
.rt-check q { font-style: normal; color: var(--rt-muted); }
.rt-block select, .rt-block input[type=text], .rt-block input[type=number], .rt-page select, .rt-page input[type=text], .rt-page input[type=number], .rt-page input[type=search] {
  width: 100%; min-height: 48px; padding: .6rem .75rem; font: 500 1rem/1.3 var(--rt-font-ui); color: var(--rt-ink);
  background: var(--rt-surface); border: 1px solid #cfcbc0; border-radius: 4px; appearance: none; -webkit-appearance: none;
}
.rt-block select, .rt-page select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a4f53' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.rt-block select:focus, .rt-block input:focus, .rt-page select:focus, .rt-page input:focus { outline: 2px solid var(--rt-accent); outline-offset: 0; border-color: var(--rt-accent); }
.rt-break { display: grid; gap: 0; margin: 1.1rem 0 0; border-top: 1px solid var(--rt-line); font-variant-numeric: tabular-nums; }
.rt-break > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rt-line); font-size: .9375rem; }
.rt-break dt { color: var(--rt-muted); } .rt-break dd { margin: 0; font-weight: 600; white-space: nowrap; }
.rt-break .rt-minus dd { color: #1b6236; }
.rt-break .rt-sum { border-bottom: 0; padding-top: .7rem; font-size: 1rem; } .rt-break .rt-sum dt { color: var(--rt-ink); font-weight: 600; }

/* ---- charts ---- */
.rt-fig { margin: 0; }
.rt-chart { display: block; width: 100%; height: auto; overflow: visible; }
.rt-grid { stroke: var(--rt-line); stroke-width: 1; }
.rt-ax { font: 500 14px var(--rt-font-ui); fill: var(--rt-muted); font-variant-numeric: tabular-nums; }
.rt-ax-l { font-weight: 700; fill: var(--rt-ink); }
.rt-ln { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.rt-ln.rt-c0, .rt-dot.rt-c0 { stroke: var(--rt-c0); } .rt-ln.rt-c1, .rt-dot.rt-c1 { stroke: var(--rt-c1); } .rt-ln.rt-c2, .rt-dot.rt-c2 { stroke: var(--rt-c2); } .rt-ln.rt-c3, .rt-dot.rt-c3 { stroke: var(--rt-c3); }
.rt-dot { fill: var(--rt-surface); stroke-width: 2.25; }
.rt-key { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: .6rem 0 0; padding: 0; font-size: .8125rem; color: var(--rt-muted); }
.rt-key i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.rt-key i.rt-c0 { background: var(--rt-c0); } .rt-key i.rt-c1 { background: var(--rt-c1); } .rt-key i.rt-c2 { background: var(--rt-c2); } .rt-key i.rt-c3 { background: var(--rt-c3); }
.rt-pt { fill: var(--rt-c0); fill-opacity: .72; stroke: var(--rt-surface); stroke-width: 1.2; }
.rt-fit { stroke: var(--rt-c1); stroke-width: 2.25; stroke-dasharray: 6 5; }
.rt-zero { stroke: #b9b5aa; stroke-width: 1; }
.rt-tabs { margin: 0 0 .75rem; }
.rt-tab { min-height: 36px; padding: 0 .8rem; border: 1px solid #cfcbc0; border-radius: 999px; background: var(--rt-surface); font: 600 .8125rem var(--rt-font-ui); color: var(--rt-ink); cursor: pointer; }
.rt-tab[aria-pressed="true"] { background: var(--rt-btn); border-color: var(--rt-btn); color: var(--rt-btn-ink); }
.rt-sunclock { max-width: 720px; }
.rt-day { fill: var(--rt-day); } .rt-sun { fill: var(--rt-sun); } .rt-sun-w { fill: var(--rt-sun-w); }
.rt-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; font-size: .8125rem; color: var(--rt-muted); }
.rt-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.rt-legend i.rt-sun { background: var(--rt-sun); } .rt-legend i.rt-sun-w { background: var(--rt-sun-w); } .rt-legend i.rt-day { background: var(--rt-day); }
.rt-spark { display: block; width: 100%; height: 44px; }
.rt-spark path { fill: none; stroke: var(--rt-c0); stroke-width: 2; }

/* ---- inline forms and buttons ---- */
.rt-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin: 0; }
.rt-inline .rt-grow { flex: 1 1 220px; }
.rt-inline select { width: auto; min-width: 7.5rem; }
.rt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.2rem; border: 0; border-radius: 4px; background: var(--rt-btn); color: var(--rt-btn-ink); font: 700 .9375rem/1 var(--rt-font-ui); cursor: pointer; text-decoration: none; transition: background-color .15s var(--rt-ease), transform .15s var(--rt-ease); }
.rt-btn:hover { background: var(--primary-hover, #2e363b); } .rt-btn:active { transform: scale(.98); }
.rt-btn-q { background: transparent; color: var(--rt-ink); box-shadow: inset 0 0 0 1px #cfcbc0; } .rt-btn-q:hover { background: var(--rt-soft); }
.rt-link { color: var(--rt-accent); font-weight: 600; text-underline-offset: 3px; }
.rt-cmp-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.rt-cmp-row form { flex: 1 1 340px; }
.rt-cmp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

/* ---- save heart ---- */
.rt-save { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem 0 .75rem; border: 1px solid #cfcbc0; border-radius: 999px; background: var(--rt-surface); color: var(--rt-ink); font: 600 .875rem/1 var(--rt-font-ui); cursor: pointer; transition: border-color .15s, background-color .15s; }
.rt-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s var(--rt-ease), fill .15s; }
.rt-save:hover { border-color: var(--rt-ink); }
.rt-save[aria-pressed="true"] { border-color: var(--rt-heart); color: var(--rt-heart); }
.rt-save[aria-pressed="true"] svg { fill: var(--rt-heart); stroke: var(--rt-heart); }
.rt-save.rt-pop svg { transform: scale(1.22); }
.rt-save-sm { min-height: 44px; padding: 0 .7rem; }
.rt-save-ic { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.rt-save-ic span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hc .rt-save { position: absolute; top: .65rem; right: .65rem; }
.hc { position: relative; }
@media (prefers-reduced-motion: reduce) { .rt-save svg, .rt-btn, .rt-pill { transition: none !important; } .rt-save.rt-pop svg { transform: none; } }

/* ---- saved pill ---- */
.rt-pill { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .75rem; padding: .45rem .45rem .45rem 1rem; background: var(--rt-btn); color: var(--rt-btn-ink); border-radius: 999px; box-shadow: 0 8px 24px rgb(0 0 0 / .22); font: 600 .9375rem/1 var(--rt-font-ui); max-width: calc(100vw - 32px); transform: translateY(0); opacity: 1; transition: transform .25s var(--rt-ease), opacity .25s; }
.rt-pill[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .25s var(--rt-ease), opacity .25s, visibility 0s .25s; }
.rt-pill a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--rt-btn-ink); color: var(--rt-btn); text-decoration: none; font-weight: 700; white-space: nowrap; }
.rt-pill .rt-pill-n { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; background: none; padding: 0; min-height: 44px; font-weight: 600; }
.rt-pill svg { width: 16px; height: 16px; fill: var(--rt-btn-ink); }
@media (max-width: 1023px) { .rt-pill.rt-lift { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.rt-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 61; transform: translateX(-50%); max-width: min(26rem, calc(100vw - 32px)); padding: .8rem 1rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .16); font-size: .9375rem; line-height: 1.4; }

/* ---- form handoff ---- */
.rt-handoff { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--rt-line); border-radius: 8px; background: var(--rt-surface); font: 500 .9375rem/1.45 var(--rt-font-ui); color: var(--rt-ink); }
.rt-handoff p { margin: 0 0 .4rem; font-weight: 700; }
.rt-handoff ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.rt-handoff li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.rt-handoff button { min-height: 36px; padding: 0 .4rem; border: 0; background: none; font: inherit; font-size: .875rem; color: var(--rt-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- tool pages ---- */
.rt-page { background: var(--rt-ground); }
.rt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.rt-crumbs { padding-top: 1.25rem; font-size: .8125rem; color: var(--rt-muted); }
.rt-crumbs a { color: inherit; text-underline-offset: 3px; }
.rt-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.25rem, 3vw, 2rem); }
.rt-hero h1 { font-family: var(--rt-font-head); font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .9rem; max-width: 20ch; text-wrap: balance; }
.rt-hero-s h1 { font-size: clamp(2rem, 4vw, 3rem); }
.rt-lede { font-family: var(--rt-font-head); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--rt-muted); max-width: 62ch; margin: 0; }
.rt-sec { padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.rt-alt { background: var(--rt-surface); border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); padding-top: clamp(2.5rem, 6vw, 4rem); }
.rt-h2 { font-family: var(--rt-font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; margin: 0 0 .5rem; }
.rt-h2.mt { margin-top: clamp(2rem, 5vw, 3.5rem); }
.rt-sub { color: var(--rt-muted); line-height: 1.55; margin: 0 0 1.25rem; max-width: 62ch; }
.rt-two { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .rt-two { grid-template-columns: 1fr 1fr; } }
.rt-panel { background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: clamp(1.1rem, 3vw, 2rem); }
.rt-panel h2 { font-family: var(--rt-font-head); font-size: 1.4rem; margin: 0 0 .5rem; }
.rt-panel > p { color: var(--rt-muted); margin: 0 0 1rem; line-height: 1.55; }
.rt-tool { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 980px) { .rt-tool { grid-template-columns: 1.25fr 1fr; align-items: start; } .rt-tool .rt-method { grid-column: 1 / -1; } }
.rt-method { max-width: 70ch; } .rt-method h2 { font-family: var(--rt-font-head); font-size: 1.4rem; } .rt-method p { line-height: 1.65; color: var(--rt-muted); }
.rt-fields { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: .75rem; }
.rt-full { margin-bottom: .75rem; }
.rt-out { margin-top: 1rem; }
.rt-out .rt-total { font-size: clamp(2.2rem, 4vw, 2.8rem); }
.rt-empty { color: var(--rt-muted); }
.rt-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.rt-tag { display: inline-block; padding: .2rem .5rem; border-radius: 3px; background: #e7efe9; color: #1b6236; font-size: .75rem; font-weight: 700; }
.rt-plain { padding-left: 1.1rem; line-height: 1.6; } .rt-plain a { color: var(--rt-accent); }
.rt-big { font-family: var(--rt-font-head); font-size: 2.6rem; line-height: 1; margin: .25rem 0 .6rem; }
.rt-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rt-links a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .85rem; border: 1px solid var(--rt-line); border-radius: 4px; background: var(--rt-surface); color: var(--rt-ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.rt-links a:hover { border-color: var(--rt-ink); } .rt-links small { color: var(--rt-muted); font-weight: 500; }
.rt-sort button { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-color: var(--rt-line); text-underline-offset: 3px; }
.rt-sort button[aria-sort], .rt-sort th[aria-sort] button { text-decoration-color: currentColor; }
.rt-page table.data td small, .rt-page table.data th small { display: block; color: var(--rt-muted); font-weight: 500; font-size: .75rem; }

/* stats */
.rt-stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: var(--rt-line); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); overflow: hidden; }
.rt-stat { background: var(--rt-surface); padding: 1.1rem 1.2rem; }
.rt-stat-k { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--rt-muted); }
.rt-stat-v { margin: .3rem 0 .35rem; font-family: var(--rt-font-head); font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rt-stat-t { font-family: var(--rt-font-ui); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.rt-stat-s { margin: 0; font-size: .875rem; color: var(--rt-muted); line-height: 1.45; }

/* ---- unit search ---- */
.rt-search { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .rt-search.rt-live { grid-template-columns: 280px 1fr; align-items: start; } }
.rt-filters { background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 1.1rem; display: grid; gap: 1rem; }
@media (min-width: 1024px) { .rt-filters { position: sticky; top: 96px; } }
.rt-filters fieldset { border: 0; margin: 0; padding: 0; }
.rt-filters legend, .rt-filters .rt-fl { font-size: .8125rem; font-weight: 700; color: var(--rt-muted); margin-bottom: .4rem; padding: 0; }
.rt-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rt-chip { position: relative; }
.rt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rt-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; border: 1px solid #cfcbc0; border-radius: 999px; font-size: .875rem; font-weight: 600; background: var(--rt-surface); transition: background-color .15s, border-color .15s, color .15s; }
.rt-chip input:checked + span { background: var(--rt-btn); border-color: var(--rt-btn); color: var(--rt-btn-ink); }
.rt-chip input:focus-visible + span { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
.rt-filters .rt-check { display: flex; gap: .6rem; align-items: center; font-size: .9375rem; font-weight: 500; }
.rt-ftoggle { display: none; }
@media (max-width: 1023px) {
  .rt-ftoggle { display: inline-flex; }
  .rt-filters { display: none; } .rt-filters.rt-open { display: grid; }
}
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.rt-bar p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.rt-bar-r { display: flex; gap: .5rem; align-items: center; }
.rt-bar-r select { width: auto; min-width: 11rem; }
.rt-hgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rt-hcard { position: relative; display: flex; flex-direction: column; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 1rem 1.05rem; transition: border-color .15s, box-shadow .2s var(--rt-ease); }
.rt-hcard:hover { border-color: #c9c5b9; box-shadow: 0 6px 18px rgb(21 25 28 / .07); }
.rt-hcard-t { font-family: var(--rt-font-head); font-size: 1.1rem; line-height: 1.25; color: var(--rt-ink); text-decoration: none; padding-right: 3rem; }
.rt-hcard-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.rt-hcard-u { padding-right: 2.75rem; margin: .15rem 0 0; font-size: .8125rem; color: var(--rt-muted); }
.rt-hcard-p { margin: .7rem 0 0; font-family: var(--rt-font-head); font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rt-hcard-p small { font-family: var(--rt-font-ui); font-size: .8125rem; color: var(--rt-muted); margin-left: .3rem; }
.rt-hcard-a { margin: .3rem 0 0; font-size: .8125rem; color: var(--rt-muted); }
.rt-hcard-f { margin: .65rem 0 0; font-size: .875rem; line-height: 1.5; }
.rt-hcard-sp { margin: .5rem 0 0; font-size: .8125rem; color: #1b6236; font-weight: 600; }
.rt-hcard-x { margin-top: auto; padding-top: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.rt-hcard-x a { flex: 1 1 auto; min-height: 44px; font-size: .875rem; }
.rt-hcard .rt-save { position: absolute; top: .7rem; right: .7rem; }
.rt-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.rt-none { padding: 2rem 1.25rem; text-align: center; background: var(--rt-surface); border: 1px dashed #cfcbc0; border-radius: var(--rt-radius); }
.rt-none p { margin: 0 0 1rem; color: var(--rt-muted); }

/* ---- saved and compare ---- */
.rt-saved-g { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.rt-saved h2 { font-family: var(--rt-font-head); font-size: 1.4rem; margin: 0 0 .75rem; }
.rt-row { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .85rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); }
.rt-row + .rt-row { margin-top: .6rem; }
.rt-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--rt-soft); }
.rt-row-ph { width: 64px; height: 64px; border-radius: 4px; background: var(--rt-soft); }
.rt-row a { color: var(--rt-ink); font-weight: 700; text-decoration: none; } .rt-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rt-row p { margin: .2rem 0 0; font-size: .875rem; color: var(--rt-muted); line-height: 1.45; }
.rt-row-v { text-align: right; } .rt-row-v strong { display: block; font-family: var(--rt-font-head); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rt-row-v button { margin-top: .2rem; min-height: 36px; border: 0; background: none; padding: 0; color: var(--rt-muted); font: 500 .8125rem var(--rt-font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rt-send { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.rt-send p { flex: 1 1 260px; margin: 0; font-size: .875rem; color: var(--rt-muted); }
.rt-cmp-ctl { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1.25rem; }
.rt-cmp-ctl label { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--rt-muted); }
.rt-cmp-ctl select { width: auto; min-width: 12rem; }
.rt-cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); font-variant-numeric: tabular-nums; }
.rt-cmp th, .rt-cmp td { padding: .8rem .9rem; border-bottom: 1px solid var(--rt-line); text-align: left; vertical-align: top; font-size: .9375rem; line-height: 1.45; }
.rt-cmp tbody th { color: var(--rt-muted); font-weight: 600; font-size: .8125rem; width: 12rem; }
.rt-cmp thead th { vertical-align: bottom; }
.rt-cmp thead a { font-family: var(--rt-font-head); font-size: 1.1rem; color: var(--rt-ink); text-decoration: none; }
.rt-cmp thead small { display: block; color: var(--rt-muted); font-weight: 500; font-size: .8125rem; margin-top: .2rem; }
.rt-cmp thead .rt-x { margin-top: .4rem; min-height: 44px; border: 0; background: none; padding: 0; color: var(--rt-muted); font: 500 .8125rem var(--rt-font-ui); text-decoration: underline; cursor: pointer; }
.rt-cmp .rt-best { font-weight: 700; }
.rt-cmp .rt-best::after { content: "lowest"; margin-left: .4rem; padding: .1rem .35rem; border-radius: 3px; background: #e7efe9; color: #1b6236; font-size: .6875rem; font-weight: 700; vertical-align: 1px; }
.rt-cmp tr:last-child th, .rt-cmp tr:last-child td { border-bottom: 0; }
.rt-cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .rt-cmp tbody th { width: 7.5rem; } .rt-cmp th, .rt-cmp td { padding: .7rem .6rem; font-size: .875rem; } }

/* ---- rent splitter ---- */
.rt-rooms { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0; }
.rt-room { border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 1rem; display: grid; gap: .6rem; }
.rt-room h3 { margin: 0; font-size: 1rem; font-family: var(--rt-font-ui); }
.rt-room label { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--rt-muted); }
.rt-room .rt-check { display: flex; align-items: center; gap: .55rem; font-size: .9375rem; font-weight: 500; color: var(--rt-ink); }
.rt-range { display: grid; gap: .4rem; margin: .5rem 0 1rem; font-size: .875rem; font-weight: 600; color: var(--rt-muted); }
.rt-range input { width: 100%; accent-color: var(--rt-accent); min-height: 32px; }
.rt-shares { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: .5rem; }
.rt-share { border-radius: var(--rt-radius); background: var(--rt-ground); padding: 1rem; }
.rt-share p { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--rt-muted); }
.rt-share strong { display: block; font-family: var(--rt-font-head); font-size: 1.9rem; margin: .25rem 0; font-variant-numeric: tabular-nums; }
.rt-share span { font-size: .8125rem; color: var(--rt-muted); }

/* ---- tower report (print first) ---- */
.rt-report { background: var(--rt-surface); }
.rt-rp-head { padding: clamp(1.5rem, 4vw, 3rem) 0 1.5rem; border-bottom: 1px solid var(--rt-line); }
.rt-rp-head h1 { font-family: var(--rt-font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04; margin: .4rem 0 .5rem; }
.rt-rp-brand { margin: 0; font-weight: 700; font-size: .875rem; }
.rt-rp-date { margin: .6rem 0 0; font-size: .875rem; color: var(--rt-muted); }
.rt-rp-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.rt-rp-sec { padding: clamp(1.5rem, 4vw, 2.5rem) 0; border-bottom: 1px solid var(--rt-line); }
.rt-rp-sec h2 { font-family: var(--rt-font-head); font-size: 1.5rem; margin: 1.5rem 0 .75rem; }
.rt-rp-sec h2:first-child { margin-top: 0; }
.rt-rp-sec h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.rt-fees { list-style: none; margin: 0; padding: 0; }
.rt-fees li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--rt-line); font-size: .9375rem; }
.rt-fees strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-rp-homes td, .rt-rp-homes th { white-space: nowrap; }
.rt-rp-foot { border-bottom: 0; }
@media print {
  @page { margin: 14mm 12mm; }
  body { background: #fff !important; }
  header#site-header, header:not(.rt-rp-head), footer, .rt-crumbs, .rt-rp-acts, .rt-pill, .rt-toast, aside, nav[aria-label="Breadcrumb"], .rt-cta .rt-link, [data-cta-float] { display: none !important; }
  .rt-page { background: #fff; }
  .rt-rp-sec { break-inside: avoid; padding: 10mm 0 6mm; }
  .rt-rp-homes { font-size: 9pt; }
  .rt-chart { max-height: 70mm; }
  a { color: inherit !important; text-decoration: none !important; }
  .btn-primary { display: none !important; }
}
@media (max-width: 480px) { .rt-calc > label:nth-child(3) { grid-column: 1 / -1; } .rt-calc > label:nth-child(4), .rt-calc > label:nth-child(5) { grid-column: span 3; } }
/* tables on tool pages, matching the tower pages */
.rt-page .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rt-page table.data { width: 100%; border-collapse: collapse; font-family: var(--rt-font-ui); font-size: .9375rem; background: var(--rt-surface); }
.rt-page table.data th, .rt-page table.data td { padding: .75rem .75rem; border-bottom: 1px solid var(--rt-line); text-align: left; vertical-align: top; }
.rt-page table.data thead th { font-weight: 600; color: var(--rt-muted); font-size: .8125rem; border-bottom: 1px solid var(--rt-ink); white-space: nowrap; }
.rt-page table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-page table.data tbody th { font-weight: 600; }
.rt-page table.data th a { color: var(--rt-ink); text-underline-offset: 3px; }
.rt-panel table.data { background: transparent; }
.rt-method p, .rt-page .rt-panel p { margin: 0 0 1rem; }
.rt-page .muted { color: var(--rt-muted); }

.rt-cmp td small { display: block; margin-top: .2rem; color: var(--rt-muted); font-size: .8125rem; font-weight: 500; }
@media (max-width: 640px) {
  .rt-row { grid-template-columns: 56px 1fr; }
  .rt-row img, .rt-row-ph { width: 56px; height: 56px; }
  .rt-row-v { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
  .rt-row-v strong { display: inline; font-size: 1.2rem; }
  .rt-row-v button { margin: 0 0 0 auto; }
}
.rt-fine { font-size: .8125rem; color: var(--rt-muted); }
.rt-block ::placeholder, .rt-page ::placeholder { color: #6b7076; opacity: 1; }
.rt-card-save { position: absolute; top: .75rem; right: .75rem; z-index: 2; box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.rt-ln.rt-quiet { stroke-width: 1.75; stroke-dasharray: 5 4; opacity: .75; }
.rt-dot.rt-quiet { opacity: .75; }
.rt-end { font-weight: 700; fill: var(--rt-ink); } .rt-end.rt-quiet { font-weight: 500; fill: var(--rt-muted); }
.rt-key i.rt-quiet { background: repeating-linear-gradient(90deg, var(--rt-c1) 0 5px, transparent 5px 8px) !important; opacity: .75; }
.rt-figt { margin: 0 0 .4rem; font-size: .8125rem; font-weight: 700; color: var(--rt-ink); }
.rt-bar { position: sticky; top: var(--rt-top, 0px); z-index: 20; display: block; margin: 0 0 1rem; padding: .75rem 0; background: var(--rt-ground); border-bottom: 1px solid var(--rt-line); }
.rt-bar .rt-sizes { margin-bottom: .6rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rt-bar .rt-sizes::-webkit-scrollbar { display: none; }
.rt-bar .rt-chip span { white-space: nowrap; }
.rt-bar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.rt-bar-row p { margin: 0; font-weight: 700; font-size: 1rem; }
.rt-morerow { grid-column: 1 / -1; list-style: none; }
.rt-morebtn { width: 100%; min-height: 52px; padding: .75rem 1rem; border: 1px dashed #c3bfb3; border-radius: var(--rt-radius); background: transparent; color: var(--rt-ink); font: 600 .9375rem var(--rt-font-ui); text-align: left; cursor: pointer; }
.rt-morebtn:hover { background: var(--rt-surface); border-style: solid; }
.rt-bar { padding: .6rem 0; }
.rt-bar .rt-sizes { margin-bottom: .5rem; gap: .35rem; }
.rt-bar .rt-chip span { min-height: 36px; padding: 0 .8rem; }
.rt-bar-row { flex-wrap: nowrap; }
.rt-bar-row p { font-size: .875rem; white-space: nowrap; }
.rt-bar-r { gap: .4rem; }
.rt-bar-r select, .rt-bar-r .rt-btn { min-height: 44px; font-size: .875rem; }
.rt-bar-r select { min-width: 0; width: auto; padding-left: .6rem; }
.rt-bar-r .rt-btn { padding: 0 .8rem; }
.rt-bar-row p { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rt-bar-r { min-width: 0; flex: 0 1 auto; }
.rt-bar-r select { max-width: 10.5rem; text-overflow: ellipsis; }
@media (max-width: 420px) { .rt-bar-r select { max-width: 8.75rem; } }

/* "Saved (N)" in the site header (fix pass, November 2, 2026): a 44px tap target that never wraps. */
.rt-hsaved { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .75rem; margin-right: .5rem; border-radius: 999px; font: 600 .875rem/1 var(--rt-font-ui); color: inherit; text-decoration: none; white-space: nowrap; border: 1px solid var(--rt-line, rgb(0 0 0 / .15)); }
.rt-hsaved:hover { border-color: currentColor; }
.rt-hsaved svg { width: 14px; height: 14px; fill: var(--rt-accent, currentColor); }
@media (max-width: 380px) { .rt-hsaved span { font-size: .8125rem; } .rt-hsaved { padding: 0 .55rem; margin-right: .35rem; } }

/* Without JavaScript: no dead controls and no "loading" line that never ends. */
.rt-calc[hidden], .rt-break[hidden] { display: none !important; }
html:not(.rt-js) .rt-js-only { display: none; }

/* Tap targets at least 44px (fix pass, November 2, 2026, from the audits). */
.rt-tab, .rt-chip span, .rt-x, .rt-row-v button, .rt-swap, .rt-morebtn, .rt-ftoggle, #rt-sort { min-height: 44px; }
.rt-x, .rt-row-v button { min-width: 44px; padding-inline: .75rem; }
#rt-commute-table thead button { min-height: 44px; padding: .5rem .25rem; }
.rt-cta .rt-link, .rt-rp-acts a, [data-copy], .rt-block .fine a { display: inline-flex; align-items: center; min-height: 44px; }
/* Charts on phones: SVG text scales with the chart, so it is set larger where the chart is drawn
   small, to read at about 12px or more. */
@media (max-width: 640px) {
  .rt-chart .rt-ax { font-size: 19px; }
  .rt-sunclock .rt-ax { font-size: 24px; }
}
/* The quoted building wording under a plain special label. */
.rt-sp-src { display: block; color: var(--rt-muted); font-size: .8125rem; margin-top: .15rem; }

/* Screen reader text (charts carry their numbers here). */
.rt-block .sr-only, .rt-page .sr-only, .rt-fig .sr-only, .rt-report .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hearts on building index tiles and tower table rows (Dallas port). */
.rt-has-save { position: relative; }
.rt-save-row { margin-left: .35rem; vertical-align: middle; border-color: transparent; background: transparent; }
.rt-save-row:hover { border-color: var(--rt-line); }

/* Room for the tools the page script draws, so nothing below them jumps when they appear (layout shift
   measured at 390px: the cost tool 0.39, the splitter 0.43, compare 0.54). Test engineer pass, Nov 2, 2026. */
#rt-cost-tool{min-height:1300px}#rt-split{min-height:1430px}
@media (min-width:600px){#rt-cost-tool{min-height:1160px}#rt-split{min-height:850px}}
@media (min-width:1000px){#rt-cost-tool{min-height:1210px}#rt-split{min-height:950px}}
#rt-saved{min-height:200px}
#rt-compare{min-height:200px}
/* Compare draws a table of up to four columns; hold its usual height when towers are named in the URL. */
html.rt-cmp-on #rt-compare{min-height:880px}
/* Every control a thumb uses is at least 44px tall (test engineer pass, November 2, 2026). */
.rt-tab, .rt-chip, .rt-chips label, .rt-ftoggle, .rt-btn, .rt-save-sm, .rt-page [data-drop], .rt-block [data-drop] { min-height: 44px; }
.rt-chips label { display: inline-flex; align-items: center; }
/* Links inside sentences are underlined, so they read as links without relying on color
   (axe link-in-text-block). */
.rt-block p a, .rt-page p a, .rt-page li a, .rt-cost .fine a, .rt-report p a, .rt-report li a { text-decoration: underline; text-underline-offset: 2px; }

/* Address suggestions in the commute boxes (_astro/rt-commute.mjs) */
.rt-ac { position: relative; }
.rt-ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.rt-ac-list [role=option] { min-height: 44px; display: flex; align-items: center; padding: .5rem .8rem; font-size: 1rem; font-weight: 500; color: var(--rt-ink); cursor: pointer; }
.rt-ac-list [role=option].on, .rt-ac-list [role=option]:hover { background: var(--rt-soft, rgba(0,0,0,.05)); }
.rt-ac-by, .rt-by { font-size: .75rem; color: var(--rt-muted); font-weight: 500; }
.rt-ac-by { padding: .3rem .8rem 0; text-align: right; }
.rt-commute-out { min-height: 1.5em; margin: .6rem 0 0; font-size: .9375rem; }
#rt-commute-live:not(:empty) { margin-top: 1.2rem; }
#rt-commute-live .rt-route { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Commute planner (_astro/rt-commute.mjs) */
.rt-plan-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: end; }
.rt-plan-grid label { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--rt-muted); }
.rt-plan-grid input, .rt-plan-grid select { font-size: 16px; min-height: 44px; width: 100%; }
.rt-plan-addr { grid-column: 1 / -1; }
.rt-plan-act { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.rt-plan-act .rt-btn { min-height: 48px; }
.rt-plan-two { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rt-line); }
.rt-plan-who { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .5rem; font-weight: 700; color: var(--rt-ink); }
.rt-plan-rm { min-height: 44px; padding: 0 .8rem; background: none; border: 1px solid var(--rt-line); border-radius: 4px; font: inherit; font-size: .875rem; font-weight: 600; color: var(--rt-ink); cursor: pointer; }
.rt-plan-out { min-height: 1px; }
.rt-plan-out:not(:empty) { margin-top: 1.2rem; }
.rt-plan-person + .rt-plan-person { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rt-line); }
.rt-plan-sum { font-size: 1.0625rem; font-weight: 700; color: var(--rt-ink); margin: 0 0 .6rem; }
.rt-plan-warn { color: #b42318; font-weight: 600; font-size: .9rem; margin: -.3rem 0 .6rem; }
.rt-plan-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rt-plan-legs li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; padding: .7rem .85rem; border: 1px solid var(--rt-line); border-radius: 4px; background: var(--rt-surface); }
.rt-plan-k { font-size: .8125rem; color: var(--rt-muted); font-weight: 600; }
.rt-plan-legs strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.25rem; color: var(--rt-ink); }
.rt-plan-s { font-size: .875rem; color: var(--rt-ink); }
.rt-plan-g { grid-column: 1 / -1; display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; }
.rt-plan-tot { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .7rem 0 0; font-size: .9375rem; }
.rt-plan-note { margin: .8rem 0 0; font-size: .9375rem; font-weight: 600; color: var(--rt-ink); }
.rt-plan-best { margin: 0 0 1.2rem; padding-left: 1.4rem; display: grid; gap: .45rem; }
.rt-plan-best li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.rt-plan-best li > a:first-child { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.rt-plan-best .rt-plan-av { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.rt-plan-table thead button { min-height: 44px; padding: .5rem .25rem; background: none; border: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.rt-plan-table td small { display: block; color: var(--rt-muted); font-size: .75rem; }
.rt-plan-table .rt-route { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; white-space: nowrap; }
.rt-plan-more { margin-top: .9rem; min-height: 48px; }
.rt-plan [hidden], .rt-plan-out [hidden] { display: none !important; }

/* Keep our help free (report, tower page, thank you screens) */
.rt-credit h2 { margin-top: 0; }
.rt-credit-facts { margin: .6rem 0 1rem; padding-left: 1.2rem; }
.rt-credit-steps { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: .5rem; font-size: 1.0625rem; }
.rt-credit-card { break-inside: avoid; page-break-inside: avoid; border: 2px dashed var(--rt-ink); border-radius: 6px; padding: 1rem 1.1rem; background: var(--rt-surface); }
.rt-credit-ch { margin: 0 0 .4rem; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rt-muted); }
.rt-credit-line { margin: 0 0 .7rem; font-size: 1.125rem; font-weight: 700; color: var(--rt-ink); }
.rt-credit-checks { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.rt-credit-checks li { display: flex; align-items: center; gap: .55rem; }
.rt-box { width: 18px; height: 18px; border: 2px solid var(--rt-ink); border-radius: 3px; flex: none; }
.rt-credit-copy { min-height: 44px; }
.rt-credit-sm { break-inside: avoid; page-break-inside: avoid; display: grid; gap: .8rem; margin: 0 0 1.5rem; }
.rt-credit-note { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--rt-ink); background: var(--rt-soft); font-size: .9375rem; }
@media print { .rt-credit-copy { display: none; } .rt-credit { break-inside: avoid; } }
.tt-credit { margin: .6rem 0 0; font-size: .9rem; line-height: 1.5; }
.rt-credit-facts, .rt-credit .rt-two ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .35rem; }
.rt-credit-steps { list-style: decimal; }
