/* Homes with Milly — site styles
   Brand tokens from the Homes with Milly design system. Square corners, thin gold rules, open gold frames.
   Gold is never used for small text: Deep Gold text only at 24px+ (or 19px+ bold). All small text is Elegant Black. */

:root {
  --ivory: #F7F2E9;
  --beige: #E8DED0;
  --champagne: #D9C29C;   /* decor only */
  --gold: #C79A32;        /* lines, frames, icons only */
  --deep-gold: #A87818;   /* large text only */
  --black: #171512;
  --black-soft: #171512;  /* secondary text uses Elegant Black too */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Allura", cursive;
  --sans: "Montserrat", Arial, sans-serif;

  --page: 1160px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 26px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
strong { font-weight: 500; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--black); color: var(--ivory); padding: 12px 18px; text-decoration: none; font-weight: 400;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--black); margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 48px); line-height: 1.12; letter-spacing: 0.005em; }
h2 { font-size: clamp(26px, 3.4vw, 30px); line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; line-height: 16px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 400; margin: 0 0 16px;
}
.lede { font-size: 18px; line-height: 30px; max-width: 34em; }
.second-language { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--deep-gold); margin: 10px 0 0; }
.script { font-family: var(--script); font-weight: 400; font-size: 1.35em; color: var(--deep-gold); line-height: 1; }
.small { font-size: 13px; line-height: 20px; }
p { margin: 0 0 16px; }

/* Thin gold rule with diamond */
.rule { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; max-width: 220px; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--gold); flex: 1; }
.rule span { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--beige); background: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 58px; }
.brand-text { display: flex; flex-direction: column; }
/* Brand name and brokerage name are set at the same size, so Homes with Milly is never larger than Keller Williams. */
.brand-name, .brand-broker { font-family: var(--sans); font-size: 13px; line-height: 18px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; color: var(--black); }
.brand-broker { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; font-weight: 400; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); }
.nav .lang { border: 1px solid var(--gold); padding: 7px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: 1px solid var(--black); border-radius: 0; cursor: pointer;
}
.btn-primary { background: var(--black); color: var(--ivory); }
.btn-primary:hover { background: var(--black); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-secondary { background: transparent; color: var(--black); }
.btn-secondary:hover { background: var(--beige); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.reverse .btn-primary { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.reverse .btn-primary:hover { background: var(--beige); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { position: relative; max-width: 420px; justify-self: end; width: 100%; }
/* Chevron photo window: the photo sits under a roof-line point */
.portrait img { clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
/* Open gold frame: two corners only */
.portrait::before, .portrait::after { content: ""; position: absolute; width: 46%; height: 40%; pointer-events: none; }
.portrait::before { left: -16px; bottom: -16px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.portrait::after { right: -16px; top: 18%; border-right: 1px solid var(--gold); border-top: 1px solid var(--gold); height: 36%; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band-beige { background: var(--beige); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--ivory); border: 1px solid var(--champagne); padding: 32px 28px; position: relative; }
.band-beige .card { background: var(--ivory); }
.card h3 { margin-bottom: 12px; }
.card .icon { width: 36px; height: 36px; margin-bottom: 18px; stroke: var(--gold); fill: none; stroke-width: 1.2; }
.card .card-link { display: inline-block; margin-top: 8px; font-weight: 400; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 16px 0 16px 34px; border-top: 1px solid var(--champagne); position: relative; }
.checklist li:last-child { border-bottom: 1px solid var(--champagne); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }
.checklist strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }

.frame-box { border: 1px solid var(--gold); padding: clamp(28px, 4vw, 44px); position: relative; }
.frame-box::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--champagne); pointer-events: none; }
.frame-box > * { position: relative; z-index: 1; }

.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li { border: 1px solid var(--gold); padding: 8px 16px; font-size: 14px; letter-spacing: 0.04em; }

.social { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--black); text-decoration: none; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.social a:hover { background: var(--ivory); }
.social svg { width: 18px; height: 18px; fill: none; stroke: var(--black); stroke-width: 1.4; }

/* Black and gold reversed band */
.reverse { background: var(--black); color: var(--ivory); text-align: center; }
.reverse h2 { color: var(--ivory); font-size: clamp(30px, 4.4vw, 42px); }
.reverse .second-language { color: var(--champagne); }
.reverse .script { color: var(--champagne); }
.reverse .rule { margin: 0 auto 24px; }
.reverse .btn-row { justify-content: center; }
.reverse a { color: var(--ivory); }

/* ---------- Booking ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.step { border: 1px solid var(--champagne); padding: 32px 28px; background: var(--ivory); }
.step-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--deep-gold); margin-bottom: 12px; display: block; }
.expect { list-style: none; padding: 0; margin: 0; }
.expect li { padding: 10px 0 10px 26px; position: relative; }
.expect li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field legend { display: block; font-size: 13px; line-height: 20px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; padding: 0; }
.field .hint { font-size: 13px; line-height: 20px; color: var(--black-soft); margin: -2px 0 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--black);
  background: #FFFFFF; border: 1px solid var(--black); border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.choice input, .consent input { width: 22px; height: 22px; accent-color: var(--black); margin: 0; flex: none; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--champagne); background: var(--beige); }
.consent label { font-size: 14px; line-height: 22px; font-weight: 300; }
.required-note { font-size: 13px; line-height: 20px; }
.req { font-weight: 500; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--beige); padding: 56px 0 32px; border-top: 1px solid var(--champagne); font-size: 14px; line-height: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: 22px; margin-bottom: 12px; }
.footer-grid p { margin: 0 0 6px; }
.hablo { display: inline-block; margin-top: 10px; border: 1px solid var(--gold); padding: 4px 10px; font-size: 12px; letter-spacing: 0.2em; font-weight: 500; }
.broker-logo { width: 150px; margin-bottom: 10px; }
.independent { font-size: 12px; line-height: 18px; margin-bottom: 14px !important; }
.eho { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.eho svg { width: 40px; height: 40px; flex: none; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--champagne); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; line-height: 20px; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { margin: 40px 0 12px; font-size: 26px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.draft-note { border: 1px solid var(--gold); padding: 14px 18px; margin: 24px 0; font-size: 14px; line-height: 22px; background: var(--beige); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split, .steps { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 360px; margin-left: 16px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .form .row { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; }
}

/* Keep the open gold frame from causing sideways scrolling on phones */
.hero { overflow-x: clip; }

/* ---------- Luxury refinements: more air, larger serif display type, edge-to-edge hero photo ---------- */
h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.06; letter-spacing: 0; }
h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.15; }
.eyebrow { letter-spacing: 0.28em; }
section { padding: clamp(72px, 10vw, 136px) 0; }
.section-head { margin-bottom: 56px; }
.lede { font-size: 19px; line-height: 32px; }
.nav a { letter-spacing: 0.14em; }
.site-header .wrap { min-height: 96px; }

@media (min-width: 901px) {
  .hero:has(.portrait) { padding: 0; }
  .hero:has(.portrait) .wrap {
    max-width: none; padding-right: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
    grid-template-columns: 1fr minmax(400px, 44vw);
    min-height: min(84vh, 780px); align-items: stretch;
  }
  .hero:has(.portrait) .wrap > div:first-child { align-self: center; padding: 88px 0; }
  .portrait { max-width: none; justify-self: stretch; height: 100%; }
  .portrait picture { display: block; height: 100%; }
  .portrait img { height: 100%; aspect-ratio: auto; object-position: 50% 25%;
    clip-path: polygon(50% 0, 100% 7%, 100% 100%, 0 100%, 0 7%); }
  .portrait::before { left: -24px; bottom: 48px; width: 34%; height: 30%; }
  .portrait::after { display: none; }
}

/* =====================================================================
   Expanded site: author box, footer, contact, articles, tools, checklist
   ===================================================================== */

/* Simple hero (no portrait): one column, generous air */
.hero-simple .wrap { display: block; }
.hero-simple .lede { max-width: 38em; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: 13px; line-height: 20px; letter-spacing: 0.06em; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.crumbs [aria-current="page"] { font-weight: 400; }

/* Card grids */
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-4 .card { padding: 28px 24px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.cards .card .step-num { margin-bottom: 14px; }

/* Facts list */
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--champagne); }
.facts div:last-child { border-bottom: 1px solid var(--champagne); }
.facts dt { font-size: 12px; line-height: 22px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.facts dd { margin: 0; }

/* Long-form text */
.prose p, .prose li { max-width: 40em; }
.narrow { max-width: 820px; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(26px, 3vw, 34px); }
.prose h2:first-child { margin-top: 0; }

/* Articles: answer first */
.article-top { padding-top: 56px; padding-bottom: 56px; }
.answer .lede { max-width: none; margin: 0; }
.answer .eyebrow { margin-bottom: 10px; }
.kt-title { margin: 44px 0 10px; font-size: clamp(26px, 3vw, 32px); }
.faq details { border-top: 1px solid var(--champagne); padding: 0; }
.faq details:last-child { border-bottom: 1px solid var(--champagne); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--serif); font-size: 22px; line-height: 1.3; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--black); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; margin: 0; }
.video-note { margin-top: 36px; padding: 18px 22px; border-left: 1px solid var(--gold); background: var(--beige); }

/* Author box: on every page, just above the footer */
.author-box { background: var(--ivory); border-top: 1px solid var(--champagne); padding: 40px 0; }
.author-box .wrap { display: flex; gap: 24px; align-items: center; }
.author-box img { width: 88px; height: 88px; object-fit: cover; object-position: 50% 25%; border: 1px solid var(--gold); padding: 4px; background: var(--ivory); flex: none; }
.author-box p { margin: 0 0 4px; font-size: 14px; line-height: 22px; }
.author-box .eyebrow { margin-bottom: 6px; }
.author-name { font-family: var(--serif); font-size: 22px !important; line-height: 1.3 !important; font-weight: 600; }

/* Contact: form beside the agent card */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.agent-card { border: 1px solid var(--gold); padding: 36px 30px; background: var(--ivory); position: relative; text-align: left; }
.agent-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--champagne); pointer-events: none; }
.agent-card > * { position: relative; z-index: 1; }
.agent-hm { width: 72px; margin-bottom: 22px; }
.agent-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; clip-path: polygon(50% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); }
.agent-name { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin: 22px 0 6px; }
.agent-meta { font-size: 13px; line-height: 20px; letter-spacing: 0.06em; margin: 0 0 4px; }
.agent-card .footer-contact { margin-top: 10px; }
.consents { display: grid; gap: 12px; }
.consent a { font-weight: 400; }
.consent-note { margin: 0; }

/* Contact lines with small caps labels */
.footer-contact { margin: 0 0 6px; }
.footer-contact span { display: inline-block; min-width: 64px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }

/* Social icon row */
.social-icons { list-style: none; display: flex; gap: 10px; padding: 0; margin: 18px 0 0; }
.social-icons a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid currentColor; color: inherit; }
.social-icons a:hover { border-color: var(--gold); }
.social-icons svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Checklist tool */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.check-group { border: 1px solid var(--champagne); background: var(--ivory); padding: 26px 24px 18px; margin: 0; min-width: 0; }
.check-group legend { font-family: var(--serif); font-size: 24px; line-height: 1.2; padding: 0 8px; margin-left: -8px; }
.check-group ul { list-style: none; margin: 8px 0 0; padding: 0; }
.check-group li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--beige); }
.check-group li:first-child { border-top: 0; }
.check-group input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--black); }
.progress { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 18px 0 0; }

/* ---------- Footer: black and gold, the reversed end card ---------- */
.site-footer { background: var(--black); color: var(--ivory); border-top: 0; padding: 80px 0 36px; font-size: 14px; line-height: 22px; }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { text-decoration-color: var(--champagne); }
.site-footer :focus-visible { outline-color: var(--ivory); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: clamp(32px, 5vw, 72px); }
.footer-hm { width: 96px; margin-bottom: 20px; }
.footer-name { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.footer-meta { margin: 0 0 14px; letter-spacing: 0.04em; }
.footer-label { font-size: 12px; line-height: 16px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; margin: 0 0 18px; color: var(--champagne); }
.kw-plate { display: inline-block; background: var(--ivory); padding: 12px 16px; margin-bottom: 12px; }
.kw-plate img { width: 150px; }
.site-footer .independent { font-size: 12px; line-height: 18px; margin: 0 0 16px; }
.site-footer address { font-style: normal; margin: 0 0 12px; }
.footer-explore ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-explore a { text-decoration: none; letter-spacing: 0.06em; }
.footer-explore a:hover { text-decoration: underline; }
.site-footer .hablo { border-color: var(--champagne); color: var(--ivory); margin-top: 18px; }
.footer-rule { display: flex; align-items: center; gap: 14px; margin: 56px 0 28px; }
.footer-rule::before, .footer-rule::after { content: ""; height: 1px; background: var(--gold); flex: 1; }
.footer-rule span { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.footer-legal { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.footer-legal p { margin: 0; font-size: 13px; line-height: 21px; max-width: 70em; }
.site-footer .eho { margin: 0; color: var(--ivory); font-size: 12px; line-height: 16px; letter-spacing: 0.06em; max-width: 120px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(247, 242, 233, 0.22); }
.footer-bottom p { margin: 0; }
.eho-page { color: var(--black); margin: 32px 0 8px; }

/* Responsive for the new pieces */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .steps-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .agent-card { max-width: 420px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards-4, .check-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .author-box .wrap { flex-direction: column; align-items: flex-start; }
  .footer-legal { grid-template-columns: 1fr; }
}

/* Print: the checklist prints clean */
@media print {
  .site-header, .site-footer, .author-box, .no-print, .band-beige ~ section, .skip-link { display: none !important; }
  .band-beige { background: none; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .check-group { break-inside: avoid; }
}

/* ---------- Phone header: one tidy swipeable menu row instead of a three-line block ---------- */
@media (max-width: 700px) {
  .site-header .wrap { justify-content: flex-start; min-height: 0; gap: 10px; padding-top: 14px; padding-bottom: 6px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; justify-content: flex-start; gap: 0 20px;
         scrollbar-width: none; border-top: 1px solid var(--beige); padding-top: 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; letter-spacing: 0.1em; }
  .nav .lang { padding: 5px 10px; }
}
@media (max-width: 420px) {
  .brand img { width: 48px; }
  .brand-name, .brand-broker { font-size: 11px; line-height: 16px; letter-spacing: 0.08em; }
}

/* ---------- Where I work: grouped by part of town, with ZIP codes ---------- */
.areas-split { grid-template-columns: 0.8fr 1.2fr; }
.area-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.area-group { border-top: 1px solid var(--gold); padding-top: 14px; min-width: 0; }
.area-group h3 { font-family: var(--sans); font-size: 12px; line-height: 18px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin: 0 0 6px; }
.area-group ul { list-style: none; margin: 0; padding: 0; }
.area-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--beige); }
.area-name { font-family: var(--serif); font-size: 21px; line-height: 26px; font-weight: 500; }
.area-name a { text-decoration-color: var(--gold); }
.area-zip { font-size: 13px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.area-tail { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; }
@media (max-width: 900px) { .areas-split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .area-groups { grid-template-columns: 1fr; gap: 22px; } }

/* Upcoming seminar (home + About) */
.seminar { padding-block: clamp(48px, 7vw, 88px); background: var(--ivory); }
.seminar-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(28px, 5vw, 56px); background: var(--ivory); border: 1px solid var(--gold); outline: 1px solid var(--champagne); outline-offset: 6px; }
.seminar-copy, .seminar-info { min-width: 0; }
.seminar-copy .eyebrow { margin-bottom: 10px; }
.seminar-lede { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: var(--black); }
.seminar-facts { margin-bottom: 24px; }
.seminar-facts div { grid-template-columns: 110px 1fr; }
.seminar-note { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--black); }
@media (max-width: 900px) { .seminar-card { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .seminar-card { outline-offset: 4px; } .seminar-facts div { grid-template-columns: 1fr; } }

/* Studio portraits stay off printed pages */
@media print { .hero .portrait { display: none !important; } .hero:has(.portrait) .wrap { display: block; } }

/* ---- Social top bar (small, secondary to Book a call) ---- */
.topbar { background: var(--black); color: var(--ivory); font-size: 12px; letter-spacing: 0.08em; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: var(--ivory); }
.topbar-note { margin: 0; text-transform: uppercase; }
.topbar-note a { text-decoration: none; }
.topbar-note a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-label { text-transform: uppercase; color: var(--champagne, #D9C29C); }
.topbar .social-icons { margin: 0; gap: 4px; }
.topbar .social-icons a { width: 32px; height: 32px; border: 0; color: var(--gold); }
.topbar .social-icons a:hover, .topbar .social-icons a:focus-visible { color: var(--champagne, #D9C29C); }
.topbar .social-icons svg { width: 17px; height: 17px; }
.site-footer .social-icons a { color: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) {
  .topbar .wrap { justify-content: space-between; }
  .topbar-label { display: none; }
}
@media print { .topbar { display: none !important; } }

/* ---- My listings ---- */
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
.listing-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--ivory); border: 1px solid var(--gold); }
.band-beige .listing-card { background: var(--ivory); }
.listing-photo { position: relative; margin: 0; min-width: 0; }
.listing-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.listing-status { position: absolute; top: 16px; left: 16px; background: var(--black); color: var(--ivory); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 12px; }
.listing-body { padding: clamp(24px, 4vw, 44px); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.listing-price { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(34px, 4vw, 44px); font-weight: 600; color: var(--black); margin: 0; line-height: 1.1; }
.listing-addr { font-family: Montserrat, Arial, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin: 4px 0 0; }
.listing-specs { margin: 6px 0 0; font-size: 16px; }
.listing-more { margin: 0; color: var(--black); opacity: 0.85; font-size: 14px; }
.listing-legal { margin: 14px 0 0; font-size: 12px; opacity: 0.8; }
.listing-search { margin-top: 22px; }
@media (max-width: 860px) { .listing-card { grid-template-columns: minmax(0, 1fr); } }

/* ---- Mobile contact bar (phones only; Book a call stays the main action) ---- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 8px; align-items: stretch;
    background: var(--ivory); border-top: 1px solid var(--gold);
    padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .mobile-bar a { text-decoration: none; display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .mbar-book { flex: 1 1 auto; background: var(--black); color: var(--ivory); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 12px; }
  .mbar-icon { flex: none; flex-direction: column; gap: 2px; width: 58px; border: 1px solid var(--gold); color: var(--black); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
  .mbar-icon svg { color: var(--deep-gold); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .mobile-bar { display: none !important; } }

/* Accessibility: gold numerals and italic lines on beige bands use a darker gold (4.0:1) */
.band-beige .step-num, .band-beige .second-language, .band-beige .script { color: #8C6410; }

/* ---------- Panel fixes, Nov 23, 2026 ---------- */
/* Book a call reads as the main action in the menu */
.nav .nav-cta { background: var(--black); color: var(--ivory); padding: 10px 18px; font-weight: 500; display: inline-flex; align-items: center; min-height: 40px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { text-decoration: none; box-shadow: inset 0 0 0 2px var(--gold); }
/* Language switch sits beside the logo, after the menu on wide screens */
.site-header .header-lang { order: 3; border: 1px solid var(--gold); padding: 7px 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.site-header .nav { order: 2; }
.site-header .brand { order: 1; }
/* Visible focus on black areas */
.topbar :focus-visible, .reverse :focus-visible, .site-footer :focus-visible, .mobile-bar .mbar-book:focus-visible, .nav .nav-cta:focus-visible { outline-color: var(--ivory); }
/* Buttons wrap cleanly */
.btn { text-align: center; }
@media (max-width: 600px) { .listing-body .btn-row .btn { width: 100%; padding-inline: 16px; letter-spacing: .12em; } }
/* Top bar: compact on phones */
.topbar .wrap { min-height: 36px; }
.topbar-note, .topbar-social { white-space: nowrap; }
/* Adjacent beige bands don't double their spacing */
.band-beige + .band-beige, .seminar + section:not([class]) { padding-top: 0; }
.band-beige .consent { background: var(--ivory); }
/* Listing card uses the brand type tokens */
.listing-price { font-family: var(--serif, "Cormorant Garamond", Georgia, serif); }
.listing-addr { font-family: var(--sans, Montserrat, Arial, sans-serif); }
.listing-more, .listing-legal { opacity: 1; color: var(--black); }
.listing-legal { font-size: 13px; }
.listing-status { font-size: 12px; }
.listing-body { justify-content: center; }
@media (max-width: 700px) {
  .topbar-phone { display: none; }
  .site-header .brand { order: 1; }
  .site-header .header-lang { order: 2; margin-left: auto; padding: 5px 10px; font-size: 12px; }
  .site-header .nav { order: 3; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .nav .nav-cta { min-height: 34px; padding: 6px 12px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(36px + 65px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .mbar-icon { font-size: 11px; }
}
/* Tablet and small laptop: logo and language on one row, the full menu on the next */
@media (min-width: 701px) and (max-width: 1279px) {
  .site-header .header-lang { order: 2; margin-left: auto; }
  .site-header .nav { order: 3; width: 100%; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--beige); padding-top: 6px; }
  .site-header .nav a { letter-spacing: 0.1em; }
}

/* ---------- Tones from the HOME / CASA email preview (Nov 23, 2026) ----------
   Cream panels with thin tan borders on the ivory page, beige frames, gold buttons with
   black text, muted charcoal secondary text, small gold labels in a darker gold so they
   stay readable (4.7:1 or better on every background). */
:root {
  --panel: #FFFDF8;
  --muted: #5A524A;
  --label-gold: #7E5A10;
  --gold-hover: #B8892A;
}
.card, .band-beige .card, .step, .agent-card, .seminar-card,
.listing-card, .band-beige .listing-card, .band-beige .consent, .author-box { background: var(--panel); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { background: var(--panel); }
.eyebrow { color: var(--label-gold); font-weight: 600; }
.lede, .card p, .step p, .sec-head p, .hero-simple .lede { color: var(--muted); }
.reverse .lede, .reverse p, .site-footer p { color: inherit; }
.btn-primary, .nav .nav-cta, .mobile-bar .mbar-book {
  background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600;
}
.btn-primary:hover, .nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] {
  background: var(--gold-hover); border-color: var(--gold-hover); box-shadow: none; color: var(--black);
}
.nav .nav-cta:focus-visible { outline-color: var(--black); }
.reverse .btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.reverse .btn-primary:hover { background: var(--gold-hover); }
.mobile-bar .mbar-book:focus-visible { outline-color: var(--black); }

/* ===== Color blocking: 3 colors, 70/20/10 (Nov 23, 2026) =====
   70 ivory base · 20 cream "rooms" framed in tan · 10 gold pop on the main CTAs.
   Charcoal is the text color and closes each page as the footer end card. */
:root { --room:#FFFDF8; --tan:#D9C29C; }
.band-beige, .reverse, .author-box { background: var(--room); border-top: 1px solid var(--tan); border-bottom: 1px solid var(--tan); }
.band-beige .card, .band-beige .step, .band-beige .listing-card, .band-beige .consent,
.band-beige .seminar-card, .band-beige .agent-card, .band-beige .frame-box { background: var(--ivory); }
.card, .step, .agent-card, .seminar-card { border-color: var(--tan); }
.consent, .draft-note, .video-note { background: var(--room); border-color: var(--tan); }
.site-header { border-bottom-color: var(--tan); }
.check-group li { border-top-color: var(--tan); }
/* Former black band becomes a cream room with a gold rule; the CTA stays the gold pop */
.reverse { color: var(--black); }
.reverse h2, .reverse a:not(.btn) { color: var(--black); }
.reverse .second-language { color: var(--muted); }
.reverse .script { color: #8A6212; }
.reverse p, .reverse .small { color: var(--muted); }
/* Top bar: a quiet cream strip instead of a black one */
.topbar { background: var(--room); color: var(--black); border-bottom: 1px solid var(--tan); }
.topbar a { color: var(--black); }
.topbar-label { color: var(--label-gold); }
.topbar .social-icons a { color: var(--label-gold); }
.topbar .social-icons a:hover, .topbar .social-icons a:focus-visible { color: var(--black); }
/* Listing badge: no extra black block */
.listing-status { background: var(--ivory); color: var(--black); border: 1px solid var(--gold); }
.band-beige .step-num { color: #7E5A10; }
.btn-secondary:hover { background: var(--room); }
.area-group li { border-bottom-color: var(--tan); }
.topbar :focus-visible, .reverse :focus-visible { outline-color: var(--black); }
.band-beige + .band-beige { border-top: 0; }
@media (max-width: 700px) { .nav { border-top-color: var(--tan); } }
/* WhatsApp joins the phone bar: four actions fit at 360px */
@media (max-width: 700px) { .mobile-bar .mbar-icon { width: 54px; } .mobile-bar .mbar-icon span { font-size: 9px; letter-spacing: 0.04em; } .mobile-bar .mbar-book { min-width: 0; font-size: 12px; letter-spacing: 0.06em; } }
/* Hidden screen-reader text inside the swipeable menu stayed outside it and widened phone pages */
.nav { position: relative; }
@media (max-width: 700px) { .mobile-bar .mbar-icon span { text-transform: none; letter-spacing: 0; font-size: 10px; } .mobile-bar .mbar-icon { width: 56px; } }
/* Cookie notice: a cream room with a tan frame; both choices weigh the same */
.cookie-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto;
  background: var(--room); color: var(--black); border: 1px solid var(--tan); border-top: 3px solid var(--gold);
  padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: 14px; line-height: 21px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; min-width: 0; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 16px; min-height: 44px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer .link-button { color: var(--ivory); }
@media (max-width: 700px) { .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; padding: 14px 16px; } }
@media print { .cookie-banner { display: none !important; } }
/* KW app block in the listings section (until IDX search lives on the site): a cream room framed in tan, gold rule on top */
.app-block { margin-top: 36px; background: var(--room); border: 1px solid var(--tan); border-top: 3px solid var(--gold);
  padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.band-beige .app-block { background: var(--ivory); }
.app-block-text { flex: 1 1 340px; min-width: 0; }
.app-block h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.15; margin: 0 0 8px; color: var(--black); }
.app-block p { margin: 0; color: var(--muted); max-width: 60ch; }
.app-block .btn-row { margin-top: 12px; }
@media (max-width: 600px) { .app-block .btn-row .btn { width: 100%; } }
/* ===== Investor calculator (Nov 23, 2026): ivory base, cream rooms framed in tan, gold rule + CTA as the pop ===== */
.calc-section { scroll-margin-top: 16px; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.calc-side { display: grid; gap: 20px; position: sticky; top: 16px; }
.calc-room { background: var(--room); border: 1px solid var(--tan); border-top: 3px solid var(--gold); padding: clamp(20px, 3.4vw, 36px); min-width: 0; }
.calc-room h3 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; line-height: 1.15; margin: 0 0 10px; }
.calc-room p { color: var(--muted); }
.calc-gate { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-gate-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.calc-gate-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 23px; }
.calc-gate-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.calc-form { max-width: none; gap: 16px; }
.calc-form .consent { background: var(--ivory); }
.calc-contact-line { margin: 0; color: var(--muted); }
.calc-error { margin: 0; font-weight: 500; color: var(--black); border-left: 3px solid var(--black); padding: 8px 12px; background: var(--ivory); }
.field input[aria-invalid="true"] { border-width: 2px; }
.calc-tool-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.calc-tool-head p { margin: 0; }
.calc-tabs { display: flex; margin: 18px 0 24px; border-bottom: 1px solid var(--tan); }
.calc-tabs [role=tab] { flex: 1 1 0; min-height: 52px; padding: 12px 10px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--muted); cursor: pointer; }
.calc-tabs [role=tab][aria-selected="true"] { color: var(--black); border-bottom-color: var(--gold); background: var(--ivory); }
.calc-tabs [role=tab]:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.calc-inputs { display: grid; gap: 18px; }
.calc-field label { letter-spacing: 0.06em; }
.calc-field .hint { color: var(--muted); }
.calc-input { display: flex; align-items: stretch; border: 1px solid var(--black); background: var(--panel); }
.calc-input:focus-within { outline: 2px solid var(--black); outline-offset: 1px; }
.field .calc-input input[type="text"] { border: 0; min-width: 0; flex: 1; font-size: 17px; font-variant-numeric: tabular-nums; }
.field .calc-input input:focus-visible { outline: 0; }
.calc-affix { display: flex; align-items: center; padding: 0 12px; background: var(--ivory); color: var(--muted); font-size: 15px; border-right: 1px solid var(--tan); }
.calc-input input + .calc-affix { border-right: 0; border-left: 1px solid var(--tan); }
.calc-field select { font-size: 16px; }
.calc-check { padding: 14px 16px; background: var(--ivory); }
.calc-check label { font-weight: 400; font-size: 15px; }
.calc-reset { justify-self: start; font-size: 14px; color: var(--muted); min-height: 44px; }
.calc-results { background: var(--ivory); border: 1px solid var(--tan); padding: clamp(18px, 2.6vw, 28px); position: sticky; top: 16px; }
.calc-results-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--label-gold) !important; margin: 0 0 12px; }
.calc-out { padding: 12px 0; border-top: 1px solid var(--tan); }
.calc-out-label { font-size: 13px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--black) !important; margin: 0; }
.calc-out-num { font-family: var(--serif); font-size: 32px; line-height: 1.15; font-weight: 600; color: var(--black) !important; margin: 4px 0 2px; font-variant-numeric: lining-nums tabular-nums; }
.calc-out-big { border-top: 0; padding-top: 0; }
.calc-out-big .calc-out-num { font-size: clamp(40px, 5vw, 52px); }
.calc-out-note { font-size: 13px; line-height: 19px; margin: 0; }
.calc-outs { display: grid; grid-template-columns: 1fr; }
.calc-verdict { margin: 4px 0 14px; padding: 12px 14px; background: var(--room); border-left: 3px solid var(--tan); color: var(--black) !important; font-size: 15px; line-height: 23px; }
.calc-verdict[data-tone="pos"] { border-left-color: var(--gold); }
.calc-verdict[data-tone="neg"] { border-left-color: var(--black); }
.calc-breakdown { margin-top: 10px; border-top: 1px solid var(--tan); padding-top: 10px; }
.calc-breakdown summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 500; }
.calc-breakdown table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc-breakdown th { text-align: left; font-weight: 400; padding: 6px 0; color: var(--muted); }
.calc-breakdown td { text-align: right; padding: 6px 0; white-space: nowrap; }
.calc-breakdown tr:last-child th, .calc-breakdown tr:last-child td { font-weight: 600; color: var(--black); border-top: 1px solid var(--tan); }
#ff-panel .calc-breakdown tr:nth-last-child(2) th, #ff-panel .calc-breakdown tr:nth-last-child(2) td { font-weight: 600; color: var(--black); border-top: 1px solid var(--tan); }
.calc-disclaimer { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--tan); }
.calc-qr { text-align: center; }
.calc-qr img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto 16px; background: #FFFFFF; padding: 10px; border: 1px solid var(--tan); }
.calc-qr h3, .calc-install h3, .calc-cta h3 { font-size: 24px; }
.calc-side p { font-size: 14px; line-height: 22px; margin-bottom: 0; }
.calc-cta .btn-row { margin-top: 16px; flex-direction: column; gap: 10px; }
.calc-cta .btn { width: 100%; padding-inline: 14px; letter-spacing: 0.1em; }
.calc-install { display: none; }
.calc-install .btn { margin-top: 14px; width: 100%; }
.calc-install #calc-install-how { margin-top: 12px; }
@media (max-width: 1080px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .calc-gate, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-results { position: static; }
  .calc-qr { display: none; }            /* already on the phone: offer the home screen instead */
  .calc-install { display: block; }
  .calc-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .calc-room { padding: 20px 16px; }
  .calc-tabs [role=tab] { font-size: 12px; letter-spacing: 0.06em; }
  .calc-out-num { font-size: 28px; }
  .calc-form .btn { width: 100%; }
}
.calc-section .calc-install { display: none; }
@media (max-width: 900px) { #calc-app.is-unlocked .calc-install { display: block; } #calc-app.is-app .calc-install { display: none; } }
@media print { .calc-side, .calc-gate, .calc-tabs, .calc-reset { display: none !important; } .calc-results { position: static; } }
#calc-app [hidden] { display: none !important; }
