/* L&J Rolloffs site styles. Colors, type and spacing come from /brand/tokens.css. */

/* Layout tokens (#100, plan/UX-REDESIGN.md "Layout and spacing standards") */
:root {
  --gutter: 20px;
  --section-pad: var(--space-7);
  --card-pad: 20px;
}
@media (min-width: 600px) {
  :root {
    --gutter: var(--space-6);
    --section-pad: var(--space-8);
    --card-pad: var(--space-5);
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: var(--space-7);
    --section-pad: var(--space-9);
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
/* A phone number never splits across two lines */
a[href^="tel:"] {
  white-space: nowrap;
}
/* hidden always wins, even over components that set their own display (like .btn) */
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--color-link);
}
a:hover {
  color: var(--lj-ember);
}
:focus-visible {
  outline: 3px solid var(--lj-black);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgb(254 94 0 / 0.35);
}
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  /* Side margins by device (#100): 20px phones, 32px tablets, 48px desktop, and never under a
     phone's rounded corners or notch. */
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: italic;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
}
h1 {
  font-size: var(--text-h1);
  font-weight: 900;
  text-transform: uppercase;
}
h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  text-transform: uppercase;
}
h3 {
  font-size: var(--text-h3);
  font-weight: 800;
}
/* No word left alone on a line: headings, questions and buttons balance their lines; body
   text avoids a one-word last line. Browsers without these just wrap as before. */
h1,
h2,
h3,
summary,
.btn {
  text-wrap: balance;
}
p,
li,
td,
th,
dd,
dt {
  text-wrap: pretty;
}
.display {
  font-size: var(--text-display);
}
.lead {
  font-size: var(--text-lead);
  font-weight: 500;
}
.label,
.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  margin: 0 0 var(--space-2);
}
.muted {
  color: var(--color-text-muted);
}
.small {
  font-size: var(--text-small);
}
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-5);
  border: var(--border-heavy);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.125rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.1;
  text-align: center;
}
.btn-primary {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-text);
}
.btn-primary:active {
  background: var(--lj-ember);
  color: #fff;
}
.btn-dark {
  background: var(--lj-black);
  color: var(--color-dark-text);
}
.btn-dark:hover {
  color: var(--lj-orange);
}
.btn-ghost {
  background: var(--color-surface);
  color: var(--lj-black);
}
.btn-ghost:hover {
  color: var(--lj-black);
  background: #f1ede8;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dev banner */
.dev-banner {
  background: var(--lj-blue);
  color: var(--lj-black);
  text-align: center;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-small);
}

/* Header: one compact sticky row (logo, menu, phone, Book). The logo eases smaller over the
   first 80px of scrolling where scroll-driven animations are supported; elsewhere it simply
   stays put. Below 1080px the menu moves into a slide-in drawer opened by a hamburger
   (site.js); without JS it becomes a scrolling row under the logo. */
@property --logo-h {
  syntax: "<length>";
  inherits: true;
  initial-value: 60px;
}
/* Top bar, from 600px: call or text, hours and Ask Charlie (#101) */
.topbar {
  display: none;
  background: var(--lj-black);
  color: var(--color-dark-text);
  font-size: var(--text-small);
}
.topbar a {
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 44px;
}
.topbar-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.topbar-hours {
  color: #c9c5bf;
}
.topbar-ask {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.topbar-ask img {
  border: 2px solid #fff;
  border-radius: 50%;
}
@media (min-width: 600px) {
  .topbar {
    display: block;
  }
}

/* Header: the full logo (Charlie and the name) at 56 / 60 / 72px, a little smaller once scrolled */
.site-header {
  --logo-h: 56px;
  --logo-h-small: 44px;
  background: var(--color-surface);
  border-bottom: var(--border-heavy);
  position: sticky;
  top: 0;
  z-index: 20;
}
@media (min-width: 600px) {
  .site-header {
    --logo-h: 60px;
    --logo-h-small: 48px;
  }
}
@media (min-width: 1024px) {
  .site-header {
    --logo-h: 72px;
    --logo-h-small: 56px;
  }
}
@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header {
      animation: header-tighten linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 80px;
    }
  }
}
@keyframes header-tighten {
  to {
    --logo-h: var(--logo-h-small);
    box-shadow: 0 4px 16px rgb(17 18 20 / 0.12);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-2);
}
.brand {
  flex: none;
  display: block;
  border-radius: var(--radius-sm);
}
.brand img {
  display: block;
  height: var(--logo-h);
  width: auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-4);
  /* One size for every top-level item, links and "Who we serve" alike: they inherit it */
  font-size: 0.9375rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Tall targets; no minimum width, which spread a short label like FAQ out from its neighbours */
  min-height: 44px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lj-black);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--lj-orange-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header-book {
  margin-left: auto;
  white-space: nowrap;
}
.book-more {
  display: none;
}
@media (min-width: 1024px) {
  .site-nav {
    gap: 0 var(--space-5);
    font-size: 1rem;
  }
  /* A flex button drops the span's leading space, so the gap is a margin */
  .book-more {
    display: inline;
    margin-left: 0.3em;
  }
}
/* Phones: an "Ask" pill with Charlie's badge beside the menu button */
.ask-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 var(--space-3) 0 4px;
  border: 2px solid var(--lj-black);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--lj-black);
  font-weight: 700;
  text-decoration: none;
}
.ask-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

/* Hamburger: icon only, a 44px target with no box around it */
.menu-toggle,
.drawer-close {
  display: inline-grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  margin-right: calc(var(--space-2) * -1);
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: var(--lj-black);
  cursor: pointer;
}
.menu-toggle[hidden] {
  display: none;
}
.menu-toggle:hover,
.drawer-close:hover {
  background: #f1ede8;
}
.menu-toggle svg,
.drawer-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }
}
@media (min-width: 600px) {
  .ask-pill {
    display: none;
  }
}
@media (max-width: 599px) {
  /* Phones book from the bottom bar */
  .header-book {
    display: none;
  }
}

/* Below 1024px the drawer holds the menu */
@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: wrap;
    column-gap: var(--space-3);
    row-gap: 0;
  }
  .menu-toggle {
    order: 3;
  }
  /* Without JS: the menu wraps under the logo */
  .site-nav {
    order: 4;
    flex-basis: 100%;
  }
  /* With JS: the drawer holds the menu */
  .has-menu .site-nav {
    display: none;
  }
}

/* Menu drawer: a top-layer popover holding a horizontal scroller with two snap stops
   (closed, open), so the browser handles the swipe. Slides in from the right, next to
   the hamburger. */
.drawer {
  --drawer-width: min(22rem, 85dvw);
  --drawer-backdrop: 0;
  display: none;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.drawer:popover-open {
  display: block;
}
.drawer::backdrop {
  background: var(--lj-black);
  opacity: calc(var(--drawer-backdrop) * 0.55);
}
.drawer-scroller {
  display: grid;
  grid-template-columns: 100% var(--drawer-width);
  height: 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
}
.drawer-scroller::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .drawer-scroller {
    scroll-behavior: smooth;
  }
}
/* The empty spacer is the "closed" stop; scrollLeft 0, where a new scroller starts */
.drawer-scroller::before {
  content: "";
  scroll-snap-align: start;
}
.drawer-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-align: end;
  padding: var(--space-3) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-left: var(--border-heavy);
  outline: none;
}
@supports (animation-timeline: scroll()) {
  .drawer {
    timeline-scope: --drawer-fade;
    animation: drawer-fade linear both;
    animation-timeline: --drawer-fade;
  }
  .drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }
  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }
  @keyframes drawer-fade {
    0% {
      --drawer-backdrop: 0;
    }
    100% {
      --drawer-backdrop: 1;
    }
  }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head img {
  display: block;
}
.drawer-close {
  margin-right: calc(var(--space-2) * -1);
}
.drawer-nav {
  display: flex;
  flex-direction: column;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lj-black);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.drawer-nav a:hover {
  color: var(--lj-orange-deep);
}
.drawer-nav a[aria-current="page"] {
  color: var(--lj-orange-deep);
  box-shadow: inset 4px 0 0 var(--lj-orange);
  padding-left: var(--space-4);
}
.drawer-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: auto;
}
.drawer-hours {
  margin: 0;
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* Phone bar: Book, Call and Text stay on screen on phones */
.mobile-bar {
  display: none;
}
@media (max-width: 819px) {
  .mobile-bar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--space-2);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: var(--border-heavy);
    z-index: 30;
  }
  .mobile-bar .btn {
    padding: var(--space-2);
    font-size: 1rem;
  }
  /* Room for the phone bar: inside the footer (so it stays dark), or below the page without one */
  .site-footer {
    padding-bottom: calc(var(--space-5) + 76px);
  }
  body:not(:has(.site-footer)) {
    padding-bottom: 76px;
  }
  html {
    scroll-padding-bottom: 88px;
  }
}
html {
  scroll-padding-top: 104px;
}

/* Sections */
main > section {
  padding: var(--space-8) 0;
}
main > section.tight {
  padding: var(--space-6) 0;
}
.dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}
.dark .eyebrow {
  color: var(--lj-blue);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.card {
  background: var(--color-surface);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}
.card .price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  margin: var(--space-2) 0;
}
.card .price small {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 1rem;
}
.tag {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lj-black);
  color: var(--lj-blue);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}
.checks {
  list-style: none;
  padding: 0;
}
.checks li {
  padding-left: 1.6em;
  position: relative;
  margin: var(--space-2) 0;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--lj-orange-deep);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: var(--border-heavy);
  border-radius: 50%;
  background: var(--lj-orange);
  color: var(--lj-black);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: var(--space-7);
}
table.prices {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}
table.prices th,
table.prices td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}
table.prices td.num {
  text-align: right;
  white-space: nowrap;
}
.callout {
  border-left: 6px solid var(--lj-orange);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
}
.addr-flag {
  display: block;
  color: var(--color-error);
  font-size: var(--text-small);
}
.owner-note {
  border: 2px dashed var(--color-warning);
  background: #fff8ec;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
}

/* Forms */
.field {
  margin-bottom: var(--space-4);
}
.field label,
fieldset legend {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"] {
  /* One height for every text box and dropdown (select below), so fields in a row match */
  height: 56px;
  width: 100%;
  font: inherit;
  padding: var(--space-3);
  border: 2px solid var(--lj-merle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 48px;
}
input:focus {
  border-color: var(--lj-black);
  outline: none;
  box-shadow: 0 0 0 4px rgb(254 94 0 / 0.35);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.choice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  border: 2px solid var(--lj-merle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
  cursor: pointer;
  margin-bottom: var(--space-3);
}
/* Picked: a darker, heavier-looking edge without a wider border, so the size never changes */
.choice:has(input:checked) {
  border-color: var(--lj-black);
  box-shadow:
    inset 0 0 0 1px var(--lj-black),
    0 0 0 4px rgb(254 94 0 / 0.35);
}
/* A script the team reads out (the Office's phone booking, #21): set apart so it's read whole */
.choice q.block {
  display: block;
  margin: var(--space-2) 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--lj-orange);
}
.choice input {
  margin-top: 0.35em;
  width: 22px;
  height: 22px;
  accent-color: var(--lj-orange);
  flex: none;
}
.error {
  color: var(--color-error);
  font-weight: 600;
}
.ok {
  color: var(--color-success);
  font-weight: 600;
}

/* Booking */
.book-step {
  background: var(--color-surface);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
/* Address suggestions: a list under the street box (an ARIA combobox, book.js) */
.combo {
  position: relative;
}
.combo .hint {
  margin: var(--space-1) 0;
}
.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  margin: var(--space-1) 0 0;
  padding: var(--space-1) 0;
  background: var(--color-surface);
  border: var(--border-heavy);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 24px rgb(17 18 20 / 0.15);
}
.combo-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.combo-attrib {
  margin: var(--space-1) var(--space-4);
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.combo-list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  line-height: 1.3;
}
.combo-list li span {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.combo-list li:hover,
.combo-list li[aria-selected="true"] {
  background: #ffe0cc;
}
.combo-list li[aria-selected="true"] {
  box-shadow: inset 4px 0 0 var(--lj-orange);
}
.address-choice {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* Steps not reached yet stay legible, just quieter, and say what opens them */
.locked-note {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.book-step:not([inert]) .locked-note {
  display: none;
}
/* Headings that receive focus from script (step changes) need no focus ring */
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
main[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}
.book-step[inert] {
  opacity: 0.6;
  border-color: var(--lj-merle);
  border-style: dashed;
  pointer-events: none;
}
.book-step h2 {
  font-size: var(--text-h3);
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal .dow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  text-align: center;
  color: var(--color-text-muted);
}
.cal button {
  font: inherit;
  min-height: 48px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  line-height: 1.1;
  padding: 2px;
}
.cal button small {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.cal button[aria-disabled="true"] {
  background: #f1ede8;
  color: var(--lj-merle);
  cursor: not-allowed;
}
.cal button.sel {
  background: var(--lj-orange);
  border: var(--border-heavy);
  font-weight: 700;
}
.cal button.sel small {
  color: var(--lj-black);
  font-weight: 700;
}
.cal button.inrange {
  background: #ffe0cc;
}
/* Step 3's preview before it opens (CalendarPreview in book.tsx): the same cells, not buttons */
.cal .day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  line-height: 1.1;
  padding: 2px;
}
.cal .day small {
  font-size: 0.7rem;
}
.cal .day.closed {
  background: #f1ede8;
  color: var(--lj-merle);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.cal-head strong {
  flex: 1;
  text-align: center;
  font-size: var(--text-small);
  line-height: 1.3;
  padding-inline: var(--space-2);
}
.cal-nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.cal-nav {
  min-inline-size: 48px;
  padding: 0;
}
.cal-nav svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.summary td {
  padding: var(--space-2) 0;
}
.summary td.num {
  text-align: right;
}
.summary tr.total td {
  border-top: 3px solid var(--lj-black);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
/* A page that ends in a coloured band meets the footer directly, without a cream strip between */
main:has(> section.band:last-child) + .site-footer {
  margin-top: 0;
}
.site-footer a {
  color: var(--lj-orange);
}
.site-footer .label {
  color: var(--lj-blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
}
.footer-bottom {
  border-top: 1px solid #2a2c30;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  font-size: var(--text-small);
}
@media (max-width: 600px) {
  .card .btn {
    width: 100%;
  }
}

/* Focus stays visible on dark backgrounds */
.dark :focus-visible,
.site-footer :focus-visible,
.btn-dark:focus-visible {
  outline-color: var(--lj-orange);
}

/* Utilities and small components */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.narrow {
  max-width: 760px;
}
.spaced {
  margin-bottom: var(--space-5);
}
.section-gap {
  margin-top: var(--space-7);
}
.card-title {
  font-size: var(--text-h3);
  font-weight: 800;
  text-transform: none;
}
/* Sizes page: the size cards share rows (tag, name, price, list, text, button) across the row */
.size-sheet {
  display: grid;
  grid-row: span 6;
  grid-template-rows: auto auto auto auto 1fr auto;
  grid-template-rows: subgrid;
  row-gap: var(--space-3);
}
.size-sheet > * {
  margin: 0;
}
/* For its "Coming soon" flag (.card-flag), which sits on the top edge outside the rows */
.size-sheet {
  position: relative;
}
.size-sheet.coming-soon {
  background: #f6f3ef;
}
.size-sheet > .tag {
  justify-self: start;
}
.size-sheet > .btn {
  align-self: end;
}
/* Towns: a grid of small cards, miles in a chip */
.towns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  /* Every town card the same height, whatever its text */
  grid-auto-rows: 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.town {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-small);
  scroll-margin-top: 104px;
}
.town:target {
  border-color: var(--lj-orange);
}
.town h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 1.25rem;
  margin: 0 0 var(--space-1);
}
.town p {
  margin: 0;
  color: var(--color-text-muted);
}
.chip {
  flex: none;
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lj-blue-deep);
  background: #e3f6fa;
  border-radius: 999px;
  padding: 2px var(--space-2);
}

/* FAQ: native <details>, so answers stay searchable with Find in page */
.faq {
  margin-top: var(--space-6);
  border-top: 2px solid var(--color-border);
}
.faq-item {
  border-bottom: 2px solid var(--color-border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h2 {
  margin: 0;
  font-size: 1.375rem;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: var(--space-2);
  border-right: 3px solid var(--lj-orange-deep);
  border-bottom: 3px solid var(--lj-orange-deep);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}
.faq-item summary:hover h2 {
  color: var(--lj-orange-deep);
}
.faq-item > p {
  margin: 0 0 var(--space-5);
  max-width: 65ch;
}
/* Smooth open and close where supported; elsewhere it simply snaps */
@media (prefers-reduced-motion: no-preference) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.25s ease,
      content-visibility 0.25s allow-discrete;
  }
  .faq-item[open]::details-content {
    block-size: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

table.prices caption {
  text-align: left;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  padding-bottom: var(--space-2);
}
table.prices th {
  font-weight: 600;
}
/* The label column keeps a fair share on phones, so neither side wraps a word at a time */
table.prices th[scope="row"] {
  width: 42%;
}
/* On phones the longer cells ("$20 a day, never more than …") wrap rather than widen the page,
   and narrower side padding leaves the words more room */
@media (max-width: 599px) {
  table.prices th,
  table.prices td {
    padding-inline: var(--space-2);
  }
  table.prices td.num {
    white-space: normal;
  }
}
.summary {
  width: 100%;
}
.status:empty {
  margin: 0;
}
.field-error {
  color: var(--color-error);
  font-weight: 600;
  font-size: var(--text-small);
  margin: var(--space-1) 0 0;
}
input[aria-invalid="true"] {
  border-color: var(--color-error);
}
.choice:has(input[aria-invalid="true"]) {
  border-color: var(--color-error);
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-link);
  text-decoration: underline;
  cursor: pointer;
}
.alert {
  border: 3px solid var(--color-error);
  border-radius: var(--radius-md);
  background: #fff1f0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}

/* Service-area map */
.service-map {
  margin: var(--space-5) 0;
}
.map {
  height: 380px;
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  background: #e8e4df;
  /* Leaflet stacks its tiles, pins and zoom buttons at z-index 400 to 1000; keep all of that
     inside the map, so the sticky header and its menu stay on top when the page scrolls */
  isolation: isolate;
}
.service-map figcaption {
  margin-top: var(--space-2);
}
/* Leaflet's zoom buttons are 30px; full-size tap targets here (#143). */
.service-map .leaflet-container .leaflet-bar a {
  width: 44px;
  height: 44px;
  line-height: 44px;
}
.leaflet-tooltip.town-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 1px 6px;
}
@media (max-width: 600px) {
  .map {
    height: 300px;
  }
}

/* ---------- Design system v2 (#100) ----------
   Orange marks the one main action in a view; Deep Blue marks trust and information. */

/* Section bands: one vertical rhythm for every page */
.band {
  padding-block: var(--section-pad);
}
.band-white {
  background: var(--color-surface);
}
.band-black {
  background: var(--lj-black);
  color: var(--color-dark-text);
}
.band-black a {
  color: var(--lj-blue);
}
.band-trust {
  background: var(--lj-blue-deep);
  color: #fff;
}
.band-trust a {
  color: #fff;
}
.band-stripe {
  border-top: 8px solid var(--lj-orange);
}

/* Even spacing between siblings: gaps between groups stay at least twice the gaps inside them */
.stack > *,
.stack-lg > * {
  margin-block: 0;
}
.stack > * + * {
  margin-block-start: var(--space-4);
}
/* A question list keeps clear of the heading above it */
.stack > .faq {
  margin-block-start: var(--space-5);
}
/* Bigger gaps between a section's groups; set here, not inherited, so nested .stack stays tight */
.stack-lg > * + * {
  margin-block-start: var(--space-6);
}

/* Charlie's guide bubble: his badge, then one short line in his voice */
.guide {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.guide > img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--lj-black);
}
.guide-bubble {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--lj-black);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin: 0;
}
.guide-bubble::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 2px solid var(--lj-black);
  border-bottom: 2px solid var(--lj-black);
  transform: rotate(45deg);
}
.guide-name {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lj-blue-deep);
}

/* "Charlie's tip" and other small labels */
.tip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.3;
}
.tip {
  background: #e6f6f9;
  color: var(--lj-black);
  border: 2px solid var(--lj-blue-deep);
}
.pill {
  background: var(--lj-black);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--text-label);
}
.pill-popular {
  background: var(--lj-orange);
  color: var(--lj-black);
}
/* A label on a card ("Most popular", "Coming soon") sits on the card's top edge, so it never
   moves or resizes what's inside: cards in a set stay identical with or without one. */
.card-flag {
  position: absolute;
  top: 0;
  left: var(--space-4);
  transform: translateY(-50%);
  z-index: 1;
  white-space: nowrap;
}

/* Promise tiles (Deep Blue = trust) */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}
.promise {
  border: 2px solid var(--lj-blue-deep);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--card-pad);
}
.promise h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  color: var(--lj-blue-deep);
}
.promise p {
  margin: 0;
}

/* Price lines: what's included, and the only things that can change the price */
.price-lines {
  display: grid;
  /* The price column never takes more than 40%, so the labels keep room on phones */
  grid-template-columns: minmax(0, 1fr) fit-content(40%);
  gap: var(--space-2) var(--space-4);
  margin: 0;
}
.price-lines dt {
  font-weight: 500;
}
.price-lines dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.price-lines .total {
  border-top: 2px solid var(--lj-black);
  padding-top: var(--space-2);
  font-size: 1.25rem;
}

/* Photos and video (#112): every photo spot reserves its shape, so nothing shifts as it loads */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e8e4df;
}
/* One per slot shape in src/media.ts (test/media.test.tsx checks they match) */
.ratio-16x9 {
  aspect-ratio: 16 / 9;
}
.ratio-4x3 {
  aspect-ratio: 4 / 3;
}
.ratio-5x2 {
  aspect-ratio: 5 / 2;
}
.ratio-8x5 {
  aspect-ratio: 8 / 5;
}
.media > img,
.media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Which part shows when the spot crops the photo: the owners pick it in the Office. */
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform-origin: var(--fx, 50%) var(--fy, 50%);
}
/* One class per focus step and zoom in src/media.ts (FOCUS_STEP, ZOOMS; test/media.test.tsx checks) */
.fx-0 {
  --fx: 0%;
}
.fx-5 {
  --fx: 5%;
}
.fx-10 {
  --fx: 10%;
}
.fx-15 {
  --fx: 15%;
}
.fx-20 {
  --fx: 20%;
}
.fx-25 {
  --fx: 25%;
}
.fx-30 {
  --fx: 30%;
}
.fx-35 {
  --fx: 35%;
}
.fx-40 {
  --fx: 40%;
}
.fx-45 {
  --fx: 45%;
}
.fx-55 {
  --fx: 55%;
}
.fx-60 {
  --fx: 60%;
}
.fx-65 {
  --fx: 65%;
}
.fx-70 {
  --fx: 70%;
}
.fx-75 {
  --fx: 75%;
}
.fx-80 {
  --fx: 80%;
}
.fx-85 {
  --fx: 85%;
}
.fx-90 {
  --fx: 90%;
}
.fx-95 {
  --fx: 95%;
}
.fx-100 {
  --fx: 100%;
}
.fy-0 {
  --fy: 0%;
}
.fy-5 {
  --fy: 5%;
}
.fy-10 {
  --fy: 10%;
}
.fy-15 {
  --fy: 15%;
}
.fy-20 {
  --fy: 20%;
}
.fy-25 {
  --fy: 25%;
}
.fy-30 {
  --fy: 30%;
}
.fy-35 {
  --fy: 35%;
}
.fy-40 {
  --fy: 40%;
}
.fy-45 {
  --fy: 45%;
}
.fy-55 {
  --fy: 55%;
}
.fy-60 {
  --fy: 60%;
}
.fy-65 {
  --fy: 65%;
}
.fy-70 {
  --fy: 70%;
}
.fy-75 {
  --fy: 75%;
}
.fy-80 {
  --fy: 80%;
}
.fy-85 {
  --fy: 85%;
}
.fy-90 {
  --fy: 90%;
}
.fy-95 {
  --fy: 95%;
}
.fy-100 {
  --fy: 100%;
}
.media.zoom-125 > img,
.media.zoom-125 > video {
  transform: scale(1.25);
}
.media.zoom-150 > img,
.media.zoom-150 > video {
  transform: scale(1.5);
}
.media.zoom-175 > img,
.media.zoom-175 > video {
  transform: scale(1.75);
}
.media.zoom-200 > img,
.media.zoom-200 > video {
  transform: scale(2);
}
.shot-guide {
  position: absolute;
  inset: auto var(--space-2) var(--space-2);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgb(17 18 20 / 0.82);
  color: #fff;
  font-size: var(--text-label);
  line-height: 1.4;
  /* Three lines at most, so the drawing still shows on a phone */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.shot-guide b {
  color: var(--lj-blue);
}
.media-pause {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(17 18 20 / 0.7);
  color: #fff;
  cursor: pointer;
}
.media-pause svg {
  fill: currentColor;
}
.media-pause .icon-play,
.media-pause.is-paused .icon-pause {
  display: none;
}
.media-pause.is-paused .icon-play {
  display: inline;
}

/* Buttons: a short press so taps feel answered */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      transform 0.12s ease,
      background-color 0.12s ease;
  }
  .btn:active:not([disabled]) {
    transform: translateY(1px) scale(0.98);
  }
}

/* Gentle reveal as sections scroll in. Decorative, so browsers without scroll-driven
   animations simply show the content. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
    }
    .reveal {
      animation: reveal auto ease-out backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }

  /* A soft cross-fade between pages where the browser supports it */
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.2s;
  }
}

/* Office: Photos & video */
.media-slots {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  margin: var(--space-6) 0;
  list-style: none;
}
.media-slot {
  display: grid;
  gap: var(--space-5);
  scroll-margin-top: var(--space-9);
}
.media-slot h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-1);
}
.media-slot form {
  margin-top: var(--space-4);
}
.media-slot input[type="file"] {
  display: block;
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 1rem;
}
.media-saved {
  color: var(--color-success);
  font-weight: 700;
}
.upload-status:empty {
  display: none;
}
.media-remove summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-error);
}
.media-phone-preview {
  margin-top: var(--space-3);
}
.media-phone-preview .media {
  width: 45%;
  max-width: 180px;
  aspect-ratio: 9 / 16;
}
.media-focus fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.media-focus legend {
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.media-focus input[type="range"] {
  display: block;
  width: 100%;
  min-height: 44px;
}
.focus-picker {
  position: relative;
  max-width: 520px;
  margin: 0 0 var(--space-3);
  touch-action: none;
}
.focus-picker img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  cursor: crosshair;
}
.focus-marker {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--lj-black),
    inset 0 0 0 2px var(--lj-black);
  pointer-events: none;
}
@media (min-width: 900px) {
  .media-slot {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- v2 navigation and home page (#101–#103, #38) ---------- */

.btn-block {
  display: flex;
  width: 100%;
}
/* The icon sprite (src/views/icons.tsx): there for <use>, taking no room */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
/* A pair of call-to-action buttons: the same width side by side, full width stacked on phones */
.actions-even {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
@media (max-width: 600px) {
  .actions-even {
    display: grid;
    grid-auto-flow: row;
  }
}

/* Phones: the bottom bar steps aside while a field has focus, so it never covers it (WCAG 2.4.11) */
@media (max-width: 819px) {
  body:has(:is(input, select, textarea):focus) .mobile-bar {
    display: none;
  }
}

/* Ask Charlie: a bottom sheet on phones, a side panel from 820px */
.ask {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: var(--space-5) var(--gutter) var(--space-6);
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 -10px 40px rgb(0 0 0 / 0.3);
  overscroll-behavior: contain;
}
.ask[open] {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.ask::backdrop {
  background: rgb(17 18 20 / 0.55);
  overflow: hidden;
  overscroll-behavior: contain;
}
@media (min-width: 820px) {
  .ask {
    width: 440px;
    max-height: calc(100dvh - 2 * var(--space-6));
    margin: var(--space-6) var(--gutter) auto auto;
    padding: var(--space-5);
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ask[open] {
    transition:
      transform 0.2s ease-out,
      opacity 0.2s ease-out;
    @starting-style {
      transform: translateY(24px);
      opacity: 0;
    }
  }
}
.ask-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  gap: var(--space-3);
  align-items: center;
}
.ask-head img {
  border-radius: 50%;
  border: 2px solid var(--lj-black);
}
.ask-head h2 {
  margin: 0;
  font-size: var(--text-h3);
}
.ask-head p {
  margin: 0;
}
.ask-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--lj-black);
  cursor: pointer;
}
.ask-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.ask-search {
  margin: 0;
}
.ask input[type="search"] {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3);
  font: inherit;
  border: 2px solid var(--lj-merle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pill-btn {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 2px solid var(--lj-blue-deep);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--lj-black);
  font: 600 var(--text-small) / 1 var(--font-body);
  cursor: pointer;
}
.pill-btn:hover {
  background: #e6f6f9;
}
#ask-count {
  margin: 0;
}
#ask-count:empty {
  display: none;
}
.ask-answers {
  border-top: 2px solid var(--color-border);
}
.ask-item {
  border-bottom: 2px solid var(--color-border);
}
.ask-item summary {
  min-height: 48px;
  padding: var(--space-3) 0;
  font-weight: 600;
  cursor: pointer;
}
.ask-item p {
  margin: 0 0 var(--space-4);
}
.ask-human {
  display: grid;
  gap: var(--space-3);
}
.ask-human p {
  margin: 0;
}
.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ask-actions .btn {
  flex: 1 1 8rem;
}

/* Footer v2: Charlie's sign-off and the promise badges */
.footer-sign {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.footer-sign img {
  flex: none;
  border-radius: 50%;
  border: 2px solid #fff;
}
.footer-sign p {
  margin: 0;
}
.footer-sign b {
  color: #fff;
  font-size: 1.125rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.footer-badges li {
  border: 1px solid #3a3c41;
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
}
.site-footer ul.plain li {
  margin-bottom: var(--space-1);
}
.site-footer ul.plain a {
  display: inline-block;
  padding-block: var(--space-2);
}

/* Home: hero with the photo behind, a dark scrim for the words, and the price card */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--lj-black);
}
main > section.home-hero {
  padding: var(--space-7) 0;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
  aspect-ratio: auto;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(17 18 20 / 0.72), rgb(17 18 20 / 0.55));
}
.home-hero .shot-guide {
  inset: var(--space-2) var(--space-2) auto;
}
/* Dev and staging: room above the words for the shot guide */
main > section.home-hero:has(.shot-guide) {
  padding-top: calc(var(--space-7) + 72px);
}
.home-hero-inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.home-hero .eyebrow {
  color: var(--lj-tan);
}
.home-hero h1 span {
  display: block;
}
.home-hero .lead {
  max-width: 36ch;
}
@media (min-width: 900px) {
  main > section.home-hero {
    padding: var(--space-9) 0;
  }
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: var(--space-7);
  }
}

/* The price checker: the size picked shows its price, tip, date and links */
.checker {
  color: var(--color-text);
  display: grid;
  gap: var(--space-3);
}
.checker p {
  margin: 0;
}
.checker-sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  border: 0;
  margin: 0;
  padding: 0;
}
.checker-sizes legend {
  margin-bottom: var(--space-2);
}
.checker-size {
  position: relative;
  display: grid;
}
.checker-size input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
/* Both options fill the row, so they're always the same size. */
.checker-size > span {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 72px;
  padding: var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.checker-size b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.375rem;
  text-transform: uppercase;
}
/* Room above the options for a card-flag */
.checker-sizes .checker-size {
  margin-top: var(--space-2);
}
.checker-size input:checked + span {
  border-color: var(--lj-black);
  box-shadow: inset 0 0 0 1px var(--lj-black);
  background: #fff7f1;
}
.checker-size input:focus-visible + span {
  outline: 3px solid var(--lj-black);
  outline-offset: 2px;
}
.checker-for {
  display: grid;
  gap: var(--space-3);
}
/* Browsers without :has() show both sizes, which still reads fine */
.checker:has(input[value="10"]:checked) .checker-for:not([data-for="10"]),
.checker:has(input[value="15"]:checked) .checker-for:not([data-for="15"]) {
  display: none;
}
.checker-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.checker-price strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
}
.checker-date b {
  color: var(--lj-blue-deep);
}
.checker-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Trust strip */
main > section.trust-band {
  padding-block: var(--space-5);
}
/* Even columns: two on phones, all five in one row on wide screens (never 4 + 1) */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
  margin-block: 0;
}
@media (max-width: 420px) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 1024px) {
  .trust {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
  }
  /* The tick sits on the first line, whether the item takes one line or two */
  ul.trust > li {
    align-items: flex-start;
  }
  ul.trust > li .icon {
    margin-top: 0.15em;
  }
}
.trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}
.trust .icon,
.meet-list .icon {
  color: var(--lj-blue-deep);
}

/* Meet Charlie */
.meet {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.meet-art {
  display: block;
  width: min(200px, 60%);
  height: auto;
}
.meet-list {
  display: grid;
  gap: var(--space-3);
}
.meet-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
@media (min-width: 820px) {
  .meet {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .meet-art {
    width: 240px;
  }
  /* Beside the intro and the list (home), the badge spans both; beside the intro alone (About), the
     text centres on the badge like the page's other photo-and-text sections */
  .meet:has(> :nth-child(3)) .meet-art {
    grid-row: span 2;
  }
}

/* Size cards */
.size-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
}
/* Each card's rows (image, name, price, details, button) come from the row of cards (subgrid), so
   they line up across the cards and the buttons sit together at the bottom. */
.size-cards {
  row-gap: var(--space-6);
}
.size-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: auto auto auto 1fr auto;
  grid-template-rows: subgrid;
  row-gap: var(--space-3);
  position: relative;
}
.size-card > .btn,
.size-card.coming-soon .price {
  align-self: end;
}
.size-card h3,
.size-card p,
.size-card ul {
  margin: 0;
}
.size-soon {
  display: grid;
  place-items: center;
  border: 2px dashed var(--color-border);
  background: transparent;
}
.size-soon span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  color: var(--color-border);
  text-transform: uppercase;
}
.size-card.featured {
  box-shadow: 0 0 0 3px var(--lj-orange);
}
.size-card.coming-soon {
  background: #f6f3ef;
}

/* How it works, on the black band */
.band-black .steps h3 {
  color: #fff;
}
.band-black .eyebrow {
  color: var(--lj-tan);
}

/* Promises band */
.band-trust-soft {
  background: #e9f4f6;
}
.band-trust-soft .eyebrow {
  color: var(--lj-blue-deep);
}
.pricebox h3 {
  margin-bottom: var(--space-4);
}
.pricebox dt {
  display: grid;
  gap: 2px;
}
.pricebox .price-lines {
  /* No gap between the columns, so each row's rule runs unbroken across both */
  column-gap: 0;
}
.pricebox dt,
.pricebox dd {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.pricebox dd {
  padding-left: var(--space-4);
}
.you-control {
  font-size: var(--text-label);
  font-weight: 700;
  color: var(--lj-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricebox > p {
  margin: var(--space-4) 0 0;
}

/* Origin story */
.origin {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 820px) {
  .origin {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Service area and quick answers */
.split {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 820px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.split .faq {
  margin-top: 0;
}
.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.town-list li {
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-weight: 600;
}
/* Each town links to its place on /service-area: the whole pill is the 44 px tap target */
.town-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: inherit;
  text-decoration: none;
}
.town-list a:hover {
  text-decoration: underline;
}

/* Final call to action */
.band-orange {
  background: var(--lj-orange);
  color: var(--lj-black);
}
.band-orange .lead {
  margin: 0;
}

/* Ask Charlie links with Charlie's badge */
a[data-ask] {
  gap: var(--space-2);
}
a[data-ask] img {
  border-radius: 50%;
}

/* ---------- Who we serve, Charlie's MVPs and About (#104–#107) ---------- */

/* "Who we serve" in the header: a disclosure that opens a small panel of links */
.nav-group {
  position: relative;
}
.nav-group summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lj-black);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  /* The arrow has no letter-spacing or side bearing after it, so this keeps the gap after it the
     same as the gap after a text item (measured on screenshots) */
  margin-right: 0.19em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-group[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
/* The same hover and current-page look as the menu's links */
.nav-group summary:hover,
.nav-group summary[aria-current] {
  color: var(--lj-orange-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: calc(var(--space-4) * -1);
  z-index: 30;
  min-width: 280px;
  margin: 0;
  padding: var(--space-2);
  background: var(--color-surface);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgb(17 18 20 / 0.18);
}
/* The panel's links share the menu's lettering (font, weight, case, size, color); only the
   layout is a list's, with a tinted row on hover in place of the underline */
.site-nav .nav-panel a {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.site-nav .nav-panel a:hover,
.site-nav .nav-panel a[aria-current="page"] {
  background: #fff3eb;
  text-decoration: none;
}
/* The site-nav font steps down a touch between 1024 and 1280px so the menu fits beside Book */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-nav {
    gap: 0 var(--space-4);
    font-size: 0.9375rem;
  }
}

/* Phone drawer: the group's links sit under a small label */
.drawer-group {
  display: grid;
}
.drawer-group-label {
  margin: var(--space-3) 0 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.drawer-group a {
  padding-left: var(--space-4);
}

/* Page heroes for the audience pages and About: words beside the photo spot */
.seg-hero-inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .seg-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-7);
  }
}

/* The price strip under each hero */
main > section.price-strip {
  padding-block: var(--space-4);
}
.price-strip-list {
  display: flex;
  flex-wrap: wrap;
  /* One baseline for the prices and the text, whatever each item's height */
  align-items: baseline;
  gap: var(--space-2) var(--space-6);
  margin: 0;
}
.price-strip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Project cards */
.project-grid,
.seg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
}
.project-grid {
  row-gap: var(--space-6);
}
/* Four cards: two by two, never three and one */
@media (min-width: 600px) {
  .project-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Cards in a set share their rows (subgrid), so titles, text and links line up across them and the
   links sit at the bottom. Each card's children must follow its row list. */
.project {
  position: relative;
  display: grid;
  grid-row: span 3; /* title, text, link */
  grid-template-rows: auto 1fr auto;
  grid-template-rows: subgrid;
  row-gap: var(--space-2);
}
.project h3,
.project p {
  margin: 0;
}
.project-book {
  justify-self: start;
  align-self: end;
  margin-top: var(--space-1);
  font-weight: 600;
}
/* A link standing on its own (not inside a sentence) is a full-size tap target (#143). */
.project-book,
.tap-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Home: Who we serve cards are whole-card links */
.seg-card {
  display: grid;
  grid-row: span 4; /* image, title, text, link */
  grid-template-rows: auto auto 1fr auto;
  grid-template-rows: subgrid;
  row-gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.seg-card h3,
.seg-card p {
  margin: 0;
}
.seg-more {
  align-self: end;
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
}
.seg-card:hover .seg-more {
  color: var(--lj-ember);
}

/* Before and after, side by side */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.before-after figure {
  margin: 0;
}
.before-after figcaption {
  margin-top: var(--space-1);
}

/* Forms module and lead forms (#115, #117) */
select {
  height: 56px;
}
textarea,
select {
  width: 100%;
  font: inherit;
  padding: var(--space-3);
  border: 2px solid var(--lj-merle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 48px;
}
textarea {
  resize: vertical;
}
:is(textarea, select):focus {
  border-color: var(--lj-black);
  outline: none;
  box-shadow: 0 0 0 4px rgb(254 94 0 / 0.35);
}
:is(textarea, select)[aria-invalid="true"] {
  border-color: var(--color-error);
}
/* Bigger targets and text on phones; 18px also keeps iOS from zooming into the field. */
@media (max-width: 599px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select {
    min-height: 52px;
    font-size: 18px;
  }
  textarea {
    font-size: 18px;
  }
}
.wrap.form-width {
  max-width: calc(560px + 2 * var(--gutter));
}
.lead-form {
  max-width: 560px;
}
.lead-form .field {
  margin-bottom: 0;
}
.hint {
  margin: var(--space-1) 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
/* Choices inside a fieldset.field read as normal text, not as field labels. */
.field label.choice {
  display: flex;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.lead-form .choice {
  align-items: center;
}
.lead-form .choice input {
  margin-top: 0;
}
/* Options in a row: equal widths and heights, two to a row, filling it */
.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--space-2);
}
.choice-row .choice {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  align-items: center;
  min-height: 48px;
}
.choice-row .choice input {
  margin-top: 0;
}
.lead-form fieldset .choice:last-child {
  margin-bottom: 0;
}
.field-row {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.choice.remember {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  align-items: center;
  box-shadow: none;
  min-height: 44px;
}
.choice.remember input {
  margin-top: 0;
}
.lead-form .btn[type="submit"] {
  justify-self: start;
}
@media (max-width: 599px) {
  .lead-form .btn[type="submit"] {
    width: 100%;
  }
}
.email-suggest {
  margin: var(--space-1) 0 0;
  font-size: var(--text-small);
}
.email-suggest button {
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: var(--space-2) 0;
  min-height: 44px;
  cursor: pointer;
}
.error-summary {
  border: 2px solid var(--color-error);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
}
.error-summary h2 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
}
.error-summary ul {
  margin: 0;
  padding-left: 1.2em;
}
.error-summary a {
  color: var(--color-error);
  font-weight: 600;
}
.lead-thanks h2 {
  font-size: var(--text-h3);
  margin: 0 0 var(--space-2);
}
.lead-thanks [data-link] {
  overflow-wrap: anywhere;
  font-weight: 700;
}
.save-quote {
  margin-top: var(--space-6);
}
.lead-status {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.lead-status select {
  width: auto;
}

/* Booking v2 (#113): progress bar, Charlie's lines, folded steps and the side summary */
.book-wrap {
  max-width: calc(760px + 2 * var(--gutter));
}
@media (min-width: 1024px) {
  .book-wrap {
    max-width: var(--container);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-7);
    align-items: start;
  }
  .book-summary:not([hidden]) {
    display: block;
    position: sticky;
    top: 112px;
    background: var(--color-surface);
    border: var(--border-heavy);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
  }
  .book-summary h2 {
    font-size: var(--text-h3);
    margin: 0 0 var(--space-1);
  }
  .book-summary,
  .book-summary-empty {
    grid-column: 2;
    grid-row: 1;
  }
  .book-summary-empty {
    position: sticky;
    top: 112px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
  }
  .book-summary-empty p {
    margin: 0;
  }
  .book-summary-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: var(--text-h3);
    margin-bottom: var(--space-1) !important;
  }
  .book-summary:not([hidden]) ~ .book-summary-empty {
    display: none;
  }
}
/* On phones and tablets the price shows in step 4; the side summary is for wide screens. */
@media (max-width: 1023px) {
  .book-summary,
  .book-summary-empty {
    display: none;
  }
}
.book-main {
  min-width: 0;
}

.book-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: var(--space-5) 0 var(--space-5);
  padding: 0;
  counter-reset: none;
}
.book-progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}
/* The track between dots */
.book-progress li + li::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--lj-merle);
  z-index: 0;
}
.book-progress li.is-done + li::before,
.book-progress li.is-done + li[aria-current]::before {
  background: var(--lj-orange);
}
.bp-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--lj-merle);
  background: var(--color-surface);
}
.bp-dot .bp-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--lj-black);
  display: none;
}
.book-progress li[aria-current] .bp-dot {
  border: 0;
  background: none;
}
.book-progress li[aria-current] .bp-badge {
  display: block;
}
.book-progress li.is-done .bp-dot {
  border-color: var(--lj-orange);
  background: var(--lj-orange);
}
.book-progress li.is-done .bp-dot::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--lj-black);
  border-bottom: 3px solid var(--lj-black);
  transform: translateY(-2px) rotate(-45deg);
}
/* The finish flag on the last step until Charlie gets there */
.bp-flag {
  fill: var(--lj-orange);
  stroke: var(--lj-black);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.book-progress li[aria-current] .bp-flag {
  display: none;
}
.bp-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.book-progress li[aria-current] .bp-label,
.book-progress li.is-done .bp-label {
  color: var(--color-text);
}

.book-guide {
  grid-template-columns: 40px minmax(0, 1fr);
  margin: var(--space-3) 0 var(--space-4);
}
.book-guide > img {
  width: 40px;
  height: 40px;
}
.book-guide .guide-bubble::before {
  top: 12px;
}

/* A finished step folds to its heading and one line with Edit */
.step-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-2) 0 0;
  font-weight: 600;
}
.step-summary .linkish {
  min-height: 44px;
  padding: 0 var(--space-2);
}
.book-step.is-folded {
  padding-block: var(--space-4);
}
.book-step.is-folded > :not(h2, .step-summary) {
  display: none;
}
.book-step.is-folded h2 {
  margin: 0;
}

.next-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-4);
}
.next-open[hidden] {
  display: none;
}

details.business {
  border: 2px solid var(--lj-merle);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  margin: 0 0 var(--space-4);
}
details.business summary,
details.price-changes summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
}
details.business[open] summary {
  margin-bottom: var(--space-2);
}
.business-fields {
  padding-bottom: var(--space-2);
}
details.price-changes {
  margin-top: var(--space-4);
  border-top: 2px solid var(--lj-merle);
}
details.price-changes ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--text-small);
}
details.price-changes li + li {
  margin-top: var(--space-2);
}

/* Charlie's note on My rental right after booking (#102) */
.charlie-note {
  grid-template-columns: 72px minmax(0, 1fr);
}
.charlie-note > img {
  width: 72px;
  height: 72px;
}
.charlie-note .guide-bubble {
  padding: var(--space-5);
}
.charlie-note .guide-bubble::before {
  top: 26px;
}
.charlie-note h2 {
  margin: 0;
}
.charlie-note h3 {
  font-size: 1.25rem;
  margin: var(--space-2) 0 0;
}
.charlie-note ol {
  margin: 0;
  padding-left: 1.3em;
}
.charlie-note li + li {
  margin-top: var(--space-2);
}
.charlie-note .sign-off {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}
@media (max-width: 599px) {
  .charlie-note {
    grid-template-columns: minmax(0, 1fr);
  }
  .charlie-note .guide-bubble::before {
    display: none;
  }
}

/* These summaries are flex rows, which drops the native marker: draw a plus/minus instead */
:is(details.business, details.price-changes) summary {
  gap: var(--space-3);
  list-style: none;
}
:is(details.business, details.price-changes) summary::-webkit-details-marker {
  display: none;
}
:is(details.business, details.price-changes) summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
}
:is(details.business, details.price-changes)[open] summary::after {
  content: "−";
}
.choice + .field-error {
  margin: calc(-1 * var(--space-2)) 0 var(--space-3);
}

/* The deposit page (#114): plain, focused, no Charlie */
.pay-header .header-inner {
  justify-content: space-between;
}
.pay-help {
  margin: 0;
  font-weight: 600;
}
.pay-wrap {
  max-width: calc(640px + 2 * var(--gutter));
  padding-block: var(--space-6) var(--space-8);
}
.pay-wrap h1 {
  font-size: var(--text-h2);
}
.pay-form {
  background: var(--color-surface);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.pay-form h2 {
  font-size: var(--text-h3);
  margin: 0;
}
.payment-element {
  min-height: 220px;
}

/* "Please wait" over a card page once Pay or Save is pressed (#144), until Stripe answers and
   the next page loads. Under Stripe's own frames (its bank check sits at the very top), so it
   isn't a modal dialog. */
.pay-wait {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgb(250 247 243 / 0.92);
}
.pay-wait[hidden] {
  display: none;
}
.pay-wait-box {
  max-width: 28rem;
  background: var(--color-surface);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}
.pay-wait-box p {
  margin: 0;
}
.pay-wait-title {
  font-weight: 700;
  font-size: var(--text-h3);
}

/* An indeterminate <progress> drawn as a spinning ring (modern-web-guidance "spinner"). */
@property --arc-start {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --arc-end {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --progress-dash-animation {
  syntax: "*";
  inherits: false;
  initial-value:
    ,
    progress-dash 3s ease-in-out infinite;
}
progress.loading-spinner:indeterminate::-webkit-progress-bar,
progress.loading-spinner:indeterminate::-webkit-progress-value {
  display: none;
  background: none;
}
progress.loading-spinner:indeterminate::-moz-progress-bar {
  display: none;
  background: none;
}
progress.loading-spinner:indeterminate {
  --_from: calc(90deg + var(--arc-start, 0deg));
  --_to: calc(90deg + var(--arc-end, 158deg));
  --size: 48px;
  --thickness: 5px;
  --_duration: 1.5s;
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  appearance: none;
  border: 0;
  background: conic-gradient(
      from var(--_from),
      var(--color-cta-bg) calc(var(--_to) - var(--_from)),
      transparent 0
    )
    var(--color-border);
  --_edge: calc(100% - var(--thickness));
  mask-image: radial-gradient(farthest-side, transparent var(--_edge), black var(--_edge));
  animation: progress-spin var(--_duration) linear infinite var(--progress-dash-animation,);
}
@keyframes progress-spin {
  to {
    rotate: 1turn;
  }
}
@keyframes progress-dash {
  from {
    --arc-start: 0deg;
    --arc-end: 3deg;
  }
  50% {
    --arc-start: 100deg;
    --arc-end: 358deg;
  }
  to {
    --arc-start: 360deg;
    --arc-end: 363deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  progress.loading-spinner:indeterminate {
    /* Slower, not stopped, so it still shows something is happening. */
    --_duration: 6s;
  }
}
.pay-terms {
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-3);
}
.pay-terms p {
  margin: 0 0 var(--space-2);
}
.pay-terms ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.2em;
}
.pay-terms li + li {
  margin-top: var(--space-2);
}
.pay-footer {
  border-top: 2px solid var(--color-border);
  padding-block: var(--space-5);
}
.pay-footer p {
  margin: 0;
}

/* Booking photos (#63) on the Office rental page and My rental: same-size tiles, cropped to fit */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: var(--space-2);
}
.photo-grid a {
  display: block;
}
.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-border);
}
input[type="file"] {
  font: inherit;
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  font: inherit;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  margin-right: var(--space-3);
  border: 2px solid var(--lj-black);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
}

/* My rental's status (#144), as in the mockup: the day meter, then booked → delivered →
   filling → pickup, and what the customer can do now */
.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  margin-block: var(--space-5);
}
.status-card progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: var(--space-5);
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: var(--color-border);
}
.status-card progress::-webkit-progress-bar {
  background: var(--color-border);
}
.status-card progress::-webkit-progress-value {
  background: var(--lj-orange);
}
.status-card progress::-moz-progress-bar {
  background: var(--lj-orange);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.timeline li {
  position: relative;
  padding: 0 0 var(--space-4) calc(20px + var(--space-3));
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid var(--lj-black);
  background: var(--color-surface);
}
.timeline li.done::before {
  background: var(--color-success);
  border-color: var(--color-success);
}
.timeline li.now::before {
  background: var(--lj-orange);
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

/* Charlie's badge on the not-found and error pages (#143) */
.error-badge {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--lj-black);
  margin-bottom: var(--space-4);
}

/* The weight estimator (#143): what's going in first, then only that material's boxes. Without
   :has() every box shows, and the server reads the ones for the material picked. */
.weight-materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-3);
}
.weight-materials legend {
  grid-column: 1 / -1;
}
.weight-materials .choice {
  align-items: center;
  font-weight: 600;
}
.weight-materials .choice input {
  margin-top: 0;
}
.weight-form:has(input[name="material"][value="roof"]:checked) [data-for="heavy"],
.weight-form:not(:has(input[name="material"][value="roof"]:checked)) [data-for="roof"] {
  display: none;
}
/* An answer for another material than the one now picked is out of date: hide it */
.weight-form:has(input[name="material"][value="roof"]:checked)
  .weight-result:not([data-material="roof"]),
.weight-form:has(input[name="material"][value="concrete"]:checked)
  .weight-result:not([data-material="concrete"]),
.weight-form:has(input[name="material"][value="dirt"]:checked)
  .weight-result:not([data-material="dirt"]) {
  display: none;
}
/* Fields side by side when there's room */
.weight-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0 var(--space-4);
  align-items: start;
}
/* Choices with long labels get a row of their own */
.weight-fields .field-wide {
  grid-column: 1 / -1;
}
.weight-fields .field p {
  margin: var(--space-1) 0 0;
}
.weight-result {
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-4);
}
.weight-result p {
  margin: 0;
}
