:root {
  color-scheme: light;
  --canvas: #eae0ce;
  --paper: #f6efe2;
  --ink: #252920;
  --muted: #595d4e;
  --line: #cbbfa8;
  --green: #36513d;
  --green-deep: #273e2e;
  --red: #9b3b2c;
  --cream: #f7f0e2;
  --header: #252c23;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  height: 1px;
  width: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  inset: 0 auto auto 12px;
  z-index: 20;
  transform: translateY(-120%);
  padding: 12px 16px;
  background: var(--paper);
}
.skip-link:focus { transform: translateY(8px); }

.guide-shell { width: min(100% - 72px, 1192px); margin-inline: auto; }
.masthead {
  position: relative;
  z-index: 4;
  background: var(--header);
  color: var(--cream);
  border-bottom: 1px solid #fbefdc29;
}
.masthead::after {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(var(--reading-progress, 0));
  pointer-events: none;
}
.masthead-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.guide-brand, .back-link { text-decoration: none; }
.guide-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  font-size: clamp(.89rem, 2vw, 1rem);
}
.brand-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 29px;
  width: 29px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid #f7f0e269;
  border-radius: 3px;
}
.brand-signal i { width: 4px; height: 15px; background: #db775e; transform: skewX(-14deg); }
.brand-signal i:nth-child(2) { height: 11px; background: #d5aa75; }
.brand-signal i:nth-child(3) { height: 7px; background: #a9b58e; }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 4vw, 32px); }
.back-link { font-size: .88rem; color: #f0e6d3; white-space: nowrap; }
.back-link:hover { color: #fff; text-decoration: underline; }
.back-link [aria-hidden] { display: inline-block; margin-inline-end: 6px; transition: transform .2s; }
.back-link:hover [aria-hidden] { transform: translateX(-3px); }

.guide-hero {
  isolation: isolate;
  position: relative;
  background: #cbb38b;
  overflow: clip;
  border-bottom: 1px solid #ad9772;
}
.guide-hero::before, .guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.guide-hero::before {
  opacity: .54;
  background:
    linear-gradient(112deg, #efe3cb 0%, #e0c9a6 53%, transparent 83%),
    repeating-linear-gradient(0deg, #745a341c 0px, #745a341c 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, #745a341c 0px, #745a341c 1px, transparent 1px, transparent 32px);
}
.guide-hero::after {
  background: linear-gradient(130deg, transparent 78%, #9c3e2736 78% 80%, transparent 80% 81%, #36513d35 81% 93%, transparent 93%);
}
.guide-hero[data-chapter-image]::after {
  inset-inline-start: 45%;
  background-image: linear-gradient(90deg, #d2bc96, #d2bc9618 45%, #272c2347 100%), var(--chapter-art);
  background-position: center;
  background-size: cover;
}
.guide-hero[data-chapter-image="forecourt"] { --chapter-art: url("../assets/gallery-02.webp"); }
.guide-hero[data-chapter-image="overview"] { --chapter-art: url("../assets/gallery-01.webp"); }
.guide-hero[data-chapter-image="shop"] { --chapter-art: url("../assets/gallery-03.webp"); }
.guide-hero[data-chapter-image="wash"] { --chapter-art: url("../assets/gallery-04.webp"); }
.guide-hero[data-chapter-image="staff"] { --chapter-art: url("../assets/gallery-05.webp"); }
.guide-hero[data-chapter-image="traffic"] { --chapter-art: url("../assets/gallery-06.webp"); }
.guide-hero[data-chapter-image="restaurant"] { --chapter-art: url("../assets/gallery-07.webp"); }
.guide-hero[data-chapter-image="truck-wash"] { --chapter-art: url("../assets/gallery-08.webp"); }
.guide-hero[data-chapter-image="truck-stop"] { --chapter-art: url("../assets/gallery-09.webp"); }
.guide-hero[data-chapter-image="ev"] { --chapter-art: url("../assets/gallery-10.webp"); }
.guide-hero[data-chapter-image="truck-refuelling"] { --chapter-art: url("../assets/gallery-11.webp"); }
.guide-hero[data-chapter-image="drive-through"] { --chapter-art: url("../assets/gallery-12.webp"); }
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 315px;
  padding-block: 30px 54px;
  animation: reveal-heading .52s ease both;
}
.breadcrumbs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 3px;
  margin-bottom: 33px;
  font-size: .83rem;
  font-weight: 700;
  color: #413927;
}
.breadcrumbs a { text-underline-offset: 3px; text-decoration-color: #41392766; }
.breadcrumbs a:hover { text-decoration-color: currentColor; }
.guide-eyebrow {
  margin: 0 0 8px;
  color: #744032;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-inner h1 {
  max-width: 735px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5.5vw, 5rem);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 950;
  overflow-wrap: anywhere;
}
[data-chapter-image] .hero-inner :is(h1, .guide-lede) { max-width: min(620px, 62%); }
.guide-lede {
  max-width: 57ch;
  margin: 16px 0 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.5;
  font-weight: 600;
  color: #494737;
}
@keyframes reveal-heading {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.reading-grid {
  display: grid;
  grid-template-columns: minmax(170px, 245px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5.3vw, 68px);
  padding-block: 45px 72px;
}
.guide-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.browse-guides, .guide-toc { border: 1px solid var(--line); background: #eee5d5; }
.browse-guides summary, .guide-toc summary {
  cursor: pointer;
  padding: 14px 15px;
  color: var(--green-deep);
  font-weight: 800;
  font-size: .95rem;
}
.browse-guides nav { padding: 3px 11px 15px; }
.browse-guides h3 {
  margin: 14px 6px 5px;
  color: var(--red);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .065em;
}
.browse-guides ul { padding: 0; margin: 0; list-style: none; }
.browse-guides a {
  display: block;
  padding: 7px 7px 7px 9px;
  border-inline-start: 2px solid transparent;
  text-decoration: none;
  font-size: .86rem;
  line-height: 1.3;
  transition: background-color .2s, border-color .2s;
}
.browse-guides a:hover, .browse-guides a[aria-current] {
  border-inline-start-color: var(--red);
  background: #ddd1bb;
}
.browse-guides a[aria-current] { font-weight: 800; }

.guide-article { min-width: 0; }
.guide-toc { margin-bottom: 25px; background: #e4dbc9; }
.guide-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  padding: 0 16px 15px 32px;
  margin: 1px 0 0;
}
.guide-toc li::marker { color: var(--red); }
.guide-toc a { padding-block: 3px; color: var(--green-deep); font-weight: 600; text-underline-offset: 3px; }
.guide-prose { font-size: 1rem; line-height: 1.7; }
.guide-prose p { margin: 0 0 1rem; max-width: 78ch; }
.guide-prose h2, .guide-related h2, .handbook-section > h2 {
  font-family: var(--display);
  color: var(--green-deep);
  line-height: 1.12;
  font-size: clamp(1.35rem, 2.7vw, 2.03rem);
  font-weight: 900;
  letter-spacing: -.034em;
  overflow-wrap: anywhere;
}
.guide-prose h2 {
  margin: 2.1rem 0 .7rem;
  padding-block-end: .46rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.guide-prose h2:first-child { margin-top: 0; }
.guide-list { margin: .4rem 0 1.3rem; padding-inline-start: 1.35rem; max-width: 79ch; }
.guide-list li { padding-inline-start: .26rem; margin-block-end: .48rem; }
.guide-list li::marker { color: var(--red); font-weight: 800; }
.guide-caption { font-size: .92rem; color: var(--muted); font-style: italic; }

.guide-table { margin: 1rem 0 1.7rem; }
.guide-table table {
  width: 100%;
  border-collapse: collapse;
  vertical-align: top;
  background: var(--paper);
  font-size: .9rem;
  line-height: 1.5;
}
.guide-table :is(th, td) { padding: .67rem .73rem; border: 1px solid var(--line); text-align: start; }
.guide-table thead th { background: var(--green); color: var(--cream); font-weight: 700; vertical-align: bottom; }
.guide-table tbody th { min-width: 8ch; font-weight: 700; }
.guide-table tbody :is(th, td) { vertical-align: top; }
.guide-table tbody tr:nth-child(even) { background: #efeadc; }
.cell-label { display: none; }

.guide-related { margin-top: 44px; padding: 19px 20px 20px; background: #e3dac8; border: 1px solid var(--line); }
.guide-related h2 { margin: 0 0 12px; font-size: 1.28rem; }
.guide-related div { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #b9ac93;
  background: var(--paper);
  color: var(--green-deep);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.related-link:hover { border-color: var(--green); background: #e1e5d5; }
.related-link [aria-hidden] { color: var(--red); }
.guide-pager { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-pager a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 84px;
  padding: 13px 15px;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  transition: background-color .2s;
}
.guide-pager a:hover { background: var(--green-deep); }
.guide-pager a:only-child { grid-column: 1/-1; }
.guide-pager a span { font-size: .78rem; color: #ede5d4; }
.guide-pager a strong { overflow-wrap: anywhere; }

.handbook-index { padding-block: 42px 76px; }
.handbook-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  background: #ded2bd;
}
.handbook-tools input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #a99a7f;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: .95rem;
}
.handbook-tools input::placeholder { color: var(--muted); }
.handbook-jumps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.handbook-jumps a {
  padding: 8px 10px;
  color: var(--green-deep);
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #aeaa98;
  background: #eae4d5;
  transition: border-color .18s, background-color .18s;
}
.handbook-jumps a:hover { border-color: var(--green); background: #d9ddcd; }
.handbook-section { margin-top: 34px; scroll-margin-top: 18px; }
.handbook-section > h2 { margin: 0 0 12px; }
.guide-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guide-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 138px;
  padding: 17px 46px 18px 18px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid #8d987c;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .22s, border-color .22s, transform .22s, box-shadow .22s;
}
.guide-card:hover { transform: translateY(-3px); border-inline-start-color: var(--red); box-shadow: 0 7px 18px #493b2f15; background: #fbf5e8; }
.guide-card-icon {
  position: absolute;
  inset: 16px 14px auto auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 1.02rem;
  transition: transform .22s, border-color .22s;
}
.guide-card:hover .guide-card-icon { transform: translate(2px, -2px); border-color: var(--red); }
.guide-card h3 { margin: 0; line-height: 1.14; font-size: 1.03rem; color: var(--green-deep); overflow-wrap: anywhere; }
.guide-card p { margin: 0; color: var(--muted); line-height: 1.47; font-size: .89rem; }
.no-guides { margin-top: 20px; }


@media (max-width: 1000px) {
  .guide-shell { width: min(100% - 52px, 1192px); }
  .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 830px) {
  .masthead-inner { min-height: 63px; }
  .reading-grid { grid-template-columns: minmax(0, 1fr); padding-block-start: 22px; gap: 22px; }
  .guide-sidebar { position: static; max-height: none; overflow: visible; }
  .browse-guides summary, .guide-toc summary { min-height: 46px; }
  .browse-guides a { min-height: 42px; }
  .handbook-tools { grid-template-columns: minmax(0, 1fr); gap: 9px; }
}
@media (max-width: 625px) {
  .guide-shell { width: calc(100% - 34px); }
  .masthead-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .back-link { display: none; }
  .guide-brand { gap: 8px; max-width: 54vw; }
  .guide-hero::after { background: linear-gradient(130deg, transparent 70%, #9c3e273e 70% 72%, transparent 72% 74%, #36513d35 74% 95%, transparent 95%); }
  .guide-hero[data-chapter-image]::after {
    inset: 36% 0 0;
    opacity: .4;
    background-image: linear-gradient(180deg, #d2bc96 0%, #d2bc9625 75%, #2a292436 100%), var(--chapter-art);
    background-position: center;
  }
  [data-chapter-image] .hero-inner :is(h1, .guide-lede) { max-width: 100%; }
  .hero-inner { min-height: 270px; padding-block: 24px 38px; }
  .hero-inner h1 { font-size: clamp(2.05rem, 9.8vw, 3.55rem); }
  .breadcrumbs { margin-bottom: 26px; font-size: .79rem; }
  .guide-prose { font-size: .985rem; line-height: 1.64; }
  .guide-table table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .guide-table tbody tr { display: grid; margin-bottom: 8px; border: 1px solid var(--line); }
  .guide-table tbody :is(th, td) { padding: .49rem .61rem; border: 0; }
  .guide-table tbody th { padding: .53rem .61rem; background: var(--green); color: var(--cream); }
  .guide-table tbody td { display: grid; grid-template-columns: minmax(78px, .42fr) minmax(0, 1fr); align-items: baseline; gap: 8px; }
  .guide-table tbody td + td { border-top: 1px solid #d9d0bd; }
  .guide-table tbody td .cell-label { display: block; align-self: center; font-size: .72rem; color: var(--green-deep); font-weight: 800; line-height: 1.25; }
  .guide-table .cell-value { overflow-wrap: anywhere; }
  .guide-toc ul { display: grid; gap: 7px; }
  .guide-related { padding: 16px 13px; }
  .guide-pager { gap: 8px; }
  .guide-pager a { padding: 11px 10px; font-size: .87rem; }
  .handbook-index { padding-block: 22px 56px; }
  .handbook-jumps a { min-height: 40px; display: grid; place-items: center; }
}
@media (max-width: 465px) {
  .guide-card-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .guide-card { min-height: 92px; padding-block: 13px; }
  .guide-card h3 { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
