:root {
  color-scheme: light;
  --ink: #17262c;
  --ink-soft: #405159;
  --navy: #0f2d38;
  --navy-2: #153d49;
  --teal: #1b6866;
  --teal-dark: #11504f;
  --teal-pale: #dcebea;
  --amber: #a86213;
  --amber-pale: #f4e4c6;
  --ivory: #f6f1e7;
  --paper: #fffdf8;
  --line: #cbd6d3;
  --line-dark: #9dafab;
  --danger: #963d32;
  --shadow: 0 18px 50px rgba(15, 45, 56, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --reading: 760px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(15, 45, 56, 0.035) calc(100% - 1px)) 0 0 / 72px 72px,
    var(--ivory);
  color: var(--ink);
  font: 1rem/1.68 var(--sans);
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--teal-dark);
  text-decoration-color: rgba(17, 80, 79, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d98726;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--navy);
  border: 2px solid var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.scope-bar {
  background: var(--navy);
  color: #f9fcfb;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.scope-bar__inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 2.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.scope-bar strong {
  color: #ffdca5;
  font-weight: 700;
}

.scope-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.scope-bar__status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #76c8b9;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 5.25rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy);
  text-decoration: none;
}

.brand__mark {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--teal);
  border-radius: 5px 5px 15px 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__name {
  font: 700 1.2rem var(--serif);
}

.brand__tagline {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.62rem 0.76rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.header-note {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: right;
}

.menu-button {
  display: none;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0.5rem;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--paper);
  color: var(--navy);
  font: 700 0.9rem var(--sans);
  cursor: pointer;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.breadcrumbs {
  padding: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.42rem;
  color: var(--line-dark);
}

.article-header {
  position: relative;
  padding: clamp(2.25rem, 6vw, 5.25rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.article-header::before {
  content: "GB · CASHIER NOTE";
  position: absolute;
  top: 1.25rem;
  right: 0;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.article-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.48fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.35rem 0.58rem;
  background: var(--amber-pale);
  color: #704006;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.55rem, 6.8vw, 5.45rem);
  letter-spacing: -0.045em;
}

.article-header__compact h1 {
  max-width: 21ch;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.lede {
  max-width: 64ch;
  margin: 1.5rem 0 0;
  color: #263b43;
  font: 1.21rem/1.62 var(--serif);
}

.article-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta span::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  background: var(--amber);
  border-radius: 50%;
}

.route-plate {
  align-self: start;
  padding: 1.25rem;
  background: var(--navy);
  color: #eef6f4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-plate__label {
  margin: 0 0 1rem;
  color: #a7d2cd;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-plate ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
  counter-reset: route;
}

.route-plate li {
  position: relative;
  min-height: 3.4rem;
  padding: 0.2rem 0 1rem 2.8rem;
  counter-increment: route;
}

.route-plate li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 0;
  left: 0.78rem;
  border-left: 1px dashed #77a7a3;
}

.route-plate li::before {
  content: counter(route);
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  background: #f1c57f;
  color: var(--navy);
  border-radius: 4px;
  font: 800 0.78rem var(--sans);
}

.route-plate strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.route-plate small {
  display: block;
  margin-top: 0.15rem;
  color: #bfd5d2;
  font-size: 0.78rem;
  line-height: 1.35;
}

.method-visual {
  align-self: start;
  margin: 0;
  overflow: hidden;
  background: var(--teal-pale);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.method-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.task-deck {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.task-deck__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.task-deck h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.task-deck__head p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.task-card {
  min-height: 12.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.task-card:nth-child(2) { border-top-color: var(--amber); }
.task-card:nth-child(3) { border-top-color: #3f5b81; }
.task-card:nth-child(4) { border-top-color: var(--danger); }

.task-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.task-card__eyebrow {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-card strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--navy);
  font: 700 1.35rem/1.15 var(--serif);
}

.task-card span:last-child {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.article-layout {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(13rem, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: clamp(3rem, 7vw, 7rem);
}

.article-body {
  min-width: 0;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 3.4rem 0 1.15rem;
  padding-top: 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 2.25rem 0 0.65rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.article-body p {
  margin: 0 0 1.15rem;
}

.article-body strong {
  color: var(--navy);
}

.article-body blockquote {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem 1rem 1.3rem;
  background: var(--teal-pale);
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #223a40;
}

.article-body blockquote p {
  margin: 0;
}

.article-body ol,
.article-body ul {
  margin: 0 0 1.4rem;
  padding-left: 1.45rem;
}

.article-body li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.article-body li::marker {
  color: var(--teal-dark);
  font-weight: 800;
}

.table-scroll {
  width: 100%;
  margin: 1.35rem 0 1.6rem;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 45, 56, 0.06);
}

table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

caption {
  padding: 0.9rem 1rem;
  color: var(--ink-soft);
  text-align: left;
}

th,
td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  min-width: 9.5rem;
}

td:first-child {
  background: #f1f5f3;
  color: var(--navy);
  font-weight: 750;
}

tr:last-child td {
  border-bottom: 0;
}

.editorial-figure {
  margin: 2rem 0;
  overflow: hidden;
  background: #e9ece7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editorial-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.editorial-figure figcaption {
  padding: 0.65rem 0.85rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.toc {
  position: sticky;
  top: 7.7rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-dark);
}

.toc__label {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.toc a {
  display: block;
  padding: 0.3rem 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal-dark);
}

.toc__scope {
  margin-top: 1.4rem;
  padding: 0.8rem;
  background: var(--amber-pale);
  color: #5e3b11;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer {
  background: var(--navy);
  color: #d7e4e2;
  border-top: 5px solid var(--amber);
}

.site-footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 30rem;
}

.footer-brand strong {
  color: #fff;
  font: 700 1.5rem var(--serif);
}

.footer-brand p {
  margin: 0.8rem 0 0;
}

.footer-group h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font: 800 0.78rem var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-group ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.site-footer a {
  color: #eaf3f2;
  text-decoration-color: #6e9692;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #43616a;
  color: #aac0c0;
  font-size: 0.78rem;
}

.error-page {
  min-height: 62vh;
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: center;
  gap: 4rem;
}

.error-page h1 {
  max-width: 14ch;
}

.error-code {
  color: var(--amber);
  font: 700 clamp(6rem, 20vw, 14rem)/0.8 var(--serif);
  letter-spacing: -0.08em;
  text-align: right;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--teal-pale);
  color: var(--teal-dark);
  border-radius: 5px;
  font-weight: 750;
  text-decoration: none;
}

@media (min-width: 761px) {
  .main-nav[hidden] {
    display: block;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .main-nav {
    justify-self: end;
  }

  .header-note {
    display: none;
  }

  .article-header__grid,
  .error-page {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.48fr);
    gap: 2rem;
  }

  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 14rem;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .scope-bar__inner {
    min-height: 2.65rem;
    align-items: flex-start;
    padding-block: 0.55rem;
  }

  .scope-bar__status {
    display: none;
  }

  .site-header__inner {
    min-height: 4.7rem;
    grid-template-columns: 1fr auto;
  }

  .brand__tagline {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: 7.35rem 0 auto;
    width: 100%;
    max-height: calc(100vh - 7.35rem);
    padding: 1rem;
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: var(--shadow);
  }

  .js .main-nav[hidden] {
    display: none;
  }

  .main-nav ul {
    align-items: stretch;
    display: grid;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.85rem;
    font-size: 1rem;
  }

  .article-header::before {
    top: 0.9rem;
  }

  .article-header__grid,
  .error-page {
    grid-template-columns: 1fr;
  }

  h1,
  .article-header__compact h1 {
    max-width: 18ch;
  }

  .route-plate {
    margin-top: 0.5rem;
  }

  .method-visual {
    margin-top: 0.5rem;
  }

  .task-deck__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-layout {
    display: block;
  }

  .toc {
    position: static;
    margin: 0 0 2.5rem;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .article-body h2 {
    scroll-margin-top: 8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .error-code {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .site-header__inner,
  .scope-bar__inner,
  .site-footer__inner {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand__mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  h1,
  .article-header__compact h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .lede {
    font-size: 1.08rem;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

  .task-card {
    min-height: 10.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

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

.slot-directory {
  padding: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(241, 237, 226, 0.72));
}

.slot-directory__head {
  max-width: 54rem;
  margin-bottom: 1.5rem;
}

.slot-directory__head h2 {
  margin: 0.25rem 0 0.5rem;
}

.slot-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(29, 31, 28, 0.06);
}

.slot-card-anchor {
  position: absolute;
  top: -7rem;
}

.slot-card__provider {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.slot-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.slot-card > p:not(.slot-card__provider) {
  flex: 1;
}

.slot-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.slot-card dl div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(241, 237, 226, 0.55);
}

.slot-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slot-card dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.demo-facade {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
  background: #17201c;
  color: #f7f2e8;
}

.demo-facade__mark {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: #f4c46b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-facade p {
  margin: 0.25rem 0 0;
  color: #d9e1db;
}

.slot-hero,
.slot-figure {
  background: #121915;
}

@media (max-width: 760px) {
  .slot-card-grid {
    grid-template-columns: 1fr;
  }

  .demo-facade {
    grid-template-columns: 1fr;
  }
}

@media print {
  .scope-bar,
  .site-header,
  .toc,
  .site-footer,
  .task-deck {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-layout {
    display: block;
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
