/* =========================================================
   My Driving Trainer — Stylesheet
   Aesthetic: confident, modern, trustworthy
   Palette: deep navy, warm cream, signal yellow accent
   ========================================================= */


:root {
  --navy: #0d2c54;
  --navy-deep: #081b35;
  --navy-soft: #1e4380;
  --cream: #eef5fc;
  --cream-warm: #e3eefa;
  --yellow: #f5a623;
  --yellow-soft: #fde68a;
  --text: #14181f;
  --text-muted: #475467;
  --line: #e5e9f1;
  --success: #15803d;
  --shadow-soft: 0 4px 20px rgba(13, 44, 84, 0.08);
  --shadow-strong: 0 12px 40px rgba(13, 44, 84, 0.15);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --bg: #f6f9fd;
  --bg-warm: #eef3fb;
  --surface: #ffffff;
  --fill-navy: #0d2c54;
  --fill-navy-deep: #081b35;
  --fill-navy-soft: #1e4380;
  --hl-yellow: #fef9e7;
  --hl-yellow2: #fff4d6;
  --hl-red: #fdeced;
  --hl-mint: #b2fce4;
} [data-theme="dark"] .hl{ background:#f5a623 !important; color:#0d2c54 !important; border-radius:4px; padding:0 .12em; -webkit-box-decoration-break:clone; box-decoration-break:clone; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy-soft); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.nav-cta {
  background: var(--yellow);
  color: #0d2c54;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.nav-cta:hover {
  background: #e6b610;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.45);
  color: #0d2c54;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg { width: 28px; height: 28px; }

/* ========== HERO ========== */
.hero {
  padding: 80px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--fill-navy);
  border-radius: 50%;
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h1.hero-title em {
  font-style: italic;
  color: var(--navy-soft);
  font-weight: 400;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.2s;
  cursor: pointer;
  border: 0;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--yellow);
  color: #0d2c54;
}
.btn-primary:hover {
  background: #e6b610;
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--fill-navy);
  color: var(--cream);
}

.btn-yellow {
  background: var(--yellow);
  color: #ffffff;
}
.btn-yellow:hover {
  background: #e6b610;
  transform: translateY(-2px);
}

/* Hero visual: stacked cards on right */
.hero-visual {
  position: relative;
  height: 460px;
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
}

.hero-card-1 {
  top: 0;
  left: 0;
  width: 260px;
  transform: rotate(-3deg);
  z-index: 1;
}

.hero-card-2 {
  top: 60px;
  right: 0;
  width: 280px;
  transform: rotate(2deg);
  z-index: 3;
  background: var(--fill-navy);
  color: var(--cream);
}

.hero-card-3 {
  bottom: 0;
  left: 60px;
  width: 270px;
  transform: rotate(-1deg);
  z-index: 2;
  background: var(--yellow);
}

.hero-card .card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.7;
}

.hero-card .card-big {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-card .card-small {
  font-size: 14px;
  opacity: 0.85;
}

.hero-card-2 .card-label { color: var(--yellow); opacity: 1; }

/* Decorative blob */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* ========== SECTIONS ========== */
section { padding: 80px 0; }

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 16px;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 720px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ========== FEATURE GRID ========== */
.features {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--navy-soft);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--fill-navy);
  color: var(--yellow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.price-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}

.price-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.price-card.featured {
  background: var(--fill-navy);
  color: var(--cream);
  border-color: var(--navy);
}

.price-card.featured .price-name,
.price-card.featured .price-amount,
.price-card.featured .price-features li { color: var(--cream); }

.price-card.featured .price-feature-check { color: var(--yellow); }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.price-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card:not(.featured) .price-tag { border-bottom-color: var(--line); }

.price-amount {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.price-unit {
  font-size: 16px;
  color: var(--text-muted);
}

.price-card.featured .price-unit { color: var(--yellow-soft); }

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
}

.price-feature-check {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ========== ARTICLES GRID ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.article-image {
  height: 200px;
  background: linear-gradient(135deg, var(--fill-navy) 0%, var(--fill-navy-soft) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 60px;
}

.article-image.alt-1 {
  background: linear-gradient(135deg, #d97706 0%, #f5a623 100%);
  color: var(--navy);
}
.article-image.alt-2 {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  color: var(--cream);
}
.article-image.alt-3 {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
  color: var(--cream);
}
.article-image.alt-4 {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: var(--cream);
}

.article-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}

.article-read {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--fill-navy);
  color: var(--cream);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  margin: 60px auto;
  max-width: 1240px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.15), transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
}

/* ========== FOOTER ========== */
footer {
  background: var(--fill-navy-deep);
  color: var(--cream);
  padding: 64px 0 32px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo img {
  height: 56px;
  background: #ffffff;
  padding: 12px 22px;
  border-radius: 100px;
  border: 0;
  display: block;
}

.footer-tag {
  color: var(--cream);
  opacity: 0.7;
  font-size: 15px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--cream);
  opacity: 0.8;
  font-size: 14px;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.footer-legal {
  font-size: 13px;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========== INNER PAGE HEADER ========== */
.page-header {
  padding: 80px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ========== ABOUT / SERVICES CONTENT ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.15;
}

.content-grid p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.content-image {
  background: linear-gradient(135deg, var(--fill-navy) 0%, var(--fill-navy-soft) 100%);
  border-radius: 24px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: var(--yellow);
  position: relative;
  overflow: hidden;
}

.content-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 197, 24, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 197, 24, 0.1) 0%, transparent 40%);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info-card {
  background: var(--fill-navy);
  color: var(--cream);
  border-radius: 24px;
  padding: 40px;
}

.contact-info-card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  color: var(--cream);
  word-break: break-word;
}

.contact-form {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--line);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--navy);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ========== ARTICLE SINGLE ========== */
.article-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-single .article-meta {
  margin-bottom: 16px;
}

.article-single h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.article-single .lead {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.article-single h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 16px;
}

.article-single p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.article-single ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-single li {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 32px;
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .hero-inner,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { height: 360px; }
  .hero-card-1 { width: 200px; }
  .hero-card-2 { width: 220px; }
  .hero-card-3 { width: 210px; }

  .feature-grid,
  .pricing-grid,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section { padding: 60px 0; }
  .cta-banner { padding: 48px 24px; margin: 40px 16px; }
  .content-image { height: 300px; font-size: 80px; }
}


/* ========================= DARK MODE ========================= */
body { transition: background-color .3s ease, color .3s ease; }

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-warm: #10182a;
  --surface: #18233a;
  --cream: #eef4fb;
  --cream-warm: #dce7f5;
  --text: #eaeef5;
  --text-muted: #b3bECC;
  --line: #2a3a54;
  --navy: #e9eef6;
  --navy-soft: #b7c4da;
  --navy-deep: #f6f9fd;
  --fill-navy: #1c3358;
  --fill-navy-deep: #122444;
  --fill-navy-soft: #2a4570;
  --hl-yellow: #26210e;
  --hl-yellow2: #2b2410;
  --hl-red: #2d1419;
  --hl-mint: #0e2a22;
  --yellow-soft: #5a4a12;
  --shadow-soft: 0 4px 20px rgba(0,0,0,.35);
  --shadow-strong: 0 12px 40px rgba(0,0,0,.55);
}

/* keep the navy logo visible on dark surfaces via a light chip */
[data-theme="dark"] .nav-logo img { background:#ffffff; padding:6px 12px; border-radius:12px; }
[data-theme="dark"] .footer-logo img { background:#ffffff; }

/* theme toggle */
.theme-toggle{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0;
  background:transparent; border:1.5px solid var(--line); border-radius:100px; color:var(--navy); cursor:pointer;
  transition:border-color .2s, color .2s, background .2s; }
.theme-toggle:hover{ border-color:var(--navy); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }
.nav-links li.nav-theme{ display:flex; align-items:center; }
@media (max-width:900px){ .nav-links li.nav-theme{ margin-top:4px; } }

/* ===== shared article components (article-single pages) ===== */
.article-single .note{ background:var(--bg-warm); border-left:4px solid var(--navy-soft); border-radius:8px; padding:18px 22px; margin:26px 0; }
.article-single .note h3{ margin:0 0 6px; font-size:17px; color:var(--navy); }
.article-single .note p{ margin:0; }
.article-single .note ul{ padding-left:20px; margin:8px 0 0; }

.article-single .hook{ background:var(--fill-navy); color:var(--cream); border-radius:14px; padding:24px 28px; margin:26px 0; }
.article-single .hook h2{ margin:0 0 8px; color:var(--cream); font-size:22px; }
.article-single .hook p{ margin:0; opacity:0.94; }

.article-single table{ width:100%; border-collapse:collapse; margin:24px 0; font-size:15px; }
.article-single th, .article-single td{ border:1px solid var(--line); padding:10px 14px; text-align:left; vertical-align:top; }
.article-single th{ background:var(--bg-warm); font-weight:700; color:var(--navy); }

.stamp{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; flex:none; margin-right:8px; border-radius:50%; background:var(--yellow); color:#0d2c54; font-weight:700; font-size:13px; vertical-align:middle; }

.article-single .sources{ background:var(--bg-warm); border:1px solid var(--line); border-radius:12px; padding:22px 26px; margin:40px 0 0; font-size:14px; }
.article-single .sources-label{ font-weight:700; text-transform:uppercase; letter-spacing:.5px; font-size:12px; color:var(--text-muted); margin-bottom:10px; }
.article-single .sources ul{ margin:0; padding-left:18px; line-height:1.7; }
.article-single .sources a{ text-decoration:underline; }
.article-single .last-updated{ margin-top:14px; color:var(--text-muted); font-size:13px; }
.article-single .disclaimer{ color:var(--text-muted); font-size:13px; line-height:1.6; margin-top:36px; }

.article-single .scenario{ display:flex; gap:14px; align-items:flex-start; padding:18px 0; border-top:1px solid var(--line); }
.article-single .scenario:first-of-type{ border-top:0; }
.article-single .scenario .scenario-title{ font-weight:700; margin-bottom:4px; }
.article-single .scenario p{ margin:0; }

.article-cta{ background:var(--fill-navy); color:var(--cream); border-radius:16px; padding:32px; margin:44px 0 0; text-align:center; }
.article-cta h2{ margin:0 0 10px; color:var(--cream); }
.article-cta p{ margin:0 auto 20px; opacity:.92; max-width:560px; }

.signoff{ background:var(--fill-navy); color:var(--cream); border-radius:16px; padding:28px 30px; margin:44px 0 0; }
.signoff .signoff-line{ font-family:var(--display); font-size:20px; margin:0; }
.signoff .signoff-name{ font-weight:700; margin:6px 0 0; }
.signoff .signoff-role{ opacity:.85; font-size:14px; margin:2px 0 18px; }
.signoff .signoff-contacts{ display:flex; flex-wrap:wrap; gap:10px; }
.signoff .signoff-btn-outline{ background:transparent; border:2px solid var(--cream); color:var(--cream); }


/* ===== Brand layer — white + navy + yellow (primary) + sky-blue (secondary) ===== */
:root{ --sky:#2a93d5; --sky-deep:#1c6fa8; }
.nav-cta, .nav-cta:hover{ color:#0d2c54; }
.btn-yellow, .stamp{ color:#0d2c54; }
.btn-secondary{ border-color:var(--yellow); color:#0d2c54; border-width:2px; }
.btn-secondary:hover{ background:var(--yellow); color:#0d2c54; }
.hero-eyebrow{ background:rgba(245,197,24,.16); color:var(--navy); }
h1, h2, .hero h1{ letter-spacing:-.018em; }

/* ===== Golden-wattle CTA treatment + steering-wheel icon (site-wide) ===== */
:root{ --wattle:#f5a623; --wattle-deep:#e7b30d; }
.btn-primary, .btn-yellow{ background:var(--wattle); color:#0d2c54; }
.btn-primary:hover, .btn-yellow:hover{ background:var(--wattle-deep); color:#0d2c54; }
.nav-cta{ display:inline-flex; align-items:center; gap:8px; }
/* steering-wheel icon on the main call-to-action buttons */
.btn-primary::before, .btn-yellow::before, .nav-cta::before{
  content:''; flex:0 0 auto; width:20px; height:20px;
  background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230d2c54%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%272.6%27%20fill%3D%27%230d2c54%27%20stroke%3D%27none%27%2F%3E%3Cline%20x1%3D%2712%27%20y1%3D%279.4%27%20x2%3D%2712%27%20y2%3D%273.2%27%2F%3E%3Cline%20x1%3D%279.9%27%20y1%3D%2713.3%27%20x2%3D%274.6%27%20y2%3D%2716.4%27%2F%3E%3Cline%20x1%3D%2714.1%27%20y1%3D%2713.3%27%20x2%3D%2719.4%27%20y2%3D%2716.4%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
.nav-cta::before{ width:16px; height:16px; }

/* ===== Dark-mode legibility safety net (inline-styled sections that don't use theme variables) ===== */
/* Darken hardcoded light backgrounds so theme-coloured text stays readable in dark mode */
[data-theme="dark"] [style*="#eef6fd"],[data-theme="dark"] [style*="#f6f9fd"],[data-theme="dark"] [style*="#eef3fb"],[data-theme="dark"] [style*="#f8fbff"],[data-theme="dark"] [style*="#f4f8fd"],[data-theme="dark"] [style*="#eef5fd"],[data-theme="dark"] [style*="#eef5ff"],[data-theme="dark"] [style*="#e3eefa"],[data-theme="dark"] [style*="#1e4380"],[data-theme="dark"] [style*="#f4f8fc"]{ background:#141d31 !important; background-image:none !important; border-color:#2a3a54 !important; }
/* Lighten common hardcoded muted/dark text so it isn't lost on dark backgrounds */
[data-theme="dark"] [style*="color:#5c5c5c"],[data-theme="dark"] [style*="color: #5c5c5c"],[data-theme="dark"] [style*="color:#5b6b7f"],[data-theme="dark"] [style*="color: #5b6b7f"],[data-theme="dark"] [style*="color:#0d2c54"],[data-theme="dark"] [style*="color: #0d2c54"]{ color:#c9d4e3 !important; }
/* Build-your-own bulk-package calculator → proper dark card */
[data-theme="dark"] .byo-builder{ background:linear-gradient(135deg,#10182a 0%,#141d31 100%) !important; }
[data-theme="dark"] .byo-card{ background:#18233a !important; box-shadow:none !important; }
[data-theme="dark"] .byo-title,[data-theme="dark"] .byo-intro,[data-theme="dark"] .byo-step-label,[data-theme="dark"] .byo-hours-label,[data-theme="dark"] #byo-hours,[data-theme="dark"] .byo-rate,[data-theme="dark"] .byo-note,[data-theme="dark"] .byo-breakdown,[data-theme="dark"] .byo-total-line span,[data-theme="dark"] .byo-line span{ color:var(--cream) !important; }
[data-theme="dark"] #byo-hours{ background:#0b1120 !important; border-color:#2a3a54 !important; }
[data-theme="dark"] .byo-step{ border-color:#2a3a54 !important; }
[data-theme="dark"] .byo-test-card{ background:#0f1626 !important; border-color:#2a3a54 !important; }
[data-theme="dark"] .byo-test-title{ color:var(--cream) !important; }
/* How-it-works UI mockups */
[data-theme="dark"] .screen{ background:#18233a !important; border-color:#2a3a54 !important; }
[data-theme="dark"] .screen-bar{ background:#0f1626 !important; border-color:#2a3a54 !important; }

/* calendar past/empty cells: remove hardcoded light bg in dark mode */
[data-theme="dark"] .cal td.past,[data-theme="dark"] .cal td.empty{ background:#0f1626 !important; }
/* credit/green banners with hardcoded bg:#eef6ee (booking creditBanner) */
[data-theme="dark"] [style*="background:#eef6ee"]{ background:#0e2a22 !important; border-color:#1a4a35 !important; }
[data-theme="dark"] [style*="color:#1c5c3a"]{ color:#4ecb8a !important; }
/* account.html structural cards with hardcoded light backgrounds */
[data-theme="dark"] .path-stat{ background:#141d31 !important; border-color:#2a3a54 !important; }
[data-theme="dark"] .pkg-summary{ background:#141d31 !important; border-color:#2a3a54 !important; }
[data-theme="dark"] .note.err{ background:#2d1419 !important; }
[data-theme="dark"] .thread-row:hover{ background:#1c2a3d !important; }
/* MDT a11y contrast fixes */
.btnx-pri,.btnx-pri:link,.btnx-pri:visited,.nav-cta,.nav-cta:link,.nav-cta:visited,.faq-signoff-btn{color:#0b1626 !important;}

/* MDT: allow dark colour scheme when user chooses dark mode */
:root{color-scheme:light dark;}
html{background:var(--bg);}


/* MDT task 3: mobile — show full menu + day/night toggle inline, no hamburger */
@media (max-width:900px){
   .nav-toggle{display:none!important}
   .nav-inner{gap:12px;padding:0 14px}
   .nav-logo img{height:40px}
   .nav-links{display:flex!important;position:static!important;flex:1 1 auto;min-width:0;flex-direction:row!important;flex-wrap:nowrap;align-items:center;gap:16px;padding:0!important;margin:0;background:transparent!important;border-bottom:0!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
   .nav-links::-webkit-scrollbar{display:none}
   .nav-links li{flex:0 0 auto}
   .nav-links li.nav-theme{margin-top:0}
   .nav-links a{white-space:nowrap;font-size:14px;padding:4px 0}
}


/* ===== v4 contrast & readability pass (day + night) ===== */
.rs{ color:#15803d !important; }
[data-theme="dark"] .rs{ color:#4ade80 !important; }
[data-theme="dark"] .go,
[data-theme="dark"] .tlink{ color:#7cbcf2 !important; }
.hero .eyebrow{ color:#14568f !important; }
[data-theme="dark"] .hero .eyebrow{ color:#9ed0f3 !important; } [data-theme="dark"] .hl{ background:#f5a623 !important; color:#0d2c54 !important; border-radius:4px; padding:0 .12em; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
