:root {
  --ab-night: #020d1c;
  --ab-navy: #05213a;
  --ab-panel: #082d4d;
  --ab-panel-2: #0b395c;
  --ab-line: rgba(69, 202, 244, .42);
  --ab-line-soft: rgba(69, 202, 244, .18);
  --ab-cyan: #4ad9ff;
  --ab-teal: #31ddb5;
  --ab-yellow: #ffdd42;
  --ab-white: #f7fbff;
  --ab-muted: #b7cce0;
  --ab-shadow: 0 20px 48px rgba(0, 4, 14, .35);
}

html { background: var(--ab-night); }
body.adam-dark-live {
  min-height: 100vh;
  color: var(--ab-white);
  background:
    linear-gradient(rgba(77, 187, 231, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 187, 231, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(14, 87, 137, .72), transparent 48%),
    var(--ab-night) !important;
  background-size: 38px 38px, 38px 38px, auto, auto !important;
  background-attachment: fixed !important;
}

body.adam-dark-live::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 160px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 100%, #0a3654 0 38%, transparent 39%),
    radial-gradient(ellipse at 32% 110%, #082b47 0 44%, transparent 45%),
    radial-gradient(ellipse at 74% 112%, #093653 0 43%, transparent 44%),
    radial-gradient(ellipse at 96% 100%, #0a2e49 0 40%, transparent 41%);
  opacity: .86;
}

.adam-dark-nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 24px));
  min-height: 62px;
  margin: 12px auto 0;
  padding: 8px 11px 8px 17px;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  background: rgba(4, 29, 52, .93);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
}
.adam-dark-brand {
  color: var(--ab-white);
  font-size: 1.42rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.adam-dark-brand span { color: var(--ab-yellow); }
.adam-dark-links { display: flex; justify-content: center; gap: 5px; }
.adam-dark-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  color: #d5e8f6;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}
.adam-dark-links a:hover,
.adam-dark-links a:focus-visible,
.adam-dark-links a.is-active {
  color: var(--ab-yellow);
  background: rgba(55, 176, 220, .13);
  outline: none;
}
.adam-dark-profile {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  overflow: hidden;
  border: 2px solid var(--ab-cyan);
  border-radius: 50%;
  background: var(--ab-yellow);
}
.adam-dark-profile img { width: 100%; height: 100%; object-fit: cover; }

body.adam-dark-live :where(.page-shell, .quiz-page, .wrap, .container, .profile-shell) {
  position: relative;
  z-index: 1;
}
body.adam-dark-live :where(.page-shell, .quiz-page) { width: min(1180px, calc(100% - 24px)); }
body.adam-dark-live :where(.top-nav, .back-link, .topbar) {
  border-color: var(--ab-line) !important;
  color: var(--ab-white) !important;
  background: rgba(6, 35, 60, .92) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22) !important;
}
body.adam-dark-live :where(.home-link, .back-link, .back, .top-link) { color: var(--ab-cyan) !important; }
body.adam-dark-live :where(.eyebrow, .selection-kicker) { color: var(--ab-teal) !important; }

/* Unified yellow bubble labels */
body.adam-dark-live :where(
  .eyebrow,
  .selection-kicker,
  .section-kicker,
  .live-news-label,
  .live-news-badge,
  .promo-tag,
  .demo-label,
  .year-card .card-note,
  .year-card .note,
  .subject-card > span:last-child,
  .chapter-btn em,
  .topic,
  .pill
) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 11px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #101827 !important;
  background: var(--ab-yellow) !important;
  box-shadow: none !important;
  font-size: clamp(.72rem, 1.7vw, .84rem) !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  text-align: center;
  white-space: normal;
}

/* Homepage */
body.adam-page-home .hero {
  display: grid !important;
  grid-template-columns: 132px minmax(300px, 1fr) minmax(330px, 440px) !important;
  grid-template-areas:
    "benefits copy visual"
    "stats stats stats" !important;
  grid-template-rows: minmax(400px, 1fr) auto !important;
  align-items: center !important;
  min-height: 520px !important;
  padding: 30px 30px 0 !important;
  overflow: hidden;
  border: 1px solid var(--ab-line) !important;
  border-radius: 12px !important;
  color: var(--ab-white) !important;
  background:
    radial-gradient(circle at 75% 45%, rgba(255, 221, 66, .13), transparent 23%),
    radial-gradient(circle at 43% 32%, rgba(47, 211, 255, .12), transparent 28%),
    linear-gradient(145deg, #031a31 0%, #06395d 52%, #03162b 100%) !important;
  box-shadow: var(--ab-shadow) !important;
}
body.adam-page-home .hero::before,
body.adam-page-home .hero::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}
body.adam-page-home .hero::before {
  inset: 0;
  background:
    linear-gradient(rgba(74, 217, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 217, 255, .055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0 76%, transparent 96%);
}
body.adam-page-home .hero::after {
  right: 30%;
  bottom: 70px;
  width: 52%;
  height: 70px;
  border-bottom: 2px dashed rgba(255, 221, 66, .7);
  border-radius: 50%;
  transform: rotate(-3deg);
}
body.adam-page-home .hero-copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  width: 100%;
  padding: 20px 18px 28px;
  text-align: center;
}
body.adam-page-home .hero-copy h1,
body.adam-page-home #site-title {
  color: var(--ab-white) !important;
  font-size: 5rem !important;
  line-height: .94 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .18) !important;
}
body.adam-page-home #site-title span,
body.adam-page-home .hero-copy h1 .brand-accent { color: var(--ab-yellow); }
body.adam-page-home .hero-copy .lede {
  max-width: 520px;
  margin: 22px auto 0;
  color: #d3e9f5 !important;
  font-size: 1.06rem;
  line-height: 1.55;
}
body.adam-page-home .adam-hero-tagline {
  width: fit-content;
  margin: 12px auto 0;
  color: var(--ab-yellow);
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 2.35rem;
  line-height: 1.1;
  transform: rotate(-2deg);
}
body.adam-page-home .adam-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
body.adam-page-home .adam-hero-primary,
body.adam-page-home .adam-hero-download {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-weight: 950;
  text-decoration: none;
}
body.adam-page-home .adam-hero-primary {
  color: #102039;
  background: linear-gradient(180deg, #ffe75c, #ffca28);
  box-shadow: 0 10px 24px rgba(255, 202, 40, .23);
}
body.adam-page-home .adam-hero-download {
  border-color: rgba(74, 217, 255, .55);
  color: #e9faff;
  background: rgba(7, 50, 82, .76);
}
body.adam-page-home .adam-hero-primary:hover,
body.adam-page-home .adam-hero-primary:focus-visible,
body.adam-page-home .adam-hero-download:hover,
body.adam-page-home .adam-hero-download:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
body.adam-page-home .adam-hero-benefits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-area: benefits;
  gap: 10px;
}
body.adam-page-home .adam-hero-benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(74, 217, 255, .24);
  border-radius: 9px;
  color: #eaf9ff;
  background: rgba(6, 46, 77, .8);
}
body.adam-page-home .adam-hero-benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ab-cyan);
  background: rgba(26, 104, 154, .42);
}
body.adam-page-home .adam-hero-benefit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.adam-page-home .adam-hero-benefit strong {
  font-size: .73rem;
  line-height: 1.25;
}
body.adam-page-home .hero-visual {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-area: visual;
  min-height: 390px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(74, 217, 255, .32) !important;
  border-radius: 14px;
  background: rgba(5, 39, 65, .72) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .24) !important;
}
body.adam-page-home .hero-visual img {
  width: 100%;
  height: 356px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center center;
  filter: none;
}
body.adam-page-home .adam-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-area: stats;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -30px;
  border-top: 1px solid rgba(74, 217, 255, .25);
  background: rgba(2, 20, 37, .72);
}
body.adam-page-home .adam-hero-stats div {
  min-width: 0;
  padding: 15px 16px 17px;
  text-align: center;
}
body.adam-page-home .adam-hero-stats div + div { border-left: 1px solid rgba(74, 217, 255, .18); }
body.adam-page-home .adam-hero-stats strong,
body.adam-page-home .adam-hero-stats span { display: block; }
body.adam-page-home .adam-hero-stats strong { color: var(--ab-white); font-size: .96rem; }
body.adam-page-home .adam-hero-stats span { margin-top: 3px; color: #aecdde; font-size: .72rem; font-weight: 800; }
body.adam-dark-live .app-download-button,
body.adam-dark-live :where(.primary-btn, .next-link, .free-demo-link, .contact-submit) {
  border-color: #ffec84 !important;
  color: #102039 !important;
  background: linear-gradient(180deg, #ffe85b, #ffc928) !important;
  box-shadow: 0 8px 20px rgba(255, 207, 36, .2) !important;
}
body.adam-page-home .app-download-button::before { background:#101827 !important; }
body.adam-page-home .year-section .eyebrow { color:#101827 !important; }
body.adam-dark-live :where(.year-section, .subject-section) {
  border-color: var(--ab-line-soft) !important;
  color: var(--ab-white);
  background: rgba(5, 29, 50, .92) !important;
  box-shadow: var(--ab-shadow) !important;
}
body.adam-dark-live :where(.section-heading h2, .page-shell h1, .subject-hero h2) { color: var(--ab-white) !important; }
body.adam-dark-live :where(.section-heading p, .subject-hero .lede) { color: var(--ab-muted) !important; }

body.adam-dark-live .year-card {
  border: 1px solid color-mix(in srgb, var(--card-accent, #43d7ff) 78%, white 5%) !important;
  border-radius: 10px !important;
  color: var(--ab-white) !important;
  background: linear-gradient(150deg, rgba(10, 53, 87, .97), rgba(5, 29, 51, .97)) !important;
  box-shadow: inset 0 -55px 70px color-mix(in srgb, var(--card-accent, #36c8ef) 20%, transparent), 0 14px 28px rgba(0,0,0,.2) !important;
}
body.adam-dark-live .year-card:nth-child(1) { --card-accent:#35a9ff; }
body.adam-dark-live .year-card:nth-child(2) { --card-accent:#30d6a8; }
body.adam-dark-live .year-card:nth-child(3) { --card-accent:#ffda3e; }
body.adam-dark-live .year-card:nth-child(4) { --card-accent:#ec5ca3; }
body.adam-dark-live .year-card:nth-child(5) { --card-accent:#9b6eff; }
body.adam-dark-live .year-card:nth-child(6) { --card-accent:#42d9ff; }
body.adam-dark-live .year-card strong { color: var(--ab-white) !important; text-shadow: none !important; }
body.adam-dark-live .year-card .year-label { color: #d8e8f7 !important; }

body.adam-dark-live :where(.free-demo-card, .selection-panel, .contact-panel, .home-achievements, .seo-link-panel, .seo-faq details) {
  border-color: var(--ab-line-soft) !important;
  color: var(--ab-white) !important;
  background: rgba(7, 40, 67, .9) !important;
  box-shadow: var(--ab-shadow) !important;
}
body.adam-dark-live :where(.live-notice, .live-notice-banner, #liveNoticeBanner) {
  border-color: rgba(255, 221, 66, .7) !important;
  color: var(--ab-white) !important;
  background: linear-gradient(120deg, #083453, #07545d) !important;
}
body.adam-dark-live :where(.live-notice, .live-notice-banner, #liveNoticeBanner) :where(h2,h3,p,strong) { color: var(--ab-white) !important; }
body.adam-dark-live .live-notice-copy b { color:var(--ab-white) !important; }
body.adam-dark-live .live-notice-copy span { color:#bcd4e3 !important; }
body.adam-dark-live .live-news { border-color: var(--ab-line) !important; color:var(--ab-white) !important; background:#082d4a !important; }
body.adam-dark-live .live-news-item { color:#d7ecf6 !important; }
body.adam-dark-live :where(.free-demo-card, .selection-panel, .contact-panel, .home-achievements) :where(h2,h3,strong) { color: var(--ab-white) !important; }
body.adam-dark-live :where(.free-demo-card, .selection-panel, .contact-panel, .home-achievements) p { color: var(--ab-muted) !important; }
body.adam-page-home .home-achievement-card :where(strong,span) { color:#101827 !important; }
body.adam-page-home .contact-head h3,
body.adam-page-home .seo-faq summary { color:var(--ab-white) !important; }
body.adam-page-home .seo-faq p { color:var(--ab-muted) !important; }
body.adam-page-home .selection-kicker { color:#101827 !important; }
body.adam-dark-live :where(input, select, textarea) {
  border-color: rgba(89, 181, 220, .35) !important;
  color: #eaf8ff !important;
  background: #061f36 !important;
}
body.adam-dark-live :where(input, textarea)::placeholder { color: #8baac0 !important; }

/* Year and subject selection */
body.adam-dark-live .subject-hero {
  border: 1px solid var(--ab-line) !important;
  border-radius: 11px !important;
  color: var(--ab-white) !important;
  background: linear-gradient(130deg, #073352, #082340) !important;
  box-shadow: var(--ab-shadow) !important;
}
body.adam-dark-live .year-bubble { color: #10223a !important; background: var(--ab-yellow) !important; }
body.adam-dark-live .subject-card {
  min-height: 180px;
  border: 1px solid var(--subject-accent, #42d8ff) !important;
  border-radius: 10px !important;
  color: var(--ab-white) !important;
  background: linear-gradient(150deg, rgba(11, 57, 91, .98), rgba(4, 27, 48, .98)) !important;
  box-shadow: inset 0 -48px 60px color-mix(in srgb, var(--subject-accent, #3bd7ed) 16%, transparent), 0 13px 28px rgba(0,0,0,.22) !important;
}
body.adam-dark-live .subject-card:nth-child(4n+1) { --subject-accent:#4bcfff; }
body.adam-dark-live .subject-card:nth-child(4n+2) { --subject-accent:#eb6eb2; }
body.adam-dark-live .subject-card:nth-child(4n+3) { --subject-accent:#ffda43; }
body.adam-dark-live .subject-card:nth-child(4n+4) { --subject-accent:#38dcb1; }
body.adam-dark-live .subject-card strong { color: var(--ab-white) !important; }
body.adam-dark-live .subject-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.adam-dark-live .subject-icon img { object-fit: contain !important; }

/* Unit and quiz selection */
body.adam-dark-live .quiz-shell {
  border: 1px solid var(--ab-line) !important;
  border-radius: 11px !important;
  background: rgba(5, 29, 50, .97) !important;
  box-shadow: var(--ab-shadow) !important;
}
body.adam-dark-live .quiz-hero {
  border-bottom: 1px solid var(--ab-line) !important;
  color: var(--ab-white) !important;
  background: linear-gradient(125deg, #073e69, #075469 68%, #07304d) !important;
}
body.adam-dark-live .quiz-hero h1 { color: var(--ab-white) !important; }
body.adam-dark-live .quiz-hero p { color: #c8e3ef !important; }
body.adam-dark-live .hero-badge { border-color: var(--ab-cyan) !important; color: var(--ab-yellow) !important; background: #072844 !important; box-shadow: none !important; }
body.adam-dark-live .set-select > h2 { color:#14213a !important; }
body.adam-dark-live :where(.chapter-select, .quiz-content) {
  color: var(--ab-white) !important;
  background: rgba(4, 26, 46, .96) !important;
}
body.adam-dark-live .chapter-select h2 { color: var(--ab-white) !important; }
body.adam-dark-live .chapter-select > p { color: var(--ab-muted) !important; }
body.adam-dark-live .chapter-btn {
  border: 1px solid var(--unit-accent, #3bd8ff) !important;
  border-radius: 9px !important;
  color: var(--ab-white) !important;
  background: linear-gradient(145deg, rgba(10, 57, 91, .98), rgba(5, 31, 53, .98)) !important;
  box-shadow: inset 0 -42px 58px color-mix(in srgb, var(--unit-accent, #3ed6ff) 15%, transparent), 0 10px 22px rgba(0,0,0,.2) !important;
}
body.adam-dark-live .chapter-btn:nth-child(6n+1) { --unit-accent:#37d7a7; }
body.adam-dark-live .chapter-btn:nth-child(6n+2) { --unit-accent:#43b5ff; }
body.adam-dark-live .chapter-btn:nth-child(6n+3) { --unit-accent:#ff6f91; }
body.adam-dark-live .chapter-btn:nth-child(6n+4) { --unit-accent:#ffdc43; }
body.adam-dark-live .chapter-btn:nth-child(6n+5) { --unit-accent:#8e74ff; }
body.adam-dark-live .chapter-btn:nth-child(6n+6) { --unit-accent:#39d3da; }
body.adam-dark-live .chapter-btn :where(strong,span) { color: inherit !important; }
body.adam-dark-live .chapter-btn span { color: var(--ab-muted) !important; }
body.adam-dark-live .progress-label { color: var(--ab-muted) !important; }
body.adam-dark-live .progress-track { background: #123c59 !important; }
body.adam-dark-live .progress-fill { background: linear-gradient(90deg, var(--ab-teal), var(--ab-cyan), var(--ab-yellow)) !important; }
body.adam-dark-live .score-pill { border-color: #e8c938 !important; color: var(--ab-yellow) !important; background: #092b46 !important; }

body.adam-dark-live .question-card {
  border: 1px solid #b8dcf1 !important;
  border-radius: 10px !important;
  color: #14213a !important;
  background: #f8fbff !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25) !important;
}
body.adam-dark-live .question-card :where(.question, h2) { color: #14213a !important; }
body.adam-dark-live .topic { color: #07546a !important; background: #d9f5ff !important; }
body.adam-dark-live .answer-btn {
  border-color: #caddeb !important;
  border-radius: 7px !important;
  color: #14213a !important;
  background: #fff !important;
}
body.adam-dark-live .answer-btn:hover:not(:disabled),
body.adam-dark-live .answer-btn:focus-visible { border-color: #0e9ec3 !important; background: #eafaff !important; }
body.adam-dark-live .answer-btn.is-correct,
body.adam-dark-live .answer-btn.correct { border-color:#12a876 !important; color:#064c39 !important; background:#d9fae9 !important; }
body.adam-dark-live .answer-btn.is-wrong,
body.adam-dark-live .answer-btn.wrong { border-color:#e4586f !important; color:#7f1530 !important; background:#ffe8ed !important; }
body.adam-dark-live .feedback { border: 1px solid #d7e5ee !important; color: #496174 !important; background: #eef5f9 !important; }
body.adam-dark-live :where(.visual-card, .coord-svg-card) { color: #14324a !important; background: #edf8fd !important; }
body.adam-dark-live .main-btn { color:#fff !important; background:linear-gradient(135deg,#0d9f80,#087d9d) !important; }
body.adam-dark-live .ghost-btn { border-color:#8ac8df !important; color:#07546a !important; background:#fff !important; }
body.adam-dark-live .result-panel { color:#12314b !important; background:#effcf8 !important; }
body.adam-dark-live .unit-badge-summary-card {
  border-color: var(--ab-line) !important;
  color: var(--ab-white) !important;
  background: linear-gradient(135deg, #0a3a58, #082b48) !important;
}
body.adam-dark-live .unit-badge-summary-title { color:var(--ab-white) !important; }
body.adam-dark-live .unit-badge-summary-text { color:var(--ab-muted) !important; }
body.adam-dark-live .unit-badge-summary-item { background:#fff !important; }

/* Notes and profile */
body.adam-dark-live .book {
  border-color: var(--ab-line) !important;
  background: rgba(5, 30, 51, .96) !important;
  box-shadow: var(--ab-shadow) !important;
}
body.adam-dark-live .book > .hero {
  border: 0 !important;
  border-bottom: 1px solid var(--ab-line) !important;
  background: linear-gradient(125deg, #075273, #08735f) !important;
}
body.adam-dark-live .book > .hero :where(h1,.lead) { color: #fff !important; text-shadow: none !important; }
body.adam-dark-live .pages { background: rgba(4, 24, 43, .98) !important; }
body.adam-dark-live :where(.note-card, .visual-card, .paper) { border-radius: 10px !important; }
body.adam-dark-live .note-card { color:#172a42 !important; background:#fff !important; }
body.adam-dark-live .note-card :where(h1,h2,h3,.mini-title) { color:#183351 !important; }
body.adam-dark-live .profile-shell { border-color:var(--ab-line) !important; color:var(--ab-white) !important; background:rgba(5,31,53,.96) !important; box-shadow:var(--ab-shadow) !important; }
body.adam-dark-live .profile-shell :where(h1,h2,h3) { color:var(--ab-white) !important; }
body.adam-dark-live .profile-shell :where(p,.message) { color:var(--ab-muted) !important; }
body.adam-dark-live .profile-shell .panel { border-color:var(--ab-line-soft) !important; color:var(--ab-white) !important; background:#082d4b !important; }
body.adam-dark-live :where(.history-card,.achievement-card,.status-card,.profile-row) { border-color:var(--ab-line-soft) !important; }
body.adam-page-profile .profile-shell .panel > .profile-row,
body.adam-page-profile .profile-shell .panel > .profile-row strong,
body.adam-page-profile .profile-shell .panel form > label { color:#eaf6ff !important; }
body.adam-page-profile .profile-shell .status-card .status-item :where(span,strong),
body.adam-page-profile .profile-shell .status-card .status-note,
body.adam-page-profile .profile-shell :where(.history-card,.achievement-card) :where(strong,span,em) { color:#172a42; }

/* Sitemap keeps its light content panels, so their headings need dark ink. */
body.adam-page-sitemap .section > h2,
body.adam-page-sitemap .section details > summary { color:#14213a !important; }

/* Standalone public pages */
body.adam-page-membership .hero,
body.adam-page-pwa .hero,
body.adam-page-profile .profile-shell > .hero {
  border:1px solid var(--ab-line) !important;
  color:var(--ab-white) !important;
  background:linear-gradient(135deg,#073b61,#075b68) !important;
  box-shadow:var(--ab-shadow) !important;
}
body.adam-page-membership .hero :where(h1,h2,h3),
body.adam-page-pwa .hero :where(h1,h2,h3),
body.adam-page-profile .profile-shell > .hero :where(h1,h2,h3) { color:var(--ab-white) !important; }
body.adam-page-membership .hero :where(.lede,p),
body.adam-page-pwa .hero :where(.lede,p),
body.adam-page-profile .profile-shell > .hero p { color:#c8e1ee !important; }
body.adam-page-membership .hero .eyebrow,
body.adam-page-pwa .hero .eyebrow,
body.adam-page-profile .profile-shell > .hero .eyebrow { color:#101827 !important; }
body.adam-page-membership .hero-main {
  background:
    radial-gradient(circle at 10% 10%, rgba(255,221,66,.2), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(49,221,181,.2), transparent 28%),
    linear-gradient(135deg,#073b61,#075b68) !important;
}
body.adam-page-membership :where(.card,.panel,.confirm-card),
body.adam-page-pwa :where(.guide-card,.logo-card,.install-panel) { color:#172a42; }
body.adam-page-membership :where(.card,.panel,.confirm-card) :where(h1,h2,h3,strong,label),
body.adam-page-pwa :where(.guide-card,.logo-card,.install-panel) :where(h1,h2,h3,strong) { color:#172a42; }
body.adam-page-pwa .install-panel :where(.install-copy,.install-status,p) { color:#304156 !important; }

body.adam-page-training .brand-mark span,
body.adam-page-training .section-head h2,
body.adam-page-training .demo-copy h2,
body.adam-page-training .benefit-section h2,
body.adam-page-training .audience-section h2,
body.adam-page-training .steps-section h2 { color:var(--ab-white) !important; }
body.adam-page-training .section-head p:not(.section-kicker),
body.adam-page-training .demo-copy > p:not(.section-kicker),
body.adam-page-training .footer-note { color:var(--ab-muted) !important; }
body.adam-page-training .section > p { color:var(--ab-muted) !important; }
body.adam-page-training .section-kicker { color:#101827 !important; }
body.adam-page-training .year-card .label { color:#d9e9f6 !important; }
body.adam-page-training .subject-badge { color:#fff !important; }
body.adam-page-training .section {
  border-color:var(--ab-line-soft) !important;
  color:var(--ab-white) !important;
  background:#082d4b !important;
  box-shadow:var(--ab-shadow) !important;
}
body.adam-page-training .section :where(h2,h3) { color:var(--ab-white) !important; }
body.adam-page-training .section :where(p,.seo-topic p) { color:var(--ab-muted) !important; }
body.adam-page-training .demo-shell {
  border-color:var(--ab-line-soft) !important;
  background:#082d4b !important;
}
body.adam-page-training .demo-card { color:#172a42 !important; background:#fff !important; }
body.adam-page-training .demo-card :where(h3,.demo-feedback,p) { color:#172a42 !important; }
body.adam-page-training .screenshot-card { border-color:var(--ab-line-soft) !important; background:#082d4b !important; }
body.adam-page-training .screenshot-card figcaption { color:#c6dce9 !important; }
body.adam-page-training .copy-list li { color:var(--ab-muted) !important; background:#082d4b !important; }
body.adam-page-training .copy-list strong { color:var(--ab-white) !important; }

.adam-theme-ready { animation: adamThemeReveal .24s ease both; }
@keyframes adamThemeReveal { from { opacity:.55 } to { opacity:1 } }

@media (max-width: 1000px) {
  body.adam-page-home .hero {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    grid-template-areas:
      "copy visual"
      "benefits benefits"
      "stats stats" !important;
    grid-template-rows: auto auto auto !important;
  }
  body.adam-page-home .adam-hero-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  body.adam-page-home .hero-copy h1,
  body.adam-page-home #site-title { font-size: 4.15rem !important; }
  body.adam-page-home .adam-hero-tagline { font-size: 2rem; }
}

@media (max-width: 760px) {
  .adam-dark-nav { grid-template-columns: 1fr auto; width: calc(100% - 12px); margin-top: 6px; padding: 8px 9px 6px 12px; }
  .adam-dark-brand { font-size: 1.17rem; }
  .adam-dark-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .adam-dark-links::-webkit-scrollbar { display:none; }
  .adam-dark-links a { flex: 0 0 auto; min-height: 34px; padding: 0 9px; font-size: .72rem; }
  body.adam-dark-live :where(.page-shell,.quiz-page) { width: min(100% - 12px, 1180px); }
  body.adam-page-home .hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "copy"
      "visual"
      "benefits"
      "stats" !important;
    grid-template-rows: auto auto auto auto !important;
    min-height: 0 !important;
    padding: 26px 16px 0 !important;
    background:
      radial-gradient(circle at 50% 48%, rgba(255, 221, 66, .12), transparent 26%),
      radial-gradient(circle at 50% 18%, rgba(47, 211, 255, .12), transparent 30%),
      linear-gradient(160deg, #031a31 0%, #06395d 52%, #03162b 100%) !important;
  }
  body.adam-page-home .hero::after { display:none; }
  body.adam-page-home .hero-copy { padding: 12px 0 8px !important; }
  body.adam-page-home .hero-copy h1,
  body.adam-page-home #site-title { font-size: 2.9rem !important; }
  body.adam-page-home .adam-hero-tagline { margin-top: 8px; font-size: 1.58rem; }
  body.adam-page-home .hero-copy .lede { margin-top: 14px; font-size: .9rem; line-height: 1.42; }
  body.adam-page-home .adam-hero-actions { margin-top: 17px; }
  body.adam-page-home .adam-hero-primary,
  body.adam-page-home .adam-hero-download { min-height: 46px; padding: 0 15px; font-size: .88rem; }
  body.adam-page-home .hero-visual {
    width: min(100%, 310px);
    min-height: 220px;
    margin: 8px auto 14px;
    padding: 8px;
  }
  body.adam-page-home .hero-visual img { width: 100%; height: 220px; object-position: center 42%; }
  body.adam-page-home .adam-hero-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 2px 0 14px;
  }
  body.adam-page-home .adam-hero-benefit {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    min-height: 98px;
    padding: 10px 5px;
    text-align: center;
  }
  body.adam-page-home .adam-hero-benefit strong { font-size: .67rem; }
  body.adam-page-home .adam-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -16px; }
  body.adam-page-home .adam-hero-stats div { padding: 12px 3px 13px; }
  body.adam-page-home .adam-hero-stats strong { font-size: .75rem; }
  body.adam-page-home .adam-hero-stats span { font-size: .56rem; line-height: 1.25; }
  body.adam-dark-live .subject-card { min-height: 150px; }
  body.adam-dark-live .question-card { padding: 17px !important; }
}

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

  /* Answer feedback must remain visible even when decorative motion is reduced. */
  body.adam-dark-live .quiz-content.gaming-mode .answer-btn.correct,
  body.adam-dark-live .quiz-content.gaming-mode .answer-btn.is-correct {
    animation-duration:560ms, 920ms !important;
  }
  body.adam-dark-live .quiz-content.gaming-mode .answer-btn.wrong,
  body.adam-dark-live .quiz-content.gaming-mode .answer-btn.is-wrong {
    animation-duration:420ms !important;
  }
  body.adam-dark-live .answer-result-emoji {
    animation-duration:420ms !important;
  }
}
