/* DMARCS Learning Center: shared stylesheet.

   Same brand tokens as the Help Center (dmarcs-help-center/help.css) and
   Trust Center (dmarcs-trust-center/trust.css), pulled from the live
   www.dmarcs.com, not the admin app's own theme.
     --color-primary   #1565C0   (CTA buttons, links)
     --color-secondary #6AACFE   (light accents)
     --color-heading    #0F1926   (headings)
     --bg-hero          #0D3B6F   (dark CTA panel)
     --bg-light         #EAF3FF   (light section background)
     --color-body        #403A56   (body copy)
   Fonts: Plus Jakarta Sans (headings), Inter (body). Buttons pill-shaped.

   Layout mirrors the Help Center: one module per page
   (learning.dmarcs.com/<tier>/<slug>/), a left rail with the tier's module
   list, and a reading column capped at 720px. The tier/module/quiz
   components at the bottom of this file are new; everything above them is
   the same component set as help.css so the three DMARCS sites read as one
   family.

   Referenced everywhere as learning.css?v=N. Bump N in every HTML file
   when this file changes. */

:root {
  --color-primary: #1565C0;
  --color-primary-dark: #114f96;
  --color-secondary: #6AACFE;
  --color-heading: #0F1926;
  --bg-hero: #0D3B6F;
  --bg-light: #EAF3FF;
  --bg-soft: #f6f9fe;
  --color-body: #403A56;
  --color-muted: #6b7280;
  --white: #ffffff;
  --border: #dbe6f5;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --up: #22c55e;
  --warn: #f59e0b;
  --warn-bg: #fff7e6;
  --danger: #dc2626;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--color-body);
  font: 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin: 0 0 12px;
  line-height: 1.25;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; }
.site-header img.logo { height: 26px; width: auto; display: block; }
.site-header .brand .divider { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.site-header .brand .product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-heading);
}
.site-header nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-header nav a.back { color: var(--color-muted); font-size: 13.5px; font-weight: 500; }
.site-header nav a.back:hover { color: var(--color-primary); text-decoration: none; }

/* ---------- Hero (home) ---------- */
.learn-hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, #f6faff 100%);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.learn-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.learn-hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 10px; }
.learn-hero .sub { color: var(--color-muted); font-size: 16px; margin: 0 auto 26px; max-width: 560px; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 48px 0; }
.section.light { background: var(--bg-light); }
.section.white { background: var(--white); }
.section h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.section .lede-home { color: var(--color-muted); font-size: 15px; margin-bottom: 28px; max-width: 640px; }

/* ---------- Tier grid (home) ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-body);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.tier-card:hover {
  box-shadow: 0 12px 28px rgba(15, 25, 38, .08);
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  text-decoration: none;
}
.tier-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 4px;
}
.tier-card h3 { font-size: 17px; margin-bottom: 2px; color: var(--color-heading); }
.tier-card p { color: var(--color-muted); font-size: 14px; margin: 0; flex: 1; }
.tier-card .go {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-top: 6px;
}

/* Tier badge, used on module pages and hub rows */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-light);
  color: var(--color-primary);
}
.tier-badge.intermediate { background: #fff4e0; color: #b45309; }
.tier-badge.advanced { background: #fde8e8; color: #b91c1c; }

/* ---------- Getting started strip (home) ---------- */
.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.start-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  color: var(--color-body);
  display: block;
}
.start-step:hover { border-color: var(--color-secondary); text-decoration: none; }
.start-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-primary); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  margin-bottom: 10px;
}
.start-step h3 { font-size: 15.5px; margin-bottom: 4px; }
.start-step p { margin: 0; font-size: 13.5px; color: var(--color-muted); }

/* ---------- Breadcrumb + tier banner ---------- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--color-muted);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.breadcrumb a { color: var(--color-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 8px; color: #b9c6da; }
.breadcrumb .current { color: var(--color-heading); font-weight: 600; }

.tier-banner {
  background: var(--bg-light);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}
.tier-banner .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(15, 25, 38, .08);
}
.tier-banner h1 { font-size: 30px; margin-bottom: 6px; }
.tier-banner p { color: var(--color-body); font-size: 15.5px; max-width: 620px; margin: 0; }

/* ---------- Two-column module / hub layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { display: contents; }
  .article, .article-list { order: 1; }
  .toc { order: 2; }
}

.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.toc .toc-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
  padding: 0 6px;
}
.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--color-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.toc a:hover { background: var(--bg-light); text-decoration: none; color: var(--color-primary); }
.toc a[aria-current] {
  background: var(--bg-light);
  color: var(--color-primary);
  font-weight: 600;
}
.toc-cats a { font-size: 13.5px; color: var(--color-muted); }

/* ---------- Hub: module list ---------- */
.article-list { max-width: 760px; }
.list-heading {
  font-size: 12px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px !important;
}
.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  color: var(--color-body);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.article-row:hover { border-color: var(--color-secondary); box-shadow: 0 8px 20px rgba(15, 25, 38, .06); text-decoration: none; }
.article-row .row-text { display: flex; flex-direction: column; gap: 3px; }
.article-row .row-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--color-heading); }
.article-row .row-desc { font-size: 14px; color: var(--color-muted); }
.article-row .row-go { color: var(--color-primary); font-size: 18px; flex: 0 0 auto; }

/* ---------- Module (article) ---------- */
.article { max-width: 720px; min-width: 0; }
.article .eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.article .eyebrow a { color: var(--color-primary); }
.article h1 { font-size: 32px; margin-bottom: 10px; letter-spacing: -.01em; }
.article .lede { font-size: 18px; line-height: 1.6; color: #55506b; margin: 0 0 22px; }
.article h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 4px; }
.article h3 { font-size: 17px; margin: 24px 0 8px; }
.article p, .article li { font-size: 16px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article li > p { margin-bottom: 8px; }
.article strong { color: var(--color-heading); font-weight: 600; }
.article code {
  background: var(--bg-light);
  color: var(--color-heading);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  font-family: var(--font-mono);
  word-break: break-word;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14.5px;
}
.article th, .article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--bg-soft);
}

/* Quick facts (tier / time / format) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 0 0 26px;
  padding: 4px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.facts > div { padding: 12px 16px; border-right: 1px solid var(--border); }
.facts > div:last-child { border-right: none; }
.facts dt {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 3px;
}
.facts dd { margin: 0; font-size: 14.5px; color: var(--color-heading); }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: none; border-bottom: 1px solid var(--border); }
  .facts > div:last-child { border-bottom: none; }
}

/* Learning objectives box */
.objectives {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 18px 20px;
  margin: 0 0 26px;
}
.objectives .obj-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.objectives ol { margin: 0; padding-left: 20px; }
.objectives li { font-size: 15px; margin-bottom: 6px; }
.objectives li:last-child { margin-bottom: 0; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: step; }
.steps > li {
  position: relative;
  padding: 0 0 18px 48px;
  margin: 0;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 15px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 16.5px;
  color: var(--color-heading);
  margin: 4px 0 4px;
}
.steps > li p { margin-bottom: 8px; }

/* Callouts */
.callout {
  display: flex;
  gap: 12px;
  background: var(--bg-light);
  border: 1px solid #cfe1fb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  margin: 0 0 20px;
  color: var(--color-body);
}
.callout::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
.callout > * { min-width: 0; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--color-heading); }
.callout.tip { background: #f0fdf4; border-color: #bbf7d0; }
.callout.tip::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'/%3E%3C/svg%3E");
}

/* ---------- Knowledge check ---------- */
.quiz { margin: 0 0 22px; }
.quiz-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--white);
}
.quiz-item .q { font-family: var(--font-heading); font-weight: 600; font-size: 15.5px; color: var(--color-heading); margin-bottom: 10px; }
.quiz-item .opts { list-style: none; padding: 0; margin: 0; }
.quiz-item .opts li {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--color-body);
  margin-bottom: 4px;
}
.quiz-item .opts li:hover { background: var(--bg-soft); }
.quiz-item details { margin-top: 8px; }
.quiz-item summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.quiz-item .answer { margin-top: 8px; font-size: 14.5px; color: var(--color-body); }

/* Related */
.related { margin-top: 40px; }
.related h2 { font-size: 18px; margin: 0 0 10px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related li a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--color-heading);
  background: var(--white);
}
.related li a:hover { border-color: var(--color-secondary); text-decoration: none; }
.related .r-title { font-weight: 600; font-size: 14.5px; }
.related .r-cat { font-size: 12px; color: var(--color-muted); }

/* ---------- Contact CTA (home) ---------- */
.contact-cta {
  background: var(--bg-hero);
  border-radius: 16px;
  padding: 36px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-cta h3 { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.contact-cta p { color: #cfe0f7; margin: 0; font-size: 14.5px; }
.contact-methods { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-primary { background: var(--color-primary); color: var(--white); }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-secondary { background: var(--color-secondary); color: var(--white); }
.btn-secondary:hover { background: #4f92e8; text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ---------- Panels (account pages) ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.panel h2, .panel h3 { font-size: 17px; margin: 0 0 8px; }
.panel p { margin: 0 0 10px; font-size: 15px; }
.panel p:last-child { margin-bottom: 0; }
.panel-narrow { max-width: 420px; margin: 0 auto; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-heading);
  margin-bottom: 6px;
}
.form-field input {
  width: 100%;
  font: 15px/1.4 var(--font-body);
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  outline: none;
  color: var(--color-heading);
  background: var(--white);
}
.form-field input:focus { border-color: var(--color-primary); }
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-note { font-size: 13.5px; color: var(--color-muted); margin-top: 14px; text-align: center; }

/* ---------- Progress list (dashboard) ---------- */
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.progress-row:last-child { border-bottom: none; }
.progress-row .status {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
}
.progress-row .status.done { color: var(--up); }
.progress-row .status.pending { color: var(--color-muted); }

/* ---------- Bold hero (home) ---------- */
.hero-bold {
  background: linear-gradient(115deg, var(--bg-hero) 0%, var(--color-primary) 55%, var(--color-secondary) 100%);
  padding: 84px 0 76px;
  text-align: center;
}
.hero-bold .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfe0f7;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-bold h1 { color: var(--white); font-size: 44px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.01em; }
.hero-bold .sub { color: #dce9fb; font-size: 17px; line-height: 1.6; margin: 0 auto 30px; max-width: 600px; }
.hero-bold .btn-primary { background: var(--white); color: var(--color-primary); }
.hero-bold .btn-primary:hover { background: #eaf3ff; }

/* ---------- Feature strip (home) ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 26px 24px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: var(--color-muted); font-size: 14px; margin: 0; }

/* ---------- Path cards (learning paths, home) ---------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.path-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  color: var(--color-body);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.path-card:hover { border-color: var(--color-secondary); box-shadow: 0 12px 28px rgba(15, 25, 38, .08); text-decoration: none; }
.path-card .badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-hero);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.path-card.intermediate .badge { background: #b45309; }
.path-card.advanced .badge { background: #b91c1c; }
.path-card h3 { font-size: 18px; margin-bottom: 8px; }
.path-card p { color: var(--color-muted); font-size: 14.5px; margin: 0 0 16px; }
.path-card .go { color: var(--color-primary); font-size: 13px; font-weight: 700; font-family: var(--font-heading); margin-top: auto; }

/* ---------- FAQ accordion (home) ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-heading);
  padding: 18px 34px 18px 0;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 15px;
  font-size: 22px;
  color: var(--color-primary);
  font-weight: 400;
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { color: var(--color-body); font-size: 15px; padding: 0 0 18px; max-width: 720px; }
.faq-a p { margin: 0; }

/* ---------- Quiz form (real, scored) ---------- */
.quiz-form-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--white);
}
.quiz-form-item.wrong { border-color: #fecaca; background: #fef2f2; }
.quiz-form-item.right { border-color: #bbf7d0; background: #f0fdf4; }
.quiz-form-item .qn {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.quiz-form-item .q { font-family: var(--font-heading); font-weight: 600; font-size: 15.5px; color: var(--color-heading); margin-bottom: 12px; }
.quiz-form-item .mcq-opts { list-style: none; padding: 0; margin: 0; }
.quiz-form-item .mcq-opts li { margin-bottom: 8px; }
.quiz-form-item .mcq-opts label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-body);
  cursor: pointer;
}
.quiz-form-item .mcq-opts input[type="radio"] { margin-top: 3px; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; align-items: center; margin-bottom: 10px; }
.match-row .left-label { font-size: 15px; color: var(--color-body); }
.match-row select {
  font: 14px/1.4 var(--font-body);
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--color-heading);
  width: 100%;
}

/* ---------- Quiz result summary ---------- */
.quiz-result {
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
  text-align: center;
}
.quiz-result.pass { background: #f0fdf4; border: 1px solid #bbf7d0; }
.quiz-result.fail { background: #fef2f2; border: 1px solid #fecaca; }
.quiz-result .score { font-family: var(--font-heading); font-weight: 700; font-size: 40px; margin-bottom: 4px; }
.quiz-result.pass .score { color: #15803d; }
.quiz-result.fail .score { color: #b91c1c; }
.quiz-result p { margin: 0 0 4px; color: var(--color-body); }

/* ---------- Certificate ---------- */
.certificate {
  border: 3px solid var(--color-primary);
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
  background: var(--white);
  max-width: 760px;
  margin: 0 auto;
}
.certificate .cert-eyebrow { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 18px; }
.certificate h1 { font-size: 30px; margin-bottom: 6px; }
.certificate .cert-name { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--color-heading); margin: 18px 0; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: inline-block; }
.certificate .cert-body { font-size: 16px; color: var(--color-body); max-width: 520px; margin: 0 auto 22px; }
.certificate .cert-meta { display: flex; justify-content: center; gap: 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.certificate .cert-meta div { text-align: center; }
.certificate .cert-meta dt { font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 4px; }
.certificate .cert-meta dd { margin: 0; font-size: 14.5px; color: var(--color-heading); }
@media print {
  .certificate { border-width: 2px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-heading);
  padding: 34px 0;
  text-align: center;
}
.site-footer p { color: #8a93a6; font-size: 13px; margin: 0 0 8px; }
.site-footer a { color: #b9c3d4; font-size: 13px; margin: 0 10px; }
.site-footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .learn-hero { padding: 44px 0 40px; }
  .learn-hero h1 { font-size: 28px; }
  .tier-banner h1 { font-size: 24px; }
  .section h2 { font-size: 21px; }
  .article h1 { font-size: 26px; }
  .article .lede { font-size: 16.5px; }
  .article h2 { font-size: 20px; }
  .site-header nav { gap: 12px; }
  .site-header nav a.back { display: none; }
}

@media print {
  .site-header, .sidebar, .site-footer, .breadcrumb { display: none !important; }
  .article-layout { display: block; }
  .article { max-width: none; }
}
