:root {
  --gcm-blue: #1764bd;
  --gcm-blue-dark: #113f78;
  --gcm-green: #16855b;
  --gcm-amber: #b66a00;
  --gcm-red: #b4232f;
  --gcm-violet: #7042c1;
  --gcm-ink: #142035;
  --gcm-muted: #617188;
  --gcm-line: #d6e1ec;
  --gcm-soft: #eef3f8;
  --gcm-white: #fff;
}

* {
  box-sizing: border-box;
}

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

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

.gcm-kicker,
.gcm-eyebrow {
  display: block;
  color: var(--gcm-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gcm-library-hero,
.gcm-article-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: #102943;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.gcm-library-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  background-image: url("/public/img/flightdesk-og.jpg");
}

.gcm-library-hero::before,
.gcm-article-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(7, 27, 48, .78);
}

.gcm-library-hero-inner {
  padding: 54px 0 78px;
}

.gcm-library-hero .gcm-kicker,
.gcm-article-hero .gcm-kicker {
  color: #a9d1ff;
}

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

.gcm-library-hero p {
  max-width: 690px;
  margin: 17px 0 0;
  color: #e4edf7;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.gcm-hero-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 7px;
  background: #fff;
  color: var(--gcm-blue-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.gcm-library-content {
  padding: 62px 0 72px;
  background: #fff;
}

.gcm-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.gcm-library-head h2,
.gcm-section-head h2 {
  margin: 7px 0 0;
  color: var(--gcm-ink);
  font-size: 32px;
  line-height: 1.17;
  font-weight: 900;
  letter-spacing: 0;
}

.gcm-library-head p,
.gcm-section-head p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--gcm-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.gcm-admin-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #b8cce1;
  border-radius: 7px;
  color: var(--gcm-blue-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.gcm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--gcm-line);
}

.gcm-filters button {
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid #c8d5e3;
  border-radius: 7px;
  background: #fff;
  color: #52647a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.gcm-filters button.is-active {
  border-color: var(--gcm-blue);
  background: var(--gcm-blue);
  color: #fff;
}

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

.gcm-guide-card {
  overflow: hidden;
  border: 1px solid var(--gcm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(20, 49, 79, .07);
}

.gcm-guide-card[hidden] {
  display: none;
}

.gcm-guide-card-media {
  display: block;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  border-bottom: 1px solid var(--gcm-line);
  background: #dfe8f1;
}

.gcm-guide-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease;
}

.gcm-guide-card:hover .gcm-guide-card-media img {
  transform: scale(1.02);
}

.gcm-guide-card-body {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.gcm-guide-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gcm-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.gcm-guide-card-meta span {
  color: var(--gcm-blue);
}

.gcm-guide-card h3 {
  margin: 13px 0 0;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
}

.gcm-guide-card h3 a {
  color: var(--gcm-ink);
  text-decoration: none;
}

.gcm-guide-card p {
  margin: 11px 0 17px;
  color: var(--gcm-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.gcm-card-command {
  margin-top: auto;
  color: var(--gcm-blue-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.gcm-card-command span {
  display: inline-block;
  margin-left: 4px;
}

.gcm-no-results {
  padding: 35px 0;
  color: var(--gcm-muted);
  text-align: center;
  font-weight: 800;
}

.gcm-library-note {
  padding: 28px 0;
  border-top: 1px solid var(--gcm-line);
  background: var(--gcm-soft);
}

.gcm-library-note .gcm-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
}

.gcm-library-note strong {
  color: var(--gcm-blue-dark);
  font-size: 14px;
}

.gcm-library-note p {
  margin: 0;
  color: var(--gcm-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.gcm-preview-bar {
  padding: 9px 18px;
  background: #fff2c7;
  color: #704900;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.gcm-preview-bar a {
  margin-left: 8px;
  color: #704900;
}

.gcm-article-hero {
  min-height: 480px;
  display: flex;
  align-items: end;
  background-image: var(--gcm-hero-image);
}

.gcm-article-hero::before {
  background: rgba(7, 25, 44, .80);
}

.gcm-article-hero-inner {
  padding: 42px 0 57px;
}

.gcm-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  color: #bfd3e8;
  font-size: 11px;
  font-weight: 800;
}

.gcm-breadcrumbs a {
  color: #eaf3fc;
  text-decoration: none;
}

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

.gcm-article-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e4edf7;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.gcm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 21px;
  color: #bfd0e2;
  font-size: 11px;
  font-weight: 800;
}

.gcm-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 260px;
  gap: 54px;
  align-items: start;
  padding-top: 66px;
  padding-bottom: 72px;
}

.gcm-article-content {
  min-width: 0;
  color: #26364b;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 600;
}

.gcm-article-content h2 {
  margin: 52px 0 13px;
  color: var(--gcm-ink);
  font-size: 31px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.gcm-article-content h2:first-child {
  margin-top: 0;
}

.gcm-article-content h3 {
  margin: 34px 0 10px;
  color: var(--gcm-blue-dark);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
}

.gcm-article-content p {
  margin: 0 0 18px;
}

.gcm-article-content ul,
.gcm-article-content ol {
  margin: 0 0 23px;
  padding-left: 25px;
}

.gcm-article-content li {
  margin: 8px 0;
  padding-left: 4px;
}

.gcm-article-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gcm-amber);
  background: #fff8e9;
  color: #554218;
  font-weight: 750;
}

.gcm-article-content code {
  padding: 2px 5px;
  border: 1px solid #d6e1ec;
  border-radius: 4px;
  background: #f3f6f9;
  color: #143f70;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

.gcm-article-content table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.gcm-article-content th,
.gcm-article-content td {
  padding: 12px 13px;
  border: 1px solid var(--gcm-line);
  text-align: left;
  vertical-align: top;
}

.gcm-article-content th {
  background: var(--gcm-soft);
  color: var(--gcm-blue-dark);
  font-weight: 900;
}

.gcm-article-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 11px;
  padding: 20px;
  border: 1px solid var(--gcm-line);
  border-top: 3px solid var(--gcm-blue);
  border-radius: 8px;
  background: #fff;
}

.gcm-article-aside strong {
  color: var(--gcm-blue-dark);
  font-size: 14px;
}

.gcm-article-aside p,
.gcm-article-aside small {
  margin: 0;
  color: var(--gcm-muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.gcm-article-aside a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--gcm-blue);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.gcm-interactive-band,
.gcm-sources-band,
.gcm-faq-band,
.gcm-related-band {
  padding: 66px 0 72px;
  border-top: 1px solid var(--gcm-line);
}

.gcm-interactive-band,
.gcm-faq-band {
  background: var(--gcm-soft);
}

.gcm-sources-band,
.gcm-related-band {
  background: #fff;
}

.gcm-section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.gcm-decoder {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  border: 1px solid #c8d6e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 32px rgba(23, 54, 87, .09);
}

.gcm-decoder-controls,
.gcm-decoder-output {
  padding: 22px;
}

.gcm-decoder-controls {
  border-right: 1px solid var(--gcm-line);
  background: #f8fafc;
}

.gcm-decoder-controls label {
  display: block;
  margin-bottom: 8px;
  color: var(--gcm-blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.gcm-decoder textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 13px;
  border: 1px solid #b9c9db;
  border-radius: 7px;
  background: #fff;
  color: var(--gcm-ink);
  font: 700 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gcm-decoder textarea:focus {
  border-color: var(--gcm-blue);
  outline: 3px solid rgba(23, 100, 189, .13);
}

.gcm-decoder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.gcm-decoder-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #b8c8d9;
  border-radius: 7px;
  background: #fff;
  color: #30465f;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.gcm-decoder-actions button.primary {
  border-color: var(--gcm-blue);
  background: var(--gcm-blue);
  color: #fff;
}

.gcm-decoder-actions button.icon-command {
  width: 38px;
  padding: 0;
  margin-left: auto;
  font-size: 20px;
}

.gcm-token-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.gcm-token-legend span,
.gcm-token {
  border: 1px solid #cad6e2;
  border-radius: 6px;
  background: #f4f7fa;
  color: #42566d;
}

.gcm-token-legend span {
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.gcm-token-stream {
  min-height: 104px;
  color: var(--gcm-muted);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
}

.gcm-token {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin: 3px 4px 3px 0;
  padding: 0 8px;
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
}

.gcm-token:hover,
.gcm-token:focus,
.gcm-token.is-selected {
  outline: 2px solid rgba(23, 100, 189, .28);
  outline-offset: 1px;
}

.gcm-token-detail {
  min-height: 105px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--gcm-line);
  border-left: 4px solid var(--gcm-blue);
  border-radius: 7px;
  background: #f8fafc;
}

.gcm-token-detail strong {
  display: block;
  color: var(--gcm-blue-dark);
  font-size: 14px;
}

.gcm-token-detail p {
  margin: 7px 0 0;
  color: var(--gcm-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

[data-kind="time"] {
  border-color: #99b9e8;
  background: #eaf2ff;
  color: #194f99;
}

[data-kind="wind"] {
  border-color: #82cfad;
  background: #e9f8f1;
  color: #106d49;
}

[data-kind="visibility"] {
  border-color: #ebc877;
  background: #fff7df;
  color: #835800;
}

[data-kind="weather"] {
  border-color: #e7a4aa;
  background: #fff0f1;
  color: #962832;
}

[data-kind="cloud"] {
  border-color: #b5a3e5;
  background: #f3efff;
  color: #58339e;
}

[data-kind="pressure"] {
  border-color: #88c7d3;
  background: #e9f8fb;
  color: #17616e;
}

[data-kind="change"] {
  border-color: #d1a3c7;
  background: #faeff7;
  color: #80396f;
}

.gcm-interactive-warning {
  margin: 14px 0 0;
  color: var(--gcm-muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
}

.gcm-source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gcm-source-list a {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--gcm-line);
  border-left: 3px solid var(--gcm-green);
  border-radius: 8px;
  background: #fff;
  color: var(--gcm-blue-dark);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
}

.gcm-faq-list {
  max-width: 900px;
  border-top: 1px solid #cbd8e5;
}

.gcm-faq-list details {
  border-bottom: 1px solid #cbd8e5;
}

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

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

.gcm-faq-list summary::after {
  position: absolute;
  top: 16px;
  right: 6px;
  content: "+";
  color: var(--gcm-blue);
  font-size: 22px;
}

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

.gcm-faq-list p {
  max-width: 800px;
  margin: -4px 0 20px;
  color: var(--gcm-muted);
  font-size: 14px;
  line-height: 1.62;
  font-weight: 650;
}

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

.gcm-related-grid a {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--gcm-line);
  border-top: 3px solid var(--gcm-blue);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.gcm-related-grid span {
  color: var(--gcm-blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.gcm-related-grid strong {
  margin-top: 10px;
  color: var(--gcm-ink);
  font-size: 18px;
  line-height: 1.25;
}

.gcm-related-grid small {
  margin-top: 10px;
  color: var(--gcm-muted);
  font-size: 12px;
  line-height: 1.52;
  font-weight: 700;
}

.gcm-article-cta {
  padding: 40px 0;
  background: #0f477f;
  color: #fff;
}

.gcm-article-cta .gcm-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.gcm-article-cta .gcm-eyebrow {
  color: #a9d1ff;
}

.gcm-article-cta h2 {
  max-width: 680px;
  margin: 6px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 900;
}

.gcm-article-cta a {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 7px;
  background: #fff;
  color: var(--gcm-blue-dark);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.gcm-not-found {
  width: min(760px, calc(100% - 32px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
}

.gcm-not-found h1 {
  color: var(--gcm-blue-dark);
}

.gcm-not-found p {
  color: var(--gcm-muted);
}

.gcm-not-found a {
  color: var(--gcm-blue);
  font-weight: 900;
}

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

  .gcm-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .gcm-article-aside {
    position: static;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .gcm-article-aside small {
    grid-column: 1 / -1;
  }

  .gcm-decoder {
    grid-template-columns: 1fr;
  }

  .gcm-decoder-controls {
    border-right: 0;
    border-bottom: 1px solid var(--gcm-line);
  }

  .gcm-source-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .gcm-shell {
    width: min(100% - 24px, 1160px);
  }

  .gcm-library-hero {
    min-height: 420px;
    background-position: 58% center;
  }

  .gcm-library-hero-inner {
    padding: 44px 0 65px;
  }

  .gcm-library-hero h1,
  .gcm-article-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .gcm-library-hero p,
  .gcm-article-hero p {
    font-size: 16px;
  }

  .gcm-library-content,
  .gcm-interactive-band,
  .gcm-sources-band,
  .gcm-faq-band,
  .gcm-related-band {
    padding: 46px 0 52px;
  }

  .gcm-library-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .gcm-library-note .gcm-shell {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .gcm-article-hero {
    min-height: 480px;
  }

  .gcm-article-hero-inner {
    padding: 31px 0 42px;
  }

  .gcm-article-layout {
    padding-top: 45px;
    padding-bottom: 50px;
  }

  .gcm-article-content {
    font-size: 15px;
  }

  .gcm-article-content h2,
  .gcm-library-head h2,
  .gcm-section-head h2 {
    font-size: 27px;
  }

  .gcm-article-content table {
    display: block;
    overflow-x: auto;
  }

  .gcm-article-aside {
    grid-template-columns: 1fr;
  }

  .gcm-decoder-controls,
  .gcm-decoder-output {
    padding: 16px;
  }

  .gcm-decoder-actions button {
    flex: 1 1 auto;
  }

  .gcm-decoder-actions button.icon-command {
    flex: 0 0 38px;
  }

  .gcm-article-cta .gcm-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .gcm-article-cta a {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gcm-guide-card-media img {
    transition: none;
  }
}
