/* SeattleAbode — warm minimalist. Roman White walls, forest green, taupe.
   Theme via custom properties; dark mode is a token swap, not a second sheet. */

:root {
  --paper:      #faf8f4;   /* Roman White */
  --paper-2:    #f2eee6;
  --ink:        #23261f;
  --ink-2:      #5b5f54;
  --ink-3:      #696b62;   /* was #8a8d81 — 2.92:1 on panels, failed AA */
  --rule:       #e2ddd1;   /* decorative dividers only */
  --field:      #8b8881;   /* control borders — WCAG 1.4.11 needs 3:1 */
  --forest:     #2f4f3a;
  --forest-2:   #3d6549;
  --taupe:      #756959;   /* was #a89880 — 2.43:1 on panels, failed AA */
  --warn-bg:    #fdf4e3;
  --warn-ink:   #7a5a18;
  --warn-rule:  #e8d3a4;
  --danger:     #8c3a2e;
  --shadow:     0 1px 2px rgba(35,38,31,.06), 0 8px 24px rgba(35,38,31,.05);
  --radius:     10px;
  /* Controls take a slightly tighter corner than panels, but follow the same
     token — otherwise changing the radius in the admin visibly does nothing. */
  --radius-sm:  calc(var(--radius) * 0.8);
  --measure:    64ch;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16180f; --paper-2: #1e2118; --ink: #eae6dc; --ink-2: #b3b0a4;
    --ink-3: #85887c; --rule: #333629; --field: #6e735f;
    --forest: #8fbf9e; --forest-2: #a5d0b2;
    --taupe: #c0b096; --warn-bg: #2b2515; --warn-ink: #e6c884; --warn-rule: #574a2b;
    --danger: #e2917f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --paper: #16180f; --paper-2: #1e2118; --ink: #eae6dc; --ink-2: #b3b0a4;
  --ink-3: #85887c; --rule: #333629; --field: #6e735f;
  --forest: #8fbf9e; --forest-2: #a5d0b2;
  --taupe: #c0b096; --warn-bg: #2b2515; --warn-ink: #e6c884; --warn-rule: #574a2b;
  --danger: #e2917f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  font-synthesis-weight: none; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: .18em; }
a:hover { color: var(--forest-2); }
:focus-visible {
  outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  /* Height comes from the content plus padding rather than a min-height that
     fought it: with border-box, 62px minus 24px of padding left 38px for 40px
     controls, so the bar grew unevenly. */
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
}
/* Only ONE element may claim the free space. Both .tabs and .nav-right used to
   set margin-left:auto; the first absorbs it all, so the right cluster never
   actually pinned right. */
.nav-right {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex: 0 0 auto;
}

.icon-btn {
  appearance: none; cursor: pointer; background: none;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  color: var(--ink-2); width: 40px; height: 40px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--ink); background: var(--paper-2); border-color: var(--field); }

.nav-burger {
  display: none; flex-direction: column;
  /* justify-content, not just the place-items inherited from .icon-btn: in a
     column flex container place-items centres horizontally only, because
     justify-items has no effect in flexbox. Without this the three bars stack
     from the top of the button and sit 12px above centre. */
  align-items: center; justify-content: center;
  gap: 4px; padding: 0;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
/* 6px is the exact centre-to-centre distance of the bars (2px bar + 4px gap),
   so the outer two land on the middle one and the X is symmetrical. */
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.brand {
  font: 600 15px/1 var(--sans); letter-spacing: .10em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--taupe); }

/* Wraps onto a second row rather than scrolling sideways. A horizontally
   scrolling tab strip hides items with no affordance, which fails WCAG 1.4.10
   (reflow) as well as simply being easy to miss. */
.tabs {
  display: flex; gap: 3px; flex-wrap: wrap;
  justify-content: flex-end; flex: 1 1 auto; min-width: 0;
}
.tab {
  appearance: none; border: 1px solid transparent; background: none; cursor: pointer;
  font: 500 14.5px/1 var(--sans); color: var(--ink-2);
  padding: 10px 13px; border-radius: var(--radius-sm); white-space: nowrap; min-height: 40px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.tab:hover { color: var(--ink); background: var(--paper-2); }
.tab[aria-selected="true"] {
  color: var(--forest); background: var(--paper-2);
  border-color: var(--rule); font-weight: 600;
}

@media (max-width: 720px) {
  .nav-in { gap: 8px; row-gap: 0; }

  .nav-burger { display: flex; }
  /* The theme control moves into the sheet so the bar carries exactly three
     things: who you are, what to do, and how to get elsewhere. */
  .nav-right > .theme-toggle { display: none; }

  /* The panel comes AFTER the right cluster visually. In markup it precedes
     them, so at width:100% it wrapped ABOVE and pushed Book Now to a second
     row — which is what looked broken. `order` fixes the visual sequence
     without moving it in the DOM, where it belongs for reading order. */
  .brand { order: 1; }
  .nav-right { order: 2; }
  .tabs { order: 3; }

  .tabs {
    display: none; width: 100%; flex: 1 0 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 0 10px; margin-top: 8px; border-top: 1px solid var(--rule);
  }
  .tabs.open { display: flex; }
  .tab {
    justify-content: flex-start; padding: 13px 14px; min-height: 48px;
    font-size: 15.5px; border-radius: var(--radius-sm);
  }
  .tab[aria-current="true"] { background: var(--paper-2); }

  /* Shorter label: at 320px "Book Now" alongside a wordmark and a menu button
     is the difference between fitting and wrapping. */
  .nav-cta { font-size: 13px; padding: 11px 14px; }
  .brand-text { font-size: 13.5px; }
  .brand-logo { height: 22px; }
  .brand-wordmark { height: 17px; }
}

/* The sheet's own theme control. Present in the DOM at both widths so the
   panel never changes size when it opens; CSS decides which of the two is
   visible. */
.sheet-extra { display: none; }
@media (max-width: 720px) {
  .tabs .sheet-extra {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 6px; padding: 12px 14px 2px;
    border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 14px;
  }
}

/* ---- generic ---- */
.panel[hidden] { display: none; }
section.block { padding-block: 46px; border-bottom: 1px solid var(--rule); }
section.block:last-child { border-bottom: 0; }
h1 { font: 400 clamp(30px, 5vw, 46px)/1.12 var(--serif); letter-spacing: -.015em; margin: 0 0 14px; }
h2 { font: 400 clamp(21px, 3vw, 27px)/1.25 var(--serif); margin: 0 0 16px; }
h3, .subhead { font: 600 15px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 19.5px; color: var(--ink-2); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 600; color: var(--ink); }
.muted { color: var(--ink-3); font-size: 14.5px; }

.btn {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: var(--forest); color: var(--paper); border: 1px solid var(--forest);
  font: 600 15px/1 var(--sans); padding: 13px 22px; border-radius: var(--radius-sm);
  min-height: 44px; text-decoration: none; transition: background .12s ease;
}
.btn:hover { background: var(--forest-2); border-color: var(--forest-2); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn.sm { font-size: 13.5px; padding: 9px 14px; min-height: 38px; }

/* ---- hero ---- */
.hero { padding-block: 34px 40px; }
.hero-grid {
  display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin: 0 0 16px; }
.rate { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 8px; flex-wrap: wrap; }
.rate b { font: 400 40px/1 var(--serif); color: var(--ink); }
.rate span { color: var(--ink-2); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li {
  font: 500 13.5px/1 var(--sans); color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 8px 12px; border-radius: 999px;
}

/* ---- photo placeholders (they are the shot list — spec §6) ---- */
/* ---- gallery ---- */
.gallery-section { padding-block: 52px; border-bottom: 1px solid var(--rule); }
@media (max-width: 620px) { .gallery-section { padding-block: 34px; } }

.cat { margin-top: 28px; }
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.cat-head h3 { margin: 0; }
.cat-head .count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.shot {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; position: relative;
  cursor: pointer;
}
.shot.placeholder {
  border-style: dashed; padding: 15px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.shot .lbl { font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); margin-bottom: 7px; }
.shot .dir { font-size: 13px; line-height: 1.45; color: var(--ink-3); margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 13px 9px; font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.shot:hover img { transform: scale(1.02); }
.shot img { transition: transform .3s ease; }

/* --- desktop: compact mosaic, one lead tile plus four --- */
@media (min-width: 861px) {
  .shots {
    display: grid; gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 132px;
    padding: 0 max(24px, calc((100vw - 1080px) / 2 + 24px));
  }
  .shot { grid-column: span 1; grid-row: span 1; }
  .shot.lead { grid-column: span 2; grid-row: span 2; }
  .shot.beyond-cap { display: none; }
  .cat-head { padding: 0; }
}

/* --- narrow: swipeable rail, the one place sideways scrolling is right --- */
@media (max-width: 860px) {
  .shots {
    display: grid; grid-auto-flow: column; gap: 12px;
    grid-auto-columns: min(78vw, 320px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 24px 14px;
    scrollbar-width: thin;
  }
  .shots > .shot { scroll-snap-align: start; aspect-ratio: 4/3; }
  .shots::-webkit-scrollbar { height: 7px; }
  .shots::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 99px; }
}
@media (max-width: 620px) {
  .shots { padding-left: 20px; padding-right: 20px; grid-auto-columns: 82vw; }
}

/* ---- lightbox ---- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 13, 10, .94);
  display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 14px;
}
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-title { color: #d6d2c6; font: 500 13.5px/1 var(--sans); }
.lb-close {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: #d6d2c6; font-size: 22px; line-height: 1; padding: 8px 10px;
  min-height: 44px; min-width: 44px;
}
.lb-close:hover { color: #fff; }
.lb-stage {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px; min-height: 0;
}
.lb-fig { margin: 0; display: grid; place-items: center; min-height: 0; height: 100%; }
.lb-fig img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--radius);
}
.lb-placeholder {
  border: 1px dashed #55584c; border-radius: var(--radius);
  padding: 40px 30px; max-width: 460px; text-align: left;
}
.lb-placeholder .lbl { color: #c0b096; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.lb-placeholder .dir { color: #b3b0a4; margin: 0; font-size: 15px; line-height: 1.55; }
.lb-nav {
  appearance: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #4a4d42; background: rgba(255,255,255,.06); color: #eae6dc;
  font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.lb-nav:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-cap { color: #b3b0a4; font-size: 14px; text-align: center; min-height: 1.4em; }
@media (max-width: 620px) {
  .lb-nav { display: none; }          /* swipe instead */
  .lb-stage { grid-template-columns: 1fr; }
}

/* ---- tables / lists ---- */
/* Not a scroller. Below the stacking breakpoint the table becomes cards — see
   the reflow block further down. Only image rails may scroll sideways. */
.tablewrap { overflow-x: visible; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.plainlist { list-style: none; padding: 0; margin: 0; }
.plainlist li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.plainlist li:last-child { border-bottom: 0; }
.plainlist .sub { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }

.place { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.place:last-child { border-bottom: 0; }
.place .mins {
  flex: 0 0 62px; font-variant-numeric: tabular-nums; color: var(--taupe);
  font: 600 13px/1.5 var(--sans); padding-top: 2px;
}
.place .nm { font-weight: 600; }
.place .bl { color: var(--ink-2); font-size: 15px; margin: 2px 0 0; }

/* ---- notices ---- */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-rule); color: var(--warn-ink);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; font-size: 15px;
}
.notice strong { color: inherit; }
.callout {
  background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--forest);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- forms ---- */
form.card {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 26px; max-width: 620px;
}
.field { margin-bottom: 17px; }
.field label { display: block; font: 600 13.5px/1 var(--sans); margin-bottom: 7px; color: var(--ink-2); }
.field .hint { font-weight: 400; color: var(--ink-3); }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius-sm);
  padding: 12px 13px; min-height: 44px;   /* WCAG 2.5.5 target size */
}
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
input[type="color"] { padding: 2px; min-height: 34px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
textarea { min-height: 108px; resize: vertical; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
/* Date inputs have an intrinsic minimum width in WebKit that is wider than a
   half-column on a phone, which pushed them past their container. min-width:0
   lets the grid cell actually constrain them. */
input[type="date"] { min-width: 0; max-width: 100%; }
.row2 > .field { min-width: 0; }
.booking-card .row2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .booking-card .row2 { grid-template-columns: 1fr; } }
.formmsg { margin-top: 14px; font-size: 15px; }
.formmsg.ok { color: var(--forest); }
.formmsg.err { color: var(--danger); }

/* ---- footer ---- */
footer { padding-block: 34px 56px; color: var(--ink-3); font-size: 14px; }
footer .fl { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ---- admin ---- */
.queue-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.queue-row .pos {
  font: 600 15px/1 var(--sans); color: var(--paper); background: var(--forest);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.queue-row.later .pos { background: var(--ink-3); }
.badge {
  display: inline-block; font: 600 11.5px/1 var(--sans); letter-spacing: .07em;
  text-transform: uppercase; padding: 5px 9px; border-radius: calc(var(--radius) * 0.5);
  background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2);
}
.badge.new { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.stat { display: grid; gap: 4px; }
.stat b { font: 400 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font: 500 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.statrow { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 30px; }
.loading { color: var(--ink-3); font-size: 15px; padding: 22px 0; }

/* ---- compliance ---- */
.progress-head {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 28px;
}
.ring { flex: 0 0 auto; position: relative; width: 108px; height: 108px; }
.ring svg { transform: rotate(-90deg); width: 108px; height: 108px; display: block; }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: var(--rule); }
.ring .fill {
  stroke: var(--forest);
  transition: stroke-dashoffset .55s cubic-bezier(.4,0,.2,1);
}
.ring .pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 24px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink);
}
.progress-head .summary { flex: 1 1 240px; }
.progress-head .summary h2 { margin-bottom: 6px; }
.progress-head .counts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.progress-head .counts div { font-size: 14px; color: var(--ink-2); }
.progress-head .counts b { font-variant-numeric: tabular-nums; color: var(--ink); }

.task {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.task:last-child { border-bottom: 0; }
.task input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; cursor: pointer; accent-color: var(--forest); }
.task.done .tt { text-decoration: line-through; color: var(--ink-3); }
.task.na { opacity: .55; }
.task .tt { font-weight: 600; font-size: 16px; }
.task .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 7px 0 0; }
.task .chip {
  font: 500 11.5px/1 var(--sans); letter-spacing: .04em; padding: 4px 8px;
  border-radius: calc(var(--radius) * 0.5); background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2);
}
.task .chip.blocked { background: var(--warn-bg); border-color: var(--warn-rule); color: var(--warn-ink); }
.task .chip.opt { border-style: dashed; }
.task details { margin-top: 10px; }
.task summary {
  cursor: pointer; font: 600 13.5px/1 var(--sans); color: var(--forest);
  list-style: none; padding: 4px 0;
}
.task summary::-webkit-details-marker { display: none; }
.task summary::before { content: '▸ '; display: inline-block; transition: transform .15s; }
.task details[open] summary::before { content: '▾ '; }
.task details .prose {
  margin-top: 8px; padding: 14px 18px; background: var(--paper-2);
  border: 1px solid var(--rule); border-left: 3px solid var(--forest);
  border-radius: var(--radius); font-size: 15px;
}
.task details .prose p:last-child { margin-bottom: 0; }
.task .actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* ---- rich text editor ---- */
.rte { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.rte-bar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 6px 8px; background: var(--paper-2); border-bottom: 1px solid var(--rule);
}
.rte-btn {
  appearance: none; cursor: pointer; min-width: 30px; height: 28px;
  padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: none; color: var(--ink-2);
  font: 500 14px/1 var(--sans);
}
.rte-btn:hover:not(:disabled) { background: var(--paper); border-color: var(--rule); color: var(--ink); }
.rte-btn:disabled { opacity: .35; cursor: not-allowed; }
.rte-btn.on { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.rte-sep { width: 1px; height: 18px; background: var(--rule); margin: 0 5px; }

.rte-surface {
  min-height: 150px; max-height: 460px; overflow-y: auto;
  padding: 14px 16px; font: 400 16px/1.6 var(--sans); color: var(--ink);
}
.rte-surface:focus { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--forest) 35%, transparent); }
.rte-surface > *:first-child { margin-top: 0; }
.rte-surface > *:last-child { margin-bottom: 0; }
.rte-surface p { margin: 0 0 .75em; max-width: none; }
.rte-surface h2 { font: 400 22px/1.3 var(--serif); margin: .7em 0 .35em; }
.rte-surface h3 { font: 600 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 1em 0 .4em; }
.rte-surface h4 { font: 600 16px/1.3 var(--sans); margin: .8em 0 .3em; }
.rte-surface ul, .rte-surface ol { margin: 0 0 .75em; padding-left: 1.3em; }
.rte-surface li { margin-bottom: .25em; }
.rte-surface blockquote {
  margin: 0 0 .75em; padding: 4px 0 4px 14px;
  border-left: 3px solid var(--forest); color: var(--ink-2);
}
.rte-surface a { color: var(--forest); }
.rte-surface code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; background: var(--paper-2); padding: 1px 4px; border-radius: 4px;
}
.rte-surface hr { border: 0; border-top: 1px solid var(--rule); margin: 1em 0; }

.rte-source {
  width: 100%; min-height: 200px; border: 0; border-radius: 0; resize: vertical;
  padding: 14px 16px; background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.6;
}
.rte-source:focus { outline: none; }

/* ---- availability calendar ---- */
.cal-wrap { max-width: 420px; }
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.cal-nav .mon { font: 500 16px/1 var(--sans); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow {
  text-align: center; font: 600 11px/1 var(--sans); letter-spacing: .06em;
  color: var(--ink-3); padding: 6px 0 8px;
}
.cal-day {
  appearance: none; border: 1px solid transparent; background: var(--paper-2);
  color: var(--ink); border-radius: var(--radius-sm); aspect-ratio: 1;
  display: grid; place-items: center;
  font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums;
}
button.cal-day { cursor: pointer; }
button.cal-day:hover:not(:disabled) { border-color: var(--forest); }
.cal-day.empty { background: none; }
.cal-day.past { opacity: .3; }
.cal-day:disabled { cursor: not-allowed; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--taupe); }
.cal-day.blocked { background: var(--forest); color: var(--paper); }
.cal-day.booked  { background: var(--ink-2); color: var(--paper); }
.cal-day.google  { background: var(--taupe); color: var(--paper); }
.cal-day.selected { background: var(--forest-2); color: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }

.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-legend i.free { background: var(--paper-2); border: 1px solid var(--rule); }
.cal-legend i.blk { background: var(--forest); }
.cal-legend i.ggl { background: var(--taupe); }
.cal-legend i.bkd { background: var(--ink-2); }



/* ---- responsive + reflow ---- */
/* WCAG 1.4.10: usable at 320px with no two-dimensional scrolling. */
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  section.block { padding-block: 30px; }
  .section-body { padding-block: 34px; }
  .hero { padding-block: 26px 20px; }
  .hero-grid { gap: 26px; }
  .cols { gap: 26px; }
  form.card { padding: 20px; }
  .booking-card { padding: 20px; }
  .progress-head { padding: 18px; gap: 18px; }
  .queue-row { grid-template-columns: 34px 1fr; }
  .queue-row .actions, .queue-row > div:last-child { grid-column: 2; }
  .rte-bar { gap: 3px; }
  .rte-btn { min-width: 36px; height: 36px; }
  .gallery { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .nav-in { min-height: 56px; }
  h2 { font-size: 22px; }
  .lede { font-size: 17.5px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 26px; }
  .rate b { font-size: 30px; }
  .facts li { font-size: 12.5px; padding: 7px 10px; }
  .booking-card { padding: 18px; }
  .booking-card .row2 { grid-template-columns: 1fr; }
}

/* Nothing should be able to push the page sideways.
   `clip` rather than `hidden`: overflow:hidden on an ancestor turns it into a
   scroll container, which silently kills position:sticky on every descendant —
   including the nav. `clip` contains the overflow without that side effect. */
html { overflow-x: clip; }
body { overflow-x: clip; }
img, table, pre { max-width: 100%; }
/* Long words and URLs must not force a horizontal scrollbar. */
p, li, td, th, .prose, .tt { overflow-wrap: anywhere; }

/* ---- tables reflow into cards on narrow screens ----
   A sideways-scrolling table hides columns with no affordance and fails
   WCAG 1.4.10. Each cell carries its label via data-label instead. */
@media (max-width: 620px) {
  .tablewrap table { min-width: 0; }
  .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tablewrap tr {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  }
  .tablewrap tr:last-child { border-bottom: 0; }
  .tablewrap td {
    display: grid; grid-template-columns: 8.5em 1fr; gap: 12px;
    padding: 4px 0; border: 0; align-items: baseline;
  }
  .tablewrap td::before {
    content: attr(data-label);
    font: 600 12px/1.5 var(--sans); letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink-3);
  }
  /* A cell with nothing in it is noise once stacked. */
  .tablewrap td:empty, .tablewrap td[data-empty="true"] { display: none; }
  /* The first cell reads as the card's heading. */
  .tablewrap td:first-child { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
  .tablewrap td:first-child::before { display: none; }
}

/* ---- sign-in ---- */
.signin {
  max-width: 400px; background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px;
}
.signin h2 { margin-bottom: 8px; }
.signin .lede { font-size: 16px; margin-bottom: 22px; }
.signin .btn { width: 100%; justify-content: center; }
.signin-google { background: var(--paper); color: var(--ink); border-color: var(--field); }
.signin-google:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-3); }
.signin .field { margin-bottom: 12px; }
.signin-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--ink-3); font-size: 13px;
}
.signin-or::before, .signin-or::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}
.signin .formmsg { margin-top: 14px; min-height: 1.4em; }

/* ---- portal ---- */
.portal-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pcard {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px 22px;
}
.pcard h3 { margin-bottom: 10px; }
.pcard .big { font: 400 26px/1.15 var(--serif); margin: 0 0 6px; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; }
.timeline li {
  position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--rule);
  margin-left: 7px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -8px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--rule);
}
.timeline li.done::before { background: var(--forest); border-color: var(--forest); }
.timeline li.current::before { background: var(--paper); border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 25%, transparent); }
.timeline .tl-title { font-weight: 600; }
.timeline .tl-sub { color: var(--ink-2); font-size: 14.5px; margin: 3px 0 0; }
.empty-state {
  border: 1px dashed var(--field); border-radius: var(--radius);
  padding: 24px; color: var(--ink-2); font-size: 15px;
}
.empty-state strong { color: var(--ink); }


/* ---- single-page listing ---- */
:root { --nav-h: 66px; }   /* measured at runtime by nav.js; this is the fallback */

/* Anchor targets sit below the sticky bar rather than under it. */
.anchor { scroll-margin-top: calc(var(--nav-h, 66px) + 8px); }
.section-body { padding-block: 52px; border-bottom: 1px solid var(--rule); }
#inquire .section-body { border-bottom: 0; }
#overview .section-body { padding-top: 8px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.nav-cta { flex: 0 0 auto; }
@media (max-width: 720px) {
  .nav-cta { order: 2; margin-left: auto; }
  .tabs { order: 3; }
}

/* Jump links read as links, and the current section is marked with a rule
   rather than only colour — colour alone is not a sufficient indicator. */
a.tab { position: relative; }
a.tab[aria-current="true"] {
  color: var(--forest); background: var(--paper-2);
  border-color: var(--rule); font-weight: 600;
}

/* ---- booking ---- */
.cal-day.sel-start, .cal-day.sel-end {
  background: var(--forest); color: var(--paper); font-weight: 700;
}
.cal-day.sel-mid { background: color-mix(in srgb, var(--forest) 26%, var(--paper-2)); color: var(--ink); }
.cal-legend i.sel { background: var(--forest); }

.verdict { border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 15.5px; }
.verdict.ok   { background: color-mix(in srgb, var(--forest) 12%, var(--paper)); border: 1px solid color-mix(in srgb, var(--forest) 40%, var(--paper)); }
.verdict.warn { background: var(--warn-bg); border: 1px solid var(--warn-rule); color: var(--warn-ink); }
.verdict.info { background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2); }
.verdict strong { display: block; margin-bottom: 4px; color: inherit; }
.verdict .btn { margin-top: 12px; }
.verdict .nights { font-variant-numeric: tabular-nums; }

/* ---- modal ---- */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.modal {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; width: min(660px, 100%);
  max-height: 90vh; overflow-y: auto;
}
.modal h2 { margin-bottom: 4px; }
.modal h3 { margin-top: 18px; }
.modal .notice { margin: 18px 0; }
@media (max-width: 620px) { .modal { padding: 20px; } }


/* ---- booking card ---- */
.booking-card {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  position: sticky; top: calc(var(--nav-h) + 16px);
}
/* Below the two-column breakpoint the card stacks under the intro copy — the
   second thing on the page rather than the last. */
@media (max-width: 980px) {
  .booking-card { position: static; order: 2; }
  .hero-copy { order: 1; }
  /* Only the intro leads; the long-form copy follows the card. */
  .hero-copy #ov-body, .hero-copy .cols { display: none; }
  .hero-after { display: block; }
}
@media (min-width: 981px) { .hero-after { display: none; } }

.booking-card .rate { margin: 0 0 4px; }
.booking-card .rate b { font-size: 32px; }
.booking-card .field { margin-bottom: 12px; }
.booking-card form { margin-top: 4px; }
.booking-card .btn[type="submit"] { width: 100%; justify-content: center; }
.booking-card .row2 { gap: 10px; }

.cal-toggle, .how-details { margin: 4px 0 0; }
.cal-toggle > summary, .how-details > summary {
  cursor: pointer; list-style: none; padding: 9px 0;
  font: 600 13.5px/1 var(--sans); color: var(--forest);
}
.cal-toggle > summary::-webkit-details-marker,
.how-details > summary::-webkit-details-marker { display: none; }
.cal-toggle > summary::before, .how-details > summary::before { content: '▸ '; }
.cal-toggle[open] > summary::before, .how-details[open] > summary::before { content: '▾ '; }
.how-details {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule);
}
.how-details .prose { font-size: 14.5px; }
.avail-inline { font-size: 14.5px; color: var(--forest); font-weight: 600; margin: 8px 0 0; }
.booking-card .cal-day { font-size: 13px; }
.booking-card .verdict { margin-top: 14px; font-size: 14.5px; }

/* ---- map ---- */
#map-wrap { margin-top: 26px; }
#map {
  width: 100%; height: 420px; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--paper-2);
}
@media (max-width: 620px) { #map { height: 300px; } }

/* ---- place cards ---- */
.places { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.place-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-2); overflow: hidden; display: flex; flex-direction: column;
}
.place-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.place-card .pc-body { padding: 14px 16px; }
.place-card .pc-top {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.place-card .pc-name { font-weight: 600; }
.place-card .pc-mins {
  color: var(--taupe); font: 600 12.5px/1 var(--sans); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.place-card .pc-blurb { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 0; }

/* ---- amenity chips ---- */
.amen-group { margin-bottom: 26px; }
.amen-group:last-child { margin-bottom: 0; }
.amen-group h3 { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amen-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 999px; padding: 9px 15px 9px 13px;
  font-size: 14.5px; color: var(--ink);
}
.amen-chip svg { color: var(--forest); flex: 0 0 auto; }
@media (max-width: 620px) { .amen-chip { font-size: 14px; padding: 8px 13px 8px 11px; } }

#map.map-fallback {
  display: grid; place-items: center; text-align: center; padding: 30px;
  color: var(--ink-2);
}
#map.map-fallback p { margin: 0 0 12px; }

/* ---- cropper ---- */
.crop-modal { width: min(560px, 100%); }
.crop-frame {
  width: 100%; margin: 16px 0 4px; border-radius: var(--radius);
  overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule);
  position: relative; cursor: grab; touch-action: none;
}
.crop-frame:active { cursor: grabbing; }
.crop-frame canvas { display: block; width: 100%; height: 100%; }
.crop-modal input[type="range"] { min-height: 0; padding: 0; }


/* ---- live quote ---- */
.quote {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 14px 16px; margin-top: 14px;
}
.quote-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quote-rate { font: 400 26px/1 var(--serif); font-variant-numeric: tabular-nums; }
.quote-rate small { font: 500 13px/1 var(--sans); color: var(--ink-2); margin-left: 4px; }
.quote-was { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
.quote-line {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 14.5px; color: var(--ink-2); padding: 5px 0;
}
.quote-line.total {
  border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 9px;
  color: var(--ink); font-weight: 600;
}
.quote-save {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600;
  color: var(--forest); background: color-mix(in srgb, var(--forest) 12%, transparent);
  border-radius: 999px; padding: 4px 10px;
}
.quote-nudge { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

.place-group {
  font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin: 26px 0 12px;
}
.place-group:first-child { margin-top: 0; }

/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-wordmark { height: 20px; width: auto; display: block; }
.brand-text {
  font: 600 15px/1 var(--sans); letter-spacing: .10em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.brand-accent { color: var(--taupe); }
.brand-mark { display: inline-flex; align-items: center; color: var(--forest); }
footer .brand-mark { margin-bottom: 10px; }
.brand-suffix {
  font: 500 13px/1 var(--sans); color: var(--ink-3); letter-spacing: .06em;
  text-transform: uppercase; margin-left: -3px;
}

/* ---- length-of-stay tiers ---- */
.tiers {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 14px; background: var(--paper);
}
.tiers h4 {
  margin: 0 0 8px; font: 600 11.5px/1 var(--sans); letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}
.tier-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 14px; padding: 4px 0; color: var(--ink-2);
}
.tier-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.tier-row.active { color: var(--forest); }
.tier-row.active b { color: var(--forest); }
.tier-row .off { font-size: 12.5px; color: var(--taupe); font-weight: 600; }

.code-toggle { margin-top: 12px; }
.code-toggle > summary {
  cursor: pointer; list-style: none; padding: 6px 0;
  font: 600 13px/1 var(--sans); color: var(--forest);
}
.code-toggle > summary::-webkit-details-marker { display: none; }
.code-toggle > summary::before { content: '▸ '; }
.code-toggle[open] > summary::before { content: '▾ '; }
.code-chip {
  display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--paper); background: var(--taupe); border-radius: 999px; padding: 4px 11px;
}

/* ---- neighbourhood groups ---- */
.place-groups {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.place-group-box {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-2); padding: 18px 20px;
}
.place-list { list-style: none; margin: 0; padding: 0; }
.place-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.place-row:last-child { border-bottom: 0; }
.place-row:first-child { padding-top: 0; }
.place-thumb {
  flex: 0 0 auto; width: 54px; height: 54px; object-fit: cover;
  border-radius: 8px; display: block;
}
.place-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.place-row .pc-blurb { margin: 3px 0 0; font-size: 14px; }
.routes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.route-chip {
  font: 600 12px/1 var(--sans); color: var(--paper); background: var(--forest);
  border-radius: 5px; padding: 4px 7px; font-variant-numeric: tabular-nums;
}
.route-link { display: inline-block; margin-top: 7px; font-size: 13px; font-weight: 600; }
@media (max-width: 620px) { .place-groups { grid-template-columns: 1fr; } }
#loc-transit-stops .place-list {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-2); padding: 4px 20px;
}

/* ---- headline image ----
   A layered scene rather than a photograph: west-facing light over the ship
   canal, a treeline, and the edge of a covered deck in the foreground. Drawn in
   CSS so it costs one paint and no request, and — more importantly — so it
   cannot be mistaken for a photograph of the unit. A generated interior on a
   rental listing would be a misrepresentation, not a placeholder. */
.hero-image {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: 21/9; min-height: 260px; max-height: 460px;
  background: var(--paper-2);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .hero-image { aspect-ratio: 4/3; min-height: 240px; } }

.hero-art { position: absolute; inset: 0; }
.hero-art > span { position: absolute; display: block; }

.ha-sky {
  inset: 0;
  background:
    radial-gradient(120% 80% at 72% 88%, rgba(224,178,122,.55) 0%, rgba(224,178,122,0) 55%),
    linear-gradient(#20364b 0%, #3d5b70 34%, #7c8b8a 62%, #d9b088 84%, #f0cfa4 100%);
}
.ha-sun {
  right: 24%; bottom: 30%; width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,201,.95) 0%, rgba(246,206,150,.55) 45%, rgba(246,206,150,0) 70%);
}
.ha-range { left: -6%; right: -6%; }
.ha-far {
  bottom: 28%; height: 20%;
  background: #4a5f6b;
  clip-path: polygon(0 100%,0 62%,7% 44%,13% 56%,21% 30%,29% 52%,37% 38%,46% 58%,54% 34%,63% 54%,71% 42%,80% 60%,88% 46%,95% 60%,100% 50%,100% 100%);
  opacity: .55;
}
.ha-mid {
  bottom: 26%; height: 15%;
  background: #33474f;
  clip-path: polygon(0 100%,0 70%,9% 52%,18% 68%,27% 46%,36% 66%,45% 54%,55% 72%,64% 50%,73% 68%,83% 56%,92% 70%,100% 60%,100% 100%);
  opacity: .75;
}
.ha-water {
  left: 0; right: 0; bottom: 12%; height: 16%;
  background: linear-gradient(#8fa2a4 0%, #6d8188 40%, #55686f 100%);
}
.ha-water::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.14) 0 1px, transparent 1px 7px);
  opacity: .5;
}
.ha-trees {
  left: -4%; right: -4%; bottom: 10%; height: 13%;
  background: #24352b;
  clip-path: polygon(0 100%,0 46%,4% 22%,8% 48%,12% 30%,16% 52%,21% 26%,25% 50%,30% 34%,34% 54%,39% 28%,43% 50%,48% 36%,52% 56%,57% 30%,61% 52%,66% 34%,70% 54%,75% 26%,79% 50%,84% 32%,88% 54%,93% 28%,97% 50%,100% 40%,100% 100%);
}
.ha-rail {
  left: 0; right: 0; bottom: 0; height: 12%;
  background: linear-gradient(#1b2119 0%, #131811 100%);
}
.ha-rail::before {
  content: ''; position: absolute; left: 0; right: 0; top: 26%; height: 5px;
  background: #2b3327;
}
/* The eave of the covered deck, framing the view from inside it. */
.ha-roof {
  left: -2%; right: -2%; top: 0; height: 17%;
  background: linear-gradient(#141a13 0%, #1b2119 62%, rgba(27,33,25,0) 100%);
  clip-path: polygon(0 0,100% 0,100% 62%,50% 100%,0 62%);
}

.hero-image-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-top: 40px; padding-bottom: 12px;
  background: linear-gradient(transparent, rgba(10,12,9,.55));
  color: rgba(255,255,255,.86); font-size: 12.5px; letter-spacing: .02em;
}


/* With an image leading the page, the intro copy is set quieter and the
   overview body is pushed below the fold rather than stacked under the title. */
.hero-copy #ov-body, .hero-copy .cols { margin-top: 34px; }
.hero-copy .lede { font-size: 18.5px; }
@media (min-width: 981px) {
  .hero-copy #ov-body { max-width: 60ch; }
}

/* ---- nav floating over the headline image ----
   The bar sits on the image until it is scrolled past. Legibility over a
   photograph cannot be assumed, so it carries its own gradient scrim and
   switches to light type — the alternative is text that happens to work on this
   image and fails on the next one someone uploads. */
.hero-image { margin-top: calc(-1 * var(--nav-h, 66px)); }
.hero-image::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--nav-h, 66px) + 60px);
  background: linear-gradient(rgba(10,12,9,.62), rgba(10,12,9,.28) 55%, transparent);
  pointer-events: none; z-index: 1;
}
.hero-overlay {
  position: absolute; left: 0; right: 0; z-index: 2;
  top: calc(var(--nav-h, 66px) + 12px);
}
.hero-overlay:empty { display: none; }
.hero-overlay .notice {
  background: rgba(250,248,244,.94); border-color: rgba(226,221,209,.6);
  backdrop-filter: blur(6px); margin: 0;
}

/* While floating, the bar is transparent and its contents go light. */
.nav.over {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.nav.over .brand-text { color: #fff; }
.nav.over .brand-accent { color: rgba(255,255,255,.78); }
.nav.over .brand-mark svg, .nav.over .brand svg { color: #fff; }
.nav.over .tab { color: rgba(255,255,255,.86); }
.nav.over .tab:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav.over .tab[aria-current="true"] {
  color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28);
}
.nav.over .icon-btn { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.34); }
.nav.over .icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav.over .nav-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav.over .nav-cta:hover { background: #fff; color: var(--ink); }
/* Once the menu is open it needs a readable surface of its own — light text on
   a photograph is fine for six words, not for a panel. */
.nav.over .tabs.open {
  background: var(--paper); border-radius: var(--radius);
  padding-left: 6px; padding-right: 6px; border-top-color: transparent;
  box-shadow: var(--shadow);
}
.nav.over .tabs.open .tab { color: var(--ink-2); }
.nav.over .tabs.open .tab[aria-current="true"] { color: var(--forest); background: var(--paper-2); border-color: var(--rule); }
.nav.over .tabs.open .sheet-extra { color: var(--ink-3); border-top-color: var(--rule); }
.nav.over .tabs.open .icon-btn { color: var(--ink-2); border-color: var(--rule); }

.nav { transition: background-color .25s ease, border-color .25s ease; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ---- ambient hero video ----
   Sits over the still and fades in only once it can play, so the image is never
   replaced by a blank frame or a stutter. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
.hero-video.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Grain, applied in CSS rather than baked into the file — it survives
   compression, costs no bytes, and can be tuned without re-encoding. */
.hero-image.grainy::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
