:root {
  --indigo: #2D2AA5;
  --indigo-2: #3C43B0;
  --indigo-deep: #1D1A6B;
  --ink: #292738;
  --body: #4E4D5C;
  --muted: #62616F;
  --faint: #8C8B96;
  --line: #E7E7E9;
  --tint: #E6EAF8;
  --soft: #F5F6FA;
  --green: #40CAA1;
  --green-ink: #1E7F63;
  --amber: #FFC454;
  --amber-ink: #8A5A00;
  --red: #E5484D;
  --hb-bg: #0F1117;
  --hb-blue: #3E88F7;
  --hb-blue-2: #6AA6FF;
  --nav-w: 292px;
  --content-w: 860px;
  --radius: 16px;
}

@font-face {
  font-family: 'Assist Sans';
  src: url('img/SourceSans3VF.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: 'Assist Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }
b, strong { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------ progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--hb-blue), var(--indigo)); z-index: 60; }

/* ------------------------------------------------------------ side nav */
.nav {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 40;
  background: #FBFBFE; border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.nav-brand { padding: 22px 24px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.nav-brand img.hf { height: 24px; }
.nav-brand .assist { font-weight: 700; color: var(--indigo); font-size: 19px; padding-left: 10px; border-left: 1.5px solid #CED5F0; line-height: 22px; }
.nav-sub { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--faint); padding: 16px 24px 6px; }
.nav-list { list-style: none; margin: 0; padding: 0 12px 24px; overflow-y: auto; flex: 1; }
.nav-list li { margin: 1px 0; }
.nav-list a {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 12px; border-radius: 10px;
  text-decoration: none; color: var(--body); font-size: 15px; line-height: 1.35;
}
.nav-list a .n { font-size: 12px; font-weight: 800; color: var(--faint); min-width: 20px; }
.nav-list a:hover { background: var(--soft); color: var(--ink); }
.nav-list a.active { background: var(--tint); color: var(--indigo); font-weight: 700; }
.nav-list a.active .n { color: var(--indigo); }
.nav-list a.parent-active { color: var(--indigo); font-weight: 700; }
.nav-list a.parent-active .n { color: var(--indigo); }
.nav-list .sub { display: none; }
.nav-list .sub.show { display: block; }
.nav-list .sub a { padding: 4px 12px 4px 42px; font-size: 14px; color: var(--muted); }
.nav-list .sub a.active { background: transparent; color: var(--indigo); font-weight: 700; }
.nav-foot { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--indigo); }
.end .tagline { color: var(--indigo); font-weight: 700; }

.menu-btn { display: none; }
.mobile-bar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 45; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); align-items: center; padding: 0 16px 0 72px; gap: 10px; }
.mobile-bar img { height: 20px; }
.mobile-bar .assist { font-weight: 700; color: var(--indigo); font-size: 17px; padding-left: 9px; border-left: 1.5px solid #CED5F0; line-height: 20px; }

/* ------------------------------------------------------------ main */
main { margin-left: var(--nav-w); }
.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 40px; }
.wrap.wide { max-width: 1060px; }

/* hero: HostBuddy dark melting into Hostfully indigo */
.hero {
  position: relative; overflow: hidden; color: #F3F4F6;
  background:
    radial-gradient(ellipse 80% 55% at 70% 0%, rgba(62,136,247,0.28), rgba(62,136,247,0) 70%),
    linear-gradient(180deg, var(--hb-bg) 0%, var(--hb-bg) 46%, #15144A 72%, var(--indigo) 100%);
  padding: 52px 0 0;
}
.hero .top { display: flex; justify-content: space-between; align-items: center; }
.hero .hb-brand { display: flex; align-items: center; gap: 10px; }
.hero .hb-brand img.mark { width: 34px; height: 34px; }
.hero .hb-brand img.word { height: 22px; }
.hero .hb-brand .x { color: #6B7280; font-size: 18px; margin: 0 4px; }
.hero .hb-brand img.hf { height: 24px; filter: brightness(0) invert(1); opacity: 0.92; }
.hero .date { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #8A93A3; font-weight: 700; }
.hero .eyebrow { color: var(--hb-blue-2); margin-top: 54px; }
.hero h1 { font-size: 58px; line-height: 1.04; letter-spacing: -0.02em; margin: 54px 0 18px; color: #fff; font-weight: 800; }
.hero h1 .hl { color: var(--hb-blue-2); }
.hero p.lead { color: #C9CED8; font-size: 20px; max-width: 660px; }
.hero .chips { display: flex; gap: 8px; margin: 22px 0 0; flex-wrap: wrap; }
.hero .chips span { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; background: rgba(62,136,247,0.14); color: #A9C9FF; border: 1px solid rgba(106,166,255,0.25); }
.hero .stage { margin-top: 46px; position: relative; }
.hero .stage img { border-radius: 14px 14px 0 0; box-shadow: 0 -10px 60px rgba(62,136,247,0.25); border: 1px solid rgba(255,255,255,0.08); border-bottom: 0; }

/* ------------------------------------------------------------ sections */
section.chapter { padding: 0 0 40px; }
.chapter-head { margin-bottom: 26px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); margin-bottom: 10px; display: flex; align-items: center; }
.chapter-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 13px; font-weight: 800; margin-right: 10px; letter-spacing: 0; }
h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; color: var(--ink); font-weight: 800; }
h2 .hl, h3 .hl { color: var(--indigo); }
h3 { font-size: 25px; line-height: 1.2; margin: 56px 0 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.005em; scroll-margin-top: 24px; }
h4 { font-size: 18px; margin: 26px 0 6px; color: var(--ink); font-weight: 800; }
p.lead { font-size: 20px; line-height: 1.55; color: var(--body); margin: 0 0 18px; }
p { margin: 0 0 14px; }

ul.check, ul.dots { list-style: none; padding: 0; margin: 10px 0 20px; }
ul.check li, ul.dots li { position: relative; padding-left: 30px; margin: 9px 0; }
ul.check li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232D2AA5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
ul.dots li::before { content: ''; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgba(45,42,165,0.12); }

/* ------------------------------------------------------------ figures */
figure { margin: 22px 0 30px; }
figure .frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(41,39,56,0.10); cursor: zoom-in; transition: transform 0.15s ease, box-shadow 0.15s ease; }
figure .frame:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #CED5F0, 0 22px 46px rgba(41,39,56,0.14); }
figure.browser .bar { height: 30px; background: #F1F1F4; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
figure.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9D8E3; display: inline-block; }
figure.browser .bar span { margin-left: 12px; flex: 1; max-width: 380px; height: 18px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--faint); display: flex; align-items: center; padding: 0 8px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
figcaption b { color: var(--ink); }
figure.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
figure.xnarrow { max-width: 400px; margin-left: auto; margin-right: auto; }
figure.bleed { margin-left: -60px; margin-right: -60px; }
/* groups: .row lines images up, .side puts text next to an image, .stack puts them one under the other */
.figs { margin: 22px 0 30px; }
.figs figure { margin: 0; }
figure .frame { position: relative; max-width: var(--nat, none); margin-left: auto; margin-right: auto; }
.figs-in { display: grid; margin: 0 auto; }
.figs.row .figs-in { grid-template-columns: var(--cols); gap: 10px 22px; }
.figs.row figure { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.figs.row figure > .frame { align-self: center; width: 100%; }
.figs.row figcaption { margin-top: 0; align-self: start; }
.figs.side .figs-in { grid-template-columns: var(--cols); gap: 30px; align-items: center; }
.side-text > :first-child { margin-top: 0; }
.side-text > :last-child { margin-bottom: 0; }
.figs.stack { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.figs.stack figure { width: 100%; max-width: var(--nat); }

/* ------------------------------------------------------------ cards & callouts */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 26px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; background: #fff; }
.card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--indigo); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.card .ic svg { width: 19px; height: 19px; }
.card h4 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.card .big { font-size: 38px; font-weight: 800; color: var(--indigo); letter-spacing: -0.01em; line-height: 1; margin-bottom: 8px; }
.card.feature { background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); border: 0; color: #E6EAF8; }
.card.feature .big, .card.feature h4 { color: #fff; }
.card.feature p { color: #E6EAF8; }

.callout { border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 24px; background: var(--soft); border: 1px solid var(--tint); font-size: 16px; }
.callout .k { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 4px; }
.callout.say { background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); border: 0; color: #E6EAF8; }
.callout.say .k { color: #CED5F0; }
.callout.say b { color: #fff; }
.callout.warn { background: #FFF8E8; border-color: #FFE3A6; }
.callout.warn .k { color: var(--amber-ink); }
.callout.support { background: #EEF9F5; border-color: #C7EEDF; }
.callout.support .k { color: var(--green-ink); }

/* ------------------------------------------------------------ steps / journey */
.timeline { list-style: none; padding: 0; margin: 18px 0 26px; counter-reset: step; }
.timeline > li { position: relative; padding: 0 0 22px 56px; counter-increment: step; }
.timeline > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.timeline > li::after { content: ''; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--tint); }
.timeline > li:last-child::after { display: none; }
.timeline h4 { margin: 5px 0 4px; }
.timeline p { margin: 0; }


.sections-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 18px 0 8px; }
.sections-strip a { text-decoration: none; text-align: center; border-radius: 12px; padding: 12px 6px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; background: #fff; }
.sections-strip a span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.sections-strip a.lock { background: var(--soft); }
.sections-strip a:hover { border-color: var(--indigo); }

/* ------------------------------------------------------------ tables */
table.t { width: 100%; border-collapse: collapse; margin: 14px 0 26px; font-size: 15.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 0 12px 10px; border-bottom: 2px solid #CED5F0; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
table.t td:first-child { color: var(--ink); font-weight: 700; }
table.t.nw td:first-child { white-space: nowrap; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.indigo { background: var(--tint); color: var(--indigo); }
.pill.green { background: rgba(64,202,161,0.16); color: var(--green-ink); }
.pill.amber { background: rgba(255,196,84,0.24); color: var(--amber-ink); }
.pill.red { background: rgba(229,72,77,0.12); color: #C1363B; }
.pill.grey { background: #F1F1F4; color: #55525E; }
.pill.purple { background: rgba(138,91,218,0.14); color: #6B3FC0; }

/* ------------------------------------------------------------ white label */
.brandflow { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; margin: 26px 0 0; }
.bcard { border-radius: 18px; padding: 22px 22px 24px; }
.bcard.hb { background: var(--hb-bg); border: 1px solid #262A33; color: #F3F4F6; }
.bcard.hb p { color: #C9CFD9; }
.bcard.hf { background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(17,16,48,0.08); }
.bcard .role { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
.bcard.hb .role { color: #A9C9FF; background: rgba(62,136,247,0.16); }
.bcard.hf .role { color: var(--indigo); background: var(--tint); }
.bcard .logo { display: flex; align-items: center; gap: 9px; height: 30px; margin-bottom: 12px; }
.bcard .logo img.mark { width: 28px; height: 28px; }
.bcard .logo img.word { height: 18px; }
.bcard .logo img.hf { height: 34px; }
.bcard p { margin: 0; font-size: 15.5px; }
.brandflow .plus { display: flex; align-items: center; justify-content: center; }
.brandflow .plus { font-size: 0; }
.brandflow .plus::before { content: '+'; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--hb-blue-2) 0%, #4038C4 50%, var(--indigo) 100%);
  box-shadow: 0 8px 20px rgba(45,42,165,0.3); }
.brand-result { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 34px; padding: 16px 20px;
  border-radius: 16px; background: linear-gradient(90deg, #F2F3FC, #E6EAF8 50%, #F2F3FC); border: 1px solid #CED5F0; }
.brand-result .eq { font-size: 26px; font-weight: 800; color: var(--indigo); line-height: 1; }
.brand-result .logo { display: inline-flex; align-items: center; gap: 8px; }
.brand-result .logo { gap: 10px; }
.brand-result .logo img.hf { height: 34px; }
.brand-result .logo .assist { font-weight: 700; color: var(--indigo); font-size: 17px; line-height: 20px; padding-left: 10px; border-left: 1.5px solid #CED5F0; }
.brand-result .txt { font-size: 15.5px; font-weight: 600; color: var(--body); }

/* ------------------------------------------------------------ Q&A */
.qa { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 15px 20px; font-weight: 800; color: var(--ink); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-size: 22px; color: var(--indigo); font-weight: 400; line-height: 1; }
.qa[open] summary::after { content: '–'; }
.qa[open] summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.qa .body { padding: 14px 20px 6px; }
.quote { border-left: 3px solid var(--indigo); padding: 2px 0 2px 16px; margin: 10px 0 16px; color: var(--ink); font-style: italic; }

/* ------------------------------------------------------------ footer */
.end { margin-top: 80px; padding: 36px 0 60px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.end .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------ lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,17,23,0.82); display: none; align-items: center; justify-content: center; z-index: 80; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 96vw); max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: #fff; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav { transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 0 0 40px rgba(0,0,0,0.12); }
  .nav.open { transform: none; }
  main { margin-left: 0; }
  .menu-btn { display: flex; position: fixed; top: 10px; left: 14px; z-index: 50; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.08); cursor: pointer; }
  figure.bleed { margin-left: 0; margin-right: 0; }
}
@media (max-width: 1100px) {
  html { scroll-padding-top: 76px; }
  h3 { scroll-margin-top: 0; }
  main { padding-top: 64px; }
  .mobile-bar { display: flex; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t tr:first-child { display: none; }
  table.t tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.t td { border: 0; padding: 2px 4px; }
  table.t td:first-child { white-space: normal !important; }
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .figs.row .figs-in, .figs.side .figs-in { grid-template-columns: 1fr; gap: 22px; }
  .figs.row figure { display: block; }
  .figs.row figcaption { margin-top: 10px; }
  .cards, .cards.three, .brandflow, .sections-strip { grid-template-columns: 1fr; }
  .brandflow .plus { height: 56px; }
}
@media print {
  .nav, .menu-btn, .progress, .lightbox { display: none !important; }
  main { margin-left: 0; }
  section.chapter { break-before: page; }
  figure, .card, .callout, .qa { break-inside: avoid; }
}

/* ============================================================ course mode */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.btn.primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px rgba(45,42,165,0.22); }
.btn.primary:hover { background: var(--indigo-2); transform: translateY(-1px); }
.btn.primary:disabled { background: #B9B8D9; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; color: var(--indigo); border-color: #CED5F0; }
.btn.ghost:hover { border-color: var(--indigo); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--indigo); text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }
.row-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }


/* nav progress */
.course-progress { padding: 14px 24px 4px; }
.cp-text { font-size: 13px; color: var(--muted); }
.cp-text b { color: var(--indigo); font-size: 15px; }
.cp-bar { height: 6px; border-radius: 999px; background: var(--tint); margin-top: 8px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #31B58E); border-radius: 999px; transition: width 0.4s ease; }
.nav-list li.ch.done > a .n { color: #fff; background: #31B58E; border-radius: 50%; width: 19px; height: 19px; min-width: 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 0; align-self: center; }
.nav-list li.ch.done > a .n::before { content: '✓'; font-size: 11px; font-weight: 800; }

/* quiz */
.qz { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.qz legend { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.4; margin-bottom: 10px; padding: 0; }
.qz .qn { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--indigo); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.opts { display: grid; gap: 8px; padding-left: 38px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; line-height: 1.45; transition: border-color 0.12s ease, background 0.12s ease; }
.opt:hover { border-color: #CED5F0; }
.opt input { margin: 4px 0 0; accent-color: var(--indigo); flex: 0 0 auto; width: 16px; height: 16px; }
.opt.picked { border-color: var(--indigo); background: #F7F8FD; }
.qz.right .opt.picked, .qz .opt.is-answer { border-color: #31B58E; background: rgba(64,202,161,0.10); }
.qz.wrong .opt.picked { border-color: var(--red); background: rgba(229,72,77,0.07); }
.qz.right legend .qn { background: #31B58E; color: #fff; }
.qz.wrong legend .qn { background: var(--red); color: #fff; }
.qz .opt input:disabled { cursor: default; }
.qz.right .opt, .qz.wrong .opt { cursor: default; }
.why { margin: 10px 0 0 38px; padding: 11px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; background: var(--soft); border: 1px solid var(--tint); }
.why b { margin-right: 2px; }
.why a { font-weight: 700; white-space: nowrap; }
.quiz-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-left: 38px; }
.quiz-hint { color: var(--muted); font-size: 14.5px; }
.quiz-result { margin-top: 22px; border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-result b { display: block; font-size: 17px; }
.quiz-result span { font-size: 15px; }
.quiz-result.pass { background: rgba(64,202,161,0.12); border: 1px solid #C7EEDF; }
.quiz-result.pass b { color: var(--green-ink); }
.quiz-result.fail { background: #FFF8E8; border: 1px solid #FFE3A6; }
.quiz-result.fail b { color: var(--amber-ink); }

/* completion */
.course-table td a { color: var(--ink); text-decoration: none; }
.course-table td a:hover { color: var(--indigo); }
.course-table td:nth-child(2) { white-space: nowrap; }
.reset-row { margin-top: 26px; font-size: 14px; color: var(--faint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cert-form { margin: 26px 0 18px; }
.cert-form label { display: block; margin-bottom: 8px; }
.cert-form input { height: 42px; flex: 1 1 260px; max-width: 420px; border-radius: 12px; border: 1.5px solid #CED5F0; padding: 0 14px; font: inherit; color: var(--ink); }
.cert-form input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(45,42,165,0.12); }
.cert-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
/* The certificate itself is never shown on the page: it only appears when printing or saving as PDF. */
#cert-area .cert { display: none; }
.cert { border-radius: 22px; padding: 14px; background: linear-gradient(135deg, var(--indigo), #5B57D6 55%, var(--hb-blue)); box-shadow: 0 24px 60px rgba(45,42,165,0.25); }
.cert-inner { background: #fff; border-radius: 14px; padding: 46px 40px 38px; text-align: center; background-image: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(45,42,165,0.07), rgba(45,42,165,0) 70%); }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; }
.cert-brand img { height: 30px; }
.cert-brand span { font-weight: 700; color: var(--indigo); font-size: 22px; padding-left: 10px; border-left: 1.5px solid #CED5F0; line-height: 26px; }
.cert-kicker { margin-top: 30px; font-size: 13px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--indigo); }
.cert-line { margin-top: 18px; font-size: 17px; color: var(--body); line-height: 1.5; }
.cert-name { margin-top: 10px; font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; line-height: 1.1; border-bottom: 2px solid var(--tint); display: inline-block; padding: 0 24px 10px; min-width: 60%; }
.cert-meta { display: flex; justify-content: center; gap: 44px; margin-top: 32px; flex-wrap: wrap; }
.cert-meta div { display: flex; flex-direction: column; gap: 2px; }
.cert-meta span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.cert-meta b { font-size: 17px; }
.cert-partners { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.cert-partners .cp-hf { height: 26px; }
.cert-partners .cp-x { font-size: 18px; font-weight: 600; color: var(--faint); }
.cert-partners .cp-hb { display: inline-flex; align-items: center; gap: 8px; }
.cert-partners .cp-mark { width: 28px; height: 28px; }
.cert-partners .cp-word { height: 17px; }

@media (max-width: 760px) {
  .opts, .quiz-actions { padding-left: 0; }
  .why { margin-left: 0; }
  .cert-inner { padding: 30px 18px; }
  .cert-name { font-size: 32px; min-width: 0; }
}
@media print {
  .quiz, .course-cta, .course-progress, #course-summary, #cert-area, .reset-row { display: none !important; }
  html.print-cert body > *:not(main) { display: none !important; }
  html.print-cert main > *:not(#certificate) { display: none !important; }
  html.print-cert #certificate { padding: 0; border: 0; break-before: avoid !important; page-break-before: avoid !important; }
  html.print-cert main { padding-top: 0 !important; }
  html.print-cert #certificate .chapter-head, html.print-cert #certificate .ch-banner, html.print-cert #course-summary, html.print-cert .reset-row, html.print-cert .cert-form, html.print-cert #lock-bar { display: none !important; }
  html.print-cert #certificate > .wrap > *:not(#cert-area) { display: none !important; }
  html.print-cert main, html.print-cert #certificate, html.print-cert #certificate > .wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; background: none !important; }
  html.print-cert .cert { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  html.print-cert #cert-area { display: block !important; }
  html.print-cert #cert-area .cert { display: block !important; }
  html.print-cert .cert { box-shadow: none; margin: 0.6in auto 0; max-width: 9in; }
}

.cp-reset { font-size: 12.5px; color: var(--faint); margin-top: 8px; text-decoration: underline; }
.cp-reset:hover { color: var(--indigo); }

/* preference recommendations */
.card.pref p { margin: 0 0 10px; }
.sug { font-size: 15px; line-height: 1.5; color: var(--ink); margin: 10px 0 0; }
.sug span { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink); background: rgba(64,202,161,0.16); border-radius: 999px; padding: 2px 9px; margin-right: 8px; vertical-align: 1px; }
.card.pref .sug { border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.card.pref { display: flex; flex-direction: column; }
.note { font-size: 14px; color: var(--muted); margin-top: -8px; }
table.t small { font-size: 13px; color: var(--muted); font-weight: 400; }
figure .frame:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

/* ============================================================ visual redesign */
body { background: #FBFBFE; }
main { background: #fff; }

/* chapter banner */
.ch-banner { position: relative; overflow: hidden; color: #fff; padding: 64px 0 46px; margin-bottom: 40px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(106,166,255,0.35), rgba(106,166,255,0) 60%),
    radial-gradient(ellipse 50% 90% at 0% 100%, rgba(138,91,218,0.30), rgba(138,91,218,0) 65%),
    linear-gradient(135deg, #1D1A6B 0%, var(--indigo) 55%, #4038C4 100%); }
.ch-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.ch-banner .wrap { position: relative; z-index: 1; display: flex; gap: 28px; align-items: flex-start; }
.ch-num { flex: 0 0 auto; font-size: 112px; line-height: 0.82; font-weight: 900; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.14); -webkit-text-stroke: 1.5px rgba(255,255,255,0.45); margin-top: 4px; min-width: 76px; }
.ch-text { flex: 1; min-width: 0; }
.ch-banner .eyebrow { color: #CED5F0; margin-bottom: 12px; }
.ch-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.14); display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; color: #fff; }
.ch-ic svg { width: 17px; height: 17px; }
.ch-banner h2 { color: #fff; font-size: 44px; margin-bottom: 12px; }
.ch-banner h2 .hl { color: #A9C9FF; }
.ch-banner p.lead { color: #E6EAF8; margin: 0; max-width: 680px; }
.ch-meta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.ch-meta span { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
#certificate .ch-banner { background: linear-gradient(135deg, #0F1117 0%, #1D1A6B 60%, var(--indigo) 100%); }

/* section headings with an accent */
h3 { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.h3-ic { flex: 0 0 auto; width: 10px; height: 26px; border-radius: 4px; background: linear-gradient(180deg, var(--hb-blue), var(--indigo)); }

/* screenshots on a soft stage */
:is(.wrap, .st-panel) > figure, :is(.wrap, .st-panel) > .figs { position: relative; }
:is(.wrap, .st-panel) > figure:not(.narrow):not(.xnarrow) { padding: 22px; border-radius: 22px; margin-left: -22px; margin-right: -22px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #EEF0FB 0%, #F6F7FC 55%, #FBFBFE 100%); }
:is(.wrap, .st-panel) > figure.narrow, :is(.wrap, .st-panel) > figure.xnarrow { padding: 18px; border-radius: 20px; background: #F4F5FB; }
:is(.wrap, .st-panel) > .figs { padding: 20px; border-radius: 22px; margin-left: -20px; margin-right: -20px; background: #F6F7FC; }
figure .frame { box-shadow: 0 0 0 1px rgba(45,42,165,0.08), 0 20px 44px rgba(29,26,107,0.12); }
figcaption { font-weight: 600; color: var(--body); }

/* tables: softer, with header band */
table.t { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fff; }
table.t th { background: #F5F6FA; padding-top: 11px; border-bottom: 1px solid #E6EAF8; }
table.t tr:nth-child(even) td { background: #FCFCFE; }
table.t td, table.t th { padding-left: 16px; padding-right: 16px; }

/* cards and callouts with more presence */
.card { box-shadow: 0 1px 2px rgba(41,39,56,0.04), 0 10px 26px rgba(29,26,107,0.05); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(41,39,56,0.05), 0 16px 34px rgba(29,26,107,0.09); }
.card.feature { box-shadow: 0 18px 40px rgba(45,42,165,0.25); position: relative; overflow: hidden; }
.card.feature::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.callout { border-left: 4px solid var(--indigo); }
.callout.support { border-left-color: #31B58E; }
.callout.warn { border-left-color: #F0B23C; }
.callout.say { border-left: 0; box-shadow: 0 16px 36px rgba(45,42,165,0.22); }

/* chapter 1: four step cards */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 30px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px;
  box-shadow: 0 10px 26px rgba(29,26,107,0.06); }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 1px solid #CED5F0; color: var(--indigo); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 2; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 6px 14px rgba(45,42,165,0.3); }
.step-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.step-ic svg { width: 20px; height: 20px; }
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; }


/* timelines: icon-like numbers with glow */
.timeline > li::before { box-shadow: 0 6px 14px rgba(45,42,165,0.28); }
.timeline > li::after { background: linear-gradient(180deg, #CED5F0, #E6EAF8); }

/* quiz block stands out at chapter end */



@media (max-width: 1100px) {
  .steps4 { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .ch-banner { padding: 40px 0 32px; }
  .ch-banner .wrap { flex-direction: column; gap: 6px; }
  .ch-num { font-size: 72px; }
  .ch-banner h2 { font-size: 32px; }
  .steps4 { grid-template-columns: 1fr; }
  .step::after { display: none; }
  :is(.wrap, .st-panel) > figure:not(.narrow):not(.xnarrow), :is(.wrap, .st-panel) > .figs { margin-left: -12px; margin-right: -12px; padding: 12px; }
}
@media print {
  .ch-banner { color: var(--ink); background: none; }
}
.why.miss { background: #FFF7F7; border-color: #F6D3D4; }
.why.miss b { color: #C1363B; }

/* ------------------------------------------------------------ media labels and controls */
/* caption labels: what kind of media it is */
.ftag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 9px 3px 8px; margin-right: 9px; vertical-align: 2px; line-height: 1.2; }
.ftag { color: var(--indigo); background: var(--tint); }
.ftag svg { width: 11px; height: 11px; }

/* screenshots: hovering shows a "Click to enlarge" button; touch screens get a small corner icon */
.zoom-hint { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(29,26,107,0.08); opacity: 0; transition: opacity 0.2s ease; }
.zoom-hint > i { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; font-style: normal;
  background: rgba(45,42,165,0.95); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 10px 26px rgba(29,26,107,0.3); }
.zoom-hint svg { width: 17px; height: 17px; }
figure .frame:hover .zoom-hint, figure .frame:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) {
  .zoom-hint { inset: auto 8px 8px auto; background: none; opacity: 1; }
  .zoom-hint > i { height: 30px; width: 30px; padding: 0; justify-content: center; box-shadow: 0 4px 12px rgba(29,26,107,0.3); }
  .zoom-hint > i span { display: none; }
}

/* videos: a title above, a play button on the first frame, the player bar on hover once started */
.vtitle { display: flex; align-items: center; gap: 10px; max-width: var(--nat); margin: 0 auto 12px; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.vt-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--hb-blue-2) 0%, #4038C4 50%, var(--indigo) 100%); box-shadow: 0 4px 12px rgba(45,42,165,0.28); }
.vt-ic svg { width: 13px; height: 13px; margin-left: 2px; }
.vt-text { flex: 1; min-width: 0; }
.vtitle em { flex: 0 0 auto; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
figure.vid .vframe { cursor: pointer; background: #F4F5FB; }
figure.vid video { display: block; width: 100%; height: auto; }
.vbig { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(29,26,107,0.02) 0%, rgba(29,26,107,0.16) 100%); transition: opacity 0.25s ease, background 0.25s ease; }
.vb-pill { display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; background: rgba(255,255,255,0.97);
  box-shadow: 0 0 0 1px rgba(45,42,165,0.10), 0 18px 44px rgba(29,26,107,0.28); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.vb-ic { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--hb-blue-2) 0%, #4038C4 50%, var(--indigo) 100%); box-shadow: 0 6px 16px rgba(45,42,165,0.38); }
.vb-ic::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(64,56,196,0.4); animation: vbPulse 2.4s ease-out infinite; }
.vb-ic svg { width: 19px; height: 19px; margin-left: 3px; }
.vb-txt { font-size: 15px; font-weight: 800; color: var(--indigo); white-space: nowrap; }
.vb-len { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 11px; border-left: 1px solid var(--line); }
.vbig:hover { background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(29,26,107,0.06) 0%, rgba(29,26,107,0.24) 100%); }
.vbig:hover .vb-pill { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(45,42,165,0.14), 0 24px 54px rgba(29,26,107,0.34); }
.vbig:focus-visible .vb-pill { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes vbPulse { 0% { transform: scale(0.92); opacity: 0.9; } 70%, 100% { transform: scale(1.32); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vb-ic::after { animation: none; opacity: 0; } }
figure.vid.playing .vbig { opacity: 0; pointer-events: none; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 26px 10px 9px;
  color: #fff; background: linear-gradient(180deg, rgba(15,17,35,0) 0%, rgba(15,17,35,0.55) 55%, rgba(15,17,35,0.78) 100%); cursor: default;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
figure.vid.started .vframe:hover .vbar, figure.vid.started .vframe:has(:focus-visible) .vbar { opacity: 1; transform: none; pointer-events: auto; }
figure.vid.playing .vframe::after { content: ''; position: absolute; left: 0; bottom: 0; z-index: 1; height: 4px; width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--hb-blue), var(--indigo)); }
@media (hover: none) { figure.vid.started .vbar { opacity: 1; transform: none; pointer-events: auto; } }
.vbar button { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.18); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s ease; }
.vbar button:hover, .vbar button:focus-visible { background: rgba(255,255,255,0.34); }
.vbar button svg { width: 15px; height: 15px; }
.vpp i { width: 10px; height: 12px; border-left: 3.5px solid #fff; border-right: 3.5px solid #fff; box-sizing: border-box; }
figure.vid:not(.playing) .vpp i { width: 0; height: 0; border-left: 11px solid #fff; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.vprog { position: relative; flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.32); cursor: pointer; }
.vprog::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
.vprog i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: #fff; }
.vprog i::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.vprog:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.vtime { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
figure.vid .frame:hover { transform: none; }
/* a video next to an image: titles, frames and captions each on their own line */
.figs.row.has-vid figure { grid-row: span 3; }
.figs.row.has-vid figure > .vtitle { grid-row: 1; margin-bottom: 0; align-self: end; }
.figs.row.has-vid figure > .frame { grid-row: 2; }
.figs.row.has-vid figure > figcaption { grid-row: 3; }
@media (max-width: 760px) { .figs.row figure { grid-row: auto !important; } .figs.row.has-vid figure > .vtitle { margin-bottom: 12px; } }

/* lightbox */
.lightbox video { max-width: min(1400px, 96vw); max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: #fff; cursor: default; }
.lb-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255,255,255,0.3); }

/* ------------------------------------------------------------ step-by-step scenario */
.stepper { margin: 22px 0 10px; }
.st-tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
.st-tab { position: relative; display: block; text-align: left; font: inherit; font-size: 14.5px; line-height: 1.35; color: var(--body); cursor: pointer;
  padding: 14px 14px 15px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(29,26,107,0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.st-tab b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 4px; }
.st-tab .j-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--indigo); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.st-tab .j-ic svg { width: 18px; height: 18px; }
.st-tab:hover { border-color: #CED5F0; transform: translateY(-2px); }
.st-tab:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.st-tab[aria-selected="true"] { border-color: var(--indigo); color: var(--ink); background: linear-gradient(180deg, #F2F3FC 0%, #FFFFFF 100%);
  box-shadow: 0 0 0 3px rgba(45,42,165,0.12), 0 14px 30px rgba(29,26,107,0.12); transform: none; }
.st-tab[aria-selected="true"] .j-ic { color: #fff; background: linear-gradient(135deg, var(--hb-blue-2) 0%, #4038C4 50%, var(--indigo) 100%); }
.st-panel { margin-top: 16px; padding: 4px 28px 22px; border-radius: 22px; border: 1px solid #CED5F0; background: #fff; box-shadow: 0 18px 44px rgba(29,26,107,0.07); animation: stIn 0.25s ease; }
.st-panel > h3:first-child { margin-top: 22px; }
@keyframes stIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.st-count { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.st-next { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, #4038C4 0%, var(--indigo) 100%); box-shadow: 0 10px 22px rgba(45,42,165,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease; }
.st-next:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(45,42,165,0.34); color: #fff; text-decoration: none; }
@media (max-width: 760px) {
  .st-tabs { grid-template-columns: 1fr 1fr; }
  .st-panel { padding: 2px 14px 18px; }
}
@media print { .st-panel[hidden] { display: block !important; } .st-tabs, .st-foot { display: none; } }
@media (max-width: 760px) {
  .vb-pill { gap: 8px; padding: 5px 12px 5px 5px; }
  .vb-ic { width: 34px; height: 34px; }
  .vb-ic svg { width: 15px; height: 15px; margin-left: 2px; }
  .vb-txt { font-size: 13px; }
  .vb-len { font-size: 11.5px; padding-left: 8px; }
}

/* ------------------------------------------------------------ quiz banner */
.quiz { --quiz: #3DCBA2; --quiz-ink: #0B3B2E; margin: 56px 0 10px; border-radius: 20px; overflow: hidden; scroll-margin-top: 24px;
  background: #fff; box-shadow: 0 0 0 1px rgba(61,203,162,0.45), 0 16px 40px rgba(30,127,99,0.14); }
.quiz-toggle { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px 18px 18px; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--quiz-ink); background: linear-gradient(135deg, #5AD6B2 0%, var(--quiz) 55%, #34BC94 100%); transition: filter 0.15s ease; }
.quiz-toggle:hover { filter: brightness(1.04); }
.quiz-toggle:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; }
.qt-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: #1E7F63; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(11,59,46,0.18); }
.qt-ic svg { width: 22px; height: 22px; }
.qt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quiz-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(11,59,46,0.72); }
.quiz-title { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 2px 0 1px; }
.quiz-meta { font-size: 14px; color: rgba(11,59,46,0.8); }
.quiz-badge { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,0.45); color: var(--quiz-ink); }
.quiz-badge.done { background: #fff; color: #1E7F63; }
.qt-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 16px; border-radius: 999px;
  background: var(--quiz-ink); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.qt-chev { width: 8px; height: 8px; border-right: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 2px;
  transition: transform 0.2s ease, margin 0.2s ease; }
.quiz.open .qt-chev { transform: rotate(-135deg); margin-top: 3px; }
.quiz-body { padding: 4px 28px 24px; }
.quiz-body > form > .qz:first-child { margin-top: 18px; }
@media (max-width: 760px) {
  .quiz-toggle { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .qt-text { flex-basis: calc(100% - 62px); }
  .quiz-badge { order: 3; }
  .qt-action { order: 4; margin-left: auto; }
  .quiz-body { padding: 4px 16px 20px; }
}
@media print { .quiz { display: none; } }

.nav-list li.ch.locked > a { color: var(--faint); }
.nav-list li.ch.locked > a::after {
  content: ''; margin-left: auto; flex: 0 0 auto; width: 13px; height: 13px; opacity: 0.7; align-self: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8B96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-list li.sub.locked { display: none !important; }
/* ------------------------------------------------------------ locked zone */
section.chapter.locked { pointer-events: none; user-select: none; }
section.chapter.locked > * { filter: blur(6px) saturate(0.6); opacity: 0.55; }
section.chapter > * { transition: filter 0.5s ease, opacity 0.5s ease; }
section.chapter.lock-start { position: relative; }
section.chapter.lock-start::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 4px; z-index: 3;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 14px, transparent 14px 24px); opacity: 0.5; }

.lock-bar { position: fixed; z-index: 70; left: calc(var(--nav-w) + 24px); right: 24px; bottom: 20px; margin: 0 auto; max-width: 820px;
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 18px;
  background: rgba(29,26,107,0.94); color: #E6EAF8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(15,17,23,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transform: translateY(140%); opacity: 0; transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease; }
.lock-bar.show { transform: none; opacity: 1; }
.lock-bar .lb-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.lock-bar .lb-text { flex: 1; font-size: 14.5px; line-height: 1.4; }
.lock-bar .lb-text b { display: block; color: #fff; font-size: 15.5px; }
.lock-bar .btn.primary { background: #fff; color: var(--indigo); box-shadow: none; flex: 0 0 auto; }
.lock-bar .btn.primary:hover { background: #E6EAF8; }
.lock-bar .lb-text b.lb-focus { display: inline; font-size: inherit; color: #A9C9FF; }
.lock-bar .lb-dots { display: flex; gap: 5px; margin-top: 8px; }
.lock-bar .lb-dots i { width: 18px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.18); }
.lock-bar .lb-dots i.done { background: #40CAA1; }
.lock-bar .lb-dots i.now { background: #A9C9FF; animation: lbPulse 1.6s ease-in-out infinite; }
@keyframes lbPulse { 50% { opacity: 0.45; } }
@media (max-width: 760px) { .lock-bar .lb-dots i { width: 12px; } }
@media (max-width: 1100px) { .lock-bar { left: 12px; right: 12px; bottom: 12px; } }
@media (max-width: 760px) {
  .lock-bar .lb-text { font-size: 13px; }
  .lock-bar .lb-text b { font-size: 14px; }
}
@media print {
  section.chapter.locked > * { filter: none; opacity: 1; }
  .lock-bar { display: none !important; }
}
