/* ==========================================================================
   Hammond Protestant Cemetery
   assets/css/site.css

   Sections
     1. Tokens & reset
     2. Typography
     3. Layout helpers
     4. Masthead & navigation
     5. Hero
     6. Components (buttons, cards, notices, tables)
     7. Page-specific
     8. Footer
     9. Print
    10. Motion & responsive
   ========================================================================== */

/* -- 1. Tokens & reset ---------------------------------------------------- */

:root {
  color-scheme: light;

  --ink:        #1c211e;
  --ink-soft:   #505a52;
  --ink-faint:  #77817a;

  --paper:      #fbfaf7;
  --paper-2:    #f3f1ea;
  --paper-3:    #e9e6dc;

  --green:      #2e4739;
  --green-2:    #3d5d4b;
  --green-pale: #eaf0eb;

  --gold:       #8a7550;
  --gold-pale:  #f6f0e2;

  --rust:       #8c4a35;

  --line:       #ded9cd;
  --line-soft:  #ebe7dc;

  --shadow-sm:  0 1px 2px rgba(28, 33, 30, .06), 0 2px 8px rgba(28, 33, 30, .05);
  --shadow-md:  0 2px 6px rgba(28, 33, 30, .07), 0 12px 32px rgba(28, 33, 30, .08);

  --radius:     4px;
  --radius-lg:  8px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap:  1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -- 2. Typography -------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; font-family: var(--sans); font-weight: 700; color: var(--ink); }

p { margin: 0 0 1.1rem; }

a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust); }

strong { font-weight: 700; }

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--gold); }

blockquote {
  margin: 2rem 0;
  padding: .3rem 0 .3rem 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--green);
}
blockquote cite {
  display: block;
  margin-top: .7rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Unfilled-content marker. Deliberately loud so nothing ships by accident. */
.todo {
  display: inline-block;
  background: #fff3cd;
  border: 1px dashed #b8860b;
  border-radius: 3px;
  padding: 0 .4em;
  font-family: var(--sans);
  font-size: .87em;
  font-weight: 600;
  color: #6b5200;
  white-space: nowrap;
}

.price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* -- 3. Layout helpers ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

main { display: block; }

.section { padding: 4rem 0; }
.section-tight { padding: 2.75rem 0; }
.section-alt { background: var(--paper-2); }
.section-green { background: var(--green); color: #e9efe9; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green a { color: #cfe0d2; }

.section-head { max-width: 62ch; margin-bottom: 2.2rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* -- 4. Masthead & navigation --------------------------------------------- */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: .85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--green);
  margin-right: auto;
}
.brand-mark { width: 26px; flex: none; color: var(--gold); }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--green);
}
.brand-sub {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .15rem;
}

.masthead-tools { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .85rem;
  background: #fff;
}
.lang-switch:hover { border-color: var(--green-2); color: var(--green); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: .5rem .85rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars span { display: block; width: 17px; height: 2px; background: currentColor; }

.primary-nav { flex-basis: 100%; border-top: 1px solid var(--line-soft); padding-top: .5rem; }
.primary-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a,
.primary-nav .sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.primary-nav a:hover,
.primary-nav .sub-toggle:hover { background: var(--green-pale); color: var(--green); }
.primary-nav a[aria-current="page"] {
  color: var(--green);
  background: var(--green-pale);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
}

.has-sub { position: relative; }
.has-sub[data-open="true"] > .sub-toggle { color: var(--green); background: var(--green-pale); }
.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 232px;
  list-style: none;
  margin: 0;
  padding: .4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 10;
}
.sub li { display: block; }
.sub a { display: block; padding: .5rem .7rem; font-weight: 500; }
.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.sub-toggle[aria-expanded="true"] + .sub { display: block; }

.nav-cta a {
  background: var(--green);
  color: #fff;
  margin-left: .35rem;
}
.nav-cta a:hover { background: var(--green-2); color: #fff; }
.nav-cta a[aria-current="page"] { background: var(--green); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }

/* -- 5. Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--green);
  color: #edf2ed;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { padding-block: 3.2rem; position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  color: #fff;
  margin-bottom: .4rem;
  text-shadow: 0 1px 12px rgba(10, 18, 14, .45);
}
.hero-sub {
  font-size: 1.15rem;
  color: #dbe6db;
  max-width: 60ch;
  margin-bottom: 0;
  text-shadow: 0 1px 10px rgba(10, 18, 14, .5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.hero-wide .hero-inner { padding-block: 5.5rem 5rem; }

/* Hand-drawn SVG landscape. The flat colour underneath shows through if the
   image is slow or blocked, so the headline never sits on bare white. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #1d3127;
  background-image: url("../img/hero-landscape.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Illustration blocks used in place of photographs. */
.illus {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.illus-figure { margin: 0; }
.illus-figure figcaption {
  font-size: .86rem;
  color: var(--ink-faint);
  margin-top: .6rem;
  line-height: 1.45;
}
.illus-figure figcaption a { color: var(--ink-soft); }

/* Small gold ornament used to close a long page. */
.ornament {
  display: block;
  width: 200px;
  height: auto;
  margin: 2.6rem auto .5rem;
  opacity: .9;
}

.page-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: 2.6rem;
}
.page-head h1 { margin-bottom: .35rem; }
.page-head .lede { margin-bottom: 0; }

.breadcrumb {
  font-size: .85rem;
  color: var(--ink-faint);
  margin-bottom: .8rem;
}
.breadcrumb a { color: var(--ink-soft); }

/* -- 6. Components -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #75623f; color: #fff; }
/* Sits on the hero illustration, so it carries its own dark scrim rather than
   relying on whatever happens to be behind it. */
.btn-outline {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  background: rgba(13, 23, 18, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.btn-outline:hover { background: rgba(13, 23, 18, .68); color: #fff; }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-2); color: #fff; }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--paper-2); color: var(--green); }
.btn-ghost { border-color: var(--line); color: var(--green); background: #fff; }
.btn-ghost:hover { border-color: var(--green-2); background: var(--green-pale); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card-link:hover {
  border-color: var(--green-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.card-link .more {
  display: inline-block;
  margin-top: .9rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--green-2);
}
.card-link:hover .more { color: var(--rust); }

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: .9rem;
}

.stat {
  text-align: center;
  padding: 1.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}
.stat-label {
  display: block;
  margin-top: .45rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notice {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8rem 0;
}
.notice p:last-child { margin-bottom: 0; }
.notice h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.notice-info { border-left-color: var(--green-2); background: var(--green-pale); }
.notice-warn { border-left-color: #b8860b; background: #fff8e6; }

table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 2rem; font-size: .96rem; }
caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: .6rem;
}
th, td {
  text-align: left;
  padding: .72rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  background: var(--paper-2);
  border-bottom: 2px solid var(--line);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
tbody tr:hover { background: var(--paper); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Price list */
.price-group { margin-bottom: 2.6rem; }
.price-group > h3 {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--line);
  padding-bottom: .5rem;
  margin-bottom: 0;
}
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.price-list .item { flex: 1 1 260px; }
.price-list .item-note {
  display: block;
  font-size: .87rem;
  color: var(--ink-faint);
  margin-top: .15rem;
}
.price-list .amount { margin-left: auto; text-align: right; }

.details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  margin-bottom: .8rem;
  overflow: hidden;
}
.details > summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--green);
}
.details > summary::-webkit-details-marker { display: none; }
.details > summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
  flex: none;
}
.details[open] > summary::after { content: "\2013"; }
.details > summary:hover { background: var(--paper-2); }
.details .details-body { padding: 0 1.2rem 1.2rem; }
.details .details-body > :last-child { margin-bottom: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.2rem; padding: 0; }
.tag-list li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .87rem;
  color: var(--ink-soft);
}

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 12px, var(--paper-3) 12px 24px);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: .9rem;
}
.photo-slot strong { display: block; color: var(--ink-soft); margin-bottom: .25rem; }

figure { margin: 0 0 1.5rem; }
figcaption { font-size: .87rem; color: var(--ink-faint); margin-top: .5rem; }

/* Forms */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .35rem;
  color: var(--ink);
}
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-faint); margin-top: .1rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .68rem .8rem;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--green-2); }
.field textarea { min-height: 150px; resize: vertical; }
.field .req { color: var(--rust); }
.field-error input, .field-error textarea, .field-error select { border-color: var(--rust); background: #fdf6f4; }
.error-text { color: var(--rust); font-size: .88rem; font-weight: 600; margin-top: .3rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.8rem;
  border-left: 4px solid;
}
.alert-success { background: var(--green-pale); border-left-color: var(--green-2); }
.alert-error { background: #fdf1ee; border-left-color: var(--rust); }
.alert h2 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: .3rem; }
.alert p:last-child { margin-bottom: 0; }

/* Contact detail blocks */
.contact-block { display: grid; gap: 1.2rem; }
.contact-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item svg { width: 22px; flex: none; color: var(--gold); margin-top: .25rem; }
.contact-item h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.contact-item p { margin-bottom: 0; color: var(--ink-soft); }

/* Records search */
.search-bar { display: grid; gap: .8rem; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 1.4rem; }
.search-bar input[type="search"] {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.result-count { font-size: .9rem; color: var(--ink-faint); margin-bottom: 1rem; }
.record-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.record-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}
.record-name { font-weight: 700; font-size: 1.02rem; color: var(--green); }
.record-dates { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.record-plot { margin-left: auto; font-size: .85rem; color: var(--ink-faint); }
.no-results { padding: 2rem; text-align: center; color: var(--ink-faint); background: var(--paper-2); border-radius: var(--radius-lg); }

/* Map embed */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Timeline */
.timeline { list-style: none; margin: 2rem 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 1.9rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 6px);
  top: .45rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
}
.timeline .year {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .2rem;
}
.timeline p { margin-bottom: 0; }

/* -- 7. Page-specific ----------------------------------------------------- */

.help-banner { background: var(--green-2); color: #fff; padding: 2.4rem 0; }
.help-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.help-banner h2 { color: #fff; margin-bottom: .25rem; font-size: 1.6rem; }
.help-banner p { margin: 0; color: #d6e3d8; max-width: 56ch; }

.source-note {
  font-size: .86rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2.5rem;
}
.source-note a { color: var(--ink-soft); }

/* -- 8. Footer ------------------------------------------------------------ */

.site-footer {
  background: #23332a;
  color: #c3d0c5;
  padding-top: 3.2rem;
  margin-top: 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 2.6rem;
}
.footer-col-about { grid-column: span 1; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8fae96;
  margin-bottom: .9rem;
}
.site-footer a { color: #dce6dd; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
/* Inline-block with vertical padding keeps these above the 24x24 CSS px
   minimum tap target (WCAG 2.5.8) without changing how the list looks. */
.footer-links a { display: inline-block; padding-block: .25rem; }
.footer-address { font-style: normal; margin-bottom: .9rem; line-height: 1.55; }
.footer-ext { margin-bottom: 0; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .87rem;
}
.footer-legal { margin: 0; color: #9db3a2; }
.footer-fine { color: #85977f; font-size: .85em; }
.footer-meta { margin: 0; display: flex; gap: .6rem; align-items: center; color: #6f8474; }
.footer-meta a { display: inline-block; padding-block: .25rem; }

/* -- 9. Print ------------------------------------------------------------- */

@media print {
  :root { --wrap: 100%; }

  body { background: #fff; font-size: 11pt; line-height: 1.4; }

  .masthead, .primary-nav, .help-banner, .site-footer, .skip-link,
  .hero-art, .no-print, .nav-toggle, .lang-switch, .btn { display: none !important; }

  .hero, .page-head { background: #fff !important; color: #000; border-bottom: 2px solid #000; padding-block: 0 1rem; }
  .hero h1, .page-head h1 { color: #000; font-size: 22pt; }
  .hero-sub, .lede { color: #333; font-size: 11pt; }

  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }

  .section { padding: .6rem 0; }
  .price-group { break-inside: avoid; }
  .price-list li { break-inside: avoid; padding: .3rem 0; }
  .card, .notice, table { break-inside: avoid; box-shadow: none; }
  .print-only { display: block !important; }

  .todo { background: none; border: 1px solid #000; color: #000; }
}

.print-only { display: none; }

/* -- 10. Motion & responsive ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card-link:hover { transform: none; }
}

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    border-top: 1px solid var(--line);
    margin-top: .3rem;
    padding-top: .5rem;
    padding-bottom: .6rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav > ul > li:last-child { border-bottom: 0; }
  .primary-nav a, .primary-nav .sub-toggle { padding: .8rem .4rem; width: 100%; justify-content: space-between; }

  .sub {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--paper-2);
    margin: 0 0 .4rem;
    padding: .2rem .4rem .4rem;
  }
  .has-sub:hover > .sub { display: none; }
  .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub a { padding-left: 1.2rem; }

  .nav-cta a { margin-left: 0; border-radius: var(--radius); }

  .help-banner-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .hero-wide .hero-inner { padding-block: 3rem 2.6rem; }
  .section { padding: 2.8rem 0; }
  .search-bar { grid-template-columns: 1fr; }
  .price-list .amount { margin-left: 0; text-align: left; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
