/* Ezee Mortgages. Built on The Curve direction (approved 2026-11-11): an
   editorial finance site where the mortgage itself is the picture. */
/* Colour: "Midnight and gold", logo 12 (the linked e's) in the colours Ezra asked for on 2026-11-22: "Midnight black
   and gold ... I want the colours to look just like they are in LOGO 12." Midnight #14141A is the main ink: words,
   buttons, the navigation bar. Gold #C9A04E is the accent and DECORATION ONLY on light pages (2.3:1 on the paper):
   rules, the logo's last e, button fills under midnight words. Gold that must be READ uses --gold-ink (5:1) and gold
   that must be SEEN as a mark uses --accent-strong (3.7:1). Neutrals lean warm, toward the gold. Contrast of every
   pair was measured, 2026-11-22. */
:root {
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --ink: #14141A;
  --muted: #57534A;
  --rule: #E3DED2;
  --soft: #F2EEE4;
  --wash: #F5F1E7;       /* the alternate bands: a breath of gold */
  --field-edge: #8A8578; /* a form field's outline: 3.7:1 against the card, so the box can be seen */
  --btn: #14141A;        /* midnight: buttons and links */
  --btn-ink: #FFFFFF;
  --btn-hover: #2C2C34;
  --btn-edge: color-mix(in srgb, var(--btn) 72%, #000);
  --gold: #C9A04E;       /* decoration and fills under midnight words */
  --gold-hover: #D9B566;
  --gold-ink: #8A6516;   /* gold words on the light page: 5:1 */
  --accent: #C9A04E;
  --accent-strong: #A27A22;  /* gold as a mark that must be seen: 3.7:1 */
  --nav-bg: #14141A; --nav-ink: #F3EEE2; --nav-gold: #D8B25A;
  --rate-bg: #F3E9CF;    /* the rates bar: gold paper */
  --shade: 20 20 26;
  --img-edge: rgb(20 20 26 / 0.12);
  --r-ctl: 6px;
  --r-card: 12px;
  --r-panel: 16px;
  --head-h: 56px;        /* the sticky navigation bar */
  --m-row-h: 58px;
  --principal: #14141A;  /* data only: what you own (midnight) */
  --interest: #A27A22;   /* data only: what it costs (deep gold, 3.7:1) */
  --good: #0B7A55;
  --error: #B42318;
  --foot-bg: #111116; --foot-ink: #E8E2D4; --foot-muted: #B7AF9E; --foot-head: #D8B25A; --foot-rule: rgb(255 255 255 / 0.12);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0F13; --card: #18181E; --ink: #EFEAE0; --muted: #ABA597; --rule: #2A2A32; --soft: #1E1E25; --wash: #141419; --field-edge: #6B6759;
    --btn: #D8B25A; --btn-ink: #14141A; --btn-hover: #E6C576; --gold-ink: #E0BE6E; --accent: #C9A04E; --accent-strong: #D8B25A;
    --nav-bg: #0A0A0D; --rate-bg: #1C1A14;
    --principal: #EFEAE0; --interest: #C9A04E; --good: #4CC79A; --error: #FF9B8F;
    --shade: 0 0 0; --img-edge: rgb(255 255 255 / 0.10); --foot-bg: #0A0A0D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0F13; --card: #18181E; --ink: #EFEAE0; --muted: #ABA597; --rule: #2A2A32; --soft: #1E1E25; --wash: #141419; --field-edge: #6B6759;
  --btn: #D8B25A; --btn-ink: #14141A; --btn-hover: #E6C576; --gold-ink: #E0BE6E; --accent: #C9A04E; --accent-strong: #D8B25A;
  --nav-bg: #0A0A0D; --rate-bg: #1C1A14;
  --principal: #EFEAE0; --interest: #C9A04E; --good: #4CC79A; --error: #FF9B8F;
  --shade: 0 0 0; --img-edge: rgb(255 255 255 / 0.10); --foot-bg: #0A0A0D;
  color-scheme: dark;
}
::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); color: var(--ink); }
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 30; }
a { color: var(--btn); text-underline-offset: 3px; }
a:hover { color: var(--btn-hover); }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; max-width: 17ch; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.012em; font-variation-settings: "opsz" 48; }
h3 { font-size: 1.3rem; line-height: 1.25; font-variation-settings: "opsz" 24; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.lede { color: var(--muted); max-width: 60ch; }
.fine { font-size: 13px; color: var(--muted); }


/* Buttons: squared off, compact, and given an edge. A faint sheen at the top,
   a darker rim, and a shadow from one light above, tinted toward the button's
   own indigo. Pressing it pushes it down a pixel. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl);
  font: 600 14.5px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 120ms var(--ease-out); }
.btn-primary { background-color: var(--btn); background-image: linear-gradient(180deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0) 58%);
  color: var(--btn-ink); border-color: var(--btn-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(var(--shade) / 0.20), 0 6px 14px -6px color-mix(in srgb, var(--btn) 60%, transparent); }
.btn-primary:hover { background-color: var(--btn-hover); color: var(--btn-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 2px 4px rgb(var(--shade) / 0.20), 0 10px 22px -8px color-mix(in srgb, var(--btn) 70%, transparent); }
.btn-primary:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.30), 0 1px 1px rgb(var(--shade) / 0.18); }
.btn-quiet { background: var(--card); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 26%, var(--card)); box-shadow: 0 1px 2px rgb(var(--shade) / 0.06); }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--ink) 55%, var(--card)); background: var(--soft); color: var(--ink); }
.btn-quiet:active { transform: translateY(1px); box-shadow: none; }
/* Hero: the headline, then the mortgage itself */
.hero { padding-block: clamp(44px, 6vw, 88px) 0; }
.hero-top { display: grid; gap: 22px; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--accent); }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; }
@media (max-width: 860px) { .hero-row { grid-template-columns: minmax(0, 1fr); } }
.answer { font-size: 1.1rem; max-width: 56ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) { .ctas .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; max-width: 100%; } }
.licence { font-size: 13px; color: var(--muted); }

section#curve { padding-block: clamp(32px, 4vw, 52px) clamp(64px, 8vw, 104px); }
#curve { scroll-margin-top: calc(var(--head-h) + 8px); }
.curve-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: clamp(18px, 3vw, 32px); display: grid; gap: 22px; }
.curve-head { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.curve-head h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--ink); margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-p { background: var(--principal); }
.sw-i { background: var(--interest); }
.curve-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .curve-body { grid-template-columns: minmax(0, 1fr); } }
.controls { display: grid; gap: 18px; align-content: start; }
.ctl { display: grid; gap: 6px; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ctl label, .ctl legend { font-size: 14px; color: var(--muted); }
.ctl output { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--btn); min-height: 44px; margin: 0; }
fieldset.ctl { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 8px; padding: 4px; gap: 4px; background: var(--soft); }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; border-radius: 4px; font-weight: 600; color: var(--muted); font-size: 15px; transition: color 160ms var(--ease-out); }
.seg input:checked + span { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgb(var(--shade) / 0.14), 0 2px 8px rgb(var(--shade) / 0.06); }
/* The white thumb slides to the choice you tapped, instead of jumping. */
@supports selector(:has(*)) {
  .seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 4px; background: var(--card);
    box-shadow: 0 1px 2px rgb(var(--shade) / 0.14), 0 2px 8px rgb(var(--shade) / 0.06); transition: transform 260ms var(--ease-out); }
  .seg:has(label:nth-child(2) input:checked)::before { transform: translateX(calc(100% + 4px)); }
  .seg input:checked + span { background: none; box-shadow: none; }
}
.seg input:focus-visible + span { outline: 2px solid var(--btn); outline-offset: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.stats div { padding: 12px 14px 12px 0; }
.stats div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.plot { display: grid; gap: 14px; min-width: 0; }
/* One column (phones, tablets): the four numbers, then the sliders right under them, then the chart.
   A thumb on a slider hides what is below it, never what is above, so the payment stays in sight while
   it changes. (It used to be chart first and sliders last, a full screen below the payment.) */
@media (max-width: 900px) {
  .curve-body { gap: 18px; }
  .plot { display: contents; }
  .plot > .stats { order: -1; }
}
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 400 12px var(--sans); font-variant-numeric: tabular-nums; }
.chart .renew { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.7; }
.chart .p { fill: var(--principal); }
.chart .i { fill: var(--interest); }
.chart .bar { transition: opacity 120ms var(--ease-out); }
.chart.inspecting .bar { opacity: 0.38; }
.chart.inspecting .bar.on { opacity: 1; }
.chart .cross { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.chart .leader { stroke: var(--ink); stroke-width: 1; }
.chart .cross-label { fill: var(--ink); font: 600 12.5px var(--sans); paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.45; min-width: 170px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); font-variant-numeric: tabular-nums; }
.tip b { display: block; font-weight: 600; margin-bottom: 2px; }
.tip i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.inspect { display: grid; gap: 4px; }
.inspect label { font-size: 14px; color: var(--muted); }
#inspect-out { font-size: 15px; min-height: 1.6em; font-variant-numeric: tabular-nums; }
details.table-view { border-top: 1px solid var(--rule); padding-top: 4px; }
details.table-view summary { cursor: pointer; padding: 10px 0; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.scroll { overflow-x: auto; max-height: 420px; overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--r-card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; padding: 12px 14px; font-size: 13px; color: var(--muted); }
table.data th, table.data td { padding: 9px 14px; text-align: right; border-top: 1px solid var(--rule); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font-weight: 600; color: var(--muted); font-size: 13px; position: sticky; top: 0; background: var(--card); }

/* Sections */
section.band { padding-block: clamp(64px, 8vw, 112px); }
section.band.alt { background: var(--wash); border-block: 1px solid color-mix(in srgb, var(--accent) 22%, var(--rule)); }
.head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 48px); max-width: 760px; }

.compare-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: minmax(0, 1fr); } }
.compare-grid .scroll { max-height: none; background: var(--card); }
table.data.compare th[scope="row"] { font-weight: 500; color: var(--ink); text-align: left; }
table.data.compare td.diff { font-weight: 600; }
table.data.fit th, table.data.fit td { white-space: normal; padding: 9px 8px; }
table.data.fit th:first-child { padding-left: 0; }
table.data.fit td:last-child { padding-right: 0; }
table.data.fit caption { padding: 0 0 8px; }
@media (max-width: 560px) {
  table.data.compare thead { display: none; }
  table.data.compare, table.data.compare tbody, table.data.compare tr { display: block; }
  table.data.compare caption { display: block; }
  table.data.compare tr { border-top: 1px solid var(--rule); padding: 6px 0 10px; }
  table.data.compare th[scope="row"] { display: block; border: 0; padding: 8px 14px 4px; font-weight: 600; }
  table.data.compare td { display: flex; justify-content: space-between; border: 0; padding: 3px 14px; }
  table.data.compare td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
}

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.door { padding: 4px 28px 8px; border-left: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; scroll-margin-top: 96px; }
.door:first-child { border-left: 0; padding-left: 0; }
.door .note { font-size: 14px; color: var(--muted); padding-top: 4px; }
@media (max-width: 860px) { .doors { grid-template-columns: minmax(0, 1fr); gap: 28px; } .door, .door:first-child { border-left: 0; padding: 0 0 28px; border-bottom: 1px solid var(--rule); } .door:last-child { border-bottom: 0; padding-bottom: 0; } }
.situations { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.situations li { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--r-ctl); font-size: 14.5px; background: var(--card); }

.calc-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
form.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 520px) { form.calc { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--field-edge); background: var(--card); color: var(--ink); border-radius: var(--r-ctl); padding: 10px 14px; font: 500 16px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--btn); box-shadow: 0 0 0 1px var(--btn), 0 0 0 4px color-mix(in srgb, var(--btn) 14%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 22px; grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--btn); }
.receipt { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.receipt dl { margin: 0; display: grid; }
.receipt .line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.receipt .line:first-child { border-top: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
.receipt .sub dt { padding-left: 14px; font-size: 14.5px; }
.receipt .sub dd { font-weight: 500; font-size: 14.5px; }
.receipt .big dd { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.warn { color: var(--error); font-size: 14px; }
.warn:empty { display: none; }

.rules-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--card); }
.rules { width: 100%; border-collapse: collapse; font-size: 15px; }
.rules caption { caption-side: top; text-align: left; padding: 14px 16px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--rule); }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--rule); }
.rules thead th { font-size: 13px; color: var(--muted); font-weight: 600; border-top: 0; }
.rules tbody th { font-weight: 600; width: 24%; }
.rules td:last-child { width: 22%; font-size: 14px; }
@media (max-width: 760px) {
  .rules thead { display: none; }
  .rules caption { display: block; }
  .rules, .rules tbody, .rules tr, .rules th, .rules td { display: block; width: auto !important; }
  .rules tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  .rules th, .rules td { border-top: 0; padding: 5px 16px; }
  .rules td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--muted); }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--accent); padding-top: 14px; }
.steps li::before { content: "Stage " counter(s); font-size: 13px; color: var(--muted); }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.guides { display: grid; border-top: 1px solid var(--rule); }
.guides details { border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.guides summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); position: relative; min-height: 44px; }
.guides summary::-webkit-details-marker { display: none; }
.guides summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.guides details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.guides .answer { padding: 0 0 22px; display: grid; gap: 8px; max-width: 70ch; font-size: 16px; }
.guides .src { font-size: 13.5px; color: var(--muted); }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-panel); background: var(--soft); border: 1px dashed var(--muted); display: grid; place-items: center; text-align: center; padding: 22px; color: var(--muted); font-size: 14px; }
.cred { display: grid; gap: 4px; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; font-size: 15px; }
.placeholder { color: var(--muted); font-style: italic; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
form.contact { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: clamp(18px, 3vw, 30px); }
.contact .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .contact .row { grid-template-columns: minmax(0, 1fr); } }
.contact textarea { min-height: 100px; resize: vertical; }
.contact [aria-invalid="true"] { border-color: var(--error); }
.contact .error { color: var(--error); font-size: 14px; }
/* The form couldn't send: not an error the visitor made, so calm ink and two real buttons carrying their note. */
.contact .error.handoff { color: var(--ink); font-size: 15px; line-height: 1.5; }
.contact .error.handoff .hand { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.contact .error.handoff a[href^="tel:"] { white-space: nowrap; }
/* The site's buttons have their own press; Android's blue tap flash painted them teal. */
.btn, .chat-fab, .menu-btn, .mainnav .mi-a, .mainnav .mi-tog { -webkit-tap-highlight-color: transparent; }
.sent { background: var(--card); border: 1px solid var(--good); border-radius: var(--r-panel); padding: 22px; }
.reach { display: grid; gap: 4px; margin-top: 18px; }
.reach strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; user-select: all; }

/* The footer is the harbour itself: the logo in mist, sky for the headings. */
footer { background: var(--foot-bg); border-top: 3px solid var(--accent); padding-block: 48px 52px; font-size: 13.5px; color: var(--foot-muted); }
footer a { color: var(--foot-ink); }
footer a:hover { color: #FFFFFF; }
footer :focus-visible { outline-color: var(--foot-head); }
footer ::selection { background: rgb(255 255 255 / 0.22); color: #FFFFFF; }
.foot-logo { display: block; width: 200px; height: auto; margin-bottom: 6px; }
footer .wrap { display: grid; gap: 12px; }
footer .sources { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .chart .p { fill: CanvasText; } .chart .i { fill: GrayText; } .legend i { forced-color-adjust: none; } }
/* The phone layer: under 760px a thumb bar (Send a text, Complete an app) rises from the bottom once the page's own
   buttons have scrolled away. */
.m-bar { display: none; }

@media (max-width: 760px) {
  html { scroll-padding-bottom: 88px; }

  .m-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--m-bar-bg); border-top: 1px solid var(--m-rule);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(110%); visibility: hidden;
    transition: transform 200ms cubic-bezier(0.3, 0, 1, 1), visibility 0s linear 200ms; }
  .m-bar.show { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(0.2, 0, 0, 1), visibility 0s; }
  .menu-open .m-bar.show { transform: translateY(110%); visibility: hidden; }
  .menu-open .chat-fab { visibility: hidden; }
  .m-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border-radius: var(--m-radius, 999px);
    font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
  .m-bar .m-call { border: 1px solid var(--m-fg); color: var(--m-fg); font-variant-numeric: tabular-nums; }
  .m-bar .m-book { background: var(--m-accent) linear-gradient(180deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0) 58%); color: var(--m-accent-ink); border: 1px solid var(--btn-edge);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(var(--shade) / 0.20); }

  /* Room under the last line so the bar never sits on it */
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
  footer .sources a { display: inline-flex; align-items: center; min-height: 40px; }
}


@media (max-width: 360px) {
  /* The number gets the room it needs, Book a call takes the rest */
  .m-bar { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .m-bar a { font-size: 14.5px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-bar, .m-bar.show { transition: none; }
}
:root { --m-fg: var(--ink); --m-rule: var(--rule); --m-chip-bg: var(--card); --m-accent: var(--btn); --m-accent-ink: var(--btn-ink); --m-bar-bg: color-mix(in srgb, var(--paper) 92%, transparent); --m-radius: var(--r-ctl); }

/* ---- Multi-page site components (2026-11-11) ---- */
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 18px 18px 18px 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.facts dt { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums; }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 420px) { .facts dt { font-size: min(1.35rem, 5vw); white-space: nowrap; } }

/* Linked cards: the mortgages Ezra arranges, the tools */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: grid; gap: 8px; align-content: start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 22px 22px 20px; transition: border-color 150ms var(--ease-out); }
.card:hover { border-color: var(--btn); }
/* Index pages title their cards h2 (no skipped level under the h1), lists inside a page use h3; same look. */
.card :is(h2, h3) { font-size: 1.28rem; line-height: 1.25; letter-spacing: 0; font-variation-settings: "opsz" 24; }
.card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.card :is(h2, h3) a:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.card:focus-within { outline: 2px solid var(--btn); outline-offset: 3px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .go { font-size: 14.5px; font-weight: 600; color: var(--btn); }
.card.with-img { padding: 0 0 20px; overflow: hidden; }
.card.with-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 1px solid var(--rule); }
.card.with-img > :not(img) { margin-inline: 22px; }
.band.alt .card { background: var(--card); }

/* Every family, every stage */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mosaic li { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-card); box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 14px 30px -18px rgb(var(--shade) / 0.40); }
.mosaic li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--img-edge); pointer-events: none; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic li:nth-child(n+2) { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic li:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
.mosaic-note { margin-top: 14px; }

/* Inner pages */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head.split .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-head.split .wrap > div { display: grid; gap: 18px; }
.page-head figure { margin: 0; }
.page-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card);
  outline: 1px solid var(--img-edge); outline-offset: -1px; box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 22px 44px -24px rgb(var(--shade) / 0.45); }
@media (max-width: 860px) { .page-head.split .wrap { grid-template-columns: minmax(0, 1fr); } }
.page-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem); max-width: 22ch; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-block; padding: 4px 0; }
.crumbs [aria-current] { color: var(--ink); }

.article { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 16px; max-width: 70ch; }
.glance { display: grid; gap: 12px; max-width: 860px; }
.hub { max-width: none; gap: 16px; } .hub h2 { margin-top: 28px; } .hub h2:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--muted); }
.prose .src, .src { font-size: 13.5px; color: var(--muted); }
.answer-first { font-size: 1.12rem; border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; }
/* Who published the page and when its rules were last checked: visible, quiet, one line. */
.page-meta { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
/* Reference tables in the prose: a framed card that scrolls sideways if it must, stacks under 560px. */
.table-wrap { border: 1px solid var(--rule); border-radius: var(--r-card); overflow-x: auto; background: var(--card); }
.band.alt .table-wrap { background: var(--card); }
.table-wrap + .table-wrap { margin-top: 4px; }
.table-wrap table.data caption { color: var(--ink); font-weight: 600; font-size: 14px; }
/* Text tables wrap and read left to right; only all-number columns (td.num) align right. */
.table-wrap table.data th, .table-wrap table.data td { white-space: normal; text-align: left; vertical-align: top; }
.table-wrap table.data thead th { position: static; }
.table-wrap > .fine { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--rule); }
.table-wrap table.data .num { text-align: right; white-space: nowrap; }
/* A number column's heading may wrap: only the figures must stay on one line. */
.table-wrap table.data thead th.num { white-space: normal; }
@media (max-width: 560px) {
  .table-wrap table.data.compare td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2px 14px; padding: 4px 14px; }
  .table-wrap table.data.compare td::before { font-size: 14px; }
  .table-wrap table.data.compare td.num { text-align: left; white-space: normal; }
}
.table-wrap + .src, .table-wrap + .fine { margin-top: -4px; }
/* Glossary */
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.jump a:hover { border-color: var(--btn); color: var(--btn); }
.band.honeycomb { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.honeycomb .jump ul { gap: 10px; } .honeycomb .head { margin-bottom: 18px; }
.honeycomb .jump li:last-child a { font-weight: 600; border-color: var(--gold-ink, currentColor); }
.glossary { display: grid; gap: clamp(40px, 5vw, 64px); max-width: 920px; }
.glossary > section { display: grid; gap: 10px; }
.glossary h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); scroll-margin-top: 96px; }
.gloss { margin: 0; display: grid; }
.gloss > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 6px 32px; padding: 16px 0; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.gloss dt { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.3; }
.gloss dd { margin: 0; max-width: 64ch; }
.gloss > div:target dt { color: var(--btn); }
@media (max-width: 640px) { .gloss > div { grid-template-columns: minmax(0, 1fr); } }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 900px) { .side { position: static; } }
.box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 22px; display: grid; gap: 12px; }
.box h2, .box h3 { font-size: 1.25rem; }
.box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15.5px; }
.box .btn { justify-self: start; }
.related { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.box .related { padding-left: 0; gap: 0; font-size: 15.5px; }
.related a { display: flex; min-height: 44px; align-items: center; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--btn); }

/* Ezra */
.about-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; }
.ezra { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 520px) { .about-card { grid-template-columns: minmax(0, 1fr); } }
/* About me portrait with a gold offset line. Shows her whole photo at its own shape (no crop). */
.ezra-frame { position: relative; justify-self: center; width: min(100% - 16px, 440px); }
.ezra-frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); border-radius: var(--r-card); }
.page-head .ezra-frame img { position: relative; aspect-ratio: auto; height: auto; }
@media (max-width: 860px) { .ezra-frame { order: -1; justify-self: start; width: min(100% - 16px, 340px); margin-bottom: 16px; } }
.bio { display: grid; gap: 16px; max-width: 64ch; font-size: 1.06rem; }
.bio .pull { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.25; }
.from-ezra { margin: 32px 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--btn); border-radius: 14px; }
.from-ezra blockquote { margin: 0; }
.from-ezra blockquote p { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); line-height: 1.35; color: var(--ink); }
.from-ezra figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
/* "Or email me" under a button: a 24px tap target without moving the line (2026-11-23 audit). */
.box .fine a[href^="mailto:"] { display: inline-block; padding: 4px 0; margin: -4px 0; }
/* 2026-11-23: the FAQ's two groups, "What decides your rate", Ezra's lenders, the side-by-side form, the app note. */
.faq-h { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); margin: 0 0 14px; }
.decides-h { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); margin: 32px 0 10px; }
.decides { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 70ch; }
.decides li { position: relative; padding-left: 22px; }
.decides li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.lenders { margin-top: 28px; }
.lenders-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lender-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lender-list li { padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 15px; }
form.compare-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
form.compare-form .side { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px 18px; margin: 0; min-width: 0; display: grid; gap: 14px; background: var(--card); }
form.compare-form legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
@media (max-width: 520px) { form.compare-form { grid-template-columns: minmax(0, 1fr); } }
.app-note { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--rule); border-left: 4px solid var(--btn); border-radius: 12px; background: var(--card); max-width: 72ch; }

/* Tools */
.tool-note { font-size: 14px; color: var(--muted); }
.field .hint { font-size: 13px; color: var(--muted); }
.receipt .line.good dd { color: var(--good); }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how > div { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--accent); padding-top: 14px; }
.how p { color: var(--muted); font-size: 15.5px; }

/* Forms page */
.doc { display: grid; gap: 10px; align-content: start; }
.doc .meta { font-size: 13.5px; color: var(--muted); }
.callout { border: 1px solid var(--error); border-radius: var(--r-card); padding: 16px 18px; background: color-mix(in srgb, var(--error) 6%, var(--card)); font-size: 15.5px; }

/* Footer */
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--foot-rule); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--foot-head); margin-bottom: 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-grid ul a { display: inline-flex; min-height: 34px; align-items: center; color: var(--foot-ink); text-decoration: none; }
.foot-grid ul a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--accent); }
footer .legal { display: grid; gap: 8px; padding-top: 18px; }
@media (max-width: 760px) { .foot-grid ul a { min-height: 44px; } }

/* ---- Polish pass (2026-11-12): measure, rhythm, and grids that end clean ---- */
/* Reading measure: no running text past about 75 characters, at any width. In Geist a ch
   (the width of a zero) holds about 1.3 average characters, so 60ch reads as 75 to 80. */
main p { max-width: 60ch; text-wrap: pretty; }
.page-meta time { white-space: nowrap; }
/* A note under a table: its rule spans the table, its words keep the measure. */
.table-wrap > .fine, .table-wrap p { max-width: none; }
.table-wrap > .fine { padding-right: max(14px, calc(100% - 62ch)); }
footer .legal p, footer .foot-grid p { max-width: 64ch; text-wrap: pretty; }
/* Five cards end as two over three, four as one row or two by two: never a lone card on the last row. */
@media (min-width: 768px) {
  .cards:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .cards:has(> li:nth-child(5):last-child) > li:nth-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 600px) and (max-width: 767px) {
  .cards:has(> li:nth-child(5):last-child) > li:first-child { grid-column: 1 / -1; }
}
@media (min-width: 600px) { .cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 521px) and (max-width: 980px) { .steps li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 521px) { form.calc > .field:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* A phone number never breaks across lines. */
a[href^="tel:"] { white-space: nowrap; }
/* On a phone the form's one button spans the form, under the thumb. */
@media (max-width: 560px) { form.contact .btn { width: 100%; } }
/* The year-by-year table fits a phone without sideways scrolling. */
@media (max-width: 560px) {
  .curve-card table.data th, .curve-card table.data td { padding: 8px 9px; font-size: 14px; }
  .curve-card table.data thead th { white-space: normal; vertical-align: bottom; }
}

/* Source links sit alone in a table cell or after "Source:", 18 to 19px tall on a phone. Vertical padding
   on an inline link grows what a finger can hit to 24px without moving a single line. */
.src a, table.data td a { padding-block: 3px; }

/* ==== Midnight and gold redesign (Ezra's email, 2026-11-22) ==== */
html { scroll-padding-top: calc(var(--head-h) + 16px); }
a { text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }

/* The top: her logo, a hairline, then her name, title and licence BESIDE it (Trevor 2026-11-25: stacked under the
   logo it read as the logo sitting on her name, and the bar was 207px tall); Mortgage Architects and its brokerage
   licence on the right, never larger than her logo (O. Reg. 188/08 s. 6: name and licence, clearly shown). On a
   narrow phone the brokerage drops to its own slim line under her name rather than shrinking past legibility. */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.id { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.id:hover { color: var(--ink); }
.id-logo, .id-logo img { display: block; }
.id-logo img { width: clamp(118px, 11.5vw, 164px); height: auto; }
.id-lines { display: grid; gap: 1px; padding-left: 16px; border-left: 1px solid var(--rule); font-size: 13px; line-height: 1.35; color: var(--muted); }
.id-lines span { white-space: nowrap; }
.id-lines b { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }
.ma { display: grid; justify-items: end; gap: 6px; text-align: right; }
.ma img { display: block; width: clamp(104px, 10vw, 144px); height: auto; }
.ma span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ma img { background: #FFFFFF; padding: 6px 8px; border-radius: 6px; box-sizing: content-box; } }
:root[data-theme="dark"] .ma img { background: #FFFFFF; padding: 6px 8px; border-radius: 6px; box-sizing: content-box; }
@media (max-width: 640px) {
  .top-row { padding-block: 10px; gap: 12px; }
  .id { gap: 12px; }
  .id-logo img { width: 100px; }
  .id-lines { font-size: 12px; line-height: 1.3; padding-left: 12px; }
  .id-lines b { font-size: 0.92rem; }
  .ma img { width: 88px; }
  .ma span { font-size: 11.5px; }
}
@media (max-width: 459.98px) {
  .top-row { flex-wrap: wrap; row-gap: 8px; }
  .ma { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
  .ma img { width: 84px; }
}
@media (max-width: 359.98px) { .id-logo img { width: 88px; } .id { gap: 10px; } .id-lines { padding-left: 10px; font-size: 11.5px; } }

/* The navigation bar: Midnight with a gold rule, the six headers and Let's Chat. It sticks to the top. */
.mainnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--nav-bg); color: var(--nav-ink); border-bottom: 2px solid var(--gold); }
.nav-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: var(--head-h); }
.menu { display: flex; flex: 1; gap: 0; list-style: none; margin: 0 0 0 -14px; padding: 0; }
/* Each header is two controls (2026-11-24, Trevor): the words are a link to that section's own page, and the arrow
   beside them opens the list. On a computer the list also drops down on hover. With no script the words still link. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mi { position: relative; display: flex; align-items: stretch; }
.mi::after { content: ""; position: absolute; left: 14px; right: 12px; bottom: 0; height: 3px; background: var(--nav-gold); pointer-events: none;
  transform: scaleX(0); transform-origin: left center; transition: transform 200ms var(--ease-out); }
.mi:hover::after, .mi.open::after, .mi.here::after { transform: scaleX(1); }
.mi-a { display: flex; align-items: center; min-height: var(--head-h); padding: 0 3px 0 14px; font: 500 15px/1 var(--sans); color: var(--nav-ink);
  text-decoration: none; white-space: nowrap; }
.mi-tog { display: flex; align-items: center; justify-content: center; min-height: var(--head-h); min-width: 26px; padding: 0 12px 0 2px; margin: 0;
  background: transparent; border: 0; color: var(--nav-ink); cursor: pointer; }
.mi:hover > .mi-a, .mi.open > .mi-a, .mi:hover > .mi-tog, .mi.open > .mi-tog { color: #FFFFFF; }
.mi-a:focus-visible, .mi-tog:focus-visible { outline: 2px solid var(--nav-gold); outline-offset: -4px; }
.chev { width: 12px; height: 12px; opacity: 0.8; transition: rotate 200ms var(--ease-out); }
.mi.open .chev { rotate: 180deg; }
.mi-rates > .mi-a, .mi-rates > .mi-tog { color: var(--nav-gold); }
.mi-rates > .mi-a { font-weight: 600; }
html:not(.js) .mi-tog { display: none; }
html:not(.js) .mi-a { padding-right: 14px; }
.mi > .dd-panel { display: none; }
.mi.open > .dd-panel { display: grid; }
.dd-panel { position: absolute; z-index: 31; top: 100%; left: 0; min-width: 300px; gap: 14px; margin-top: 2px; padding: 20px 22px 16px;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card);
  box-shadow: 0 2px 4px rgb(var(--shade) / 0.06), 0 26px 50px -22px rgb(var(--shade) / 0.40); }
.mi-products .dd-panel, .mi-faqs .dd-panel { min-width: min(640px, 92vw); }
.mi:nth-last-child(-n+2) .dd-panel { left: auto; right: 0; }
.dd-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 30px; }
.dd-h { margin: 0 0 6px; font: 600 11.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.dd-cols ul { list-style: none; margin: 0; padding: 0; display: grid; }
.dd-cols a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; }
.dd-cols a:hover { color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); }
.dd-all { display: inline-flex; gap: 6px; align-items: center; justify-self: start; min-height: 40px; padding-top: 10px; border-top: 1px solid var(--rule); width: 100%;
  font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.dd-all:hover { color: var(--gold-ink); }
.dd-rates { display: grid; gap: 12px; min-width: 330px; }
.rate-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rate-mini div { border-left: 2px solid var(--gold); padding-left: 10px; }
.rate-mini dt { font-size: 12px; color: var(--muted); line-height: 1.3; }
.rate-mini dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.dd-note { font-size: 14px; color: var(--muted); }
.menu-btn { display: none; }
.chat-cta { margin-left: auto; }

/* Gold buttons: Midnight words on gold, the strongest call on any page. */
.btn-gold { background-color: var(--gold); background-image: linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 60%); color: #14141A;
  border-color: color-mix(in srgb, var(--gold) 70%, #000);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.30), 0 1px 2px rgb(var(--shade) / 0.20), 0 6px 14px -6px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-gold:hover { background-color: var(--gold-hover); color: #14141A; }
.btn-gold:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.25); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.mainnav .btn { min-height: 40px; padding: 0 18px; }

@media (max-width: 1060px) { .mi-a { padding-left: 10px; font-size: 14.5px; } .mi-tog { padding-right: 8px; } .mi::after { left: 10px; right: 8px; } .menu { margin-left: -10px; } }
/* Phones and small tablets: Menu opens the six headers as a list, each one an accordion. With no script the list
   simply shows under the bar, every header still opening on its own. */
@media (max-width: 980px) {
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; margin-left: -4px; background: transparent; color: var(--nav-ink);
    border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--r-ctl); font: 600 15px/1 var(--sans); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn[aria-expanded="true"] { border-color: var(--nav-gold); color: #FFFFFF; }
  .menu { flex-direction: column; margin: 0; background: var(--card); }
  html:not(.js) .nav-row { flex-wrap: wrap; }
  html:not(.js) .menu { order: 3; flex-basis: 100%; margin: 0 -20px; }
  .js .menu { position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: calc(100dvh - var(--head-h) - 4px); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55); border-bottom: 2px solid var(--gold); }
  .js .menu:not(.open) { display: none; }
  /* A row per header: the words open the section's page, the arrow square on the right opens its list underneath. */
  .mi { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--rule); }
  .mi::after { display: none; }
  .mi-a { min-height: 54px; padding: 0 20px; color: var(--ink); font-size: 17px; }
  .mi-tog { width: 60px; min-height: 54px; padding: 0; color: var(--ink); border-left: 1px solid var(--rule); }
  .mi-tog .chev { width: 16px; height: 16px; opacity: 1; }
  .mi:hover > .mi-a, .mi.open > .mi-a, .mi:hover > .mi-tog, .mi.open > .mi-tog { color: var(--ink); }
  .mi.open > .mi-a, .mi.open > .mi-tog { background: var(--soft); }
  .mi.here > .mi-a { box-shadow: inset 4px 0 0 var(--gold); font-weight: 600; }
  .mi-rates > .mi-a, .mi-rates > .mi-tog { color: var(--gold-ink); }
  .mi-a:focus-visible, .mi-tog:focus-visible { outline-color: var(--btn); }
  html:not(.js) .mi { grid-template-columns: minmax(0, 1fr); }
  .dd-panel { grid-column: 1 / -1; position: static; min-width: 0 !important; margin: 0; padding: 12px 20px 18px; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; background: var(--soft); }
  .dd-cols { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dd-cols a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: 16px; }
  .dd-rates { min-width: 0; }
  .dd-all { min-height: 44px; }
}
@media (max-width: 380px) { .mainnav .btn { padding: 0 14px; } .js .menu-btn { padding: 0 10px 0 8px; } }

/* The rates bar, on every page: the Bank of Canada's numbers on gold paper, the whole bar one tap to /rates/. */
.ratebar { background: var(--rate-bg); border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, var(--rule)); }
.rb { display: flex; align-items: center; gap: 8px 22px; min-height: 42px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 14px; }
.rb::-webkit-scrollbar { display: none; }
.rb:hover { color: var(--ink); }
.rb-h { font: 700 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
/* --gold-ink is 4.4:1 on the gold paper of the bar; a shade darker reads 5.1:1 (2026-11-23 audit). Dark mode keeps its own. */
:root:not([data-theme="dark"]) :is(.rb-h, .rb-go) { color: #7D5B12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.rb-h, .rb-go) { color: var(--gold-ink); } }
.rb-i b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-src { color: var(--muted); font-size: 12.5px; }
.rb-go { margin-left: auto; font-weight: 600; color: var(--gold-ink); }
.rb:hover .rb-go { text-decoration: underline; }
@media (max-width: 760px) { .rb { gap: 6px 16px; font-size: 13.5px; min-height: 40px; } .rb-src { display: none; } }
@media (max-width: 480px) { .rb-i:nth-of-type(3) { display: none; } .rb-h { display: none; } }

/* Home hero: her statement on the left, the house at the end of the path on the right, in a gold frame. */
.home-hero { padding-block: clamp(30px, 4.5vw, 64px) clamp(40px, 5vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; }
.home-hero h1 { max-width: 21ch; font-size: clamp(1.75rem, 1rem + 2.5vw, 3.05rem); line-height: 1.1; letter-spacing: 0.005em; text-transform: uppercase; font-variation-settings: "opsz" 60; }
.home-hero h1 .ez { color: var(--gold-ink); font-style: italic; text-transform: none; letter-spacing: 0; }
.hero-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 58ch; }
.hero-points li { position: relative; padding-left: 26px; font-size: 1.04rem; line-height: 1.5; }
.hero-points li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.hero-points b { font-weight: 700; }
.home-hero .ctas { margin-top: 28px; }
.hero-small { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.hero-pic { position: relative; margin: 0 14px 14px 0; isolation: isolate; }
.hero-pic::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 2px solid var(--gold); border-radius: var(--r-panel); }
.hero-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--r-panel); outline: 1px solid var(--img-edge); outline-offset: -1px;
  box-shadow: 0 2px 4px rgb(var(--shade) / 0.08), 0 34px 60px -30px rgb(var(--shade) / 0.55); }
.hero-pic figcaption { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 4px; background: rgb(10 10 14 / 0.55); color: #FFFFFF; font-size: 12px; letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the buttons come right after the headline, so they show without scrolling; the points follow. */
  .home-hero .ctas { order: 2; margin-top: 20px; }
  .hero-small { order: 3; }
  .hero-points { order: 4; margin-top: 24px; }
  .hero-pic img { aspect-ratio: 5 / 4; object-position: 50% 45%; }
}
@media (max-width: 480px) { .home-hero .ctas .btn { flex: 1 1 100%; } }

/* Rates band: Midnight, gold numbers, Ezra's own rate a gold card. */
.rates-band { background: var(--nav-bg); color: var(--nav-ink); border-block: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.rates-band h2 { color: #F6F1E6; }
.rates-band .lede, .rates-band .fine { color: #B7AF9E; max-width: 70ch; }
.rates-band a:not(.btn) { color: var(--nav-gold); }
.rates-band :focus-visible { outline-color: var(--nav-gold); }
.rates-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 14px 48px; align-items: end; margin-bottom: 28px; }
.rate-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rate-card { display: grid; gap: 10px; align-content: space-between; padding: 18px 18px 16px; border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--r-card); background: rgb(255 255 255 / 0.035); }
.rc-t { font-size: 13.5px; line-height: 1.3; color: #C9C1B0; }
.rc-v { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1; color: var(--nav-gold); font-variant-numeric: lining-nums tabular-nums; }
.rate-card.rc-ezra { background: var(--gold); border-color: var(--gold); }
.rate-card.rc-ezra .rc-t { color: #14141A; font-weight: 700; font-size: 15px; }
.rate-card.rc-ezra .btn { background: #14141A; color: #F6F1E6; border-color: #000; box-shadow: none; white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
.rate-card.rc-ezra .btn:hover { background: #2C2C34; }
.rates-band .fine { margin-top: 18px; }
@media (max-width: 980px) { .rate-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rates-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .rate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rate-card.rc-ezra { grid-column: 1 / -1; } }

/* One door per header, the 10-second way in. */
.doors6 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.doors6 li { display: grid; }
.doors6 a { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 52px 22px 22px; background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--r-card); transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.doors6 a:hover { border-color: var(--gold); box-shadow: 0 18px 36px -24px rgb(var(--shade) / 0.45); color: var(--ink); }
.doors6 b { font-family: var(--serif); font-weight: 500; font-size: 1.38rem; line-height: 1.2; }
.doors6 span { color: var(--muted); font-size: 15px; }
.doors6 i { position: absolute; right: 20px; top: 22px; font-style: normal; font-size: 20px; color: var(--gold-ink); transition: transform 160ms var(--ease-out); }
.doors6 a:hover i { transform: translateX(3px); }
@media (max-width: 860px) { .doors6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .doors6 { grid-template-columns: minmax(0, 1fr); } }

.cta-strip .wrap { display: grid; justify-items: center; gap: 18px; text-align: center; }
.cta-strip .ctas { justify-content: center; }
.reach-actions { list-style: none; margin: 22px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form-h { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.ask-rates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ask-rates a { display: grid; gap: 4px; min-height: 44px; padding: 18px 20px; background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: var(--r-card); }
.ask-rates a:hover { border-color: var(--gold); color: var(--ink); }
.ask-rates b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.ask-rates span { color: var(--gold-ink); font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) { .ask-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ask-rates { grid-template-columns: minmax(0, 1fr); } }

/* Footer: Midnight, five columns, the logo in ivory and gold. */
.foot-grid { grid-template-columns: minmax(0, 3.2fr) repeat(4, minmax(0, 1.7fr)); }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer .foot-id { display: grid; gap: 10px; align-content: start; }

/* The phone's thumb bar: a text to Ezra first (gold), the application second. */
:root { --m-accent: var(--gold); --m-accent-ink: #14141A; }
@media (max-width: 760px) {
  .m-bar .m-call { background: var(--gold) linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 60%); color: #14141A; border: 1px solid color-mix(in srgb, var(--gold) 70%, #000); }
  .m-bar .m-book { background: var(--card); color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
}

/* Ask a question: answers from this site's own pages, and Ezra one tap away (site/assets/chat.js). */
.chat-fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--nav-bg); color: var(--nav-ink); border: 1px solid var(--gold); font: 600 15px/1 var(--sans);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.20), 0 14px 32px -12px rgb(0 0 0 / 0.55); transition: bottom 240ms var(--ease-out); }
.chat-fab svg { width: 20px; height: 20px; color: var(--nav-gold); }
.chat-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* On a phone the button is a round chat icon so it never covers a page button; its name stays for screen readers. */
@media (max-width: 760px) { .chat-fab { width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .chat-fab svg { width: 24px; height: 24px; }
  body:has(#menu.open) .chat-fab { display: none; } /* the open menu owns the screen; the chat icon sat on its last rows */
  .chat-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.bar-up .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.chat-panel { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: 84px; z-index: 46; width: min(410px, calc(100vw - 24px)); max-height: min(660px, calc(100dvh - 110px));
  display: flex; flex-direction: column; overflow: hidden; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--gold);
  border-radius: var(--r-panel); box-shadow: 0 34px 80px -24px rgb(0 0 0 / 0.55); }
.chat-panel[hidden] { display: none !important; }
@media (max-width: 760px) { .chat-panel { inset: auto 0 0 0; width: 100%; max-height: 88dvh; border-radius: 16px 16px 0 0; border-inline: 0; } }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 8px 12px 18px; background: var(--nav-bg); color: var(--nav-ink); }
.chat-top b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.chat-top span { display: block; font-size: 12px; color: #B7AF9E; }
.chat-close { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--nav-ink); cursor: pointer; font-size: 26px; line-height: 1; }
.chat-close:hover { background: rgb(255 255 255 / 0.08); }
.chat-close:focus-visible { outline: 2px solid var(--nav-gold); outline-offset: -2px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--wash); }
.chat-quick .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.msg { max-width: 90%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.bot { justify-self: start; background: var(--soft); border-top-left-radius: 4px; }
.msg.me { justify-self: end; background: var(--ink); color: var(--paper); border-top-right-radius: 4px; }
.msg p + p { margin-top: 8px; }
.msg .more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--gold-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 13.5px/1.25 var(--sans); cursor: pointer; text-align: left; }
.chips button:hover { border-color: var(--gold); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--field-edge); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); font: 400 16px var(--sans); }
.chat-form input:focus-visible { outline: 2px solid var(--btn); outline-offset: 1px; }
.chat-note { padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .chat-fab, .chev, .mi::after { transition: none; } }
@media print { .mainnav, .ratebar, .chat-fab, .chat-panel, .m-bar { display: none !important; } }

/* Defined buttons (Trevor, 2026-11-24: "further define the buttons"). Each says what it does with an icon, has a
   firm edge you can see on cream or midnight, sits up off the page on a darker lip, lifts a pixel under the mouse
   and presses down when tapped. The white button stops being a faint outline: a full ink edge and its own lip. */
.btn { min-height: 46px; padding: 0 20px; gap: 9px; font-size: 15px; border-width: 1.5px; }
.btn > span { display: inline-block; }
.btn .bi { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-left: -3px; }
.btn .bi-go { margin: 0 -4px 0 0; transition: translate 160ms var(--ease-out); }
.btn:hover .bi-go { translate: 3px 0; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary, .btn-gold, .btn-quiet { position: relative; }
.btn-primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 2px 0 color-mix(in srgb, var(--btn) 70%, #000), 0 8px 18px -8px color-mix(in srgb, var(--btn) 70%, transparent); }
.btn-gold { border-color: #9C7426; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.40), 0 2px 0 #8A6516, 0 8px 18px -8px rgb(138 101 22 / 0.65); }
.btn-quiet { border-color: color-mix(in srgb, var(--ink) 70%, var(--card)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 2px 0 color-mix(in srgb, var(--ink) 22%, var(--card)); }
.btn-quiet .bi { color: var(--gold-ink); }
@media (hover: hover) {
  .btn-primary:hover, .btn-gold:hover, .btn-quiet:hover { transform: translateY(-1px); }
  .btn-gold:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 3px 0 #8A6516, 0 12px 22px -10px rgb(138 101 22 / 0.7); }
  .btn-quiet:hover { border-color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 3px 0 color-mix(in srgb, var(--ink) 30%, var(--card)); }
}
.btn-primary:active, .btn-gold:active, .btn-quiet:active { transform: translateY(2px); box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.28); }
:root[data-theme="dark"] .btn-quiet { box-shadow: 0 2px 0 rgb(0 0 0 / 0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-quiet { box-shadow: 0 2px 0 rgb(0 0 0 / 0.6); } }

/* Hero depth (Trevor, 2026-11-24: "a semi immersive touch to the hero image"). The picture slowly walks up the path
   toward the door, the frame tips a few degrees toward the mouse while the picture and the gold frame behind it move
   opposite ways (depth), a phone drifts it with the scroll, and the path light breathes. site.js feeds --px and --py
   (-1 to 1) and --sy (px). Transform-only, so it never shifts the layout; none of it runs with reduced motion. */
.hero-pic { perspective: 1100px; }
.hero-pic::before { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 7px); }
.hero-frame { position: relative; border-radius: var(--r-panel); overflow: hidden; isolation: isolate;
  box-shadow: 0 2px 4px rgb(var(--shade) / 0.08), 0 34px 60px -30px rgb(var(--shade) / 0.55);
  transform: rotateX(calc(var(--py, 0) * -2.4deg)) rotateY(calc(var(--px, 0) * 2.8deg)); }
.hero-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--img-edge); pointer-events: none; z-index: 2; }
.hero-pic .hero-frame img { display: block; border-radius: 0; outline: 0; box-shadow: none; transform-origin: 50% 64%;
  scale: 1.06; translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -8px + var(--sy, 0) * 1px);
  animation: hero-walk 22s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s both; }
@keyframes hero-walk { from { scale: 1.06; } to { scale: 1.13; } }
.hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 36% at 50% 102%, rgb(255 196 112 / 0.75), transparent 72%),
              radial-gradient(110% 80% at 50% 42%, transparent 58%, rgb(6 6 10 / 0.55) 100%);
  translate: calc(var(--px, 0) * 5px) calc(var(--py, 0) * 4px);
  animation: hero-breathe 6.5s ease-in-out infinite alternate; }
@keyframes hero-breathe { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-pic .hero-frame img { scale: 1; translate: none; animation: none; }
  .hero-frame, .hero-pic::before, .hero-glow { transform: none; translate: none; animation: none; }
}

.bi-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-bar a { gap: 8px; }
.m-bar .bi { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .mainnav .btn { min-height: 44px; } } /* a thumb-sized header button on phones (was 40px) */

/* The form's fine print: keep its lines readable on wide screens (WCAG 1.4.8, 80 characters). */
.contact .fine { max-width: 72ch; }

/* The apply page (2026-11-25): the application and the app side by side on wide screens, stacked on phones. */
.apply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.apply-card { gap: 14px; }
.apply-card p { font-size: 16px; }
.apply-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.apply-card .ctas { margin: 4px 0 0; }
.apply-card .callout { margin: 0; }

/* The online application (/apply/, 2026-11-25). Sections are plain fieldsets; "Previous address", "Previous job" and the
   co-applicant appear only when they apply (site.js), and all show with scripts off. */
.ap-wrap { max-width: 980px; }
.ap-alt { margin-top: 12px; font-size: 16px; }
.ap-form { display: grid; gap: 26px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: clamp(18px, 3.4vw, 36px); }
.ap-form [hidden] { display: none !important; }
.ap-h { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 0; }
.ap-sec { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.ap-sec legend { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--ink); padding: 0; margin: 0 0 10px; }
.ap-sec .hint { margin: -4px 0 2px; font-size: 14.5px; color: var(--muted); }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px 16px; align-items: end; }
.ap-grid .wide { grid-column: 1 / -1; }
.ap-rows { display: grid; gap: 0; }
.ap-row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(0, 1.2fr)); gap: 8px 14px; align-items: end; padding: 12px 0; border-top: 1px solid var(--rule); }
.ap-row.ap-3 { grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(0, 1.2fr)); }
.ap-row:last-child { border-bottom: 1px solid var(--rule); }
.ap-row-h { margin: 0 0 12px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.ap-person { display: grid; gap: 26px; padding: clamp(14px, 2.4vw, 24px); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--wash, var(--soft)); }
.ap-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.ap-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--btn); }
.ap-check[aria-invalid="true"], .ap-check:has(input[aria-invalid="true"]) { color: var(--error); }
.ap-consent { padding: 16px; border: 1px solid var(--rule); border-radius: var(--r-card); }
.req { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.ap-more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ap-more > summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--ink); }
.ap-more > summary::-webkit-details-marker { display: none; }
.ap-more > summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--muted); }
.ap-more[open] > summary::after { content: "\2212"; }
.ap-more[open] > summary { margin-bottom: 8px; }
.ap-more > .ap-sec { padding-bottom: 18px; }
.ap-more > .ap-sec > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ap-form .error { color: var(--error); font-size: 15px; margin: 0; }
.ap-form .error:empty { display: none; }
.ap-form [aria-invalid="true"] { border-color: var(--error) !important; }
@media (max-width: 640px) {
  .ap-row, .ap-row.ap-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-row.ap-3 > .field:nth-child(2) { grid-column: 1 / -1; }
  .ap-row-h { grid-column: 1 / -1; margin: 0; }
}
