:root {
  color-scheme: light;
  --paper: #f7f8fc;
  --cream: #eef1f7;
  --line: #e2e7f0;
  --ink: #17243a;
  --muted: #59677d;
  --orange: #e95f3c;
  --orange-dark: #c9482b;
  --accent-readable: #ad3e26;
  --accent-heading: #c9482b;
  --navy: #172b49;
  --navy-deep: #101d32;
  --lime: #d7f58a;
  --surface-raised: #fff;
  --surface-soft: #f0f3f8;
  --border-strong: #d5ddea;
  --shadow-card: 0 12px 32px rgba(27, 44, 75, .075);
  --shadow-float: 0 24px 70px rgba(24, 42, 69, .14);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  font-family: var(--font-display), Arial, sans-serif;
  background:
    radial-gradient(ellipse at 50% -24rem, rgba(97, 134, 193, .08), transparent 52rem),
    var(--paper);
}

::selection { color: #17243a; background: #d7f58a; }

button, input, select, textarea { font: inherit; }
img, svg, video { max-width: 100%; }

h1,
h2,
h3 {
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

p,
li,
blockquote,
figcaption { overflow-wrap: break-word; }

.site-header {
  border-color: rgba(215, 223, 236, .8);
  background: rgba(250, 251, 254, .88);
  box-shadow: 0 3px 20px rgba(27, 44, 75, .035);
}

.header-content {
  width: min(1320px, calc(100% - 64px));
  min-height: 72px;
  gap: clamp(18px, 2.5vw, 36px);
}

.brand { color: #172b49; letter-spacing: -.045em; }
.brand-mark { border-radius: 10px; box-shadow: 0 5px 12px rgba(233, 95, 60, .2); }

.primary-navigation {
  gap: clamp(12px, 1.7vw, 24px);
}

.primary-navigation a,
.text-link,
.auth-status {
  color: #516078;
  font-size: 12px;
}

.primary-navigation a.is-current { color: var(--orange-dark); }
.primary-navigation a::after { bottom: -7px; height: 2px; border-radius: 2px; }
.header-actions { gap: 12px; }

.button { min-height: 46px; border-radius: 10px; }
.button-small { min-height: 39px; border-radius: 9px; }
.button-primary {
  background: linear-gradient(135deg, #f07850, #df5235);
  box-shadow: 0 7px 17px rgba(233, 95, 60, .2);
}
.button-secondary {
  border-color: var(--border-strong);
  color: #263a57;
  background: rgba(255, 255, 255, .76);
}
.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: #3982d7; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  padding-top: 72px;
  padding-bottom: 70px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 20px -8vw 12px;
  border: 1px solid rgba(218, 226, 239, .72);
  border-radius: 36px;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(119, 164, 232, .13), transparent 34%),
    radial-gradient(ellipse at 23% 94%, rgba(240, 126, 91, .08), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(245, 248, 253, .72));
}

.eyebrow {
  color: #536078;
  font-size: 10px;
  letter-spacing: .11em;
}

.eyebrow:not(.eyebrow-light) > span { width: 21px; height: 2px; border-radius: 3px; }
.hero h1,
.section-heading h2,
.impact-content h2,
.journey-content h2 { color: #172b49; letter-spacing: -.065em; }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(43px, 5vw, 66px);
  letter-spacing: -.045em;
  line-height: 1.12;
}
.hero h1 span { color: var(--accent-heading); }
.skill-line { color: #263a57; line-height: 1.6; }
#rotating-skill,
.cursor { color: var(--accent-readable); }
.hero-description { color: #59677d; font-size: 15px; }
.learner-proof p { color: #58667b; }
.learner-proof strong { color: #1d304f; }
.learner-avatars {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5ddea;
  border-radius: 12px;
  color: #315175;
  background: #e8eef8;
}
.learner-avatars i { font-size: 15px; }

.hero-visual { min-width: 0; }
.glow-one { background: #dce8f8; }
.glow-two { background: #d8eee4; }
.code-window {
  border-color: #29455d;
  border-radius: 18px;
  background: #112636;
  box-shadow: 16px 18px 0 #e7edf5, var(--shadow-float);
  transform: rotate(-1.3deg);
}
.floating-card {
  border-color: rgba(213, 221, 234, .9);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.stat-strip {
  border-color: var(--line);
  background: rgba(255, 255, 255, .64);
}
.stat-strip-inner { min-height: 112px; }
.stat-strip-inner > div { gap: 5px; padding: 18px 22px; }
.stat-strip strong {
  color: #1c3151;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: -.04em;
  line-height: 1.3;
}
.stat-strip span { max-width: 18ch; color: #627087; font-size: 13px; line-height: 1.45; }

.practice-section,
.offerings-section,
.testimonials-section { padding-top: 108px; padding-bottom: 108px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { color: #172b49; }
.split-heading > p { color: #5c6a80; }
.learning-cards { gap: 20px; }
.learning-card {
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(21, 41, 66, .11);
}
.learning-card::after {
  background: linear-gradient(180deg, rgba(8, 24, 38, .02) 13%, rgba(8, 24, 38, .85) 100%);
}
.learning-card-content h3 { letter-spacing: -.045em; }
.learning-card-content h3 { max-width: 100%; font-size: clamp(19px, 2vw, 23px); line-height: 1.28; }
.learning-card-content p { font-size: 11px; letter-spacing: .06em; }
.card-link { font-size: 13px; }
.card-icon { border-radius: 10px; }

.offering-grid article,
.testimonial-grid figure {
  border-radius: 16px;
  box-shadow: 0 9px 28px rgba(26, 44, 73, .055);
}
.companies-section { border-block: 1px solid var(--line); }
.impact-section { background: linear-gradient(120deg, #15243a, #1d3853); }
.journey-section { overflow: hidden; }

.page-hero {
  border-color: var(--line);
  background:
    radial-gradient(circle at 88% 22%, rgba(215, 245, 138, .36), transparent 22%),
    radial-gradient(circle at 9% 85%, rgba(233, 95, 60, .1), transparent 26%),
    linear-gradient(145deg, #f4f7fc, #f8f8fb);
}
.page-hero::after { border-color: rgba(63, 91, 131, .1); }
.page-hero-content { padding-top: 72px; padding-bottom: 76px; }
.page-hero h1 {
  max-width: 18ch;
  color: #172b49;
  font-size: clamp(42px, 5.6vw, 68px);
  letter-spacing: -.045em;
  line-height: 1.12;
}
.page-hero h1 span { color: var(--accent-heading); }
.page-intro { color: #59677d; font-size: 16px; line-height: 1.75; }
.breadcrumb { color: #59677d; }
.breadcrumb a,
.catalog-card summary,
.catalog-action,
.article-card a { color: var(--accent-readable); }
.catalog-eyebrow,
.settings-field label,
.settings-detail-label,
.learning-status,
.auth-header-link { color: #4c5a70; }
.form-message { color: #46566e; }
.form-message.error,
.learning-status.error { color: #9d2922; }
.form-message.success,
.learning-status.success { color: #176444; }

.page-section { padding-top: 76px; padding-bottom: 76px; }
.page-section.alt-surface { background: #f0f3f8; }
.section-title-row h2,
.content-heading { color: #172b49; }
.section-title-row h2,
.content-heading { letter-spacing: -.04em; line-height: 1.2; }
.section-title-row > p { color: #59677d; }
.catalog-grid { gap: 20px; }
.catalog-card,
.learning-panel,
.settings-panel,
.settings-details,
.dashboard-card,
.guide-card,
.article-card,
.contact-card {
  border-color: #e2e7f0;
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: 0 7px 24px rgba(27, 44, 75, .045);
}
.catalog-card { min-height: 300px; padding: 27px; }
.catalog-card:hover { border-color: #c8d4e5; box-shadow: var(--shadow-card); }
.catalog-card h2,
.catalog-card h3,
.learning-panel h2,
.lesson-card h3,
.dashboard-welcome h1,
.dashboard-card h2,
.settings-heading h2,
.settings-details h2,
.settings-panel > h3,
.guide-card h2,
.article-card h2,
.article-content h2,
.contact-card h2,
.values-list h2,
.policy-copy h2 { color: #192e4c; }
.catalog-card h2,
.catalog-card h3,
.learning-panel h2,
.lesson-card h3,
.dashboard-card h2,
.settings-heading h2,
.settings-details h2,
.settings-panel > h3,
.guide-card h2,
.article-card h2,
.contact-card h2,
.values-list h2 { line-height: 1.3; letter-spacing: -.035em; }
.catalog-card > p:not(.catalog-eyebrow),
.catalog-card details p,
.lesson-card p,
.lesson-card small,
.dashboard-card p,
.settings-heading > p:last-child,
.settings-help,
.article-card p,
.article-content p,
.article-content li,
.about-grid > p,
.values-list p,
.policy-copy p,
.policy-copy li { color: #59677d; }
.catalog-card > p:not(.catalog-eyebrow),
.catalog-card details p,
.lesson-card p,
.dashboard-card p,
.settings-help,
.article-card p,
.policy-copy p,
.policy-copy li { font-size: 14px; line-height: 1.75; }
.catalog-icon { border-radius: 12px; background: #fff0e9; }
.catalog-card:nth-child(3n + 2) .catalog-icon { background: #e7f5ee; }
.catalog-card:nth-child(3n) .catalog-icon { background: #eeeafb; }
.catalog-search,
.catalog-filter,
.settings-field input {
  min-height: 44px;
  border-color: #d8e0ec;
  border-radius: 10px;
  color: #192e4c;
  background: #fff;
}
.catalog-search { height: 46px; }
.catalog-filter { min-height: 40px; }
.catalog-filter[aria-pressed="true"],
.catalog-filter:hover { border-color: #243b5d; background: #243b5d; }
.card-meta span { color: #4a5870; background: #eef2f7; }
.catalog-eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .06em; }
.catalog-card details { padding-top: 22px; }
.catalog-card summary { font-size: 13px; }
.catalog-action { font-size: 13px; }
.card-meta span { font-size: 11px; }

.learning-layout { gap: 24px; }
.learning-panel { padding: clamp(22px, 3.5vw, 36px); }
.learning-sidebar {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: linear-gradient(145deg, #1b3853, #112538);
  box-shadow: var(--shadow-card);
}
.lesson-list { gap: 14px; }
.lesson-card h3 { line-height: 1.35; }
.lesson-card p { margin-top: 7px; }
.lesson-card small { font-size: 11px; line-height: 1.5; }
.lesson-card {
  border-color: #e2e7f0;
  border-radius: 13px;
  background: #f9fafd;
}
.lesson-card.is-complete { border-color: #b7dfc9; background: #f1faf5; }
.lesson-action { min-height: 42px; border-radius: 9px; }
.settings-field input { min-height: 47px; }
.settings-panel, .settings-details, .dashboard-card, .guide-card, .article-card, .contact-card { padding: 27px; }
.dashboard-stat { border-radius: 13px; }
.settings-detail-label { font-size: 11px; }
.learning-status,
.form-message { font-size: 13px; line-height: 1.55; }
.policy-nav { border-color: #e2e7f0; border-radius: 14px; background: #f1f4f9; }
.policy-nav a { min-height: 40px; display: flex; align-items: center; border-radius: 9px; }
.policy-note { border-radius: 0 10px 10px 0; }
.article-content { border-color: #e0e6ef; }
.page-cta { background: linear-gradient(120deg, #15243a, #1d3853); }

.auth-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 18% 80%, rgba(255, 219, 184, .32), transparent 25%),
    radial-gradient(circle at 85% 14%, rgba(146, 190, 237, .27), transparent 28%),
    #f3f6fb;
}
.auth-layout {
  border-color: #e0e6ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-float);
}
.auth-aside { background: linear-gradient(150deg, #1c3953, #112538); }
.auth-panel { padding: clamp(30px, 5vw, 58px) clamp(24px, 5vw, 62px); }
.auth-panel-heading { margin-top: 42px; }
.auth-panel-heading h2 { line-height: 1.2; letter-spacing: -.04em; }
.auth-panel-heading > p:last-child { line-height: 1.65; }
.field-group label { font-size: 13px; }
.auth-form { gap: 21px; }
.auth-form input { font-size: 14px; }
.auth-switch,
.auth-terms { font-size: 12px; line-height: 1.6; }
.auth-form input {
  min-height: 48px;
  border-color: #d8e0ec;
  border-radius: 10px;
  color: #192e4c;
  background: #fbfcfe;
}
.auth-submit { min-height: 48px; border-radius: 10px; }

.site-footer { background: linear-gradient(145deg, #101c2d, #0b1522); }
.footer-bottom { border-color: rgba(255, 255, 255, .12); }
.skip-link { border-radius: 0 0 10px 10px; }

.impact-content h2,
.journey-content h2 { letter-spacing: -.045em; line-height: 1.14; }
.impact-grid { gap: 18px; }
.impact-grid article {
  min-width: 0;
  padding-right: clamp(16px, 3vw, 42px);
  padding-left: clamp(16px, 3vw, 42px);
}
.impact-grid span { margin-bottom: 5px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.impact-grid strong {
  margin: 8px 0;
  font-size: clamp(21px, 2.4vw, 29px);
  letter-spacing: -.035em;
  line-height: 1.25;
}
.impact-grid small { max-width: 30ch; font-size: 13px; line-height: 1.6; }
.offering-grid { border-radius: 16px; overflow: hidden; }
.offering-grid article { min-width: 0; min-height: 220px; padding: 28px; }
.offering-grid i { margin-bottom: 21px; }
.offering-grid h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.025em; }
.offering-grid p { font-size: 14px; line-height: 1.65; }
.companies-section { padding-top: 48px; padding-bottom: 50px; }
.companies-section p { color: #536078; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1.6; text-transform: none; }
.technology-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.technology-list span {
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: #34445d;
  background: var(--surface-raised);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.testimonial-grid figure { min-width: 0; padding: 30px; }
.quote-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--accent-readable); background: #fff0e9; font-size: 17px; }
.testimonial-grid h3 { margin: 17px 0 0; color: #192e4c; font-size: 19px; line-height: 1.35; letter-spacing: -.035em; }
.approach-description { min-height: 84px; margin: 10px 0 22px; color: #4f5f76; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.75; }
.testimonial-grid figcaption { gap: 12px; }
.person-initials { font-size: 13px; }
.testimonial-grid figcaption div { gap: 4px; }
.testimonial-grid figcaption strong { font-size: 13px; }
.testimonial-grid figcaption small { font-size: 12px; }
.footer-brand > p,
.footer-links a { font-size: 13px; line-height: 1.6; }
.footer-bottom { font-size: 12px; line-height: 1.5; }

@media (max-width: 900px) {
  .header-content { width: min(100% - 40px, 820px); }
  .hero { gap: 34px; }
  .page-hero-content { padding-top: 62px; padding-bottom: 64px; }
  .page-section { padding-top: 66px; padding-bottom: 66px; }
}

@media (max-width: 1120px) {
  .site-header { position: sticky; }
  .header-content { min-height: 66px; }
  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    margin-left: auto;
    border-color: var(--line);
    border-radius: 11px;
    background: var(--surface-raised);
  }
  .primary-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-float);
  }
  .primary-navigation.is-open { display: flex; flex-direction: column; }
  .primary-navigation a { padding: 12px; border-radius: 9px; }
  .primary-navigation a:hover,
  .primary-navigation a.is-current { background: var(--surface-soft); }
  .primary-navigation a::after { display: none; }
  .header-actions { margin-left: 0; }
  .theme-toggle span { display: none; }
  .theme-toggle { width: 40px; min-width: 40px; height: 40px; padding: 0; }
  .theme-toggle i { display: inline !important; }
}

@media (max-width: 760px) {
  .section-shell,
  .header-content { width: min(calc(100% - 36px), 620px); }
  .hero { padding-top: 45px; padding-bottom: 52px; }
  .hero::before { inset: 10px 0; border-radius: 25px; }
  .hero-visual { min-height: 345px; }
  .practice-section,
  .offerings-section,
  .testimonials-section { padding-top: 76px; padding-bottom: 76px; }
  .page-hero-content { padding-top: 48px; padding-bottom: 50px; }
  .page-section { padding-top: 54px; padding-bottom: 54px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-card, .learning-card:first-child { min-height: 320px; }
  .footer-content { gap: 32px 22px; }
}

@media (max-width: 560px) {
  .section-shell,
  .header-content { width: calc(100% - 32px); }
  .header-content { gap: 8px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-actions { gap: 7px; }
  .header-actions .button { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .header-actions .button i { display: none; }
  .hero { padding-top: 34px; padding-bottom: 42px; gap: 20px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero h1 br,
  .page-hero h1 br,
  .section-heading h2 br,
  .impact-content h2 br,
  .journey-content h2 br { display: none; }
  .hero-description { font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 300px; }
  .code-window { width: calc(100% - 18px); margin-top: 24px; transform: none; box-shadow: 8px 10px 0 #e7edf5, 0 17px 38px rgba(24, 42, 69, .13); }
  .code-content { padding: 23px 17px; }
  .floating-card { padding: 9px 10px; }
  .floating-card-bottom { right: 0; bottom: 4px; }
  .stat-strip-inner { width: 100%; }
  .stat-strip-inner > div { min-height: 84px; padding: 14px 16px; }
  .stat-strip strong { font-size: 16px; }
  .stat-strip span { font-size: 12px; }
  .practice-section,
  .offerings-section,
  .testimonials-section { padding-top: 62px; padding-bottom: 62px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: clamp(30px, 8vw, 38px); }
  .learning-card, .learning-card:first-child { min-height: 290px; }
  .learning-card-content { padding: 20px; }
  .impact-grid { gap: 0; }
  .impact-grid article { padding: 22px 0; }
  .impact-grid strong { font-size: 24px; }
  .offering-grid article { min-height: 0; padding: 23px; }
  .approach-description { min-height: 0; }
  .catalog-grid,
  .guide-grid,
  .contact-grid,
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-card { min-height: 0; padding: 23px; }
  .section-title-row { margin-bottom: 24px; }
  .section-title-row h2,
  .content-heading { font-size: clamp(28px, 8vw, 36px); }
  .catalog-controls { gap: 8px; }
  .catalog-controls .catalog-search { width: 100%; min-width: 0; flex-basis: 100%; }
  .learning-panel { padding: 20px; }
  .lesson-card { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .lesson-action { grid-column: 2; justify-self: start; }
  .dashboard-welcome { display: block; }
  .dashboard-welcome h1 { font-size: clamp(32px, 9vw, 42px); }
  .settings-panel,
  .settings-details,
  .dashboard-card,
  .guide-card,
  .article-card,
  .contact-card { padding: 21px; }
  .policy-nav { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .article-card a { white-space: normal; }
  .page-hero h1 { font-size: clamp(35px, 10vw, 45px); }
  .page-intro { font-size: 14px; }
  .auth-page { min-height: calc(100vh - 66px); padding: 18px 12px; }
  .auth-layout { border-radius: 16px; }
  .auth-aside { display: none; }
  .auth-panel { padding: 27px 22px; }
  .auth-panel-heading { margin-top: 31px; }
  .auth-header-link { max-width: 102px; font-size: 10px; line-height: 1.4; text-align: right; }
  .footer-content { padding-top: 45px; padding-bottom: 35px; }
  .footer-bottom { gap: 12px; }
  .footer-bottom span { max-width: 190px; }
}

@media (max-width: 360px) {
  .section-shell,
  .header-content { width: calc(100% - 26px); }
  .header-content { gap: 5px; }
  .header-actions .button { padding-inline: 8px; }
  .theme-toggle { width: 36px; min-width: 36px; }
  .hero-visual { min-height: 280px; }
  .code-content { font-size: 9px; }
  .double-indent { padding-left: 20px; }
  .terminal-line { font-size: 8px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 280px) {
  .brand > span:last-child { display: none; }
  .header-content .header-actions .text-link,
  .header-content .header-actions .auth-status { display: none; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 14px; }
}

@media (hover: none) {
  .button:hover { transform: none; }
  .catalog-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c1421;
  --cream: #111d2d;
  --line: #29394e;
  --ink: #e8edf5;
  --muted: #aab8ca;
  --orange: #ff916d;
  --orange-dark: #ffad8e;
  --accent-readable: #ffc0a8;
  --accent-heading: #ffad8e;
  --navy: #e8edf5;
  --navy-deep: #09111d;
  --surface-raised: #141f2f;
  --surface-soft: #1a2a3d;
  --border-strong: #35465c;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, .2);
  --shadow-float: 0 24px 70px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] body {
  color: #e8edf5;
  background:
    radial-gradient(ellipse at 50% -24rem, rgba(70, 111, 169, .14), transparent 52rem),
    #0c1421;
}

html[data-theme="dark"] .site-header {
  border-color: #29394e;
  background: rgba(12, 20, 33, .9);
  box-shadow: 0 3px 20px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] body .brand,
html[data-theme="dark"] body .primary-navigation a,
html[data-theme="dark"] body .text-link,
html[data-theme="dark"] body .auth-status,
html[data-theme="dark"] body .hero h1,
html[data-theme="dark"] body .skill-line,
html[data-theme="dark"] body .learner-proof strong,
html[data-theme="dark"] body .stat-strip strong,
html[data-theme="dark"] body .section-heading h2,
html[data-theme="dark"] body .page-hero h1,
html[data-theme="dark"] body .section-title-row h2,
html[data-theme="dark"] body .content-heading,
html[data-theme="dark"] body .catalog-card h2,
html[data-theme="dark"] body .catalog-card h3,
html[data-theme="dark"] body .learning-panel h2,
html[data-theme="dark"] body .lesson-card h3,
html[data-theme="dark"] body .dashboard-welcome h1,
html[data-theme="dark"] body .dashboard-card h2,
html[data-theme="dark"] body .settings-heading h2,
html[data-theme="dark"] body .settings-details h2,
html[data-theme="dark"] body .settings-panel > h3,
html[data-theme="dark"] body .settings-detail-value,
html[data-theme="dark"] body .guide-card h2,
html[data-theme="dark"] body .article-card h2,
html[data-theme="dark"] body .article-content h2,
html[data-theme="dark"] body .contact-card h2,
html[data-theme="dark"] body .values-list h2,
html[data-theme="dark"] body .testimonial-grid h3,
html[data-theme="dark"] body .policy-copy h2 { color: #e8edf5; }

html[data-theme="dark"] body .hero-description,
html[data-theme="dark"] body .learner-proof p,
html[data-theme="dark"] body .stat-strip span,
html[data-theme="dark"] body .split-heading > p,
html[data-theme="dark"] body .page-intro,
html[data-theme="dark"] body .breadcrumb,
html[data-theme="dark"] body .section-title-row > p,
html[data-theme="dark"] body .catalog-card > p:not(.catalog-eyebrow),
html[data-theme="dark"] body .catalog-card details p,
html[data-theme="dark"] body .lesson-card p,
html[data-theme="dark"] body .lesson-card small,
html[data-theme="dark"] body .dashboard-card p,
html[data-theme="dark"] body .settings-heading > p:last-child,
html[data-theme="dark"] body .settings-help,
html[data-theme="dark"] body .article-card p,
html[data-theme="dark"] body .article-content p,
html[data-theme="dark"] body .article-content li,
html[data-theme="dark"] body .about-grid > p,
html[data-theme="dark"] body .values-list p,
html[data-theme="dark"] body .policy-copy p,
html[data-theme="dark"] body .policy-copy li,
html[data-theme="dark"] body .auth-panel-heading > p:last-child,
html[data-theme="dark"] body .auth-back,
html[data-theme="dark"] body .auth-switch,
html[data-theme="dark"] body .auth-terms,
html[data-theme="dark"] body .field-group label { color: #aab8ca; }

html[data-theme="dark"] body .eyebrow:not(.eyebrow-light),
html[data-theme="dark"] body .catalog-eyebrow,
html[data-theme="dark"] body .settings-field label,
html[data-theme="dark"] body .settings-detail-label,
html[data-theme="dark"] body .learning-status,
html[data-theme="dark"] body .catalog-empty,
html[data-theme="dark"] body .auth-header-link,
html[data-theme="dark"] body .testimonial-grid figcaption small,
html[data-theme="dark"] body .footer-brand > p,
html[data-theme="dark"] body .footer-links a,
html[data-theme="dark"] body .footer-bottom,
html[data-theme="dark"] body .footer-bottom a { color: #c2cede; }

html[data-theme="dark"] body .hero h1 span,
html[data-theme="dark"] body .page-hero h1 span,
html[data-theme="dark"] body #rotating-skill,
html[data-theme="dark"] body .cursor,
html[data-theme="dark"] body .breadcrumb a,
html[data-theme="dark"] body .catalog-card summary,
html[data-theme="dark"] body .catalog-action,
html[data-theme="dark"] body .article-card a,
html[data-theme="dark"] body .label-row a,
html[data-theme="dark"] body .auth-header-link a,
html[data-theme="dark"] body .auth-switch a,
html[data-theme="dark"] body .auth-terms a { color: #ffbd9f; }

html[data-theme="dark"] body .eyebrow-light { color: #c2cede; }
html[data-theme="dark"] body .company-list span:nth-child(2) { color: #a9bdff; }
html[data-theme="dark"] body .testimonial-grid figcaption small { color: #c2cede; }
html[data-theme="dark"] body .companies-section p { color: #c2cede; }
html[data-theme="dark"] body .technology-list span {
  border-color: #35465c;
  color: #d5deeb;
  background: #17263a;
}
html[data-theme="dark"] body .learner-avatars { border-color: #35465c; color: #c6dcff; background: #1c3048; }
html[data-theme="dark"] body .quote-mark { color: #ffbd9f; background: #352a31; }
html[data-theme="dark"] body .approach-description { color: #c2cede; }
html[data-theme="dark"] body .form-message { color: #c2cede; }
html[data-theme="dark"] body .form-message.error,
html[data-theme="dark"] body .learning-status.error { color: #ffaaa4; }
html[data-theme="dark"] body .form-message.success,
html[data-theme="dark"] body .learning-status.success { color: #91e0b8; }

html[data-theme="dark"] body .hero::before {
  border-color: #29394e;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(90, 132, 192, .16), transparent 34%),
    radial-gradient(ellipse at 23% 94%, rgba(240, 126, 91, .07), transparent 36%),
    linear-gradient(145deg, rgba(20, 31, 47, .92), rgba(15, 27, 43, .86));
}

html[data-theme="dark"] body .site-header .brand { color: #e8edf5; }
html[data-theme="dark"] body .button-small:not(.is-logout) { color: #f4f7fb; background: #263c55; }
html[data-theme="dark"] body .button-secondary,
html[data-theme="dark"] body .menu-toggle { border-color: #35465c; color: #e8edf5; background: #17263a; }
html[data-theme="dark"] body .button-primary { color: #fff; background: linear-gradient(135deg, #ed754f, #d95136); }
html[data-theme="dark"] body .theme-toggle { color: #e8edf5; background: #1d3045; }
html[data-theme="dark"] body .glow-one { background: #263c55; }
html[data-theme="dark"] body .glow-two { background: #1b403e; }
html[data-theme="dark"] body .code-window { box-shadow: 16px 18px 0 #1b2b40, var(--shadow-float); }
html[data-theme="dark"] body .floating-card { border-color: #35465c; color: #e8edf5; background: rgba(23, 35, 51, .97); }
html[data-theme="dark"] body .floating-card i { color: white; }
html[data-theme="dark"] body .stat-strip,
html[data-theme="dark"] body .companies-section { border-color: #29394e; background: #111c2c; }
html[data-theme="dark"] body .impact-section,
html[data-theme="dark"] body .page-cta,
html[data-theme="dark"] body .auth-aside,
html[data-theme="dark"] body .learning-sidebar { color: #e8edf5; background: linear-gradient(130deg, #172c43, #0e1b2b); }
html[data-theme="dark"] body .page-hero {
  border-color: #29394e;
  background:
    radial-gradient(circle at 88% 22%, rgba(148, 181, 91, .12), transparent 22%),
    radial-gradient(circle at 9% 85%, rgba(233, 95, 60, .09), transparent 26%),
    linear-gradient(145deg, #121f31, #0f1929);
}
html[data-theme="dark"] body .catalog-card,
html[data-theme="dark"] body .learning-panel,
html[data-theme="dark"] body .settings-panel,
html[data-theme="dark"] body .settings-details,
html[data-theme="dark"] body .dashboard-card,
html[data-theme="dark"] body .guide-card,
html[data-theme="dark"] body .article-card,
html[data-theme="dark"] body .contact-card,
html[data-theme="dark"] body .lesson-card {
  border-color: #29394e;
  background: #141f2f;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .14);
}
html[data-theme="dark"] body .page-section.alt-surface { background: #101a2a; }
html[data-theme="dark"] body .catalog-card:hover { border-color: #465d78; }
html[data-theme="dark"] body .catalog-icon { color: #ffad8e; background: #352a31; }
html[data-theme="dark"] body .catalog-card:nth-child(3n + 2) .catalog-icon { color: #8de0c1; background: #1d3836; }
html[data-theme="dark"] body .catalog-card:nth-child(3n) .catalog-icon { color: #c4b2ff; background: #2a2941; }
html[data-theme="dark"] body .catalog-search,
html[data-theme="dark"] body .catalog-filter,
html[data-theme="dark"] body .settings-field input,
html[data-theme="dark"] body .auth-form input {
  border-color: #35465c;
  color: #e8edf5;
  background: #0f1929;
}
html[data-theme="dark"] body .catalog-search::placeholder,
html[data-theme="dark"] body .auth-form input::placeholder { color: #96a5b8; }
html[data-theme="dark"] body .catalog-filter[aria-pressed="true"],
html[data-theme="dark"] body .catalog-filter:hover { border-color: #527093; background: #263c55; }
html[data-theme="dark"] body .card-meta span { color: #d5deeb; background: #202e41; }
html[data-theme="dark"] body .lesson-card.is-complete { border-color: #315746; background: #172e2a; }
html[data-theme="dark"] body .lesson-action { border-color: #355747; color: #a0e3c1; background: #172e2a; }
html[data-theme="dark"] body .lesson-action:hover { background: #1f4036; }
html[data-theme="dark"] body .dashboard-stat { color: #15253b; background: #d7f58a; }
html[data-theme="dark"] body .policy-nav { border-color: #29394e; background: #141f2f; }
html[data-theme="dark"] body .policy-nav a { color: #c2cede; }
html[data-theme="dark"] body .policy-nav a:hover,
html[data-theme="dark"] body .policy-nav a[aria-current="page"] { color: #17243a; background: #d7f58a; }
html[data-theme="dark"] body .policy-note { color: #d5deeb; background: #282632; }
html[data-theme="dark"] body .article-content { border-color: #29394e; }
html[data-theme="dark"] body .auth-page { background: radial-gradient(circle at 18% 80%, rgba(255, 219, 184, .045), transparent 25%), #0c1421; }
html[data-theme="dark"] body .auth-layout,
html[data-theme="dark"] body .auth-panel { border-color: #29394e; background: #141f2f; }
html[data-theme="dark"] body .password-toggle { color: #c2cede; }
html[data-theme="dark"] body .password-toggle:hover { color: #fff; background: #202e41; }
html[data-theme="dark"] body .site-footer { background: linear-gradient(145deg, #09111d, #060c14); }
html[data-theme="dark"] body .primary-navigation {
  border-color: #29394e;
  background: transparent;
}
html[data-theme="dark"] body .primary-navigation a:hover,
html[data-theme="dark"] body .primary-navigation a.is-current { background: #1a2a3d; }
html[data-theme="dark"] body .page-section.dark-surface { color: #e8edf5; background: #172c43; }

.primary-navigation .account-navigation-start {
  margin-left: 3px;
  padding-left: 19px;
  border-left: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .primary-navigation .account-navigation-start {
    margin-top: 5px;
    margin-left: 0;
    padding-top: 16px;
    padding-left: 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* Preserve the full course artwork instead of cropping it to fill tall cards. */
.learning-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-raised);
  text-decoration: none;
}
.learning-card::after { display: none; }
.learning-card img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #0b1c2a;
  transition: none;
}
.learning-card:hover img { transform: none; }
.learning-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 22px 22px;
  color: var(--ink);
}
.learning-card-content .card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
  border-radius: 9px;
  color: var(--accent-readable);
  background: #fff0e9;
}
.learning-card-content p { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.learning-card-content h3 { margin: 0; color: var(--ink); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.3; }
.learning-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--accent-readable);
  font-size: 12px;
  text-decoration: none;
}
.learning-card:hover .card-link { color: var(--orange-dark); }
.learning-card:focus-visible { outline: 3px solid #3982d7; outline-offset: 4px; }

html[data-theme="dark"] body .learning-card {
  border-color: #29394e;
  color: #e8edf5;
  background: #141f2f;
}
html[data-theme="dark"] body .learning-card-content,
html[data-theme="dark"] body .learning-card-content h3 { color: #e8edf5; }
html[data-theme="dark"] body .learning-card-content p { color: #aab8ca; }
html[data-theme="dark"] body .learning-card-content .card-icon { color: #ffbd9f; background: #352a31; }
html[data-theme="dark"] body .learning-card .card-link { color: #ffbd9f; }

@media (max-width: 760px) {
  .learning-card,
  .learning-card:first-child { min-height: 0; }
}

@media (max-width: 560px) {
  html[data-theme="dark"] body .code-window { box-shadow: 8px 10px 0 #1b2b40, var(--shadow-float); }
}

.header-content { position: relative; }
.primary-navigation a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  white-space: nowrap;
}
.primary-navigation a.is-current { color: var(--accent-readable); }
.primary-navigation a:hover { color: var(--orange-dark); }
.primary-navigation a:focus-visible,
.header-actions a:focus-visible,
.header-actions button:focus-visible,
.menu-toggle:focus-visible { outline: 3px solid #3982d7; outline-offset: 3px; }
.header-actions { flex: 0 0 auto; align-items: center; }
.header-actions .text-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: #43536b;
  white-space: nowrap;
}
.header-actions .text-link:hover { color: var(--accent-readable); }
.header-actions .button-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 12px;
  white-space: nowrap;
}
.header-actions .theme-toggle {
  border: 1px solid var(--border-strong);
  color: #34445d;
  background: #fff;
}
.header-actions .theme-toggle:hover { border-color: #9eacc1; background: #f3f6fb; }
.header-actions .button-small:not(.is-logout):not(.theme-toggle) {
  color: #fff;
  background: #213957;
}
.header-actions .button-small:not(.is-logout):not(.theme-toggle):hover { background: #304e73; }
.header-actions .button-small.is-logout {
  border: 1px solid #c5df7a;
  color: #243516;
  background: #e3f6aa;
}
.header-actions .button-small.is-logout:hover { border-color: #a7c954; background: #d7ee91; }
.header-actions .button-small[aria-disabled="true"] { cursor: wait; opacity: .7; }
.auth-status {
  color: #43536b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.menu-toggle { color: #263a57; }
.menu-toggle:hover { border-color: #b7c5d8; background: #f3f6fb; }

html[data-theme="dark"] body .primary-navigation { background: transparent; }
html[data-theme="dark"] body .primary-navigation a.is-current {
  color: #ffbd9f;
  background: transparent;
}
html[data-theme="dark"] body .primary-navigation a:hover {
  color: #ffd1bf;
  background: rgba(255, 255, 255, .06);
}
html[data-theme="dark"] body .header-actions .text-link,
html[data-theme="dark"] body .auth-status { color: #d5deeb; }
html[data-theme="dark"] body .header-actions .text-link:hover { color: #ffbd9f; }
html[data-theme="dark"] body .header-actions .theme-toggle {
  border-color: #35465c;
  color: #e8edf5;
  background: #17263a;
}
html[data-theme="dark"] body .header-actions .theme-toggle:hover { border-color: #526984; background: #20344c; }
html[data-theme="dark"] body .header-actions .button-small:not(.is-logout):not(.theme-toggle) {
  border-color: #405a77;
  color: #fff;
  background: #304d70;
}
html[data-theme="dark"] body .header-actions .button-small:not(.is-logout):not(.theme-toggle):hover { background: #3b5d86; }
html[data-theme="dark"] body .header-actions .button-small.is-logout {
  border-color: #c5df7a;
  color: #243516;
  background: #e3f6aa;
}
html[data-theme="dark"] body .header-actions .button-small.is-logout:hover { background: #d7ee91; }
html[data-theme="dark"] body .menu-toggle {
  border-color: #35465c;
  color: #e8edf5;
  background: #17263a;
}
html[data-theme="dark"] body .menu-toggle:hover { border-color: #526984; background: #20344c; }

@media (max-width: 1120px) {
  .primary-navigation {
    right: 0;
    left: 0;
    gap: 3px;
  }
  .primary-navigation a { width: 100%; min-height: 42px; }
  .primary-navigation a.is-current { color: var(--accent-readable); background: var(--surface-soft); }
  .primary-navigation .account-navigation-start {
    margin-top: 6px;
    padding-top: 15px;
  }
  html[data-theme="dark"] body .primary-navigation {
    border-color: #35465c;
    background: #141f2f;
  }
  html[data-theme="dark"] body .primary-navigation a.is-current {
    color: #ffbd9f;
    background: #1a2a3d;
  }
  html[data-theme="dark"] body .primary-navigation a:hover { background: #20344c; }
}

@media (max-width: 760px) {
  .header-actions { gap: 8px; }
  .header-actions .button-small { min-height: 38px; }
}

@media (max-width: 560px) {
  .header-actions { gap: 6px; }
  .header-actions .button-small { min-height: 36px; padding-inline: 9px; }
  .header-actions .theme-toggle { width: 38px; min-width: 38px; padding: 0; }
  .header-actions .button-small.is-logout { min-width: 68px; }
}

@media (max-width: 360px) {
  .header-actions { gap: 4px; }
  .header-actions .button-small { padding-inline: 7px; }
  .header-actions .theme-toggle { width: 34px; min-width: 34px; }
  .header-actions .button-small.is-logout { min-width: 62px; }
  .header-content > .brand > span:last-child { display: none; }
}
