:root {
  --guide-paper: #f2eee4;
  --guide-ink: #181714;
  --guide-muted: #5e5951;
  --guide-line: rgba(24, 23, 20, .18);
  --guide-gold: #d6b47a;
  --guide-rust: #8b3f2f;
  --guide-night: #0c0c0d;
}

body.search-hub {
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 180, 122, .09), transparent 27rem),
    #09090a;
}

.search-hub .page-shell {
  max-width: 1480px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  min-height: 610px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  background: var(--guide-night);
}

.guide-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 8vw, 118px) clamp(28px, 6vw, 92px);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #f7f1e4;
  text-decoration: none;
}

.guide-brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.guide-kicker,
.guide-overline {
  margin: 28px 0 12px;
  color: var(--guide-gold);
  font: 700 .69rem/1.3 Menlo, Monaco, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: #f7f1e4;
  font: 500 clamp(2.7rem, 4.1vw, 4.5rem)/.96 Georgia, "Times New Roman", serif;
  hyphens: auto;
  letter-spacing: -.055em;
  overflow-wrap: normal;
}

.guide-standfirst {
  max-width: 65ch;
  margin: 26px 0 0;
  color: #c9c1b5;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.72;
}

.guide-hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #1b1a18;
}

.guide-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
}

.guide-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(0, 0, 0, .05), rgba(9, 9, 10, .55));
  pointer-events: none;
}

.guide-media-note {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(9, 9, 10, .78);
  color: #f7f1e4;
  font: 700 .65rem/1.5 Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.guide-body {
  background: var(--guide-paper);
  color: var(--guide-ink);
}

.guide-body-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) 0 110px;
}

.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--guide-muted);
  font: 700 .67rem/1.5 Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-breadcrumbs a {
  color: var(--guide-rust);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.guide-copy {
  min-width: 0;
  font-size: 1.06rem;
  line-height: 1.78;
}

.guide-copy > p:first-of-type {
  margin-top: 0;
  color: #3b3833;
  font: 500 clamp(1.35rem, 2.1vw, 1.9rem)/1.44 Georgia, "Times New Roman", serif;
}

.guide-copy h2 {
  margin: 72px 0 18px;
  font: 500 clamp(2rem, 3.6vw, 3.45rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.guide-copy h3 {
  margin: 34px 0 9px;
  font: 600 1.25rem/1.25 Georgia, "Times New Roman", serif;
}

.guide-copy p {
  margin: 0 0 20px;
}

.guide-copy a,
.guide-sidebar a,
.guide-source-list a {
  color: var(--guide-rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 58px;
  border: 1px solid var(--guide-line);
  background: var(--guide-line);
}

.guide-fact {
  min-height: 126px;
  padding: 21px;
  background: #e9e3d7;
}

.guide-fact span {
  display: block;
  margin-bottom: 11px;
  color: var(--guide-muted);
  font: 700 .62rem/1.4 Menlo, Monaco, Consolas, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.guide-fact strong {
  font: 500 1.1rem/1.35 Georgia, "Times New Roman", serif;
}

.guide-route-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 48px;
  padding: 0;
  list-style: none;
  counter-reset: guide-route;
}

.guide-route-list li {
  position: relative;
  min-height: 72px;
  padding: 17px 18px 17px 74px;
  border: 1px solid var(--guide-line);
  background: rgba(255, 255, 255, .28);
  counter-increment: guide-route;
}

.guide-route-list li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 38px;
  color: var(--guide-rust);
  content: counter(guide-route, decimal-leading-zero);
  font: 700 .72rem/1.5 Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
}

.guide-route-list strong {
  display: block;
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
}

.guide-note {
  margin: 42px 0;
  padding: 25px 28px;
  border-left: 4px solid var(--guide-rust);
  background: #e6dece;
}

.guide-note strong {
  display: block;
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.guide-cta {
  margin: 66px 0;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, .15);
  background: var(--guide-night);
  color: #eee8db;
}

.guide-cta h2 {
  max-width: 15ch;
  margin: 0 0 16px;
  color: #fff9ed;
}

.guide-cta p {
  max-width: 64ch;
  color: #c9c1b5;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--guide-gold);
  background: var(--guide-gold);
  color: #141311 !important;
  font: 800 .68rem/1.3 system-ui, sans-serif;
  letter-spacing: .075em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.guide-button.is-quiet {
  border-color: rgba(255, 255, 255, .28);
  background: transparent;
  color: #f6efe2 !important;
}

.guide-button:hover,
.guide-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.guide-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.guide-side-card {
  padding: 22px;
  border: 1px solid var(--guide-line);
  background: #e9e3d7;
}

.guide-side-card h2 {
  margin: 0 0 14px;
  font: 600 1.08rem/1.25 Georgia, "Times New Roman", serif;
}

.guide-toc,
.guide-side-links,
.guide-source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  line-height: 1.45;
}

.guide-side-card p {
  margin: 0;
  color: var(--guide-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.guide-source-list {
  gap: 16px;
  margin-top: 24px;
}

.guide-source-list li {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--guide-line);
}

.guide-source-list small {
  display: block;
  margin-top: 4px;
  color: var(--guide-muted);
}

.guide-related {
  margin-top: 76px;
  padding-top: 52px;
  border-top: 1px solid var(--guide-line);
}

.guide-related > .guide-overline {
  color: var(--guide-rust);
}

.guide-related h2 {
  margin: 0 0 26px;
  font: 500 clamp(2rem, 3vw, 3rem)/1 Georgia, "Times New Roman", serif;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-related-card {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--guide-line);
  background: #e9e3d7;
  color: var(--guide-ink);
  text-decoration: none;
}

.guide-related-card span {
  color: var(--guide-rust);
  font: 700 .63rem/1.4 Menlo, Monaco, Consolas, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.guide-related-card strong {
  font: 500 1.35rem/1.2 Georgia, "Times New Roman", serif;
}

.guide-related-card:hover,
.guide-related-card:focus-visible {
  outline: 3px solid var(--guide-rust);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero-media {
    min-height: min(56vw, 520px);
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: -1;
  }

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

@media (max-width: 640px) {
  .guide-hero-copy {
    padding: 48px 22px 54px;
  }

  .guide-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .guide-body-shell {
    width: min(100% - 28px, 1200px);
  }

  .guide-sidebar,
  .guide-facts,
  .guide-related-grid {
    grid-template-columns: 1fr;
  }

  .guide-media-note {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-direction: column;
    gap: 3px;
  }

  .guide-actions {
    display: grid;
  }

  .guide-button {
    width: 100%;
  }
}
