@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap");

.public-header, .public-footer {
  line-height: 1.5;
  color-scheme: light;
}
.public-header *, .public-footer * {
  box-sizing: border-box;
}

.public-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1001;
  transform: translateY(-200%);
  border-radius: 0.5rem;
  background: #001a3d;
  color: #fff;
  font: 700 0.95rem/1.2 "Outfit", sans-serif;
  padding: 0.75rem 1rem;
}

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

.public-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 80px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(248, 250, 252, 0.97);
  box-shadow: 0 4px 18px rgba(0, 26, 61, 0.06);
  color: #001a3d;
  font-family: "Outfit", sans-serif;
  backdrop-filter: blur(12px);
}

.public-header__inner {
  display: flex;
  width: min(100% - 2rem, 80rem);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.public-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.public-footer__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 26, 61, 0.08);
  padding: 0.4rem;
}

.public-header__logo,
.public-footer__logo {
  display: block;
  width: auto;
  height: 24px;
}

.public-header__desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.5vw, 1.75rem);
}

.public-header__link,
.public-header__cta,
.public-footer__link {
  border-radius: 0.25rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.public-header__link:hover,
.public-footer__link:hover {
  color: #001a3d;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.public-header__cta {
  border-radius: 999px;
  background: #fd6b01;
  box-shadow: 0 5px 14px rgba(253, 107, 1, 0.2);
  color: #001a3d;
  font-weight: 800;
  padding: 0.75rem 1.35rem;
}

.public-header__cta:hover {
  background: #fd5200;
  color: #001a3d;
}

.public-header__brand:focus-visible,
.public-header__link:focus-visible,
.public-header__cta:focus-visible,
.public-header__menu-toggle:focus-visible,
.public-footer__brand:focus-visible,
.public-footer__link:focus-visible {
  outline: 3px solid #fd6b01;
  outline-offset: 3px;
}

.public-header__mobile {
  display: none;
}

.public-footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
  font-family: "Outfit", sans-serif;
  padding: 3rem 0;
}

.public-footer__inner {
  display: flex;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.public-footer__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.public-footer__nav {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .public-header__desktop-nav {
    display: none;
  }

  .public-header__mobile {
    display: block;
  }

  .public-header__menu-toggle {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    gap: 0.65rem;
    border-radius: 0.5rem;
    color: #001a3d;
    font-weight: 700;
    padding: 0.65rem;
  }

  .public-header__menu-toggle::-webkit-details-marker {
    display: none;
  }

  .public-header__menu-icon {
    display: grid;
    width: 24px;
    gap: 4px;
  }

  .public-header__menu-icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .public-header__mobile[open] .public-header__menu-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .public-header__mobile[open] .public-header__menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .public-header__mobile[open] .public-header__menu-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .public-header__mobile-nav {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    box-shadow: 0 16px 24px rgba(0, 26, 61, 0.12);
    padding: 1rem max(1rem, calc((100vw - 80rem) / 2 + 1rem)) 1.5rem;
  }

  .public-header__mobile-nav .public-header__link {
    border-bottom: 1px solid #e5e7eb;
    color: #001a3d;
    font-size: 1.05rem;
    padding: 1rem 0;
  }

  .public-header__mobile-cta {
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .public-header__menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .public-footer__inner,
  .public-footer__meta {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-header__menu-icon span {
    transition: none;
  }
}
:root {
  --color-navy: #002451;
  --color-navy-light: #163d70;
  --color-orange: #ea580c;
  --color-orange-dark: #c2410c;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  
  --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--color-orange);
}

a:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 4px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1.25rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-orange);
  color: white !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--color-orange-dark);
}

.button:active {
  transform: scale(0.98);
}

.button span {
  transition: transform 0.2s ease;
}

.button:hover span {
  transform: translateX(4px);
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 0;
}

/* Hero Section */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero > h1 {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.hero > p, .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero > p {
  max-width: 600px;
  margin: 0 auto 32px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.category-links a {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}

.category-links a:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: var(--color-bg);
}

/* Categories & Cards */
.category {
  padding: 64px 0 0;
  scroll-margin-top: 80px;
}

.category > h2 {
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 36, 81, 0.1);
  border-color: var(--color-navy-light);
}

.guide-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.guide-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
  margin: 0;
}

.read {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-top: 24px;
}

.guide-card:hover .read {
  color: var(--color-orange);
}

.read span {
  transition: transform 0.2s ease;
}

.guide-card:hover .read span {
  transform: translateX(4px);
}

/* CTA Block */
.cta {
  background: var(--color-navy);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 64px 0;
  box-shadow: 0 10px 25px -5px rgba(0, 36, 81, 0.15);
}

.cta > div {
  flex: 1;
}

.cta h2 {
  color: white;
  margin: 0 0 16px;
}

.cta p {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin: 0;
  max-width: 600px;
}

.cta .button {
  background: white;
  color: var(--color-navy) !important;
  flex-shrink: 0;
}

.cta .button:hover {
  background: #f1f5f9;
}

/* Article Layout Variations */
.article-layout .cta {
  display: block;
  padding: 40px;
}

.article-layout .cta .button {
  margin-top: 24px;
}

/* Article Specific */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

.article-heading {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.article-heading h1 {
  max-width: 900px;
}

.lead {
  max-width: 800px;
  margin-bottom: 0;
}

.byline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 24px;
  display: block;
}

/* Article Grid */
.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 64px 0;
}

/* Table of Contents */
.contents {
  position: sticky;
  top: 112px;
  align-self: start;
}

.contents h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.contents ol {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.contents li {
  margin-bottom: 12px;
}

.contents a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  display: block;
  transition: color 0.15s ease;
}

.contents a:hover {
  color: var(--color-orange);
}

.contents > a {
  color: var(--color-text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.contents > a:hover {
  color: var(--color-navy);
}

/* Article Content */
article {
  max-width: 720px;
}

article section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

article h2 {
  font-size: 1.875rem;
  margin-top: 0;
  margin-bottom: 20px;
}

article p, article li {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 20px;
}

article ul {
  padding-left: 20px;
  margin-bottom: 32px;
}

article li {
  margin-bottom: 12px;
}

article li::marker {
  color: var(--color-orange);
}

/* Figures / Images */
figure {
  margin: 48px 0;
  padding: 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

figure img {
  border-radius: 8px;
  width: 100%;
  background: var(--color-bg);
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 0 16px;
  font-weight: 500;
}

/* Related Guides */
.related {
  border-top: 1px solid var(--color-border);
  padding: 64px 0;
}

.related h2 {
  margin-top: 4px;
  margin-bottom: 32px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }
  
  .contents {
    position: static;
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
  }
  
  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 80px 20px 0;
  }

  .hero {
    padding: 48px 0;
  }

  .hero > h1 {
    font-size: 2.25rem;
  }
  
  .category {
    padding: 48px 0 0;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 24px;
  }
  
  .article-heading {
    padding: 32px 0;
  }
  
  .article-heading h1 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.15rem;
  }
  
  article h2 {
    font-size: 1.5rem;
  }
  
  article p, article li {
    font-size: 1rem;
  }

  .cta {
    padding: 32px 24px;
    border-radius: 16px;
  }
}
