:root {
  --glths-blue: #1f3886;
  --glths-gold: #ffca38;
  --glths-bronze: #988863;
  --ink: #10203f;
  --ink-soft: #31456f;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --surface-alt: #f2f5fc;
  --line: #c9d5ed;
  --link: #1845a8;
  --shadow: 0 1rem 2.4rem rgba(16, 32, 63, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.22), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--glths-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 202, 56, 0.55);
}

.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--glths-blue);
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-top: 0.3rem solid var(--glths-gold);
  border-bottom: 0.35rem solid var(--glths-gold);
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.2), transparent 20rem),
    linear-gradient(135deg, #17307c 0%, #1f3886 52%, #2949a1 100%);
  color: #ffffff;
}

.site-masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.25rem;
  align-items: center;
  padding: 1rem 0 1.05rem;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.brand-home:hover {
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: clamp(4.8rem, 9vw, 6.5rem);
  aspect-ratio: 1;
  padding: 0.42rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(255, 202, 56, 0.7);
  box-shadow: 0 1rem 2rem rgba(8, 17, 43, 0.25);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.masthead-note {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--glths-gold);
  color: var(--ink);
  font-size: 0.9em;
  font-weight: 700;
  box-shadow: 0 0.6rem 1.5rem rgba(8, 17, 43, 0.2);
}

.brand-kicker {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.6em, 1.5vw + 1.1em, 2.45em);
  letter-spacing: 0.08em;
  line-height: 0.98;
  color: #ffffff;
  text-transform: uppercase;
}

.page-intro {
  padding: 1rem 0 0.4rem;
}

.intro-shell {
  display: grid;
  gap: 1rem;
  align-items: start;
  margin-top: -0.25rem;
}

.intro-panel {
  max-width: none;
  padding: 1.3rem 1.4rem 1.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(251, 248, 241, 0.98) 100%);
  border: 1px solid var(--line);
  border-top: 0.45rem solid var(--glths-gold);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(16, 32, 63, 0.12);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--glths-blue);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-panel h1 {
  margin: 0;
  font-size: clamp(2.1em, 5vw, 3.8em);
  line-height: 0.98;
  color: var(--glths-blue);
}

.lede {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  font-size: 1.1em;
  color: var(--ink);
}

.intro-actions {
  margin: 1.1rem 0 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
}

.print-link {
  color: var(--ink);
  background: linear-gradient(180deg, #ffd85d 0%, var(--glths-gold) 100%);
  border: 2px solid rgba(16, 32, 63, 0.18);
  box-shadow: 0 0.8rem 1.6rem rgba(16, 32, 63, 0.12);
}

.print-link:hover {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe181 0%, #ffd04a 100%);
  text-decoration: none;
}

.focus-panel {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 248, 241, 0.98) 100%);
  border: 1px solid var(--line);
  border-top: 0.4rem solid var(--glths-gold);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(16, 32, 63, 0.14);
  color: var(--ink);
}

.focus-panel h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.focus-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-nav {
  background: linear-gradient(90deg, #17307c 0%, #1f3886 72%, #2949a1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guide-nav-shell {
  padding: 0.95rem 0 1.35rem;
}

.guide-nav-panel {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(201, 213, 237, 0.9);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2rem rgba(8, 17, 43, 0.18);
}

.guide-nav-label {
  margin: 0 0 0.85rem;
  color: var(--glths-blue);
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-links li {
  min-width: 0;
}

.guide-links a,
.guide-link-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  color: var(--glths-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98em;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid var(--line);
  box-shadow: 0 0.5rem 1rem rgba(16, 32, 63, 0.08);
}

.guide-links a:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  border-color: rgba(31, 56, 134, 0.35);
}

.guide-link-current {
  color: var(--ink);
  background: var(--glths-gold);
  border-color: var(--glths-gold);
  box-shadow: 0 0.7rem 1.4rem rgba(8, 17, 43, 0.14);
  cursor: default;
}

main {
  padding: 0 0 3rem;
}

.content-grid {
  display: grid;
  gap: 1.5rem;
}

.page-nav {
  align-self: start;
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.page-nav h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05em;
}

.page-nav ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-article {
  display: grid;
  gap: 1.5rem;
}

.section-card,
.guide-footer,
.library-card,
.how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.section-card,
.guide-footer,
.how-card {
  padding: 1.35rem;
}

.section-card h2,
.guide-footer h2 {
  margin-top: 0;
  font-size: 1.5em;
}

.callout {
  padding: 1rem 1.1rem;
  background: var(--surface-alt);
  border-left: 0.4rem solid var(--glths-blue);
  border-radius: 0.75rem;
}

.callout h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--glths-blue);
  color: #ffffff;
  font-weight: 800;
}

.step-copy strong {
  display: block;
  margin-bottom: 0.2rem;
}

.card-grid,
.library-grid,
.how-grid,
.primer-card-grid,
.term-grid,
.pour-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.primer-intro-grid {
  display: grid;
  gap: 1rem;
}

.primer-copy > p:first-of-type {
  margin-top: 0;
}

.primer-copy > p:last-child,
.primer-highlight > *:last-child {
  margin-bottom: 0;
}

.primer-highlight,
.primer-card,
.term-card,
.pour-card {
  padding: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.16), transparent 8rem),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(31, 56, 134, 0.16);
  border-top: 0.35rem solid var(--glths-blue);
  border-radius: 1rem;
  box-shadow: 0 0.9rem 1.8rem rgba(16, 32, 63, 0.08);
}

.primer-highlight h3,
.primer-card h3,
.term-card h3,
.pour-card h3 {
  margin: 0 0 0.7rem;
  color: var(--glths-blue);
}

.primer-card p,
.term-card p,
.pour-card p {
  margin: 0;
}

.primer-list {
  margin: 0;
  padding-left: 1.2rem;
}

.primer-list li + li {
  margin-top: 0.55rem;
}

.guidance-flow,
.guidance-support-grid,
.guidance-card-grid {
  display: grid;
  gap: 1rem;
}

.guidance-flow {
  gap: 1.15rem;
}

.guidance-panel,
.guidance-support-card {
  position: relative;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.2), transparent 12rem),
    linear-gradient(180deg, #f5f8ff 0%, #ebf1ff 100%);
  border: 1px solid rgba(31, 56, 134, 0.18);
  border-top: 0.42rem solid var(--glths-blue);
  border-radius: 1.15rem;
  box-shadow: 0 1rem 2rem rgba(31, 56, 134, 0.12);
}

.guidance-panel::before,
.guidance-support-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 5.25rem;
  height: 0.38rem;
  background: linear-gradient(90deg, var(--glths-gold) 0%, #ffe28a 100%);
  border-radius: 0 999px 999px 0;
}

.guidance-panel-start {
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.24), transparent 11rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.guidance-panel h3,
.guidance-support-card h3 {
  margin: 0 0 0.95rem;
  color: var(--glths-blue);
  font-size: 1.22em;
}

.guidance-panel-checks {
  padding-bottom: 1.3rem;
}

.guidance-card-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.guidance-support-grid {
  align-items: stretch;
}

.guidance-support-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 0.85rem 1.8rem rgba(16, 32, 63, 0.08);
}

.guidance-note {
  background: linear-gradient(180deg, #ffffff 0%, #eff4ff 100%);
}

.guidance-warning {
  background: linear-gradient(180deg, #fffdf7 0%, #fff1c2 100%);
  border-top-color: var(--glths-gold);
}

.guidance-support-card p:last-child,
.guidance-support-card ul:last-child {
  margin-bottom: 0;
}

.info-card,
.library-card,
.how-card,
.next-guide-card {
  padding: 1.15rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(31, 56, 134, 0.15);
  border-top: 0.35rem solid var(--glths-blue);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.info-card h3,
.library-card h2,
.library-card h3,
.how-card h2,
.how-card h3,
.next-guide-card h3 {
  margin-top: 0;
}

.next-guide-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.next-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.18), transparent 8rem),
    linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid rgba(31, 56, 134, 0.16);
  border-top: 0.35rem solid var(--glths-blue);
  border-radius: 1rem;
  box-shadow: 0 0.9rem 1.8rem rgba(16, 32, 63, 0.08);
}

.next-guide-card p {
  margin: 0;
}

.next-guide-action {
  margin-top: auto;
}

.checklist,
.problem-list,
.source-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.checklist li,
.problem-list li,
.source-list li {
  position: relative;
  padding-left: 1.7rem;
}

.checklist li + li,
.problem-list li + li,
.source-list li + li {
  margin-top: 0.55rem;
}

.checklist li::before,
.problem-list li::before,
.source-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
}

.checklist li::before {
  width: 0.55rem;
  height: 0.28rem;
  border-left: 0.18rem solid var(--glths-blue);
  border-bottom: 0.18rem solid var(--glths-blue);
  transform: rotate(-45deg);
}

.problem-list li::before {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--glths-gold);
  box-shadow: inset 0 0 0 0.16rem var(--ink);
}

.source-list li::before {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--glths-blue);
}

.table-shell {
  overflow-x: auto;
}

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

caption {
  margin-bottom: 0.75rem;
  text-align: left;
  font-weight: 700;
}

th,
td {
  padding: 0.8rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  text-align: left;
}

.guide-footer p:last-child,
.section-card > p:last-child,
.info-card ul:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.small-note {
  color: var(--ink-soft);
  font-size: 0.96em;
}

.library-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.22), transparent 7rem),
    linear-gradient(180deg, #ffffff 0%, #f4f7ff 68%, #edf2ff 100%);
  border: 1px solid rgba(31, 56, 134, 0.18);
  border-top: 0.4rem solid var(--glths-blue);
  box-shadow: 0 1.1rem 2rem rgba(31, 56, 134, 0.14);
}

.library-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 5rem;
  height: 0.38rem;
  background: linear-gradient(90deg, var(--glths-gold) 0%, #ffe38b 100%);
  border-radius: 0 999px 999px 0;
}

.library-card p {
  margin: 0;
}

.library-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.25rem;
}

.library-card h2,
.library-card h3 {
  font-size: 1.35em;
  margin-bottom: 0.15rem;
  color: var(--glths-blue);
  line-height: 1.06;
}

.library-card p:not(:last-child) {
  color: var(--ink-soft);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.76rem 1rem;
  border: 2px solid rgba(16, 32, 63, 0.18);
  border-radius: 0.95rem;
  background: var(--glths-blue);
  box-shadow: 0 0.85rem 1.45rem rgba(31, 56, 134, 0.18);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.card-link:hover {
  color: #ffffff;
  background: #162d71;
  text-decoration: none;
}

.card-link:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.page-tag {
  display: inline-block;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: var(--glths-blue);
  border: 1px solid rgba(255, 202, 56, 0.55);
  color: #ffffff;
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 2rem;
  background:
    radial-gradient(circle at top right, rgba(255, 202, 56, 0.16), transparent 15rem),
    linear-gradient(180deg, #173274 0%, #102451 100%);
  border-top: 0.2rem solid rgba(255, 202, 56, 0.5);
}

.footer-strip {
  display: grid;
  gap: 1.2rem;
  padding: 1.3rem 0 1.6rem;
  color: #ffffff;
}

.footer-intro {
  display: grid;
  gap: 0.22rem;
}

.footer-title,
.footer-subtitle {
  margin: 0;
}

.footer-title {
  font-size: 1.08em;
  font-weight: 900;
}

.footer-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.footer-meta {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-meta li {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-label,
.footer-value {
  display: block;
}

.footer-label {
  color: var(--glths-gold);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-value {
  margin-top: 0.2rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .guide-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid,
  .library-grid,
  .how-grid,
  .next-guide-grid,
  .primer-card-grid,
  .term-grid,
  .pour-grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

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

  .primer-intro-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr);
    align-items: start;
  }

  .guidance-support-grid {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

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

@media (min-width: 64rem) {
  .intro-shell {
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.95fr);
  }

  .guide-links {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    align-items: start;
  }

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

  .page-nav {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 40rem) {
  .site-masthead {
    align-items: start;
  }

  .guide-nav-shell {
    padding: 0.8rem 0 1.05rem;
  }

  .guide-nav-panel {
    padding: 0.85rem;
  }

  .brand-home {
    gap: 0.75rem;
  }

  .brand-badge {
    width: clamp(4.1rem, 22vw, 5.1rem);
    border-radius: 1rem;
  }

  .brand-kicker {
    font-size: 0.7em;
  }

  .brand-title {
    font-size: clamp(1.35em, 7vw, 1.95em);
  }

  .masthead-note {
    font-size: 0.82em;
  }

  .guide-links a,
  .guide-link-current {
    min-height: 2.9rem;
    padding: 0.72rem 0.7rem;
    font-size: 0.92em;
  }

  .intro-panel {
    padding: 1.15rem 1.1rem 1.2rem;
  }

  .button-link {
    width: 100%;
  }

  .section-card,
  .guide-footer,
  .how-card {
    padding: 1.1rem;
  }

  th,
  td {
    padding: 0.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .skip-link,
  .guide-nav,
  .page-nav,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .site-header,
  .intro-panel,
  .section-card,
  .guide-footer,
  .library-card,
  .how-card,
  .focus-panel {
    box-shadow: none;
  }
}
