:root {
  --paper: #f3ead7;
  --paper-deep: #e6dac1;
  --card: #fffaf0;
  --ink: #17263c;
  --ink-soft: #4b5868;
  --navy: #172f50;
  --navy-2: #0d2039;
  --copper: #b86f3e;
  --copper-dark: #7f472b;
  --brass: #d7a83e;
  --yellow: #f4c84a;
  --yellow-pale: #fff0aa;
  --red: #c65043;
  --line: #cabd9f;
  --shadow: 0 14px 34px rgb(31 42 54 / 10%);
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgb(255 255 255 / 72%) 0 9%, transparent 31%),
    repeating-linear-gradient(0deg, transparent 0 4px, rgb(95 73 42 / 2%) 5px),
    var(--paper);
  font-family: var(--font-work, "Arial Narrow", ui-sans-serif, sans-serif);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(23 38 60 / 9%) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.page-shell,
.site-header {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--navy-2);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  margin-top: 12px;
  padding: 10px 0;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand__copy strong {
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.brand__copy small {
  color: var(--copper-dark);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--yellow);
  border-radius: 50%;
}

.brand__mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  background: rgb(23 38 60 / 5%);
  border-radius: 10px;
}

.main-nav a {
  padding: 7px 10px;
  color: var(--ink-soft);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 2px 8px rgb(23 38 60 / 8%);
}

.global-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
}

.global-nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 42px;
  padding: 0 22px;
  color: #47230f;
  background:
    linear-gradient(90deg, rgb(255 226 194 / 16%), transparent 20% 76%, rgb(82 34 14 / 16%)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(86 38 18 / 7%) 4px),
    linear-gradient(145deg, #edb07c 0%, #bd6b3d 24%, #dc8d55 47%, #9b4d2a 72%, #d98853 100%);
  border: 1px solid #713719;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgb(255 231 205 / 82%),
    inset 0 -2px 0 rgb(79 30 11 / 54%),
    inset 1px 0 0 rgb(255 209 169 / 28%),
    inset -1px 0 0 rgb(76 29 11 / 28%),
    0 5px 11px rgb(87 42 21 / 24%);
  font-family: var(--font-slab, Rockwell, Georgia, serif);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgb(246 183 131 / 72%),
    0 -1px 0 rgb(72 27 9 / 62%);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.global-nav a::before {
  position: absolute;
  inset: 3px;
  z-index: -1;
  border: 1px solid rgb(94 41 18 / 38%);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgb(255 218 183 / 15%);
  content: "";
  pointer-events: none;
}

.global-nav a:hover {
  background:
    linear-gradient(90deg, rgb(255 236 215 / 22%), transparent 20% 76%, rgb(82 34 14 / 13%)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(86 38 18 / 6%) 4px),
    linear-gradient(145deg, #f3bd8e 0%, #c97748 24%, #e59b63 47%, #a75934 72%, #e09460 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 238 219 / 88%),
    inset 0 -2px 0 rgb(79 30 11 / 50%),
    inset 1px 0 0 rgb(255 209 169 / 28%),
    inset -1px 0 0 rgb(76 29 11 / 28%),
    0 7px 15px rgb(87 42 21 / 30%);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 68px;
  padding: 0 13px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgb(23 38 60 / 14%);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.destination-home {
  color: var(--card);
  background: var(--navy);
}

.destination-gauge {
  color: var(--navy-2);
  background: var(--yellow);
  border: 1px solid var(--brass);
}

.destination-factory {
  color: #47230f;
  background: linear-gradient(145deg, #edb07c, #bd6b3d 38%, #dc8d55 65%, #9b4d2a);
  border: 1px solid #713719;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.48fr);
  align-items: end;
  gap: 64px;
  padding-block: 112px 72px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--font-display, "Arial Black", sans-serif);
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 8vw, 7rem);
  letter-spacing: -0.05em;
}

.guide-hero__lede {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-slab, Georgia, serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.guide-hero__facts {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.guide-hero__facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.guide-hero__facts div:last-child {
  border-bottom: 0;
}

.guide-hero__facts span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.guide-hero__facts strong {
  font-size: 0.78rem;
  text-align: right;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding-bottom: 120px;
}

.guide-toc {
  position: sticky;
  top: 110px;
  display: grid;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.guide-toc strong {
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-toc a {
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--red);
}

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

.guide-article > section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.guide-article > section:first-child {
  border-top: 0;
}

.guide-article h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.guide-article h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.guide-article section > p,
.guide-article section > ul,
.guide-article section > ol {
  max-width: 810px;
}

.guide-article section > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: var(--font-slab, Georgia, serif);
  font-size: 1rem;
  line-height: 1.82;
}

.guide-article section > p a {
  color: var(--red);
  font-weight: 700;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  max-width: 810px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 1px;
}

.fact-grid article {
  min-height: 145px;
  padding: 20px;
  background: var(--card);
}

.fact-grid span {
  color: var(--copper-dark);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-grid strong {
  display: block;
  margin-top: 19px;
  font-size: 1.2rem;
}

.fact-grid p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.flow-steps {
  padding: 0;
  list-style: none;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.flow-steps li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 900;
}

.flow-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  max-width: 810px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 1px;
}

.comparison article {
  padding: 25px;
  background: var(--card);
}

.comparison p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.check-list,
.risk-list {
  margin-block: 24px;
  padding: 0;
  list-style: none;
}

.check-list li,
.risk-list li {
  position: relative;
  padding: 12px 12px 12px 38px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.check-list li::before,
.risk-list li::before {
  position: absolute;
  left: 10px;
  color: var(--copper-dark);
  content: "◆";
  font-size: 0.65rem;
}

.contract-list {
  display: grid;
  max-width: 810px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.contract-list a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contract-list a:last-child {
  border-bottom: 0;
}

.contract-list a:hover {
  background: var(--yellow-pale);
}

.contract-list span {
  font-size: 0.78rem;
  font-weight: 900;
}

.contract-list code {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  max-width: 810px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 30px 42px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a:last-child {
  justify-self: end;
  color: var(--red);
  font-weight: 900;
}

@media (max-width: 820px) {
  .guide-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 86px 54px;
  }

  .guide-hero > * {
    min-width: 0;
  }

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

  .guide-toc {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 18px;
  }

  .guide-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .page-shell,
  .site-header {
    width: min(calc(100% - 24px), var(--shell));
  }

  .site-header {
    top: 8px;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .global-nav {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    gap: 8px;
  }

  .global-nav a { flex: 1; min-width: 0; min-height: 38px; padding-inline: 9px; font-size: 0.7rem; }

  .guide-hero {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .guide-article h2 {
    overflow-wrap: anywhere;
  }

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

  .fact-grid,
  .comparison {
    grid-template-columns: 1fr;
  }

  .contract-list a {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer .brand,
  .site-footer > a:last-child {
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .global-nav { gap: 4px; }
  .global-nav a {
    padding-inline: 5px;
    font-size: 0.62rem;
    letter-spacing: 0.035em;
  }
}
