/* Learn articles — self-hosted brand styles. No Tailwind CDN. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-700.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-400.ttf") format("truetype");
}

:root {
  --navy: #111a2d;
  --navy-deep: #0a1636;
  --gold: #edb417;
  --gold-hot: #f59e0b;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --paper: #f7f4ec;
  --white: #ffffff;
  --urgent: #7a1f1f;
  --urgent-bg: #fdf4f0;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.learn-narrow {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
}

/* Top utility bar */
.learn-topbar {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 100%);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}
.learn-topbar .learn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}
.learn-topbar a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.learn-topbar a:hover,
.learn-topbar a:focus-visible { text-decoration: underline; }

/* Header / nav */
.learn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(17, 26, 45, 0.08);
}
.learn-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}
.learn-logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.learn-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.learn-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.learn-nav a:hover { color: var(--navy); }
.learn-nav a.is-active {
  color: var(--navy);
  font-weight: 700;
}
.learn-nav a:not(.learn-nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.learn-nav a:not(.learn-nav-cta):hover::after,
.learn-nav a.is-active:not(.learn-nav-cta)::after { width: 100%; }

.learn-nav-cta,
a.learn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 100%);
  color: var(--navy) !important;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(237, 180, 23, 0.28);
  white-space: nowrap;
}
.learn-nav-cta:hover,
.learn-nav-cta:focus-visible {
  transform: translateY(-1px);
  color: var(--navy) !important;
}

.learn-menu-btn {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  color: var(--navy);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.learn-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 0 1.1rem;
  border-top: 1px solid var(--line);
}
.learn-mobile-nav.is-open { display: flex; }
.learn-mobile-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  padding: 0.45rem 0;
}
.learn-mobile-nav .learn-nav-cta { margin-top: 0.4rem; text-align: center; }

@media (max-width: 860px) {
  .learn-nav { display: none; }
  .learn-menu-btn { display: block; }
  .learn-topbar .learn-hide-sm { display: none; }
}

/* Hero */
.learn-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.2rem 0 2.8rem;
}
.learn-hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 400;
  color: var(--white);
}
.learn-hero .learn-lead {
  font-size: 1.15rem;
  color: #d1d5db;
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
.learn-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #c5c9d3;
  margin: 0 0 1.25rem;
}
.learn-crumbs a { color: var(--gold); text-decoration: none; }
.learn-crumbs a:hover,
.learn-crumbs a:focus-visible { text-decoration: underline; }
.learn-crumbs span[aria-hidden="true"] { color: #8b91a1; }

.learn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.learn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.learn-btn:hover { transform: translateY(-2px); }
.learn-btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 100%);
  color: var(--navy);
}
.learn-btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.learn-btn-outline:hover,
.learn-btn-outline:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

/* Article body */
.learn-main {
  background: #fbfaf6;
  padding: 2.5rem 0 4rem;
}
.learn-article {
  font-size: 1.0625rem;
  color: #374151;
}
.learn-article > p,
.learn-article .learn-intro p {
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
}
.learn-intro p:first-child {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
}
.learn-article h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--navy);
  margin: 2.2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ebe6d8;
  font-weight: 400;
}
.learn-article h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
  font-weight: 400;
}
.learn-article ul,
.learn-article ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}
.learn-article li { margin-bottom: 0.45rem; }
.learn-article a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 2px;
}
.learn-article a:hover { color: var(--gold-hot); }

.learn-urgent {
  background: var(--urgent-bg);
  border: 1px solid #f0d4c8;
  border-left: 5px solid #c2410c;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 0.4rem;
  margin: 1.75rem 0;
}
.learn-urgent h2 {
  border: 0;
  padding: 0;
  margin: 0 0 0.7rem;
  color: var(--urgent);
  font-size: 1.45rem;
}

.learn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ebe6d8;
}
.learn-meta strong { color: var(--navy); font-weight: 600; }

.learn-sources {
  background: var(--white);
  border: 1px solid #ebe6d8;
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  margin: 2rem 0;
}
.learn-sources h2 {
  margin-top: 0;
  border: 0;
  padding: 0;
}
.learn-sources ol { margin-bottom: 0; }
.learn-sources a { word-break: break-word; }

.learn-faq {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}
.learn-faq-item {
  background: var(--white);
  border: 1px solid #ebe6d8;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 26, 45, 0.04);
  padding: 1.15rem 1.25rem;
}
.learn-faq-item h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.learn-faq-item p { margin: 0; color: var(--muted); }

.learn-disclaimer {
  background: var(--white);
  border: 1px dashed #d6d3c8;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 1.5rem 0 2rem;
}

.learn-related {
  margin: 2rem 0 0;
}
.learn-related h2 {
  text-align: center;
  border: 0;
}
.learn-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.learn-pills a,
.learn-pills span {
  background: var(--white);
  border: 1px solid #ddd6c4;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.learn-pills a:hover,
.learn-pills a:focus-visible {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.learn-pills span {
  color: var(--muted);
  font-weight: 500;
}

/* CTA band */
.learn-cta {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border-radius: 1.25rem;
  padding: 2.6rem 1.6rem;
  text-align: center;
  margin: 2.5rem auto 0;
  box-shadow: 0 18px 40px rgba(17, 26, 45, 0.18);
}
.learn-cta::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -2rem;
  width: 14rem;
  height: 14rem;
  background: var(--gold);
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(10px);
}
.learn-cta h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.7rem;
  position: relative;
  color: var(--white);
  border: 0;
  padding: 0;
}
.learn-cta p {
  margin: 0 0 1.4rem;
  color: #d1d5db;
  position: relative;
}
.learn-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}
.learn-cta a.learn-btn-gold {
  color: var(--navy);
}
.learn-cta a.learn-btn-outline {
  color: #fff;
  border: 2px solid var(--gold);
  background: transparent;
}
.learn-cta a.learn-btn-outline:hover,
.learn-cta a.learn-btn-outline:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

/* Library index */
.learn-index-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.learn-card {
  background: var(--white);
  border: 1px solid #ebe6d8;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 8px 24px rgba(17, 26, 45, 0.04);
}
.learn-card a {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  text-decoration: none;
}
.learn-card a:hover { color: var(--gold-hot); }
.learn-card p { margin: 0.55rem 0 0; color: var(--muted); }
.learn-card .learn-card-meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #6b7280;
}

/* Footer */
.learn-footer {
  background: var(--navy);
  color: #d1d5db;
  padding: 4rem 0 2rem;
}
.learn-footer-grid {
  display: grid;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}
@media (min-width: 800px) {
  .learn-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.learn-footer h3,
.learn-footer h4 {
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--white);
  margin: 0 0 1rem;
}
.learn-footer h3 { color: var(--gold); font-size: 1.5rem; }
.learn-footer a { color: #e5e7eb; text-decoration: none; }
.learn-footer a:hover { color: var(--gold); }
.learn-footer ul { list-style: none; padding: 0; margin: 0; }
.learn-footer li + li { margin-top: 0.55rem; }
.learn-footer-copy {
  border-top: 1px solid #1f2937;
  padding-top: 1.4rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

#sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(17, 26, 45, 0.25);
}
#sticky-cta-bar.visible { display: flex; }
#sticky-cta-bar a.cta-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
}
#sticky-cta-bar a.cta-phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
#sticky-cta-bar .cta-divider {
  width: 1px;
  height: 1.2rem;
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .learn-hero { padding: 2.4rem 0 2.1rem; }
  #sticky-cta-bar {
    flex-direction: column;
    gap: 0.45rem;
  }
  #sticky-cta-bar .cta-divider { display: none; }
  .learn-main { padding-bottom: 7.5rem; }
}

@media (max-width: 360px) {
  .learn-topbar { font-size: 0.72rem; }
}

/* Parent-page related-article strip (injected into static condition HTML) */
.cc-learn-parent-links {
  margin: 2rem auto 0;
  max-width: 48rem;
  padding: 1.25rem 1.1rem;
  background: #f7f4ec;
  border: 1px solid #ebe6d8;
  border-radius: 14px;
  text-align: center;
}
.cc-learn-parent-links h2 {
  font-family: "DM Serif Display", Georgia, serif;
  color: #111a2d;
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
}
.cc-learn-parent-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.cc-learn-parent-links a {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd6c4;
  color: #111a2d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.cc-learn-parent-links a:hover {
  background: #111a2d;
  color: #edb417;
  border-color: #111a2d;
}
