/* bohabaita guide pages (neighborhoods, buying guide, mamad)
   Builds on css/styles.css (tokens, nav, footer, buttons). */

.guide{--gutter:80px}
.guide h1,.guide h2,.guide h3,.guide h4{text-wrap:balance}

/* Draft-only elements: remove before launch (see README in PR) */
/* phone: smaller, so the banner takes less of the first screen; from 769px as before */
.draft-banner{background:#fbe9e1;border-bottom:1px solid var(--sage);padding:8px var(--gutter);font-size:12.5px;line-height:1.4}
@media (min-width:769px){.draft-banner{padding-block:14px;font-size:14px;line-height:1.5}}
.draft-banner strong{color:var(--terracotta)}
.draft-note{display:block;background:#fbe9e1;border-left:3px solid var(--terracotta);font-size:13px;line-height:1.45;padding:6px 10px;max-width:66ch;margin-top:4px}
.draft-note::before{content:"Entwurf · ";font-weight:700;color:var(--terracotta)}

.crumbs{padding:18px var(--gutter) 0;font-size:14px;color:var(--grey-text,#5a6670)}
.crumbs ol{list-style:none;display:flex;gap:8px;margin:0;padding:0;flex-wrap:wrap}
.crumbs li+li::before{content:"›";margin-right:8px}
.crumbs a{text-decoration:none}.crumbs a:hover{text-decoration:underline}
/* 44px tap area around the short crumb links (12px up, 16px down); the negative margin keeps the layout.
   Phones: 12px above the crumbs (room for the tap area under the header), from 769px 18px as before */
.crumbs a{display:inline-block;padding:12px 8px 16px;margin:-12px -8px -16px}
.guide.kz-page .crumbs{padding-top:12px}
@media (min-width:769px){.guide.kz-page .crumbs{padding-top:18px}}

.eyebrow{font-size:14px;font-weight:700;letter-spacing:1.68px;color:var(--terracotta);text-transform:uppercase}
.g-h1{font-size:56px;line-height:1.08;font-weight:700}
.g-h1 .light{font-weight:400;display:block}
.g-h2{font-size:36px;line-height:1.2;font-weight:700}
.lead{font-size:20px;line-height:1.5;color:var(--ink-80);max-width:42ch}
.prose{font-size:18px;line-height:1.65;color:var(--ink-80);max-width:66ch;display:grid;gap:1.1em}
.prose a{color:var(--ink)}
.prose ul,.prose ol{padding-left:1.2em;display:grid;gap:.5em}
.prose strong{color:var(--ink)}
.g-section{border-top:1px solid var(--sage);padding:72px var(--gutter);display:grid;gap:24px}
.textlink{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.pending{color:var(--terracotta)}

/* Media placeholders until the November 2026 footage is in */
.ph{position:relative;margin:0;width:100%;max-width:100%;background:repeating-linear-gradient(135deg,#ece4d6 0 14px,#e3dac9 14px 28px);
  border:1px solid var(--sage-50);display:flex;align-items:flex-end;overflow:hidden}
.ph figcaption{background:rgba(247,241,231,.92);font-size:12.5px;line-height:1.4;padding:8px 10px;margin:12px;max-width:calc(100% - 24px)}
.ph figcaption b{display:block;font-size:11px;letter-spacing:.08em;color:var(--terracotta)}
.ph.video::after{content:"";position:absolute;inset:0;margin:auto;width:68px;height:48px;border-radius:12px;background:var(--terracotta)}
.ph.video::before{content:"";position:absolute;z-index:1;left:50%;top:50%;transform:translate(-30%,-50%);border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent var(--cream)}
.r169{aspect-ratio:16/9}.r43{aspect-ratio:4/3}.r45{aspect-ratio:4/5}.r219{aspect-ratio:21/8}

/* Pre-trip launch: shot slots stay in the code with data-shot="<code>" but are hidden.
   List them with: grep -rn 'data-shot=' --include=*.html .  (must match .handover/SHOT_REGISTER.md)
   Links to pages that are not live yet keep their target in data-stage2-href (no href). */
.guide [hidden]{display:none!important}
.g-photo{margin:0;display:grid;gap:8px;min-width:0}
.g-photo img{width:100%;height:100%;object-fit:cover;display:block}
/* card images link to the same page as the card text link (tabindex -1, aria-hidden) */
.g-photo>a{display:block;min-width:0}
.g-photo>a:hover img{filter:brightness(1.05)}
.g-photo figcaption,.g-video figcaption,.photo-credit{font-size:13px;line-height:1.4;color:var(--grey-text,#5a6670)}
@media (min-width:769px){.g-photo figcaption,.g-video figcaption,.photo-credit{font-size:12.5px}}
/* light surface while a photo loads */
.guide .g-photo img{background:var(--sage-50)}
.g-photo figcaption a,.photo-credit a{color:inherit}
.soon{font-size:14px;font-weight:700;color:var(--grey-blue)}
.g-video{display:grid;gap:8px;min-width:0}
.guide .video-thumb{height:auto;aspect-ratio:16/9;overflow:hidden}
.guide .video-thumb .thumb{width:100%;height:100%;object-fit:cover;display:block}

.g-hero{padding:48px var(--gutter) 64px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:56px;align-items:center}
.g-hero-text{display:grid;gap:20px;align-content:start;min-width:0}
/* detail pages (not the compact .kz-hero): on phones less padding and a smaller H1, from 769px as before */
.guide .g-hero:not(.kz-hero){padding-top:24px;padding-bottom:32px;gap:24px}
.guide .g-hero:not(.kz-hero) .g-h1{font-size:32px}
.guide .g-hero:not(.kz-hero) .g-h1 .light{font-size:.8em}
@media (min-width:769px){
  .guide .g-hero:not(.kz-hero){padding-top:48px;padding-bottom:64px;gap:56px}
  .guide .g-hero:not(.kz-hero) .g-h1{font-size:56px}
  .guide .g-hero:not(.kz-hero) .g-h1 .light{font-size:1em}
}
/* hero without visible media (shot slots hidden until the footage is in): text over the full width */
.guide .g-hero:not(:has(> :not(.g-hero-text):not([hidden]))){grid-template-columns:minmax(0,1fr)}
.g-meta{font-size:14px;color:var(--grey-text,#5a6670)}

.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-card{display:grid;gap:12px;align-content:start;min-width:0}
.g-card h3,.g-card h4{font-size:24px;font-weight:700}
.g-card p{font-size:16px;line-height:1.55;color:var(--ink-80)}
.g-card.soon h3{color:var(--grey-blue)}

.tablewrap{overflow-x:auto;max-width:100%}
.g-table{border-collapse:collapse;width:100%;min-width:720px;font-size:15px}
.g-table th{text-align:left;font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--grey-blue);padding:10px 12px;border-bottom:1.5px solid var(--ink)}
.g-table td{padding:14px 12px;border-bottom:1px solid var(--sage);vertical-align:top;line-height:1.45}
.g-table td:first-child{font-weight:700}
/* .g-table--stack (cost table on the buying guides): on phones every row is a card, item first, then the rate, then the note,
   each cell labelled with its column head (data-label, same words as the <th>); from 700px a table again */
.g-table--stack{display:block;min-width:0}
.g-table--stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.g-table--stack tbody{display:block;border-top:1.5px solid var(--ink)}
.g-table--stack tr{display:flex;flex-direction:column;gap:10px;padding:16px 0;border-bottom:1px solid var(--sage)}
.g-table--stack td{display:block;padding:0;border:0}
.g-table--stack td:first-child{font-size:17px;line-height:1.35}
.g-table--stack td:nth-child(3){order:1}
.g-table--stack td:nth-child(2){order:2}
.g-table--stack td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:12px;font-weight:700;letter-spacing:1.4px;
  text-transform:uppercase;color:var(--grey-text,#5a6670)}
@media (min-width:700px){
  .g-table--stack{display:table;min-width:560px}
  .g-table--stack thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;display:table-header-group}
  .g-table--stack tbody{display:table-row-group;border-top:0}
  .g-table--stack tr{display:table-row;padding:0;border-bottom:0}
  .g-table--stack td{display:table-cell;padding:14px 12px;border-bottom:1px solid var(--sage)}
  .g-table--stack td:first-child{font-size:inherit;line-height:1.45}
  .g-table--stack td:not(:first-child)::before{content:none}
}

.article{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:72px;padding:64px var(--gutter);border-top:1px solid var(--sage)}
.article-main{display:grid;gap:56px;min-width:0}
.chapter{display:grid;gap:18px;scroll-margin-top:24px}
.toc{position:sticky;top:24px;align-self:start;display:grid;gap:10px;font-size:15px}
.toc a{text-decoration:none;color:var(--ink-80)}.toc a:hover{color:var(--ink);text-decoration:underline}
.toc .label{font-size:12px;font-weight:700;letter-spacing:1.4px;color:var(--grey-blue);text-transform:uppercase}

.pricebox{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center}
.bignum{font-size:44px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.bignum small{display:block;font-size:14px;font-weight:400;color:var(--grey-blue);margin-top:8px;line-height:1.4}

.steps{list-style:none;margin:0;padding:0;display:grid;gap:0;counter-reset:s;max-width:820px}
.steps li{counter-increment:s;display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;padding:22px 0;border-top:1px solid var(--sage)}
.steps li:last-child{border-bottom:1px solid var(--sage)}
.steps li::before{content:counter(s);font-size:28px;font-weight:700;color:var(--terracotta);line-height:1}
.steps h3{font-size:20px;margin-bottom:6px}
.steps p{font-size:17px;line-height:1.6;color:var(--ink-80)}
.g-quote{margin:0;max-width:820px;border-left:3px solid var(--terracotta);padding:4px 0 4px 20px}
.g-quote p{font-size:22px;line-height:1.45;font-weight:700;color:var(--ink)}
.g-quote footer{font-size:14px;color:var(--grey-blue);margin-top:8px}
.assure-title{font-size:20px;margin-top:8px}
.assure{list-style:none;padding:0;margin:0;display:grid;gap:8px;max-width:820px}
.assure li{position:relative;padding-left:28px;font-size:17px;line-height:1.5;color:var(--ink-80)}
.assure li::before{content:"✓";position:absolute;left:0;color:var(--terracotta);font-weight:700}

.favs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.fav{display:grid;gap:10px;align-content:start;min-width:0}
.fav h3{font-size:18px}
.fav p{font-size:15px;line-height:1.5;color:var(--ink-80)}
.fav .tip b{color:var(--terracotta)}
/* favourite places: 4:3 on phones (4:5 is very tall in one column), 4:5 from 769px */
.guide .fav .r45{aspect-ratio:4/3}
@media (min-width:769px){.guide .fav .r45{aspect-ratio:4/5}}

.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}
.gallery .ph:first-child{grid-row:span 2;height:100%}

.faq{display:grid;max-width:820px}
/* the vertical padding sits on the summary (whole row tappable, ~60px), the open answer keeps 12px under the question */
.faq details{border-top:1px solid var(--sage)}
.faq details:last-child{border-bottom:1px solid var(--sage)}
.faq summary{font-size:20px;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;padding:18px 0}
.faq details[open]>summary{padding-bottom:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;color:var(--terracotta);font-size:24px;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details>div{padding:0 0 18px;font-size:17px;line-height:1.6;color:var(--ink-80);max-width:66ch;display:grid;gap:10px}
.faq details>div a{color:var(--ink)}

.band{background:var(--teal);color:var(--cream);padding:88px var(--gutter);display:grid;grid-template-columns:minmax(0,1.2fr) auto;gap:40px;align-items:center}
.band h2{font-size:40px;line-height:1.2}
.band p{color:var(--cream-80);font-size:18px;line-height:1.5;margin-top:14px;max-width:52ch}
.band .textlink{color:var(--cream)}
.band-actions{display:grid;gap:14px;justify-items:start}
/* phone: text links in cards and the band get a 44px tap area (layout grows 6px per side, two links in a row stay 44px apart);
   from 769px as before */
.g-card .textlink,.band .textlink{display:inline-flex;align-items:center;min-height:44px;margin-block:-6px}
@media (min-width:769px){.g-card .textlink,.band .textlink{display:inline;min-height:0;margin-block:0}}

@media (max-width:1100px){
  .guide{--gutter:40px}
  .g-hero{grid-template-columns:minmax(0,1fr)}
  .article{grid-template-columns:minmax(0,1fr)}
  .toc{display:none}
  .favs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  .guide{--gutter:24px}
  .g-h1{font-size:38px}.g-h2{font-size:27px}.lead{font-size:17px}.prose{font-size:16px}
  .g-section{padding-block:48px}
  .cards,.cards.two{grid-template-columns:minmax(0,1fr)}
  .pricebox{grid-template-columns:minmax(0,1fr)}
  .favs{grid-template-columns:minmax(0,1fr)}
  .gallery{grid-template-columns:1fr 1fr}
  .gallery .ph:first-child{grid-column:span 2;grid-row:auto;height:auto}
  .band{grid-template-columns:minmax(0,1fr);padding-block:56px}
  .band h2{font-size:28px}
  .article{padding-block:40px}
  .steps li{grid-template-columns:40px minmax(0,1fr)}
}

/* Service / trust components */
.we{font-size:15px;line-height:1.5;color:var(--ink);background:rgba(29,78,100,.07);border-left:3px solid var(--teal);padding:8px 12px;margin-top:10px}
.we b{color:var(--teal)}
.legal-note{max-width:820px;margin:0;border:1px solid var(--sage);background:rgba(29,78,100,.05);padding:14px 16px;font-size:14px;line-height:1.55;color:var(--ink-80)}
.legal-note strong{color:var(--ink)}
.inline-cta{font-size:17px;line-height:1.5;color:var(--ink)}
.inline-cta a{font-weight:700;text-underline-offset:3px}
.team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.team-card{display:grid;gap:10px;align-content:start;min-width:0;border-top:3px solid var(--teal);padding-top:18px}
.team-card img{width:96px;height:96px;border-radius:50%;object-fit:cover;object-position:50% 20%}
.team-badge{width:96px;height:96px;border-radius:50%;background:var(--teal);color:var(--cream);display:grid;place-items:center;font-size:22px;font-weight:700}
.team-card .tag{font-size:12px;font-weight:700;letter-spacing:1.4px;color:var(--grey-blue);text-transform:uppercase}
.team-card h3{font-size:22px}
.team-card p{font-size:16px;line-height:1.55;color:var(--ink-80)}
/* "Ask Ron": on phones compact, 72px photo next to the heading, text and button below; from 769px photo | text | button */
.ask-ron{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px 16px;align-items:center;background:rgba(29,78,100,.07);padding:20px}
.ask-ron img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:50% 20%}
.ask-ron>div{display:contents}
.ask-ron h3{font-size:20px}
.ask-ron p{font-size:16px;line-height:1.55;color:var(--ink-80)}
.ask-ron p,.ask-ron>.cta-button{grid-column:1/-1}
@media (min-width:769px){
  .ask-ron{grid-template-columns:120px minmax(0,1fr) auto;gap:28px;padding:28px}
  .ask-ron img{width:120px;height:120px}
  .ask-ron>div{display:block}
  .ask-ron h3{font-size:22px;margin-bottom:6px}
  .ask-ron p,.ask-ron>.cta-button{grid-column:auto}
}
@media (max-width:768px){
  .team{grid-template-columns:minmax(0,1fr)}
}

/* Lean reading: details + sticky CTA */
details.more{margin-top:2px}
details.more>summary{cursor:pointer;list-style:none;font-size:15px;font-weight:700;color:var(--terracotta);display:inline-block}
/* 44px tap area for the short "Details +"; the negative margin keeps the line where it was */
details.more>summary{padding:14px 16px 14px 0;margin:-14px -16px -14px 0}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::after{content:" +"}
details.more[open]>summary::after{content:" –"}
details.more>*:not(summary){margin-top:10px}
.steps details.more p{font-size:15px}
.sticky-cta{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:900;background:var(--terracotta);color:var(--cream);
  font-weight:700;font-size:15px;padding:14px 22px;border-radius:999px;text-decoration:none;box-shadow:0 6px 20px rgba(38,35,34,.25)}
.sticky-cta:hover{filter:brightness(1.06)}
@media (max-width:768px){.sticky-cta{left:16px;right:16px;text-align:center}}
/* Chat entry visible (css/chat-calc.css): calculator/chat-ui.js sets html.bhc-entry-on and --bhc-entry-space
   (window edge to the left edge of the entry). The bar stands left of the entry, same bottom line, 12px apart;
   on phones it runs from 16px to the entry. Entry hidden (cookie banner or chat open): the bar as above. */
html.bhc-entry-on .sticky-cta{right:calc(var(--bhc-entry-space) + 12px);bottom:20px}
@media (max-width:639px){html.bhc-entry-on .sticky-cta{bottom:16px}}
/* Contact area in view (#contact, .ask-ron, .band, calculator pages #talk-to-ron) or a form field focused:
   calculator/chat-ui.js sets html.bh-cta-away and the bar fades out (the chat entry stays). */
html.bh-cta-away .sticky-cta{opacity:0;visibility:hidden;transform:translateY(12px);pointer-events:none}
@media (prefers-reduced-motion:no-preference){
  .sticky-cta{transition:right .2s ease,opacity .2s ease,transform .2s ease,visibility 0s linear 0s}
  html.bh-cta-away .sticky-cta{transition:right .2s ease,opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
}
.footer{padding-bottom:96px}

.jump{display:flex;flex-wrap:wrap;gap:8px}
.jump a{font-size:14px;font-weight:700;text-decoration:none;border:1px solid var(--teal);color:var(--teal);padding:7px 14px;border-radius:999px}
.jump a:hover{background:var(--teal);color:var(--cream)}
#city-guide{scroll-margin-top:16px}

/* price table (official figures) */
.pt{display:grid;gap:14px;margin-top:20px}
.pt-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pt.multi .pt-row{grid-template-columns:minmax(0,.8fr) repeat(2,minmax(0,1fr));align-items:stretch}
.pt-area{font-weight:700;align-self:center;font-size:17px}
.pt-cell{background:#fff;border:1px solid var(--sage);padding:16px 18px;display:flex;flex-direction:column;gap:3px}
.pt-lbl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--grey-text,#5a6670)}
.pt-num{font-size:30px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;color:var(--teal,#1d4e64)}
.pt-eur{font-size:16px;font-variant-numeric:tabular-nums}
.pt-meta{font-size:13px;color:var(--grey-text,#5a6670);margin-top:4px}
.pt-meta em{display:block;font-style:normal;color:var(--terracotta);font-size:13px}
@media (min-width:769px){.pt-meta em{font-size:12px}}
.pt-cell.none .pt-num{color:var(--grey-blue,#6e7b85)}
.pt-hint{margin:14px 0 0;font-size:15px}
.pt-src{margin:14px 0 0;font-size:13px;line-height:1.55;color:var(--grey-text,#5a6670);border-top:1px solid rgba(38,35,34,.12);padding-top:10px}
@media (min-width:769px){.pt-src{font-size:12.5px}}
.pt-src a{color:inherit;text-decoration:underline}
.g-table td.num{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}
.g-table td.num small{display:block;font-weight:400;color:var(--grey-blue,#6e7b85);font-size:12px}
@media (max-width:700px){
  .pt.multi .pt-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pt.multi .pt-area{grid-column:1/-1}
  .pt-num{font-size:24px}
}

/* ===================== Kieze layout (kz-), from prototype variant A2 =====================
   Behaviour in js/guides.js.
   Converted pages use <body class="guide kz-page">. Every rule below needs a kz- class or the kz-page body class.
   Overview: compact hero, one city guide section with three groups of cards.
   Detail pages: "who it fits" box under the hero, single column without the sidebar list.
   All of them: contact form section (#contact) at the end of main.
   The home page reuses the contact block inside a <div class="guide"> wrapper (not on its body). */
.guide .kz-hero{padding-top:24px;padding-bottom:40px;gap:24px}

/* overview, mobile first: one section, three groups (H3 .kz-group-h, a line above all but the first),
   slim cards (title H4); the grid has 1 column, 2 from 769px, 3 from 1101px */
.guide .kz-group{display:grid;gap:20px;min-width:0}
.guide .kz-group+.kz-group{border-top:1px solid var(--sage);padding-top:28px}
.guide .kz-group-h{font-size:24px;line-height:1.2;font-weight:700;color:var(--teal)}
.guide .kz-group-intro{font-size:18px;line-height:1.55;color:var(--ink-80);max-width:60ch;margin-top:-8px}
.guide .kz-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}
.guide .kz-card{scroll-margin-top:16px}
.guide .kz-card .g-photo img{aspect-ratio:4/3;height:auto}
@media (min-width:769px){
  .guide .kz-group{gap:24px}
  /* the text links have no 44px tap area from 769px, so the line keeps its distance to the cards above */
  .guide .kz-group+.kz-group{margin-top:16px}
  .guide .kz-group-h{font-size:28px}
  .guide .kz-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}
}
@media (min-width:1101px){.guide .kz-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* detail pages: single column (no sidebar list) */
.guide .kz-article{grid-template-columns:minmax(0,1fr)}
/* the content keeps 960px, the "Ask Ron" box runs across the full width (from 769px with the text column capped) */
.guide .kz-article .article-main>:not(.ask-ron){max-width:960px}
@media (min-width:769px){.guide .kz-article .ask-ron>div{max-width:60ch}}

/* contact: heading + intro, form, direct links; form on the right from 1101px */
.guide .kz-contact{background:color-mix(in srgb,var(--teal) 7%,var(--cream));grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
.guide .kz-contact-head{display:grid;gap:10px}
.guide .kz-contact-head p{font-size:18px;line-height:1.55;color:var(--ink-80);max-width:42ch}
.guide .kz-form{display:grid;gap:18px;width:100%;max-width:560px;min-width:0}
.guide .kz-row{display:grid;gap:6px}
.guide .kz-row label{font-size:14px;font-weight:700;color:var(--ink)}
.guide .kz-opt{font-weight:400;color:var(--ink-80)}
.guide .kz-row input,.guide .kz-row textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--grey-blue);border-radius:4px;background:var(--cream);
  color:var(--ink);font:inherit;font-size:16px}
.guide .kz-row textarea{min-height:132px;resize:vertical}
.guide .kz-row input:focus,.guide .kz-row textarea:focus{outline:2px solid var(--terracotta);outline-offset:1px;border-color:var(--ink)}
.guide .kz-row [aria-invalid="true"]{border-color:var(--terracotta);box-shadow:0 0 0 1px var(--terracotta)}
/* home page: styles.css still lays out #inquiry-form as a flex column (stretches the button), back to the kz grid */
.guide #inquiry-form{display:grid;gap:18px}
/* checkbox row (newsletter on the home page): label next to the box, whole label clickable */
.guide .kz-check label{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.5;color:var(--ink-80);cursor:pointer}
.guide .kz-check input{flex-shrink:0;width:20px;height:20px;margin-top:1px;accent-color:var(--terracotta);cursor:pointer}
.guide .kz-check input:focus-visible{outline:2px solid var(--terracotta);outline-offset:2px}
.guide .kz-submit{justify-self:start;min-height:48px;border:0;font-family:inherit;cursor:pointer}
.guide .kz-submit:disabled{opacity:.6;cursor:default}
.guide .kz-submit:focus-visible,.guide .kz-direct a:focus-visible{outline:2px solid var(--terracotta);outline-offset:2px}
.guide .kz-status{min-height:1.5em;font-size:15px;line-height:1.5;color:var(--ink-80)}
.guide .kz-status.is-error{color:var(--ink);font-weight:700;border-left:3px solid var(--terracotta);padding-left:10px}
.guide .kz-status.is-success{color:var(--teal);font-weight:700;border-left:3px solid var(--teal);padding-left:10px}
.guide .kz-status a{color:inherit}
.guide .kz-direct{display:grid;gap:8px;max-width:560px}
/* phone: the direct links ("Prefer to reach Ron directly?") come before the form; from 769px the form first again
   (from 1101px the grid areas place both) */
.guide .kz-form{order:1}
@media (min-width:769px){.guide .kz-form{order:0}}
.guide .kz-direct-label{font-size:12px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--ink-80)}
.guide .kz-direct ul{list-style:none;margin:0;padding:0;display:grid;border-top:1px solid var(--sage)}
.guide .kz-direct li{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;min-height:52px;border-bottom:1px solid var(--sage)}
.guide .kz-direct li span{min-width:84px;font-size:14px;color:var(--ink-80)}
.guide .kz-direct a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--ink);text-underline-offset:3px;overflow-wrap:anywhere}
/* focus target of the plain contact links (band, sticky CTA), set by js */
.guide .kz-contact-head h2:focus{outline:none}
.guide .kz-contact-head h2:focus-visible{outline:2px solid var(--terracotta);outline-offset:4px}

/* Fixed elements: the sticky CTA stays on screen, so anchors and focused fields keep 8px clear of the top
   and clear of the sticky CTA (20px from the bottom + ~45px high, + 16) at the bottom.
   The headings' own scroll margins are dropped here, scroll-padding does the job. */
html:has(> body.guide.kz-page){scroll-padding-top:8px;scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
.guide.kz-page main .g-h2,.guide.kz-page main section[id],.guide.kz-page #city-guide{scroll-margin-top:0}

@media (max-width:1100px){
  /* compact hero: media under the lead, at most 356px wide */
  .guide .kz-hero .g-photo{width:100%}
}
/* compact hero photo: full column width on phones, at most 356px wide from 769 to 1100px */
@media (min-width:769px) and (max-width:1100px){.guide .kz-hero .g-photo{max-width:356px}}
@media (max-width:768px){
  /* compact hero, so the neighborhood picker starts early on a phone */
  .guide .kz-hero{padding-top:14px;padding-bottom:20px;gap:12px}
  .guide .kz-hero .g-hero-text{gap:8px}
  .guide .kz-hero .g-h1{font-size:26px;line-height:1.15}
  .guide .kz-hero .lead{font-size:16px;line-height:1.4}
  html[lang="en"] .guide .kz-hero .eyebrow{letter-spacing:1.3px}
}
@media (min-width:1101px){
  .guide .kz-hero{padding-top:48px;padding-bottom:64px;gap:56px}
  .guide .kz-contact{grid-template-columns:minmax(0,1fr) minmax(0,560px);grid-template-rows:auto 1fr;grid-template-areas:"head form" "direct form";gap:32px 80px}
  .guide .kz-contact-head{grid-area:head}
  .guide .kz-form{grid-area:form}
  .guide .kz-direct{grid-area:direct;max-width:420px}
}
@media (prefers-reduced-motion:reduce){
  html:has(> body.guide.kz-page){scroll-behavior:auto}
}
