/* =============================================================================
   HOTEL FINANCE TOOLS - MAIN STYLESHEET
   =============================================================================

   HOW TO MAKE ROUTINE CHANGES
   Almost every colour, size and spacing value used on the site is listed in
   the SETTINGS block immediately below. Change a value there and it updates
   everywhere at once. You very rarely need to scroll further down.

   CONTENTS
     1.  Settings (colours, type, spacing, shadows)
     2.  Reset and base
     3.  Layout helpers
     4.  Typography
     5.  Buttons
     6.  Announcement bar
     7.  Header and navigation
     8.  Hero
     9.  Sections and section headings
     10. Cards and product grids
     11. Prices and tags
     12. Preview graphics (spreadsheet, document, paper)
     13. Product page
     14. Shop controls
     15. Tables
     16. Forms
     17. FAQ
     18. Breadcrumbs
     19. Blog
     20. Alerts and notices
     21. Legal and long-form pages
     22. 404 page
     23. Footer
     24. Cookie notice
     25. Print styles
     26. Reduced motion
   ========================================================================== */


/* =============================================================================
   1. SETTINGS
   ========================================================================== */

:root {

  /* --- Brand colours ------------------------------------------------------
     --accent is the main blue-green used on buttons and links.
     --gold is used sparingly, for small rules and highlights only. */
  --accent:          #17636b;
  --accent-dark:     #114c53;
  --accent-light:    #2c8a92;
  --accent-wash:     #e8f1f2;
  --gold:            #9c7226;
  --gold-wash:       #f6f0e2;

  /* --- Backgrounds -------------------------------------------------------- */
  --bg:              #f6f7f8;
  --bg-alt:          #eef1f4;
  --surface:         #ffffff;
  --surface-sunken:  #f9fafb;
  --ink-panel:       #12263f;

  /* --- Text --------------------------------------------------------------- */
  --ink:             #12263f;
  --ink-soft:        #41536b;
  --ink-muted:       #6a7b90;
  --ink-inverse:     #f4f7f9;

  /* --- Borders ------------------------------------------------------------ */
  --border:          #e0e5eb;
  --border-strong:   #c8d1dc;
  --border-rule:     #eaeef2;

  /* --- Status colours -----------------------------------------------------
     Never used on their own. Every status also carries a symbol or a word. */
  --positive:        #1c6b46;
  --negative:        #9c3b2e;
  --info:            #16556b;

  /* --- Type --------------------------------------------------------------- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono",
               "Roboto Mono", Menlo, Consolas, monospace;

  --size-xs:    0.78rem;
  --size-sm:    0.875rem;
  --size-base:  1rem;
  --size-md:    1.075rem;
  --size-lg:    1.25rem;
  --size-xl:    1.5rem;
  --size-2xl:   1.875rem;
  --size-3xl:   2.35rem;
  --size-4xl:   3rem;

  --leading-tight: 1.18;
  --leading-snug:  1.35;
  --leading-body:  1.65;

  /* --- Layout ------------------------------------------------------------- */
  --wrap:        72rem;
  --wrap-narrow: 44rem;
  --wrap-mid:    58rem;
  --gutter:      1.25rem;

  /* --- Spacing ------------------------------------------------------------ */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.75rem;
  --space-8:  3.5rem;
  --space-9:  4.5rem;
  --space-10: 6rem;

  /* --- Corners ------------------------------------------------------------ */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;

  /* --- Shadows ------------------------------------------------------------ */
  --shadow-sm: 0 1px 2px rgba(18, 38, 63, 0.05);
  --shadow:    0 1px 2px rgba(18, 38, 63, 0.05), 0 4px 12px rgba(18, 38, 63, 0.06);
  --shadow-lg: 0 2px 4px rgba(18, 38, 63, 0.05), 0 12px 32px rgba(18, 38, 63, 0.10);

  /* --- Buttons ------------------------------------------------------------ */
  --btn-padding-y: 0.75rem;
  --btn-padding-x: 1.35rem;
  --btn-radius:    var(--radius);
  --btn-weight:    600;

  /* --- Forms -------------------------------------------------------------- */
  --field-border:  var(--border-strong);
  --field-radius:  var(--radius);
  --field-padding: 0.7rem 0.85rem;
  --field-bg:      var(--surface);

  /* --- Focus -------------------------------------------------------------- */
  --focus-ring:   3px solid var(--accent-light);
  --focus-offset: 2px;
}

/* Breakpoints used through the file (media queries cannot read variables):
     small   up to 39.99em   (approx 320-639px)
     medium  from 40em       (approx 640px)
     large   from 60em       (approx 960px)
     wide    from 75em       (approx 1200px)                                 */


/* =============================================================================
   2. RESET AND BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--size-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg { display: inline-block; vertical-align: middle; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

ul, ol { padding-left: 1.15rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-7) 0;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink-panel);
  color: var(--ink-inverse);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}


/* =============================================================================
   3. LAYOUT HELPERS
   ========================================================================== */

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

.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--mid    { max-width: var(--wrap-mid); }

.section {
  padding-block: var(--space-8);
}
.section--tight { padding-block: var(--space-7); }
.section--wide  { padding-block: var(--space-9); }
.section--alt   { background: var(--bg-alt); }
.section--panel { background: var(--ink-panel); color: var(--ink-inverse); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }

@media (min-width: 60em) {
  .section       { padding-block: var(--space-9); }
  .section--wide { padding-block: var(--space-10); }
}

.grid { display: grid; gap: var(--space-5); }

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 40em) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--space-4); }
.center { text-align: center; }
.center-x { margin-inline: auto; }


/* =============================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  line-height: var(--leading-tight);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--size-2xl); }
h2 { font-size: var(--size-xl); }
h3 { font-size: var(--size-lg); }
h4 { font-size: var(--size-md); }

@media (min-width: 40em) {
  h1 { font-size: var(--size-3xl); }
  h2 { font-size: var(--size-2xl); }
}

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent); }

strong { font-weight: 650; }

.lede {
  font-size: var(--size-md);
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (min-width: 40em) {
  .lede { font-size: var(--size-lg); }
}

.muted { color: var(--ink-muted); }
.small { font-size: var(--size-sm); }

/* The small label above a section heading, with a gold hairline. */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--gold);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head { max-width: 44rem; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Figures are set in a monospaced face with even width, so columns of
   numbers line up the way they do in a spreadsheet. */
.num, .price__now, .kpi dd, .assumption__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}


/* =============================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.9rem;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font: inherit;
  font-weight: var(--btn-weight);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff; }

.btn--outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent-dark);
  padding-inline: var(--space-2);
}
.btn--ghost:hover { color: var(--accent); text-decoration: underline; }

.btn--inverse {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink-panel);
}
.btn--inverse:hover { background: var(--accent-wash); border-color: var(--accent-wash); }

.btn--inverse-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--ink-inverse);
}
.btn--inverse-outline:hover { border-color: #ffffff; color: #ffffff; }

.btn--small { min-height: 2.4rem; padding: 0.5rem 0.95rem; font-size: var(--size-sm); }
.btn--large { min-height: 3.2rem; padding: 0.95rem 1.75rem; font-size: var(--size-md); }
.btn--block { display: flex; width: 100%; }

.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--ink-muted);
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.btn-row--center { justify-content: center; }


/* =============================================================================
   6. ANNOUNCEMENT BAR
   ========================================================================== */

.announcement {
  background: var(--ink-panel);
  color: var(--ink-inverse);
  font-size: var(--size-sm);
}

.announcement__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.6rem;
  padding-block: var(--space-2);
}

.announcement__text { margin: 0; flex: 1; }

.announcement__link {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.announcement__close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
}
.announcement__close:hover { background: rgba(255, 255, 255, 0.12); }


/* =============================================================================
   7. HEADER AND NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.logo__mark { width: 2rem; height: 2rem; color: var(--accent); flex: none; }

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.logo__word--accent { color: var(--accent); font-weight: 600; }

@media (min-width: 40em) {
  .logo__text { flex-direction: row; gap: 0.3em; font-size: 1.05rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.6rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--size-sm);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__icon { display: inline-grid; }
.nav-toggle__icon .icon { grid-area: 1 / 1; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: inline-block; }
.site-header.is-open .nav-toggle .icon--menu  { display: none; }

.site-nav { display: none; }
.site-header.is-open .site-nav {
  display: block;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-3) var(--gutter) var(--space-5);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav__list a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  border-bottom: 1px solid var(--border-rule);
}
.site-nav__list a:hover { color: var(--accent-dark); }
.site-nav__list a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }

.site-nav__cta { margin-top: var(--space-3); }
.site-nav__cta a,
.site-nav__cta a:hover {
  border-bottom: 0;
  color: #ffffff;
}

@media (min-width: 60em) {
  .nav-toggle { display: none; }

  .site-nav,
  .site-header.is-open .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }

  .site-nav__list a {
    padding: 0;
    border-bottom: 2px solid transparent;
    font-size: var(--size-sm);
    line-height: 2.4;
  }
  .site-nav__list a:hover { border-bottom-color: var(--border-strong); }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--gold); }

  .site-nav__cta { margin: 0 0 0 var(--space-2); }
  .site-nav__cta a,
  .site-nav__cta a:hover {
    border-bottom: 0;
    line-height: 1.2;
    color: #ffffff;
  }
}


/* =============================================================================
   8. HERO
   ========================================================================== */

.hero {
  padding-block: var(--space-7) var(--space-8);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__grid { display: grid; gap: var(--space-7); align-items: center; }

@media (min-width: 60em) {
  .hero { padding-block: var(--space-9) var(--space-9); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-8); }
}

.hero h1 {
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3rem);
  letter-spacing: -0.025em;
}

.hero__copy .lede { margin-bottom: var(--space-6); }

.hero__meta {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--size-sm);
  color: var(--ink-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta .icon { color: var(--accent); }


/* =============================================================================
   9. SECTIONS
   ========================================================================== */

.credibility {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: var(--space-5);
}

.credibility__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-3);
  font-size: var(--size-sm);
}
.credibility__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--ink-soft);
}
.credibility__list .icon { color: var(--accent); margin-top: 0.15em; }

@media (min-width: 40em) { .credibility__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .credibility__list { grid-template-columns: repeat(5, 1fr); } }

/* Problem and solution pairs */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }

.problem {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}
.problem:first-child { border-top: 0; padding-top: 0; }

.problem__issue { margin: 0; font-weight: 650; }
.problem__answer { margin: 0; color: var(--ink-soft); }

@media (min-width: 48em) {
  .problem { grid-template-columns: 15rem 1fr; gap: var(--space-5); align-items: start; }
}

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { counter-increment: step; }
.step__number {
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  margin-bottom: var(--space-3);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: var(--size-sm);
  font-weight: 700;
}
.step h3 { margin-bottom: var(--space-2); font-size: var(--size-md); }
.step p { color: var(--ink-soft); margin: 0; }

/* Audience list */
.audience { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 40em) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .audience { grid-template-columns: repeat(3, 1fr); } }

.audience li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.audience strong { display: block; }
.audience span { color: var(--ink-soft); font-size: var(--size-sm); }


/* =============================================================================
   10. CARDS AND PRODUCT GRIDS
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.product-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.product-card__category {
  margin: 0;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.product-card__title { font-size: var(--size-md); margin-bottom: var(--space-2); }
.product-card__title a { color: var(--ink); text-decoration: none; }
.product-card__title a:hover { color: var(--accent-dark); text-decoration: underline; }

.product-card__outcome { color: var(--ink-soft); font-size: var(--size-sm); margin-bottom: var(--space-4); }

.product-card__formats {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-rule);
  font-size: var(--size-xs);
  color: var(--ink-muted);
}
.product-card__formats .icon { color: var(--accent); }

.product-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}


/* =============================================================================
   11. PRICES AND TAGS
   ========================================================================== */

.price { margin: 0; display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }

.price__now { font-size: var(--size-lg); font-weight: 700; color: var(--ink); }
.price--large .price__now { font-size: var(--size-2xl); }

.price__was { color: var(--ink-muted); font-size: var(--size-sm); }

.price__badge {
  padding: 0.1rem 0.45rem;
  background: var(--gold-wash);
  border: 1px solid #e4d5b4;
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: var(--size-xs);
  font-weight: 700;
  white-space: nowrap;
}

.tag {
  margin: 0;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tag--sale { background: var(--accent-wash); color: var(--accent-dark); border: 1px solid #cfe2e4; }
.tag--soon { background: var(--bg-alt); color: var(--ink-muted); border: 1px solid var(--border-strong); }
.tag--free { background: var(--gold-wash); color: var(--gold); border: 1px solid #e4d5b4; }


/* =============================================================================
   12. PREVIEW GRAPHICS
   ========================================================================== */

.preview { margin: 0; }

.sample-label,
.preview__caption {
  margin: var(--space-3) 0 0;
  font-size: var(--size-xs);
  color: var(--ink-muted);
  font-style: normal;
}

/* --- Spreadsheet frame --------------------------------------------------- */
.sheet {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sheet__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem var(--space-4);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: var(--size-xs);
  color: var(--ink-muted);
}
.sheet__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.sheet__file { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sheet__ruler {
  display: grid;
  grid-template-columns: 2rem repeat(5, 1fr);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
}
.sheet__ruler span {
  padding: 0.2rem 0;
  text-align: center;
  border-right: 1px solid var(--border-rule);
}
.sheet__ruler span:last-child { border-right: 0; }

.sheet__body { padding: var(--space-4); }
@media (min-width: 40em) { .sheet__body { padding: var(--space-5); } }

.sheet__headline {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 34em) {
  .sheet__headline { grid-template-columns: 1fr auto; align-items: end; }
}

.sheet__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sheet__title { margin: 0; font-weight: 700; font-size: var(--size-md); }

.kpi-strip { display: flex; gap: var(--space-5); margin: 0; }
.kpi { margin: 0; }
.kpi dt {
  font-size: var(--size-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kpi dd { margin: 0.15rem 0 0; font-size: var(--size-md); font-weight: 700; }
.kpi__unit { font-size: 0.7em; color: var(--ink-muted); }

.sheet__note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-sunken);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.sheet__note-label {
  margin: 0 0 var(--space-1);
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}
.sheet__note-text { margin: 0; font-size: var(--size-sm); color: var(--ink-soft); }

.sheet__tabs {
  display: flex;
  gap: 2px;
  padding: 0 var(--space-3);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.sheet__tab {
  padding: 0.4rem 0.75rem;
  font-size: var(--size-xs);
  color: var(--ink-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: 0;
}
.sheet__tab.is-active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  font-weight: 650;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* --- Mini tables inside previews ---------------------------------------- */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-sm);
}
.mini-table caption { text-align: left; }
.mini-table th, .mini-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border-rule);
  text-align: left;
  vertical-align: top;
}
.mini-table thead th {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-strong);
  font-weight: 700;
}
.mini-table tbody th { font-weight: 550; }
.mini-table .num { text-align: right; white-space: nowrap; }
.mini-table__total th, .mini-table__total td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-weight: 700;
  padding-top: 0.6rem;
}
.mini-table--checklist { font-size: var(--size-xs); }

.var--up   { color: var(--positive); }
.var--down { color: var(--negative); }
.var--flat { color: var(--ink-muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 650;
  white-space: nowrap;
}
.status--done { color: var(--positive); }
.status--open { color: var(--ink-muted); }
.status .icon { width: 0.95em; height: 0.95em; }

/* --- Document preview ---------------------------------------------------- */
.doc {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.doc__bar {
  padding: 0.55rem var(--space-4);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--ink-muted);
}
.doc__body { padding: var(--space-5); }
.doc__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}
.doc__title { margin: 0 0 var(--space-4); font-size: var(--size-lg); }

.doc__fields { margin: 0; display: grid; gap: var(--space-3); }
.doc__fields > div { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-rule); }
.doc__fields > div:last-child { border-bottom: 0; padding-bottom: 0; }
.doc__fields dt { font-size: var(--size-sm); font-weight: 700; margin-bottom: 0.2rem; }
.doc__fields dd { margin: 0; font-size: var(--size-sm); color: var(--ink-soft); }

.pill {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: var(--size-xs);
  font-weight: 700;
}
.pill--timing { background: var(--accent-wash); color: var(--accent-dark); }

/* --- Budget phasing bars ------------------------------------------------- */
.assumption-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 34em) { .assumption-row { grid-template-columns: repeat(4, 1fr); } }

.assumption {
  padding: var(--space-3);
  background: var(--surface-sunken);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-sm);
}
.assumption__label {
  margin: 0 0 0.15rem;
  font-size: var(--size-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.assumption__value { margin: 0; font-weight: 700; font-size: var(--size-md); }

.phasing {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  align-items: end;
  height: 8rem;
}
.phasing__item {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  height: 100%;
  text-align: center;
}
.phasing__bar {
  display: block;
  height: var(--pct, 50%);
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-radius: 2px 2px 0 0;
  align-self: end;
}
.phasing__label {
  padding-top: 0.3rem;
  font-size: 0.6rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* --- Bundle stack -------------------------------------------------------- */
.bundle-stack {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-2);
}
.bundle-stack__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bundle-stack__icon {
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  flex: none;
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
}
.bundle-stack__text { display: grid; }
.bundle-stack__title { font-weight: 650; font-size: var(--size-sm); }
.bundle-stack__meta { font-size: var(--size-xs); color: var(--ink-muted); }

/* --- Paper preview ------------------------------------------------------- */
.paper {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.paper__eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  font-weight: 700;
}
.paper__title { margin: 0 0 var(--space-4); font-size: var(--size-md); }
.paper__section {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-rule);
  padding-bottom: 0.25rem;
}
.paper__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.paper__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--size-sm);
  color: var(--ink-soft);
}
.paper__box {
  width: 0.85rem; height: 0.85rem;
  margin-top: 0.28em;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}


/* =============================================================================
   13. PRODUCT PAGE
   ========================================================================== */

.product-hero { padding-block: var(--space-6) var(--space-8); background: var(--surface); border-bottom: 1px solid var(--border); }

.product-hero__grid { display: grid; gap: var(--space-7); }
@media (min-width: 62em) {
  .product-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
}

.product-hero h1 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem); }

.product-hero__promise { font-size: var(--size-md); color: var(--ink-soft); margin-bottom: var(--space-5); }

.buy-box {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.buy-box .price { margin-bottom: var(--space-2); }

.buy-box__meta {
  margin: 0 0 var(--space-4);
  font-size: var(--size-sm);
  color: var(--ink-muted);
}

.buy-box__fine { margin-top: var(--space-3); }

.buy-box__reassurance {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--size-sm);
  color: var(--ink-soft);
}
.buy-box__reassurance li { display: flex; gap: var(--space-2); align-items: flex-start; }
.buy-box__reassurance .icon { color: var(--accent); margin-top: 0.2em; }

.product-section { padding-block: var(--space-7); border-top: 1px solid var(--border); }
.product-section:first-of-type { border-top: 0; }

.spec-grid { display: grid; gap: var(--space-6); }
@media (min-width: 48em) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.check-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.check-list .icon { color: var(--accent); margin-top: 0.28em; flex: none; }

.spec-table { width: 100%; }
.spec-table th { width: 12rem; }

.final-cta {
  padding: var(--space-7);
  background: var(--ink-panel);
  color: var(--ink-inverse);
  border-radius: var(--radius-lg);
  text-align: center;
}
.final-cta h2 { color: #ffffff; }
.final-cta p { color: rgba(244, 247, 249, 0.82); max-width: 40rem; margin-inline: auto; }
.final-cta .btn-row { justify-content: center; margin-top: var(--space-5); }


/* =============================================================================
   14. SHOP CONTROLS
   ========================================================================== */

.shop-controls {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) 0 var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 52em) {
  .shop-controls { grid-template-columns: 1fr auto; align-items: end; }
}

.filter-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-list a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: var(--size-sm);
  text-decoration: none;
}
.filter-list a:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-list a[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.control-label {
  display: block;
  margin: 0;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sort-form { display: flex; align-items: end; gap: var(--space-2); }
.sort-form .field { margin: 0; }
.sort-form select { min-width: 12rem; }

.result-count { margin: 0 0 var(--space-4); font-size: var(--size-sm); color: var(--ink-muted); }


/* =============================================================================
   15. TABLES
   ========================================================================== */

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

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--size-sm);
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-2);
  font-size: var(--size-sm);
  color: var(--ink-muted);
}
table.data th, table.data td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-rule);
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-strong);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th { font-weight: 650; }


/* =============================================================================
   16. FORMS
   ========================================================================== */

.field { margin-bottom: var(--space-4); }

.field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--size-sm);
  font-weight: 650;
}

.field__hint {
  display: block;
  margin-top: -0.15rem;
  margin-bottom: var(--space-2);
  font-size: var(--size-xs);
  color: var(--ink-muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: var(--field-padding);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--size-base);
}

textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.25rem, calc(100% - 0.75rem) 1.25rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

input:hover, select:hover, textarea:hover { border-color: var(--ink-muted); }

.field--checkbox { display: flex; align-items: flex-start; gap: var(--space-3); }
.field--checkbox input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex: none; }
.field--checkbox label { margin: 0; font-weight: 400; font-size: var(--size-sm); }

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--negative); border-width: 2px; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: var(--space-2) 0 0;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--negative);
}
.field-error::before { content: "!"; font-weight: 700; }

/* Honeypot: hidden from people, still present for robots. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note { font-size: var(--size-sm); color: var(--ink-muted); }


/* --- Email signup component ---------------------------------------------- */
.signup { display: grid; gap: var(--space-4); }

.signup__heading { margin: 0 0 var(--space-2); font-size: var(--size-lg); }
.signup__text { margin: 0; color: var(--ink-soft); font-size: var(--size-sm); }

.signup__consent,
.signup__privacy { margin: var(--space-3) 0 0; font-size: var(--size-xs); color: var(--ink-muted); }
.signup__privacy { margin-top: var(--space-2); }

.signup--panel {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 56em) {
  .signup--panel { grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
}

.signup--full {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signup--compact { padding: var(--space-5); background: var(--accent-wash); border-radius: var(--radius); }

@media (min-width: 40em) {
  .signup--panel .signup__form,
  .signup--compact .signup__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-3);
    align-items: start;
  }
  .signup--panel .signup__form > .btn,
  .signup--compact .signup__form > .btn,
  .signup--panel .signup__consent,
  .signup--compact .signup__consent,
  .signup--panel .signup__privacy,
  .signup--compact .signup__privacy,
  .signup--panel .hp-field,
  .signup--compact .hp-field { grid-column: 1 / -1; }
}


/* =============================================================================
   17. FAQ
   ========================================================================== */

.faq-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq { border-bottom: 1px solid var(--border-rule); }
.faq:last-child { border-bottom: 0; }

.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { background: var(--surface-sunken); }
.faq__question:focus-visible { outline: var(--focus-ring); outline-offset: -3px; }

.faq__marker {
  position: relative;
  width: 0.85rem; height: 0.85rem;
  margin-top: 0.35em;
  flex: none;
}
.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.faq__marker::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__marker::after  { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq[open] .faq__marker::after { opacity: 0; }

.faq__answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-soft);
  font-size: var(--size-sm);
  max-width: 46rem;
}
.faq__answer p { margin-bottom: var(--space-3); }


/* =============================================================================
   18. BREADCRUMBS
   ========================================================================== */

.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--size-sm); }
.breadcrumbs ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.3rem; color: var(--ink-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }


/* =============================================================================
   19. BLOG
   ========================================================================== */

.article-header { padding-block: var(--space-6) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--border); }
.article-header h1 { max-width: 34ch; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0 0;
  font-size: var(--size-sm);
  color: var(--ink-muted);
}
.article-meta__category {
  padding: 0.1rem 0.5rem;
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  font-weight: 650;
}

.article-body { padding-block: var(--space-7); }
.article-body > * { max-width: var(--wrap-narrow); }

.article-body h2 {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--size-xl);
  scroll-margin-top: 5rem;
}
.article-body h3 { margin-top: var(--space-5); font-size: var(--size-md); }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body li { margin-bottom: var(--space-2); }
.article-body ul, .article-body ol { margin-bottom: var(--space-4); }

.article-body .example {
  max-width: var(--wrap-narrow);
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body .example--weak { border-left-color: var(--negative); }
.article-body .example--strong { border-left-color: var(--positive); }
.article-body .example p:last-child { margin-bottom: 0; }
.example__label {
  margin: 0 0 var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}

.toc {
  max-width: var(--wrap-narrow);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc__title {
  margin: 0 0 var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.toc ol { margin: 0; padding-left: 1.2rem; font-size: var(--size-sm); }
.toc li { margin-bottom: var(--space-1); }

.takeaways {
  max-width: var(--wrap-narrow);
  margin: var(--space-7) 0;
  padding: var(--space-5);
  background: var(--accent-wash);
  border-radius: var(--radius);
}
.takeaways h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: var(--size-lg); }
.takeaways ul { margin: 0; padding-left: 1.15rem; }
.takeaways li { color: var(--ink-soft); }

.article-cta {
  max-width: var(--wrap-narrow);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-cta h2 { margin: 0 0 var(--space-2); padding: 0; border: 0; font-size: var(--size-md); }
.article-cta p { margin-bottom: var(--space-4); }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 44em) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; }
.post-card__category {
  margin: 0 0 var(--space-2);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}
.post-card__title { font-size: var(--size-md); margin-bottom: var(--space-2); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent-dark); text-decoration: underline; }
.post-card__summary { font-size: var(--size-sm); color: var(--ink-soft); margin-bottom: var(--space-4); }
.post-card__meta {
  margin: auto 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-rule);
  font-size: var(--size-xs);
  color: var(--ink-muted);
}


/* =============================================================================
   20. ALERTS AND NOTICES
   ========================================================================== */

.notice {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  font-size: var(--size-sm);
}
.notice p { margin-bottom: var(--space-2); }
.notice p:last-child { margin-bottom: 0; }

.notice--info    { border-left-color: var(--info); background: var(--accent-wash); }
.notice--success { border-left-color: var(--positive); background: #eef6f1; }
.notice--error   { border-left-color: var(--negative); background: #fbf0ee; }
.notice--warning { border-left-color: var(--gold); background: var(--gold-wash); }

.notice__title { font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }

.dev-notice {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fffaf0;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  font-size: var(--size-xs);
  color: #6c4f19;
}


/* =============================================================================
   21. LEGAL AND LONG-FORM PAGES
   ========================================================================== */

.page-header {
  padding-block: var(--space-7) var(--space-6);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-header .lede { max-width: 46rem; margin-bottom: 0; }

.prose { max-width: var(--wrap-narrow); }
.prose h2 {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--size-lg);
  scroll-margin-top: 5rem;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: var(--space-5); font-size: var(--size-md); }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: var(--space-2); }

.legal-meta {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--gold-wash);
  border-radius: var(--radius);
  font-size: var(--size-sm);
}
.legal-meta p { color: #6c4f19; }
.legal-meta p:last-child { margin-bottom: 0; }


/* =============================================================================
   22. 404 PAGE
   ========================================================================== */

.error-page { padding-block: var(--space-9); text-align: center; }
.error-page__code {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--size-3xl);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.error-page .lede { max-width: 38rem; margin-inline: auto; }
.error-page .btn-row { justify-content: center; margin-top: var(--space-6); }


/* =============================================================================
   23. FOOTER
   ========================================================================== */

.site-footer {
  margin-top: var(--space-9);
  padding-block: var(--space-8) var(--space-6);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: var(--size-sm);
}

.footer-signup { margin-bottom: var(--space-8); }

.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--space-5); } }

.footer-about p { color: var(--ink-soft); margin-bottom: var(--space-3); }
.footer-logo { font-weight: 700; color: var(--ink); font-size: var(--size-md); }
.footer-contact { display: flex; align-items: center; gap: var(--space-2); }
.footer-contact .icon { color: var(--accent); }

.footer-col__title {
  margin: 0 0 var(--space-3);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--accent-dark); text-decoration: underline; }

.social-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; gap: var(--space-2); }
.social-list a {
  display: inline-grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.social-list a:hover { border-color: var(--accent); color: var(--accent-dark); }

.footer-bottom { padding-top: var(--space-5); color: var(--ink-muted); font-size: var(--size-xs); }
.footer-bottom p { margin-bottom: var(--space-2); }
.footer-note { max-width: 56rem; }


/* =============================================================================
   24. COOKIE NOTICE
   ========================================================================== */

.cookie-notice {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--ink-panel);
  color: var(--ink-inverse);
  font-size: var(--size-sm);
  box-shadow: 0 -4px 16px rgba(18, 38, 63, 0.18);
}
.cookie-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #ffffff; }


/* =============================================================================
   25. PRINT STYLES
   Checklists, articles, resource pages and legal documents should print
   cleanly. Navigation, forms and buttons are removed.
   ========================================================================== */

@media print {
  .announcement,
  .site-header,
  .site-footer,
  .cookie-notice,
  .skip-link,
  .btn,
  .btn-row,
  .signup,
  .footer-signup,
  .shop-controls,
  .article-cta,
  .final-cta,
  .dev-notice,
  form { display: none !important; }

  html, body { background: #ffffff; color: #000000; font-size: 11pt; }

  .wrap { max-width: none; padding: 0; }

  .section, .product-section, .article-body, .prose { padding-block: 0.5rem; }

  h1 { font-size: 20pt; }
  h2 { font-size: 14pt; page-break-after: avoid; }
  h3 { font-size: 12pt; page-break-after: avoid; }
  p, li { page-break-inside: avoid; }

  .card, .sheet, .doc, .paper, .notice, .faq-list {
    border: 1px solid #999999;
    box-shadow: none;
    break-inside: avoid;
  }

  .faq__answer { display: block !important; }

  a { color: #000000; text-decoration: underline; }
  .prose a[href^="http"]::after,
  .article-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}


/* =============================================================================
   26. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =============================================================================
   27. TESTING PHASE NOTICE

   The site-wide banner stating that the website is in testing and that
   nothing is for sale. Sits above everything else on the page.

   Rendered by includes/testing-notice.php, which is switched on by default.
   To remove the banner, add  'show_testing_notice' => false,  to
   includes/config.php. Do not delete these styles - they will be needed
   again if you ever put the site back into testing.

   Colours are deliberately outside the normal palette so the banner reads as
   a status message rather than as part of the design. All three text colours
   were contrast-checked against the background: 11.1:1, 8.5:1 and 14.2:1,
   comfortably above the WCAG AA minimum of 4.5:1.
   ========================================================================== */

.testing-notice {
  background: #fdf6e3;
  border-bottom: 3px solid var(--gold);
  padding-block: var(--space-3);
}

.testing-notice__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testing-notice__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: #4a3208;
  font-size: var(--size-sm);
  font-weight: 700;
  line-height: 1.35;
}

.testing-notice__title .icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gold);
}

.testing-notice__body {
  margin: 0;
  color: #5c4415;
  font-size: var(--size-xs);
  line-height: 1.55;
}

.testing-notice__body a {
  color: #12263f;
  font-weight: 600;
  text-underline-offset: 2px;
}

/* Keep the banner visible but unobtrusive when a page is printed. */
@media print {
  .testing-notice {
    border-bottom: 1pt solid #000;
    background: transparent;
  }
  .testing-notice__title .icon { display: none; }
}

@media (min-width: 48em) {
  .testing-notice__title { font-size: var(--size-base); }
  .testing-notice__body  { font-size: var(--size-sm); }
}
