/* WritersTrek — bookcloth green, ochre route line, Caslon for the book, Source Sans for everything you read to decide. */
:root {
  --paper: #F3F5F1;
  --paper-2: #E8ECE6;
  --ink: #1C2B25;
  --ink-2: #4A5E54;
  --cloth: #234A3C;
  --cloth-deep: #183429;
  --route: #D9A21B;
  --rule: #C9D2CB;
  --white: #FFFFFF;
  --error: #9E2A1F;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --measure: 40rem;
  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* Components that set display (e.g. .btn) would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; height: auto; }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 3.6vw + 1.2rem, 3.75rem); max-width: 18ch; }
h2 { font-size: clamp(1.65rem, 1.6vw + 1.1rem, 2.35rem); max-width: 24ch; }
h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.35em; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--cloth); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; border-radius: 2px; }
strong { font-weight: 700; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.quiet { color: var(--ink-2); }
.small { font-size: 0.95rem; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--cloth { background: var(--cloth); color: var(--paper); border-top: 0 !important; }
.section--cloth a { color: var(--paper); }
.section--cloth .quiet, .section--cloth .lede { color: #C8D6CE; }
.section--tint { background: var(--paper-2); }
.stack > * + * { margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-block; font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--cloth); color: var(--white); border: 2px solid var(--cloth);
  padding: 0.85rem 1.35rem; border-radius: var(--radius);
}
.btn:hover { background: var(--cloth-deep); border-color: var(--cloth-deep); }
.btn--ghost { background: transparent; color: var(--cloth); }
.btn--ghost:hover { background: var(--paper-2); color: var(--cloth-deep); }
.btn--small { padding: 0.5rem 0.9rem; font-size: 0.98rem; }
.section--cloth .btn { background: var(--route); border-color: var(--route); color: var(--ink); }
.section--cloth .btn:hover { background: #F0BC3A; border-color: #F0BC3A; }
.section--cloth .btn--ghost { background: transparent; color: var(--paper); border-color: #9DB6A9; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.masthead__inner { max-width: var(--wrap); margin: 0 auto; padding: 0.85rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav__list a, .nav__menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav__list a:hover, .nav__menu a:hover { color: var(--cloth); text-decoration: underline; }
.nav__list a[aria-current="page"], .nav__menu a[aria-current="page"] { color: var(--cloth); text-decoration: underline; text-decoration-color: var(--route); text-decoration-thickness: 3px; }
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu ul { position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); list-style: none; margin: 0; padding: 0.5rem 0; min-width: 12rem; box-shadow: 0 8px 24px rgba(28, 43, 37, 0.12); }
.nav__menu li a { display: block; padding: 0.55rem 1rem; }
@media (max-width: 52rem) {
  .nav__list { display: none; }
  .nav__menu { display: block; }
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero h1 { margin-bottom: 0.4em; }

/* The route: the one bold thing on the site */
.route { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 1.25rem; position: relative; counter-reset: station; }
.route::before {
  content: ""; position: absolute; left: 0.55rem; right: 0; top: 0.62rem; height: 6px; border-radius: 3px;
  background: var(--route); transform-origin: left center; animation: draw 1.4s cubic-bezier(.3,.7,.2,1) 0.2s both;
}
.route li { position: relative; padding-top: 2.6rem; counter-increment: station; }
.route li::before {
  content: counter(station); position: absolute; top: 0; left: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--route); color: var(--ink);
  font: 700 0.85rem/1.55rem var(--sans); text-align: center; z-index: 1;
}
.route h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.2rem; }
.route p { font-size: 0.98rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 0.4rem; }
.route .from { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.route a { text-decoration: none; color: inherit; display: block; }
.route a:hover h3 { color: var(--cloth); text-decoration: underline; text-decoration-color: var(--route); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 60rem) {
  .route { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 2.8rem; }
  .route::before { left: 0.85rem; right: auto; top: 0.6rem; bottom: 0.6rem; width: 6px; height: auto; transform-origin: center top; animation-name: drawdown; }
  .route li { padding-top: 0; }
  .route li::before { left: -2.8rem; top: 0.15rem; }
}
@keyframes drawdown { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .route::before { animation: none; } }

/* Road page: the route runs down the left */
.road { list-style: none; margin: 0; padding: 0 0 0 3.5rem; position: relative; counter-reset: station; }
.road::before { content: ""; position: absolute; left: 1.1rem; top: 1rem; bottom: 1rem; width: 6px; border-radius: 3px; background: var(--route); }
.road > li { position: relative; counter-increment: station; padding-bottom: 3.5rem; }
.road > li::before {
  content: counter(station); position: absolute; left: -3.5rem; top: 0.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--route); font: 700 1rem/2.05rem var(--sans); text-align: center;
}
.road h2 { margin-bottom: 0.3em; }
.facts { margin: 1rem 0 1.25rem; padding: 0; list-style: none; max-width: var(--measure); }
.facts li { padding: 0.55rem 0 0.55rem 1.1rem; border-left: 3px solid var(--rule); margin-bottom: 0.4rem; }

/* Ledger: the price list, set like a book's contents page */
.ledger { width: 100%; border-collapse: collapse; margin: 1rem 0 0; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 1rem 0.75rem 1rem 0; border-top: 1px solid var(--rule); }
.ledger thead th { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); border-top: 0; padding-bottom: 0.4rem; }
.ledger td.price, .ledger th.price { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .name { font-weight: 700; }
.ledger .code { display: inline-block; min-width: 2.2rem; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; }
.ledger p { margin: 0.2rem 0 0; font-size: 1rem; }
.ledger .meta { font-size: 0.92rem; color: var(--ink-2); }
.ledger .add { font-size: 0.95rem; font-weight: 600; }
@media (max-width: 40rem) {
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--rule); padding: 0.9rem 0; }
  .ledger td { border: 0; padding: 0; }
  .ledger td.desc { grid-column: 1 / -1; order: 3; margin-top: 0.3rem; }
  .ledger td.turn { display: none; }
}

/* Package comparison */
.compare-wrap { overflow-x: auto; margin-top: 1.5rem; -webkit-overflow-scrolling: touch; }
.compare { border-collapse: collapse; min-width: 46rem; width: 100%; }
.compare th, .compare td { padding: 0.7rem 0.8rem; border-top: 1px solid var(--rule); text-align: center; font-size: 1rem; }
.compare th[scope="row"] { text-align: left; font-weight: 400; min-width: 13rem; position: sticky; left: 0; background: var(--paper); }
.compare thead th { border-top: 0; vertical-align: bottom; }
.compare thead .pkg { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; display: block; }
.compare thead .pkg-price { font-size: 1.15rem; font-weight: 700; display: block; margin-top: 0.2rem; }
.compare .yes { color: var(--cloth); font-weight: 700; }
.compare .no { color: #A7B4AC; }
.compare tr.group th { font-weight: 700; padding-top: 1.3rem; border-top: 2px solid var(--ink); }
.compare tfoot td, .compare tfoot th { font-weight: 700; }

/* On phones the comparison table needs sideways scrolling, so each package is listed on its own instead. */
.pkg-stack { display: none; }
@media (max-width: 48rem) {
  .compare-wrap { display: none; }
  .pkg-stack { display: block; margin-top: 1rem; }
}
.pkg-block { border-top: 2px solid var(--ink); padding: 1.1rem 0 1.6rem; }
.pkg-block h2 { font-size: 1.6rem; margin-bottom: 0.15rem; }
.pkg-block .pkg-price { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.pkg-block .pkg-price span { font-size: 0.95rem; font-weight: 400; color: var(--ink-2); }
.pkg-block .pkg-total { font-weight: 600; margin-bottom: 0.6rem; }
.pkg-block ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 1rem; }
.pkg-block li { margin-bottom: 0.2rem; }

/* Package blocks on home */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; border-top: 2px solid var(--ink); }
.pkgs > div { padding: 1.25rem 1.25rem 1.5rem 0; border-right: 1px solid var(--rule); }
.pkgs > div + div { padding-left: 1.25rem; }
.pkgs > div:last-child { border-right: 0; }
.pkgs h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.pkgs .price { font-size: 1.5rem; font-weight: 700; margin: 0.4rem 0 0.2rem; }
.pkgs .plus { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 0.8rem; }
@media (max-width: 60rem) {
  .pkgs { grid-template-columns: 1fr 1fr; }
  .pkgs > div:nth-child(2) { border-right: 0; }
  .pkgs > div:nth-child(3) { padding-left: 0; }
  .pkgs > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 36rem) {
  .pkgs { grid-template-columns: 1fr; }
  .pkgs > div, .pkgs > div + div { padding: 1.25rem 0; border-right: 0; }
  .pkgs > div + div { border-top: 1px solid var(--rule); }
}

/* Promise list */
.promises { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; max-width: 60rem; }
.promises li { padding-left: 1.25rem; border-left: 3px solid var(--route); }
.promises strong { display: block; font-size: 1.15rem; margin-bottom: 0.2rem; }
@media (max-width: 44rem) { .promises { grid-template-columns: 1fr; } }

.pull { font-family: var(--serif); font-size: clamp(1.35rem, 1.2vw + 1rem, 1.85rem); line-height: 1.4; max-width: 34em; margin: 0 0 1rem; }

.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 52rem) { .two { grid-template-columns: 1fr; gap: 2rem; } }

/* Forms */
.form { max-width: 36rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink-2); margin-top: -0.15rem; margin-bottom: 0.4rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], textarea, select {
  width: 100%; font: 1.05rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid #6F7F77; border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
/* The file field as a full-width target that shows the chosen file's name (intake sample). */
input[type="file"] { width: 100%; font: 1rem/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1px dashed #6F7F77; border-radius: var(--radius); padding: 0.55rem; }
input[type="file"]::file-selector-button { font: 600 1rem var(--sans); min-height: 2.75rem; padding: 0.55rem 1.1rem; margin-right: 0.85rem; color: var(--cloth); background: var(--white); border: 2px solid var(--cloth); border-radius: var(--radius); cursor: pointer; }
input[type="file"]::file-selector-button:hover { color: var(--white); background: var(--cloth); }
input[type="file"]:focus-visible { outline: 3px solid var(--route); outline-offset: 0; border-color: var(--cloth); }
.field-error { display: block; color: var(--error); font-weight: 600; margin: 0 0 0.4rem; }
[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]) { border-color: var(--error); border-width: 2px; }
.errors ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.errors li { color: var(--error); margin-bottom: 0.2rem; }
.errors a { color: var(--error); font-weight: 600; }
.errors:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }
/* Intake: answer rows tall enough to tap on a phone (44px). */
.intake fieldset .check { min-height: 2.75rem; align-items: center; margin-bottom: 0.15rem; font-weight: 400; }
.intake .form h2 { margin-top: 2.5rem; }
.intake #sample-trust { margin-top: 0.35rem; }
.intake fieldset .check input { margin-top: 0; }
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--route); outline-offset: 0; border-color: var(--cloth); }
.check { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.75rem; font-weight: 400; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--cloth); }
fieldset { border: 0; padding: 0; margin: 0; }
.errors { border-left: 4px solid var(--error); padding: 0.75rem 1rem; background: #F9E9E6; margin-bottom: 1.25rem; }
.errors p { margin: 0; color: var(--error); font-weight: 600; }
.notice { border-left: 4px solid var(--route); padding: 0.8rem 1rem; background: var(--white); margin: 1.25rem 0; max-width: var(--measure); }
.notice p:last-child { margin-bottom: 0; }

/* Configurator */
.builder { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 60rem) { .builder { grid-template-columns: 1fr; } }
.starts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
.starts button { font: 600 0.98rem/1.2 var(--sans); padding: 0.55rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--cloth); background: transparent; color: var(--cloth); cursor: pointer; }
.starts button[aria-pressed="true"] { background: var(--cloth); color: var(--white); }
.stage-group { margin-top: 2rem; }
.stage-group h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 0.25rem 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.opt input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--cloth); }
.opt .t { font-weight: 700; }
.opt .s { grid-column: 2 / 4; font-size: 0.98rem; color: var(--ink-2); }
.opt .p { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt.in-pkg .p { color: var(--cloth); }
.summary { position: sticky; top: 1rem; background: var(--white); border: 1px solid var(--rule); border-top: 6px solid var(--route); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
.summary h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.summary .pkg-applied { font-weight: 600; color: var(--cloth); margin-bottom: 0.8rem; }
.summary table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.summary td { padding: 0.35rem 0; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 0.8rem; }
.summary .total td { border-top: 2px solid var(--ink); border-bottom: 0; font-size: 1.35rem; font-weight: 700; padding-top: 0.6rem; }
.summary .sub { font-size: 0.95rem; color: var(--ink-2); margin: 0.4rem 0 0; }
.summary .empty { color: var(--ink-2); }
.summary ul { padding-left: 1.1rem; margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 60rem) { .summary { position: static; } }

/* Phone quote bar: on one-column screens the summary sits below every option, so the total rides along at the bottom. */
.quote-bar { display: none; }
@media (max-width: 60rem) {
  .quote-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem var(--gutter) max(0.7rem, env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 -4px 14px rgba(28, 43, 37, 0.12); }
  .quote-bar .label { display: block; font-size: 0.9rem; color: var(--ink-2); line-height: 1.2; }
  .quote-bar strong { font-size: 1.35rem; font-variant-numeric: tabular-nums lining-nums; }
  .quote-bar.away { display: none; }
  body:has(.quote-bar:not([hidden]):not(.away)) .wa { bottom: 5.4rem; }
  body:has(.quote-bar:not([hidden])) .foot { padding-bottom: 6rem; }
}

/* Quiz */
.quiz { max-width: 40rem; }
.quiz .q { display: none; }
.quiz .q.on { display: block; }
.quiz .count { color: var(--ink-2); font-weight: 600; margin-bottom: 0.4rem; }
.quiz .progress { height: 6px; background: var(--paper-2); border-radius: 3px; margin-bottom: 1.6rem; overflow: hidden; }
.quiz .progress span { display: block; height: 100%; background: var(--route); width: 0; transition: width 0.25s ease; }
.quiz legend { font-family: var(--serif); font-size: clamp(1.4rem, 1vw + 1.1rem, 1.85rem); line-height: 1.25; margin-bottom: 1rem; }
.choice { display: flex; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid #A9B6AE; border-radius: var(--radius); margin-bottom: 0.6rem; cursor: pointer; background: var(--white); }
.choice:hover { border-color: var(--cloth); }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--cloth); flex: none; }
.choice:has(input:checked) { border-color: var(--cloth); box-shadow: inset 0 0 0 1px var(--cloth); }
.quiz .nav-q { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .quiz .progress span { transition: none; } }
.result { display: none; }
.result.on { display: block; }
.result .verdict { font-family: var(--serif); font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); line-height: 1.15; margin: 0 0 0.6rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 0.2rem 0; max-width: 46rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.9rem 2rem 0.9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.75rem; font-size: 1.4rem; line-height: 1; color: var(--cloth); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1rem; }

/* Legal pages */
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal ol, .legal ul { max-width: var(--measure); padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

/* Admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin th, .admin td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin th { background: var(--paper-2); position: sticky; top: 0; }
.admin .scroll { overflow-x: auto; }
.admin form.inline { display: inline; }
.admin button { font: 600 0.85rem var(--sans); padding: 0.25rem 0.5rem; cursor: pointer; }

/* Footer */
.foot { background: var(--cloth-deep); color: #D7E2DB; margin-top: 0; }
.foot a { color: var(--paper); }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; }
.foot__word { font-family: var(--serif); font-size: 1.6rem; color: var(--paper); margin-bottom: 0.3rem; }
.foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foot__links ul { list-style: none; margin: 0; padding: 0; }
.foot__links li { margin-bottom: 0.4rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__legal { grid-column: 1 / -1; font-size: 0.88rem; color: #A9BDB2; border-top: 1px solid #355A4B; padding-top: 1.25rem; max-width: none; margin: 0; }
@media (max-width: 44rem) { .foot__inner { grid-template-columns: 1fr; } }

@media print {
  .masthead, .foot, .actions, .starts { display: none; }
  body { background: #fff; }
}
.stage-group legend { width: 100%; padding: 0; }
.btn--small { white-space: nowrap; }

/* WhatsApp chat button, fixed bottom right. Shown only when a number is set in inc/config.php. */
.wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 999px; background: #17784A; color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.wa:hover { background: #105F3A; color: #fff; }
.wa svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.has-wa .foot { padding-bottom: 4.5rem; }
/* On phones the pill covered answers and buttons; a round icon covers far less. The label stays for screen readers. */
@media (max-width: 40rem) {
  .wa { padding: 0.85rem; right: 0.75rem; bottom: 0.75rem; }
  .wa svg { width: 1.5rem; height: 1.5rem; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa { display: none; } }

/* Social accounts in the footer: plain text links, in a row. */
.foot__social { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.foot__social a { text-decoration: none; font-weight: 600; }
.foot__social a:hover { text-decoration: underline; }

/* Booking page: one fold-out list of times per day. */
.book h2 { margin-bottom: 0.3rem; }
.days { border-top: 2px solid var(--ink); margin-top: 1rem; }
.day { border-bottom: 1px solid var(--rule); }
.day summary { cursor: pointer; padding: 0.9rem 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; list-style: none; }
.day summary::-webkit-details-marker { display: none; }
.day summary .d { font-weight: 700; }
.day[open] summary .d { color: var(--cloth); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; padding: 0 0 1.1rem; }
.time { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0.6rem 0.4rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); cursor: pointer; min-height: 44px; }
.time input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.time .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.time .p { font-size: 0.9rem; color: var(--ink-2); }
.time.after .p { color: var(--cloth); font-weight: 600; }
.time:has(input:checked) { background: var(--cloth); border-color: var(--cloth); }
.time:has(input:checked) .t, .time:has(input:checked) .p { color: var(--white); }
.time:has(input:focus-visible) { outline: 3px solid var(--route); outline-offset: 2px; }

/* Logo: book with the road, wordmark, route line underneath. */
.wordmark { display: inline-flex; line-height: 1; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__book { width: 2.6rem; height: auto; flex: none; }
.logo__book .rd { fill: var(--route); }
.logo__book .ln { fill: none; stroke: #FFFFFF; stroke-width: 1.3; stroke-linecap: round; }
.logo__type { display: inline-flex; flex-direction: column; gap: 0.3rem; }
.logo__word { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.logo__word i { font-style: italic; color: var(--route); }
/* width 0 + min-width 100%: the line takes the word's width instead of setting it. */
.logo__route { width: 0; min-width: 100%; height: auto; display: block; overflow: visible; }
.logo__route line { stroke: var(--route); stroke-width: 2.2; }
.logo__route circle { fill: var(--white); stroke: var(--route); stroke-width: 2; }
.logo--light .logo__book .pg { fill: var(--cloth); }
.logo--light .logo__word { color: var(--ink); }
.logo--dark .logo__book .pg { fill: var(--paper); }
.logo--dark .logo__book .ln { stroke: var(--cloth-deep); }
.logo--dark .logo__word { color: var(--paper); }
.logo--dark .logo__route circle { fill: var(--cloth-deep); }
.foot__word { margin-bottom: 0.8rem; }
@media (max-width: 26rem) {
  .logo { gap: 0.4rem; }
  .logo__book { width: 1.8rem; }
  .logo__word { font-size: 1.25rem; }
  .masthead__inner { gap: 0.6rem; }
}
@media (max-width: 23rem) {
  .logo__book { width: 1.55rem; }
  .logo__word { font-size: 1.1rem; }
  .masthead .btn--small { padding: 0.45rem 0.6rem; font-size: 0.92rem; }
  .nav__menu summary { padding: 0.4rem 0.6rem; }
}

/* Admin calendar */
.cal-head { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 0.75rem; }
.cal-head h2 { margin: 0; min-width: 11rem; text-align: center; }
.cal-head a[aria-label] { font-size: 1.8rem; line-height: 1; text-decoration: none; padding: 0 0.4rem; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 40rem; }
.cal th { font-size: 0.85rem; color: var(--ink-2); padding: 0.4rem; text-align: left; }
.cal td { vertical-align: top; height: 5.5rem; border: 1px solid var(--rule); padding: 0.35rem; background: var(--white); }
.cal td.out { background: var(--paper-2); }
.cal td.out .n { color: var(--ink-2); }
.cal td.today { box-shadow: inset 0 0 0 2px var(--route); }
.cal .n { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; }
.cal .ev { display: block; font-size: 0.8rem; line-height: 1.25; background: var(--cloth); color: var(--white); border-radius: 4px; padding: 0.15rem 0.3rem; margin-bottom: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.check { background: var(--error); }
