@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist/geist-mono-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.takeoff-guide {
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

.takeoff-guide .brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.guide-hero {
  padding-block: 2.25rem 3.5rem;
  border-bottom: 1px solid var(--line);
}

.guide-hero .breadcrumbs {
  margin-bottom: 2rem;
}

.guide-hero h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.45rem, 4.6vw, 4.7rem);
  line-height: 1.06;
}

.guide-hero .dek {
  max-width: 820px;
  margin-bottom: 1.8rem;
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin-bottom: 0;
  color: #a9b7be;
  font-size: 0.8rem;
}

.guide-byline a {
  color: #d6e1e6;
  text-underline-offset: 3px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 3.5rem 4rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding: 0.3rem 0.5rem 1rem 0;
}

.guide-toc .kicker {
  margin-bottom: 1.1rem;
}

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

.guide-toc li {
  line-height: 1.4;
}

.guide-toc a {
  color: #b8c5cc;
  font-size: 0.82rem;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-toc .guide-toc-trial {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--cyan);
}

.guide-body {
  min-width: 0;
  color: #c7d2d8;
  font-size: 1.045rem;
  line-height: 1.8;
}

.guide-body p,
.guide-body li,
.guide-body dd,
.guide-body td,
.guide-body th {
  overflow-wrap: anywhere;
}

.guide-body p {
  margin-bottom: 1.3rem;
}

.guide-body a,
.guide-related a:hover strong {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.guide-body a:hover {
  color: #b3f3fa;
}

.guide-body strong {
  color: #eef4f6;
  font-weight: 600;
}

.guide-intro > p:first-child {
  color: #ecf2f5;
  font-size: 1.16rem;
}

.guide-section {
  padding-block: 2.8rem 0;
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.guide-section,
.industry-entry {
  scroll-margin-top: 1.5rem;
}

.guide-section h2 {
  margin-bottom: 1.6rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.guide-body h3 {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.guide-body ul,
.guide-body ol {
  padding-left: 1.5rem;
  margin-block: 1.2rem 1.8rem;
}

.guide-body li {
  padding-left: 0.25rem;
  margin-bottom: 0.75rem;
}

.guide-body li::marker {
  color: var(--teal);
}

.guide-body .table-wrap {
  margin-block: 1.7rem;
  border-radius: 0.5rem;
  overscroll-behavior-inline: contain;
}

.guide-body table {
  min-width: 630px;
  table-layout: fixed;
}

.guide-body caption {
  padding: 1rem 1.25rem;
  color: #e3edf2;
  background: #141d22;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
}

.guide-body th,
.guide-body td {
  padding: 1.1rem 1.15rem;
  width: auto;
  line-height: 1.65;
}

.guide-body thead th:first-child,
.guide-body tbody th {
  width: 25%;
}

.guide-body tbody td {
  color: #b9c8d0;
  font-size: 0.89rem;
}

.guide-body thead th {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.guide-note {
  padding: 1.25rem 1.4rem;
  margin-block: 1.6rem 2rem;
  border-left: 2px solid var(--teal);
  background: rgba(94, 234, 212, 0.045);
}

.guide-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.guide-note p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.example-block {
  margin-block: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.example-block > :last-child {
  margin-bottom: 0;
}

.example-label {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.industry-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.2rem;
  margin-top: 2rem;
  padding: 1.4rem 0;
  border-block: 1px solid var(--line);
}

.industry-index a {
  font-size: 0.84rem;
}

.industry-entry {
  padding-block: 1.25rem 1.9rem;
}

.industry-entry + .industry-entry {
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.industry-entry h3 {
  font-size: 1.6rem;
}

.industry-entry dl {
  margin-block: 1.3rem 0;
}

.industry-entry dt {
  margin-top: 1rem;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.industry-entry dd {
  margin: 0.25rem 0 0;
  font-size: 0.96rem;
}

.industry-route {
  margin-top: 1.2rem;
  font-size: 0.84rem;
}

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--surface-raised);
}

.guide-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.guide-cta p:last-child {
  max-width: 65ch;
  margin-bottom: 0;
  color: #b9c8d0;
}

.guide-cta .button {
  max-width: 290px;
  white-space: normal;
  text-align: center;
}

.guide-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-block: 3rem 4.5rem;
}

.guide-related a {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.guide-related span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.guide-related strong {
  font-weight: 600;
  line-height: 1.45;
}

.takeoff-guide .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.guide-footer-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: #a9b7be;
  font-size: 0.82rem;
}

.guide-footer-layout a {
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .takeoff-guide .site-header nav a:not(.nav-cta) {
    display: inline;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .guide-toc {
    position: static;
    max-height: none;
    padding-bottom: 1.7rem;
    border-bottom: 1px solid var(--line);
  }

  .guide-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.7rem;
  }

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

  .guide-cta .button {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .takeoff-guide .brand img {
    height: 1.65rem;
  }

  .takeoff-guide .site-header {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .takeoff-guide .site-header nav {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  .takeoff-guide .site-header nav a {
    font-size: 0.78rem;
  }

  .takeoff-guide .site-header .nav-cta {
    padding: 0.4rem 0.7rem;
  }

  .guide-hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .guide-hero .breadcrumbs {
    margin-bottom: 2rem;
  }

  .guide-byline {
    font-size: 0.74rem;
  }

  .guide-toc ol,
  .industry-index,
  .guide-related {
    grid-template-columns: 1fr;
  }

  .guide-body {
    font-size: 1rem;
  }

  .guide-section {
    padding-top: 2rem;
    margin-top: 2rem;
  }

  .example-block,
  .guide-note {
    padding: 1.1rem;
  }

  .guide-cta {
    padding: 1.6rem;
  }

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

  .guide-footer-layout {
    flex-direction: column;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .takeoff-guide {
    color-scheme: light;
    background: white;
    color: #111;
  }

  .site-header,
  .guide-toc,
  .guide-cta,
  .guide-related,
  .site-footer,
  .skip-link {
    display: none;
  }

  .guide-layout {
    display: block;
  }

  .shell { width: 100%; }

  .guide-body,
  .guide-body p,
  .guide-body h2,
  .guide-body h3,
  .guide-body strong,
  .guide-body td,
  .guide-body th,
  .guide-body a,
  .guide-hero .dek,
  .guide-byline,
  .guide-byline a,
  .industry-entry dt,
  .guide-body caption {
    color: #111;
  }

  .guide-body table {
    min-width: 0;
  }

  .guide-body .table-wrap,
  .example-block,
  .guide-note,
  .guide-body caption,
  .guide-body thead th {
    background: white;
  }

  .guide-body .table-wrap { overflow: visible; }

  .industry-entry,
  tr { break-inside: avoid; }
}
