:root {
  --guide-blue: #1764bd;
  --guide-blue-dark: #123f78;
  --guide-green: #16855b;
  --guide-amber: #b76f00;
  --guide-red: #b4232f;
  --guide-ink: #142035;
  --guide-muted: #617188;
  --guide-line: #d7e1ec;
  --guide-soft: #eef3f8;
  --guide-white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--guide-ink);
  font-family: Nunito, Arial, sans-serif;
}

.guide-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.guide-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.guide-hero {
  position: relative;
  min-height: 470px;
  height: calc(100svh - 145px);
  max-height: 570px;
  display: flex;
  align-items: center;
  background-color: #102943;
  background-image: var(--guide-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 25, 44, .76);
}

.guide-hero-content {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0;
}

.guide-kicker {
  display: block;
  margin-bottom: 12px;
  color: #a9d1ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.guide-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 50px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.guide-hero-lead {
  max-width: 730px;
  margin: 18px 0 0;
  color: #e9f1f9;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

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

.guide-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.guide-btn.primary {
  background: #fff;
  color: #124f94;
}

.guide-btn.secondary {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(9, 42, 76, .7);
  color: #fff;
}

.guide-btn.blue {
  background: var(--guide-blue);
  color: #fff;
}

.guide-btn.outline {
  border-color: #b9cce1;
  background: #fff;
  color: var(--guide-blue-dark);
}

.guide-strip {
  border-bottom: 1px solid var(--guide-line);
  background: #fff;
}

.guide-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-strip-item {
  min-height: 104px;
  padding: 22px 20px;
  border-right: 1px solid var(--guide-line);
}

.guide-strip-item:first-child {
  border-left: 1px solid var(--guide-line);
}

.guide-strip-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--guide-blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.guide-strip-item span {
  color: var(--guide-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.guide-section {
  padding: 70px 0;
}

.guide-section.soft {
  border-top: 1px solid var(--guide-line);
  border-bottom: 1px solid var(--guide-line);
  background: var(--guide-soft);
}

.guide-section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.guide-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.guide-section h2 {
  margin: 0;
  color: var(--guide-ink);
  font-size: 32px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.guide-section-head p,
.guide-copy p {
  margin: 13px 0 0;
  color: var(--guide-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.guide-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.guide-copy h3 {
  margin: 0 0 10px;
  color: var(--guide-blue-dark);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.guide-copy p + h3 {
  margin-top: 28px;
}

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

.guide-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-top: 3px solid var(--guide-blue);
  border-radius: 8px;
  background: #fff;
}

.guide-card.green {
  border-top-color: var(--guide-green);
}

.guide-card.amber {
  border-top-color: var(--guide-amber);
}

.guide-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-ink);
  font-size: 17px;
  font-weight: 900;
}

.guide-card p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 600;
}

.guide-product {
  overflow: hidden;
  border: 1px solid #c9d7e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(26, 53, 82, .11);
}

.guide-product-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--guide-line);
}

.guide-product-head strong {
  display: block;
  color: var(--guide-blue-dark);
  font-size: 17px;
  font-weight: 900;
}

.guide-product-head span {
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 800;
}

.guide-demo-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid #b8cce1;
  border-radius: 999px;
  background: #f6f9fc;
  color: #415b75 !important;
  white-space: nowrap;
}

.guide-product-body {
  padding: 18px;
}

.guide-product-note {
  padding: 12px 18px;
  border-top: 1px solid var(--guide-line);
  background: #f8fafc;
  color: var(--guide-muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-step {
  position: relative;
  min-height: 74px;
  padding: 0 0 22px 56px;
  counter-increment: guide-step;
}

.guide-step::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #acc9e8;
  border-radius: 50%;
  background: #fff;
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 900;
}

.guide-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 3px;
  left: 19px;
  width: 1px;
  background: #c9d8e8;
}

.guide-step strong {
  display: block;
  padding-top: 2px;
  color: var(--guide-ink);
  font-size: 16px;
  font-weight: 900;
}

.guide-step p {
  margin: 4px 0 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.52;
  font-weight: 600;
}

.guide-callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--guide-amber);
  background: #fff8e9;
}

.guide-callout strong {
  display: block;
  margin-bottom: 5px;
  color: #714800;
  font-size: 15px;
  font-weight: 900;
}

.guide-callout p {
  margin: 0;
  color: #705a33;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.guide-sources {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 34px;
  align-items: start;
}

.guide-source-links {
  display: grid;
  gap: 10px;
}

.guide-source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 12px 15px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #fff;
  color: var(--guide-blue-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.guide-source-link span {
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.guide-faq {
  border-top: 1px solid var(--guide-line);
}

.guide-faq details {
  border-bottom: 1px solid var(--guide-line);
}

.guide-faq summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: var(--guide-ink);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 900;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #b9cce1;
  border-radius: 50%;
  color: var(--guide-blue);
  font-size: 20px;
  font-weight: 800;
}

.guide-faq details[open] summary::after {
  content: "−";
}

.guide-faq p {
  max-width: 900px;
  margin: -5px 0 20px;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

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

.guide-crosslink {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #fff;
  color: var(--guide-ink);
  text-decoration: none;
}

.guide-crosslink small {
  color: var(--guide-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-crosslink strong {
  color: var(--guide-blue-dark);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.guide-cta {
  padding: 54px 0;
  background: #143e69;
  color: #fff;
}

.guide-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.guide-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 0;
}

.guide-cta p {
  max-width: 690px;
  margin: 8px 0 0;
  color: #dbe9f7;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

/* Weather demo */
.wx-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--guide-line);
  background: #f8fafc;
}

.wx-tab {
  min-width: 82px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #c5d5e5;
  border-radius: 6px;
  background: #fff;
  color: #445972;
  font-size: 12px;
  font-weight: 900;
}

.wx-tab.active {
  border-color: var(--guide-blue);
  background: var(--guide-blue);
  color: #fff;
}

.wx-map {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(26, 101, 170, .12) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(26, 101, 170, .12) 50%, transparent 50.5%),
    #eaf1e8;
  background-size: 84px 84px;
}

.wx-map::before {
  content: "";
  position: absolute;
  inset: 34px 12% 24px 18%;
  border-radius: 48% 38% 45% 42%;
  background: rgba(77, 151, 211, .2);
  transform: rotate(-8deg);
}

.wx-point {
  position: absolute;
  z-index: 2;
  min-width: 60px;
  padding: 5px 8px;
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 3px 9px rgba(20, 48, 76, .2);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.wx-point.blue { background: #2769d2; }
.wx-point.purple { background: #783ce4; }
.wx-point.red { background: #d62935; }
.wx-point.dark { background: #172131; }
.wx-point.p1 { top: 22%; left: 17%; }
.wx-point.p2 { top: 32%; left: 43%; }
.wx-point.p3 { top: 17%; right: 18%; }
.wx-point.p4 { bottom: 25%; left: 32%; }
.wx-point.p5 { bottom: 17%; right: 24%; }

.wx-airport {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #173e69;
  font-size: 11px;
  font-weight: 900;
}

.wx-airport::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--guide-blue);
  box-shadow: 0 0 0 2px rgba(23, 100, 189, .27);
}

.wx-airport.a1 { top: 49%; left: 49%; }
.wx-airport.a2 { top: 58%; left: 67%; }
.wx-airport.a3 { top: 69%; left: 37%; }

.wx-time {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid var(--guide-line);
}

.wx-play {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--guide-blue);
  color: #fff;
  font-size: 13px;
}

.wx-track {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: #dce4ec;
}

.wx-track::before {
  content: "";
  position: absolute;
  inset: 0 44% 0 0;
  border-radius: inherit;
  background: var(--guide-blue);
}

.wx-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--guide-blue);
  box-shadow: 0 1px 5px rgba(20, 48, 76, .3);
  transform: translate(-50%, -50%);
}

.wx-time strong {
  color: var(--guide-blue-dark);
  font-size: 12px;
  white-space: nowrap;
}

.wx-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--guide-line);
}

.wx-legend span {
  position: relative;
  padding-top: 9px;
  color: var(--guide-muted);
  font-size: 10px;
  font-weight: 900;
}

.wx-legend span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 3px;
  background: var(--legend-color);
}

/* Flight planning demo */
.plan-profile {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, .7fr));
  border-bottom: 1px solid var(--guide-line);
}

.plan-profile div {
  min-height: 68px;
  padding: 12px 14px;
  border-right: 1px solid var(--guide-line);
}

.plan-profile div:last-child {
  border-right: 0;
}

.plan-profile small,
.plan-total small,
.mb-stat small {
  display: block;
  margin-bottom: 4px;
  color: var(--guide-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-profile strong,
.plan-total strong,
.mb-stat strong {
  color: var(--guide-ink);
  font-size: 14px;
  font-weight: 900;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
}

.plan-table th,
.plan-table td {
  padding: 11px 9px;
  border-bottom: 1px solid #e8eef4;
  text-align: left;
  font-size: 11px;
}

.plan-table th {
  background: #f7f9fb;
  color: var(--guide-blue-dark);
  font-weight: 900;
}

.plan-table td {
  color: #3d5067;
  font-weight: 800;
}

.plan-table td:first-child {
  color: var(--guide-blue-dark);
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-total {
  min-height: 65px;
  padding: 12px 14px;
  border-right: 1px solid var(--guide-line);
}

.plan-total:last-child {
  border-right: 0;
}

.plan-total.good strong {
  color: var(--guide-green);
}

/* Mass and balance demo */
.mb-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

.mb-loads {
  border-right: 1px solid var(--guide-line);
}

.mb-load-row {
  display: grid;
  grid-template-columns: 1.4fr .75fr .75fr;
  gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid #e8eef4;
  color: #3d5067;
  font-size: 12px;
  font-weight: 800;
}

.mb-load-row.head {
  background: #f7f9fb;
  color: var(--guide-blue-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mb-envelope {
  position: relative;
  min-height: 264px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.5%, #dde7f0 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, #dde7f0 50%, transparent 50.5%),
    #fbfcfe;
  background-size: 45px 45px;
}

.mb-envelope::before {
  content: "";
  position: absolute;
  inset: 46px 42px 38px 38px;
  border: 3px solid #2c7bcf;
  background: rgba(44, 123, 207, .1);
  clip-path: polygon(18% 100%, 0 26%, 30% 0, 100% 13%, 90% 100%);
}

.mb-envelope::after {
  content: "";
  position: absolute;
  top: 47%;
  left: 58%;
  width: 13px;
  height: 13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--guide-green);
  box-shadow: 0 0 0 2px var(--guide-green), 0 4px 9px rgba(20, 48, 76, .25);
}

.mb-axis {
  position: absolute;
  color: var(--guide-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.mb-axis.x {
  right: 12px;
  bottom: 10px;
}

.mb-axis.y {
  top: 10px;
  left: 12px;
}

.mb-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--guide-line);
}

.mb-stat {
  min-height: 66px;
  padding: 12px 14px;
  border-right: 1px solid var(--guide-line);
}

.mb-stat:last-child {
  border-right: 0;
}

.mb-stat.good strong {
  color: var(--guide-green);
}

@media (max-width: 900px) {
  .guide-strip-grid,
  .guide-card-grid,
  .guide-crosslinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-two-col,
  .guide-sources {
    grid-template-columns: 1fr;
  }

  .guide-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .plan-profile div:nth-child(2) {
    border-right: 0;
  }

  .plan-profile div:nth-child(-n+2) {
    border-bottom: 1px solid var(--guide-line);
  }
}

@media (max-width: 640px) {
  .guide-shell,
  .guide-hero-content {
    width: min(100% - 24px, 1160px);
  }

  .guide-hero {
    min-height: 455px;
    height: calc(100svh - 125px);
    max-height: 530px;
    background-position: 60% center;
  }

  .guide-hero::before {
    background: rgba(7, 25, 44, .82);
  }

  .guide-hero h1 {
    font-size: 37px;
    line-height: 1.08;
  }

  .guide-hero-lead {
    font-size: 16px;
  }

  .guide-actions,
  .guide-actions .guide-btn {
    width: 100%;
  }

  .guide-section {
    padding: 50px 0;
  }

  .guide-section h2 {
    font-size: 27px;
  }

  .guide-strip-grid,
  .guide-card-grid,
  .guide-crosslinks {
    grid-template-columns: 1fr;
  }

  .guide-strip-item {
    min-height: 0;
    padding: 16px 13px;
    border-right: 1px solid var(--guide-line);
    border-bottom: 1px solid var(--guide-line);
    border-left: 1px solid var(--guide-line);
  }

  .guide-strip-item:last-child {
    border-bottom: 0;
  }

  .guide-card {
    min-height: 0;
  }

  .guide-product-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-product-body {
    padding: 12px;
  }

  .guide-source-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .guide-source-link span {
    text-align: left;
  }

  .guide-cta {
    padding: 44px 0;
  }

  .guide-cta h2 {
    font-size: 25px;
  }

  .wx-map {
    min-height: 270px;
  }

  .wx-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wx-time {
    grid-template-columns: auto 1fr;
  }

  .wx-time strong {
    grid-column: 1 / -1;
  }

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

  .plan-summary .plan-total:nth-child(2) {
    border-right: 0;
  }

  .plan-summary .plan-total:nth-child(-n+2) {
    border-bottom: 1px solid var(--guide-line);
  }

  .plan-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .plan-table {
    min-width: 610px;
  }

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

  .mb-loads {
    border-right: 0;
    border-bottom: 1px solid var(--guide-line);
  }

  .mb-summary {
    grid-template-columns: 1fr;
  }

  .mb-stat {
    min-height: 55px;
    border-right: 0;
    border-bottom: 1px solid var(--guide-line);
  }

  .mb-stat:last-child {
    border-bottom: 0;
  }
}

