/* "Graph-paper notebook" palette. One place to retheme the site: ink navy text, indigo brand, warm paper background,
   amber highlighter, teal for "done / correct". Loaded last from base.html. Delete the <link> to go back to the old colours. */
:root {
  /* Google-logo colours: blue = brand/actions, red = hints/mistakes, yellow = highlighter, green = done/correct */
  --g-blue: #4285f4; --g-red: #ea4335; --g-yellow: #fbbc05; --g-green: #34a853;
  --g-blue-ink: #1a73e8; --g-green-ink: #188038; --g-red-ink: #d93025;
  --hs-primary: #1a73e8;
  --hs-primary-dark: #1558b0;
  --hs-primary-darker: #104a94;
  --hs-secondary: #4285f4;
  --hs-primary-light: #eef4fe;
  --hs-primary-opacity: rgba(26, 115, 232, 0.12);
  --hs-secondary-opacity: rgba(66, 133, 244, 0.12);
  /* white paper, ink text */
  --hs-heading: #202124;
  --hs-body: #5f6368;
  --hs-border: #e3e8ef;
  --hs-canvas: #ffffff;
  --hs-canvas-2: #ffffff;
  --dm-blue-900: #0d3c80;
  --dm-blue-800: #104a94;
  --dm-blue-700: #1558b0;
  --dm-blue-600: #1a73e8;
  --dm-blue-500: #4285f4;
  --dm-blue-400: #7baaf7;
  --dm-blue-200: #c6dafc;
  --dm-blue-100: #e3eefd;
  --dm-blue-50: #eef4fe;
  --dm-slate-900: #202124;
  --dm-slate-800: #303134;
  --dm-slate-700: #3c4043;
  --dm-slate-600: #5f6368;
  --dm-slate-200: #e3e8ef;
  --dm-slate-100: #f6f8fb;
  --dm-slate-50: #ffffff;
  --bs-primary-rgb: 26, 115, 232;
  --dm-play-amber: #fbbc05;
  --dm-play-emerald: #34a853;
  --dm-play-emerald-dark: #188038;
  --dm-play-violet: #4285f4;
  --pl-danger: #ea4335;
  --pl-surface: #ffffff;
  --pl-page: #ffffff;
  --pl-card-border: rgba(32, 33, 36, 0.09);
  --pl-outline-border: #dadce0;
  --pf-blue: #1a73e8; --pf-violet: #4285f4; --pf-amber: #fbbc05; --pf-ink: #202124;
}

/* graph paper: a fine 24px grid with a stronger line every 120px, over warm paper with soft colour glows */
body,
body.dm-page-home {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(66, 133, 244, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(66, 133, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-repeat: repeat;
}
/* reading pages stay calm: flat paper, no grid behind lesson text */
body:has(.dm-pro),
body.dm-page-home:has(.dm-pro) {
  background-image: none;
  background-size: auto;
}

/* white used on purpose: panels and cards are crisp white sheets laid on the paper */
.card, .dm-card, .dm-growth-trust, .dm-topic-card, .dm-course-card-popular, .dm-hero-strip, .dm-hero-enquiry {
  background-color: #fff;
}
.dm-growth-trust, .dm-topic-card, .card { border: 1px solid rgba(20, 33, 61, 0.09) !important; box-shadow: 0 2px 10px rgba(20, 33, 61, 0.05) !important; }
.dm-topic-card__lesson { background-color: #f6f7fd; }
/* alternate sections: grid paper, then a clean white band */
.dm-section-tint-green, .dm-section-tint-blush, .dm-section-tint-mist {
  background: #fff !important;
  border-top: 1px solid rgba(20, 33, 61, 0.07);
  border-bottom: 1px solid rgba(20, 33, 61, 0.07);
}
.dm-navbar, .navbar { background-color: #fff; }

/* headings in ink navy; warm borders on cards */
h1, h2, h3, h4, .dm-section-title { color: var(--hs-heading); }
.dm-card, .dm-course-card-popular { border-color: rgba(20, 33, 61, 0.09); }

/* primary buttons: indigo with a soft glow */
.btn-dm-primary, .btn-primary {
  background: #1a73e8;
  border-color: #1a73e8;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28);
}
.btn-dm-primary:hover, .btn-primary:hover { background: #1558b0; border-color: #1558b0; }

/* "done" and success read as teal; the progress bar ends in amber like a highlighter */
.dm-msg-ok, .text-success { color: #188038 !important; }

/* let the graph paper show through sections that painted their own flat background */
body .dm-section--course-stack, body .dm-home-learn-dual.dm-section { background: transparent !important; }

/* ---- the four colours, used with meaning and a little play ---- */
/* a thin four-colour line under the navbar and above the footer, like the four dots of a chart legend */
.dm-navbar { position: relative; }
.dm-navbar::after, .dm-footer-pro::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
}
.dm-navbar::after { bottom: -1px; }
.dm-footer-pro { position: relative; }
.dm-footer-pro::before { top: 0; }

/* top announcement banner: white with a blue badge instead of a purple gradient */
.dm-topbar { background: #fff !important; color: #3c4043 !important; border-bottom: 1px solid #e3e8ef; }
.dm-topbar__text { color: #3c4043 !important; }
.dm-topbar__badge { background: #e8f0fe !important; color: #1a73e8 !important; }
.dm-topbar__link { color: #1a73e8 !important; }
.dm-topbar__close { background: #f1f3f4 !important; color: #5f6368 !important; }

/* headline word and progress bars carry all four colours */
.dm-hl {
  position: relative;
  display: inline-block;
  color: #34a853 !important;
  -webkit-text-fill-color: #34a853 !important;
  background: none !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
  text-decoration: none !important;
}
/* wavy underline in Google blue, very slightly softened */
.dm-hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.16em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%234285f4' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 1.15em 100%;
  filter: blur(0.6px);
  pointer-events: none;
}
.dm-lesson-progress-track__fill, .dm-hub-progress__fill {
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853) !important;
  background-size: 200% 100% !important;
}
.dm-math-deco__path { stroke: #4285f4; }
.dm-math-deco__ball { fill: #ea4335; filter: drop-shadow(0 3px 5px rgba(234, 67, 53, 0.4)); }
.dm-chip--a { color: #1a73e8; border-color: rgba(66, 133, 244, 0.45); }
.dm-chip--b { color: #d93025; border-color: rgba(234, 67, 53, 0.45); }
.dm-chip--c { color: #188038; border-color: rgba(52, 168, 83, 0.5); }
.pf-nudge { color: #188038; }
.dm-kicker::before, .dm-home-bundles__eyebrow::before, .pf-nudge::before { color: #ea4335; }
.dm-section-title::after, .dm-home-bundles__title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 10' fill='none' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M2 6 Q6 1 12 5 T22 5' stroke='%234285f4'/%3E%3Cpath d='M24 5 Q28 1 34 5 T44 5' stroke='%23ea4335'/%3E%3Cpath d='M46 5 Q50 1 56 5 T66 5' stroke='%23fbbc05'/%3E%3Cpath d='M68 5 Q72 1 78 5 T84 5' stroke='%2334a853'/%3E%3C/svg%3E");
}

/* footer: white, with the four-colour line on top */
.dm-footer.dm-footer-pro { background: #fff; color: #5f6368; border-top: 1px solid #e3e8ef; }
.dm-fp__brand, .dm-fp__title { color: #202124; }
.dm-fp__tagline, .dm-fp__muted, .dm-fp__contact li, .dm-fp__col a, .dm-fp__bottom { color: #5f6368; }
.dm-fp__contact a { color: #3c4043; }
.dm-fp__contact a:hover, .dm-fp__col a:hover, .dm-fp__legal a:hover { color: #1a73e8; }
.dm-fp__legal a { color: #5f6368; }
.dm-fp__contact i { color: #4285f4; }
.dm-fp__bottom { border-top-color: #e3e8ef; }
.dm-footer-pro .dm-fp__field .form-control { background: #fff; border-color: #dadce0; color: #202124; }
.dm-footer-pro .dm-fp__field .form-control:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2); background: #fff; }
.dm-footer-pro .dm-fp__btn { background: #1a73e8; }
.dm-footer-pro .dm-fp__btn:hover { background: #1558b0; }
.dm-footer-pro .dm-msg-ok { color: #188038 !important; }

/* keep the page white: calm the coloured washes behind the hero, and make sure the footer line shows */
.dm-footer.dm-footer-pro::before { display: block; }
.dm-hero__blobs::before, .dm-hero__blobs::after { opacity: 0.1; }
.dm-logo-marquee, .dm-logo-marquee--floating { background: transparent !important; }
.dm-math-deco .dm-chip--a { color: #1a73e8; border-color: rgba(66, 133, 244, 0.45); }
.dm-math-deco .dm-chip--b { color: #d93025; border-color: rgba(234, 67, 53, 0.45); }
.dm-math-deco .dm-chip--c { color: #188038; border-color: rgba(52, 168, 83, 0.5); }
.dm-math-deco .dm-math-deco__path { stroke: #4285f4; }
.dm-math-deco .dm-math-deco__ball { fill: #ea4335; }

/* ---- former dark bands, now white: the four colours on the card icons and quiet buttons ---- */
.dm-research-roots__card-ico { background: rgba(26, 115, 232, 0.12) !important; color: #1a73e8 !important; }
.dm-research-roots__card-ico--emerald { background: rgba(52, 168, 83, 0.14) !important; color: #188038 !important; }
.dm-research-roots__card-ico--violet { background: rgba(234, 67, 53, 0.12) !important; color: #d93025 !important; }
.dm-research-roots__card-ico--amber { background: rgba(251, 188, 5, 0.22) !important; color: #b06000 !important; }
.dm-research-roots .btn-dm-roots-cta {
  --bs-btn-color: #202124; --bs-btn-bg: #f1f3f4; --bs-btn-border-color: #e3e8ef;
  --bs-btn-hover-color: #202124; --bs-btn-hover-bg: #e8eaed; --bs-btn-hover-border-color: #dadce0;
  box-shadow: none !important;
}
.dm-research-roots .btn-dm-outline {
  --bs-btn-color: #1a73e8; --bs-btn-border-color: rgba(26, 115, 232, 0.45);
  --bs-btn-hover-bg: rgba(26, 115, 232, 0.08); --bs-btn-hover-border-color: #1a73e8; --bs-btn-hover-color: #1558b0;
}
.dm-research-roots .btn-dm-primary, .dm-research-roots .btn-dm-primary:hover { background: #1a73e8; color: #fff !important; }
.dm-research-roots__kicker, body.dm-page-home .dm-research-roots--visual .dm-research-roots__kicker { color: #1a73e8 !important; }
.dm-research-roots__card, .dm-home-outcomes__card { background: #fff !important; border-color: rgba(32, 33, 36, 0.1) !important; box-shadow: 0 2px 10px rgba(32, 33, 36, 0.05); }

/* research lab chips: readable ink on a soft four-colour wash (they were written for a dark ribbon) */
.dm-rlab-enterprise__band-chip {
  color: #b06000 !important;
  border-color: rgba(251, 188, 5, 0.55) !important;
  background: linear-gradient(120deg, rgba(251, 188, 5, 0.18), rgba(234, 67, 53, 0.08), rgba(66, 133, 244, 0.12)) !important;
}
.dm-rlab-enterprise__eyebrow { color: #1558b0 !important; border-color: rgba(66, 133, 244, 0.4) !important; }

/* dashboard "continue / get started" cards: let the text use the space instead of wrapping one word per line */
.learn-continue-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.learn-continue-card > div:first-child { flex: 1 1 14rem; min-width: 0; }

/* learning roadmap: the four real Google colours on the bundle badges and dots, heading centred under the squiggle */
#roadmap { --google-blue: #4285f4; --google-red: #ea4335; --google-yellow: #fbbc05; --google-green: #34a853; --pl-success: #34a853; --pl-cyan: #fbbc05; }
#roadmap .dm-kicker, #roadmap .dm-section-title { text-align: center !important; }
:root {
  --google-blue: #4285f4; --google-red: #ea4335; --google-yellow: #fbbc05; --google-green: #34a853;
  --dm-play-cyan: #4285f4; --dm-play-cyan-dark: #1a73e8; --pl-info: #1a73e8; --pl-cyan: #4285f4;
}

/* =====================================================================
   One white theme everywhere: no navy/blue slabs. Colour appears only as
   thin accents (top edges, dots, badges) in Google blue / red / yellow / green.
   ===================================================================== */

/* ---- learning roadmap: white cards with a coloured top edge per bundle ---- */
#roadmap { --roadmap-card-bg: #fff; --roadmap-card-bg-hover: #fff; --roadmap-card-title: #202124; --roadmap-card-muted: #5f6368; --roadmap-dot-ring: #fff; --dm-border: rgba(32, 33, 36, 0.14); --shadow-card: 0 4px 18px rgba(32, 33, 36, 0.08); --shadow-card-hover: 0 14px 34px rgba(32, 33, 36, 0.14); }
#roadmap .dm-card { border: 1px solid rgba(32, 33, 36, 0.1); color: #3c4043; }
#roadmap .dm-card, #roadmap .dm-card * { --bs-heading-color: #202124; }
#roadmap .dm-card h3, #roadmap .dm-roadmap-card__title { color: #202124 !important; }
#roadmap .dm-card p, #roadmap .dm-roadmap-card__desc, #roadmap .dm-roadmap-duration { color: #5f6368 !important; }
#roadmap .dm-card::before { height: 5px; background: #4285f4; }
#roadmap .dm-roadmap-item:nth-child(4n + 2) .dm-card::before { background: #ea4335; }
#roadmap .dm-roadmap-item:nth-child(4n + 3) .dm-card::before { background: #fbbc05; }
#roadmap .dm-roadmap-item:nth-child(4n + 4) .dm-card::before { background: #34a853; }
#roadmap .dm-roadmap-phase { color: #1a73e8; background: #e8f0fe; border-color: #e8f0fe; }
#roadmap .dm-roadmap-item:nth-child(4n + 2) .dm-roadmap-phase { color: #c5221f; background: #fce8e6; border-color: #fce8e6; }
#roadmap .dm-roadmap-item:nth-child(4n + 3) .dm-roadmap-phase { color: #b06000; background: #fef7e0; border-color: #fef7e0; }
#roadmap .dm-roadmap-item:nth-child(4n + 4) .dm-roadmap-phase { color: #188038; background: #e6f4ea; border-color: #e6f4ea; }
#roadmap .dm-roadmap-item:nth-child(4n + 2) .dm-roadmap-dot { background: #ea4335; box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.2); }
#roadmap .dm-roadmap-item:nth-child(4n + 3) .dm-roadmap-dot { background: #fbbc05; box-shadow: 0 0 0 3px rgba(251, 188, 5, 0.3); }
#roadmap .dm-roadmap-item:nth-child(4n + 4) .dm-roadmap-dot { background: #34a853; box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.22); }
#roadmap .dm-roadmap::before { background: linear-gradient(180deg, #4285f4, #ea4335, #fbbc05, #34a853); }
#roadmap .dm-topic-pill { background: #f8f9fa; border-color: rgba(32, 33, 36, 0.12); color: #3c4043; }

/* ---- lesson code cards stay DARK everywhere (lesson-pro.css / lesson-gfg.css / main.css define the dark theme) ---- */

/* ---- assistant widget header, community/event panels already white; footer inputs, PDF viewer stay neutral ---- */
.dm-site-assistant__head { background: #1a73e8; }

/* ---- learner dashboard / profile banner: a white card, not a blue slab ---- */
body .dm-stu-prebanner { background: transparent !important; border-bottom: 0 !important; height: 1.25rem !important; }
body .dm-stu-dashboard__container { margin-top: 0 !important; }
body .dm-stu-hero-wrap { background: #fff !important; border: 1px solid rgba(32, 33, 36, 0.1) !important; box-shadow: 0 6px 24px rgba(32, 33, 36, 0.07) !important; }
body .dm-stu-hero-cover { height: clamp(90px, 12vw, 130px) !important; background-color: #fff !important; background-image:
    linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%),
    linear-gradient(rgba(66, 133, 244, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.1) 1px, transparent 1px) !important; background-size: 100% 5px, 24px 24px, 24px 24px !important; background-repeat: no-repeat, repeat, repeat !important; }
body .dm-stu-hero-cover::after { display: none !important; }
body .dm-stu-hero-overlay { position: relative !important; padding-top: 0 !important; margin-top: calc(-1 * clamp(2.6rem, 6vw, 3.6rem)) !important; }
body .dm-stu-hero-name { color: #202124 !important; text-shadow: none !important; }
body .dm-stu-meta li { color: #5f6368 !important; }
body .dm-stu-avatar { border-color: #fff !important; box-shadow: 0 6px 20px rgba(32, 33, 36, 0.15) !important; }
body .dm-stu-hero-cta .btn-dm-primary { box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28) !important; }
body .dm-profile-hero::before { background: transparent !important; }
body .dm-stu-hero-cover { background-position: 0 0, 0 0, 0 0 !important; }

/* small text on coloured chips: slightly deeper fills so white initials and badge text stay crisp */
body .dm-topbar__badge { color: #1558b0 !important; }
body .dm-hero-review-img__face--t1 { background: #1a73e8 !important; }
body .dm-hero-review-img__face--t2 { background: #1967d2 !important; }
body .dm-hero-review-img__face--t3 { background: #0b7ab0 !important; }
body .dm-hero-review-img__face--t4 { background: #188038 !important; }
body .dm-hero-review-img__face--t5 { background: #b3261e !important; }
