@charset "UTF-8";
/* =====================================================================
   NeuraViz Advanced AI Learning - loaded AFTER ../assets/learn.css
   Same Inter + navy system as neuraviz.com, with a deeper "advanced" hero,
   gold governance accents, original SVG diagrams and gentle motion.
   ===================================================================== */
:root {
  --gold: #B8862B;
  --gold-soft: #F6EEDC;
  --gold-line: #E6D3A8;
  --teal: #2F6F8F;
  --teal-soft: #E7F1F6;
  --deep: #081A28;
}

/* ---------- Hero ---------- */
.adv-hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px);
  background: radial-gradient(900px 420px at 85% 10%, rgba(184, 134, 43, .22), transparent 60%),
              radial-gradient(700px 400px at 5% 100%, rgba(47, 111, 143, .35), transparent 60%),
              linear-gradient(135deg, #061624 0%, #0D2A3F 55%, #133B57 100%);
  color: #DBE6ED; }
.adv-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.adv-hero .wrap { position: relative; }
.adv-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.adv-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
.adv-hero h1 em { font-style: normal; background: linear-gradient(90deg, #F1D9A2, #C9A24A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adv-hero__lead { max-width: 600px; margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #C9D8E2; }
.adv-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px 7px 10px; border: 1px solid rgba(241, 217, 162, .35); border-radius: 30px;
  background: rgba(184, 134, 43, .12); color: #F1D9A2; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.adv-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F1D9A2; box-shadow: 0 0 0 4px rgba(241, 217, 162, .18); }
.adv-hero .hero__meta li { border-color: rgba(255, 255, 255, .16); }
.adv-hero__art { position: relative; }
.adv-hero__art svg { display: block; width: 100%; height: auto; }
.btn--gold { background: linear-gradient(180deg, #D3AE5C, #B8862B); color: #1B1408; }
.btn--gold:hover { filter: brightness(1.05); }

/* Track switcher (shown on both course home pages) */
.track-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 30px; background: rgba(255, 255, 255, .05); }
.track-switch a { padding: 7px 16px; border-radius: 30px; color: #C9D8E2; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.track-switch a[aria-current="page"] { background: #fff; color: var(--navy-dark); }
.track-switch a:not([aria-current]):hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Course outline ---------- */
.part-head { display: flex; align-items: center; gap: 14px; margin: 46px 0 18px; }
.part-head:first-of-type { margin-top: 0; }
.part-head__num { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.part-head h3 { font-size: 1.25rem; }
.part-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.adv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.adv-card { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; height: 100%; padding: 26px 26px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.adv-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); opacity: .9; }
.adv-card--gov::after { background: var(--gold); }
.adv-card:hover { border-color: #b9c3cf; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 45, 69, .08); }
.adv-card__num { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.adv-card--gov .adv-card__num { background: var(--gold-soft); color: #8A6418; }
.adv-card h3 { margin: 2px 0 8px; font-size: 1.12rem; }
.adv-card p { color: var(--muted); font-size: 14.8px; line-height: 1.6; }
.adv-card__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 600; }
.adv-card .chapter-card__state { color: var(--navy); }
.adv-card.is-done { border-color: #bcdccb; }
.adv-card.is-done .chapter-card__state { color: var(--ok); }
.tagchip { display: inline-block; padding: 3px 10px; border-radius: 20px; background: var(--teal-soft); color: var(--teal); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tagchip--gov { background: var(--gold-soft); color: #8A6418; }

/* Highlights band */
.adv-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.adv-band__item { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.adv-band__item svg { width: 40px; height: 40px; margin-bottom: 14px; }
.adv-band__item h3 { margin-bottom: 8px; }
.adv-band__item p { color: var(--muted); font-size: 15px; }

/* ---------- Chapter page ---------- */
.chapter-hero--adv { background: radial-gradient(700px 300px at 90% 0%, rgba(184, 134, 43, .18), transparent 60%), linear-gradient(135deg, #061624, #0F2F47 60%, #15405E); }
.chapter-hero--adv .chapter-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chapter-hero--adv .tagchip { background: rgba(255, 255, 255, .1); color: #DBE6ED; }
.chapter-hero--adv .tagchip--gov { background: rgba(241, 217, 162, .16); color: #F1D9A2; }
.toc--adv a[aria-current="page"] { border-left-color: var(--gold); }

/* Objectives */
.objectives { margin: 0 0 2.2em; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, #FAFBFC); }
.objectives__title { margin-bottom: 10px !important; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.objectives ul { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 8px; }
.objectives li { position: relative; padding-left: 28px; margin: 0 !important; font-size: 15.5px; }
.objectives li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-soft); box-shadow: inset 0 0 0 5px var(--teal); }

/* Figures (original SVG diagrams) */
.fig { margin: 2em 0 2.2em; padding: 0; }
.fig__frame { padding: clamp(14px, 3vw, 26px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fig__frame--dark { background: linear-gradient(160deg, #0B2234, #143A55); border-color: #0B2234; }
.fig svg { display: block; width: 100%; min-width: 540px; height: auto; font-family: Inter, Arial, sans-serif; }
.fig figcaption { margin-top: 10px; color: var(--muted); font-size: 13.8px; line-height: 1.55; }
.fig figcaption b { color: var(--ink); }
.fig__hint { display: none; margin-top: 6px; color: #8a94a3; font-size: 12.5px; }

/* Animated diagram parts (paused for reduced motion) */
.flowline { stroke-dasharray: 6 8; animation: nz-flow 1.4s linear infinite; }
.pulse { transform-box: fill-box; transform-origin: center; animation: nz-pulse 2.4s ease-in-out infinite; }
.orbit { transform-box: view-box; animation: nz-spin 9s linear infinite; }
.glow { animation: nz-glow 2.8s ease-in-out infinite; }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-in .draw { animation: nz-draw 1.8s ease forwards; }
@keyframes nz-flow { to { stroke-dashoffset: -28; } }
@keyframes nz-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .75; } }
@keyframes nz-spin { to { transform: rotate(360deg); } }
@keyframes nz-glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes nz-draw { to { stroke-dashoffset: 0; } }

/* Reveal on scroll (only when JS is running; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Key numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.6em 0 2em; }
.stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.stat strong { display: block; color: var(--navy); font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13.8px; line-height: 1.45; }

/* Two-column comparison */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.compare__col { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.compare__col h3 { margin-bottom: 10px !important; }
.compare__col ul { margin: 0 !important; padding-left: 1.1em !important; font-size: 15px; }
.compare__col--bad { border-top: 3px solid var(--bad); }
.compare__col--good { border-top: 3px solid var(--ok); }

/* Grid of small cards (principles, functions, controls) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.4em 0 2em; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mini__k { display: inline-block; margin-bottom: 8px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mini h3 { margin-bottom: 6px !important; font-size: 1rem !important; }
.mini p { margin: 0 !important; color: var(--muted); font-size: 14.6px; line-height: 1.55; }

/* Timeline */
.timeline { position: relative; margin: 1.6em 0 2.2em; padding: 0 0 0 30px !important; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--gold)); border-radius: 2px; }
.timeline li { position: relative; margin: 0 0 18px !important; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline li.is-key::before { border-color: var(--gold); }
.timeline__date { display: block; color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.timeline__text { display: block; font-size: 15.5px; }

/* Glossary */
.terms { margin: 1.4em 0 2em; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.terms div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terms div:last-child { border-bottom: 0; }
.terms dt { color: var(--ink); font-weight: 700; font-size: 15px; }
.terms dd { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }

/* "Go deeper" expandable */
.deep { margin: 1.6em 0 2em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.deep summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; }
.deep summary::-webkit-details-marker { display: none; }
.deep summary::before { content: "+"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.deep[open] summary::before { content: "–"; }
.deep summary span { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: auto; letter-spacing: .08em; text-transform: uppercase; }
.deep__body { padding: 0 20px 18px 58px; font-size: 15.5px; }
.deep__body p:last-child { margin-bottom: 0; }

/* Case study */
.case { margin: 2em 0; padding: 26px 28px; border-radius: var(--radius); background: linear-gradient(150deg, #0B2234, #173F5F); color: #DBE6ED; }
.case__label { margin-bottom: 8px !important; color: #F1D9A2; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case h3 { color: #fff !important; margin-bottom: 10px !important; font-size: 1.15rem !important; }
.case p, .case li { color: #DBE6ED; }
.case strong { color: #fff; }
.case ul { margin-bottom: 0 !important; }
.case li::marker { color: #F1D9A2; }

/* Checklist */
.checklist { margin: 1.2em 0 2em !important; padding: 0 !important; list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; margin: 0 !important; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 15.5px; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 6px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Pull statement */
.pull { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--ink); font-size: 1.22rem; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }

/* Source note at the end of governance chapters */
.sources { margin-top: 2.2em; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.sources p { margin: 0 0 6px !important; }

/* Quiz page tweaks */
.quiz-hero--adv { background: linear-gradient(135deg, #061624, #0F2F47 60%, #15405E); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .adv-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .adv-hero__art { max-width: 520px; }
  .adv-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .adv-list, .compare, .cards, .cards--3, .stats { grid-template-columns: 1fr; }
  .adv-card { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px 20px 20px; }
  .adv-card__num { width: 52px; height: 52px; font-size: 18px; border-radius: 13px; }
  .terms div { grid-template-columns: 1fr; gap: 4px; }
  .fig__hint { display: block; }
  .deep__body { padding-left: 20px; }
  .case { padding: 22px 20px; }
  .track-switch { display: flex; width: 100%; }
  .track-switch a { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .flowline, .pulse, .orbit, .glow { animation: none !important; }
  .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Keep wide diagrams inside their own scroll box on small screens */
.chapter-layout > *, .prose, .fig, .fig__frame { min-width: 0; max-width: 100%; }
