/*
  V66 clean course stylesheet
  Scorched-earth rebuild: old one-off fixes, patch layers and selector turf wars removed.
  Components are styled by visual role first, section-specific selectors only adjust layout/content.
*/

:root {
  --topbar: 60px;
  --sidebar: 292px;
  --ink: #111510;
  --muted: #66715f;
  --graphite: #172018;
  --graphite-2: #101611;
  --green: #8fcf3c;
  --green-dark: #2f6f2d;
  --green-soft: #f4faee;
  --line: #e4eadc;
  --line-strong: #cfe6b3;
  --card: #ffffff;
  --bg: #ffffff;
  --shadow: 0 18px 46px rgba(17, 21, 16, .08);
  --shadow-soft: 0 10px 28px rgba(17, 21, 16, .06);
  --radius: 18px;
  --radius-sm: 12px;
  --content-pad: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #fff; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
strong { font-weight: 850; }
a { color: inherit; }

.app { min-height: 100vh; background: #fff; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(21,27,22,.12);
  box-shadow: 0 8px 24px rgba(17,21,16,.05);
}
.brand-mark { width: 128px; height: 38px; display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; text-decoration: none; cursor: pointer; }
.brand-mark:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 8px; }
.brand-mark img { display: block; max-height: 34px; width: auto; object-fit: contain; }
.topbar-title { color: var(--ink); font-size: 15px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; }
.topbar-spacer { flex: 1 1 auto; }
.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}
.ghost-pill {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(143,207,60,.65);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ghost-pill:hover { border-color: var(--green); box-shadow: 0 10px 24px rgba(143,207,60,.20); transform: translateY(-1px); }

/* App layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar));
}
.sidebar {
  background: #fff;
  border-right: 1px solid rgba(21,27,22,.12);
  min-height: calc(100vh - var(--topbar));
  position: sticky;
  top: var(--topbar);
  align-self: start;
  z-index: 60;
}
.side-head {
  background: var(--graphite);
  color: #fff;
  padding: 24px 20px 26px;
}
.side-head h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 18px;
  line-height: 1.13;
  font-weight: 900;
  letter-spacing: -.035em;
}
.progress-label {
  margin-bottom: 12px;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.nav-list { margin: 0; padding: 0; list-style: none; }
.nav-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-left: 4px solid transparent;
  border-bottom: 1px solid rgba(21,27,22,.08);
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-item.active {
  min-height: 72px;
  border-left-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(143,207,60,.24);
}
.nav-title { color: var(--ink); font-size: 14px; line-height: 1.18; font-weight: 850; overflow-wrap: anywhere; }
.nav-state {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd7c1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}
.nav-item.visited .nav-state { background: var(--green-dark); border-color: var(--green-dark); }
.nav-item.done .nav-state { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.nav-item.active .nav-state { background: var(--green); border-color: var(--green); color: var(--graphite); }
.main { min-width: 0; background: #fff; }
.mobile-drawer-backdrop { display: none; }

/* Common page components */
.section { display: none; min-height: calc(100vh - var(--topbar)); background: #fff; }
.section.active { display: block; }
.section-header {
  margin: 0;
  padding: 0 var(--content-pad);
  background: var(--graphite);
  color: #fff;
  border-bottom: 5px solid var(--green);
  text-align: left;
}
.section-header h1 {
  margin: 0;
  padding: 26px 0 24px;
  color: #fff;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -.045em;
}
.section-body {
  width: 100%;
  margin: 0;
  padding: 28px var(--content-pad) 72px;
  text-align: left;
}
.section-body p,
.section-body li {
  font-size: 18px;
  line-height: 1.58;
}
.section-body p { margin: 0 0 16px; }
.section-body ul,
.section-body ol { margin-top: 0; }
.section-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.primary-btn,
.vehicle-partner-btn,
.secondary-pill,
.blue-action-btn {
  min-height: 52px;
  min-width: 220px;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(143,207,60,.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .08em;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.primary-btn:hover,
.vehicle-partner-btn:hover,
.secondary-pill:hover,
.blue-action-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(143,207,60,.36); }
.primary-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Unified components */
.subsection-header,
h2.subsection-header,
.mobility-band,
.mobility-goal-band,
.purpose-band,
.gnss-band,
.dsrc-band {
  display: block;
  width: auto;
  margin: 32px calc(-1 * var(--content-pad)) 24px;
  padding: 18px var(--content-pad);
  background: #fff;
  color: var(--graphite);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 6px 0 0 var(--green);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -.025em;
  text-align: left;
}
.subsection-header:first-child,
.mobility-band:first-child,
.mobility-goal-band:first-child,
.purpose-band:first-child,
.gnss-band:first-child,
.dsrc-band:first-child { margin-top: 0; }
.subsection-header h2,
h2.subsection-header,
.gnss-band-inner {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
}

.unified-text-block,
.workshop-callout,
.exemptions-instruction,
.gnss-intro,
.cards-instruction,
.vehicle-section-heading {
  width: 100%;
  margin: 0 0 24px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-align: left;
}
.regular-text-block {
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}
.unified-text-block h2,
.workshop-callout h2,
.vehicle-section-heading { margin: 0 0 10px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; font-weight: 950; letter-spacing: -.025em; }
.unified-text-block p:last-child,
.workshop-callout p:last-child,
.regular-text-block p:last-child { margin-bottom: 0; }

.unified-note,
.vehicle-info-note,
.driver-card-note,
.company-card-note,
.driver-card-warning {
  width: 100%;
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--green-soft);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--green);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.vehicle-info-icon,
.driver-card-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--graphite);
  font-weight: 950;
  font-size: 14px;
  line-height: 1;
}
.unified-note p,
.vehicle-info-note p,
.driver-card-note p { margin: 0; }

/* Generic cards / accordions */
.mobility-timeline-card,
.vehicle-subcard,
.exemption-item,
.gnss-info-card,
.tachograph-card-row,
.driver-card-accordion,
.purpose-accordion,
.vehicle-accordion,
.dsrc-accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.vehicle-accordion,
.purpose-accordion,
.dsrc-accordion,
.driver-card-accordion { overflow: hidden; }
.vehicle-accordion-item,
.purpose-accordion-item,
.dsrc-accordion-item,
.driver-card-accordion-item { border-bottom: 1px solid var(--line); }
.vehicle-accordion-item:last-child,
.purpose-accordion-item:last-child,
.dsrc-accordion-item:last-child,
.driver-card-accordion-item:last-child { border-bottom: 0; }
.vehicle-accordion-toggle,
.purpose-accordion-toggle,
.dsrc-accordion-toggle,
.driver-card-accordion-toggle {
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border: 0;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
  font-size: 17px;
}
.vehicle-toggle-symbol,
.purpose-toggle-symbol,
.dsrc-toggle-symbol,
.driver-card-toggle-symbol {
  order: -1;
  width: 26px;
  flex: 0 0 26px;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}
.vehicle-accordion-panel,
.purpose-accordion-panel,
.dsrc-accordion-panel,
.driver-card-accordion-panel {
  padding: 6px 26px 24px 64px;
  background: #fff;
}
.driver-card-accordion-panel ul,
.vehicle-accordion-panel ul { margin-bottom: 0; }

/* Section 0 and final summary landing style */
#landing,
.summary-landing-section {
  min-height: calc(100vh - var(--topbar));
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(122, 184, 54, .22), transparent 32%),
    linear-gradient(135deg, #111716 0%, #18201d 58%, #0f1513 100%);
}
#landing .hero,
.summary-hero {
  padding: 66px var(--content-pad) 0;
  background: transparent;
  color: #fff;
}
#landing .hero-inner,
.summary-hero .hero-inner { margin: 0; max-width: none; }
#landing .hero h1,
.summary-hero h1 {
  margin: 0;
  max-width: 1180px;
  color: #fff;
  font-size: clamp(44px, 5.4vw, 86px);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 950;
}
#landing .hero .primary-btn { margin-top: 28px; }
#landing .landing-body,
.summary-landing-body { margin-top: 20px; padding: 0 var(--content-pad) 84px; background: transparent; }
#landing .landing-grid,
.summary-landing-grid { width: 100%; margin: 0; display: block; }
#landing .intro-card,
.summary-intro-card {
  width: 100%;
  max-width: none;
  padding: 30px 40px 34px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(21,27,22,.10);
  border-left: 8px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(17,21,16,.16);
}
#landing .intro-card p,
.summary-intro-card p,
.summary-intro-card li { font-size: 19px; line-height: 1.58; }
#landing .intro-card p:last-child { margin-bottom: 0; }

/* Section 1 */
.mobility-intro-grid,
.mobility-law-grid,
.mobility-current-grid,
.goal-cabotage-grid,
.social-protection-grid,
.dsrc-intro-grid,
.driver-card-intro {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
  margin: 0 0 34px;
}
.mobility-law-grid { grid-template-columns: minmax(320px, 1fr) minmax(140px, .35fr); }
.mobility-current-grid { margin-top: 34px; }
.mobility-image-wrap img,
.goal-image-wrap img,
.dsrc-image-wrap img,
.driver-card-image-wrap img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
}
.mobility-copy h2,
.goal-copy h2,
.driver-card-copy h2 { margin: 0 0 16px; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.1; letter-spacing: -.035em; font-weight: 950; }
.mobility-copy p:last-child,
.goal-copy p:last-child,
.driver-card-copy p:last-child { margin-bottom: 0; }
.mobility-law-icon { display: flex; justify-content: center; align-items: center; }
.mobility-law-icon img { width: 96px; }
.mobility-timeline { display: grid; gap: 18px; margin: 0 0 34px; }
.mobility-timeline-card {
  width: 100%;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 92px;
  gap: 18px;
  align-items: center;
}
.mobility-timeline-card p { margin-bottom: 9px; }
.mobility-timeline-card p:last-child { margin-bottom: 0; }
.timeline-phase { color: var(--green-dark); font-weight: 950; text-transform: uppercase; letter-spacing: .05em; font-size: 14px !important; }
.timeline-check { width: 68px; justify-self: center; }

/* Section 2 */
.rest-goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}
.rest-goal-item {
  min-height: 180px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.rest-goal-item img { max-height: 54px; }
.rest-goal-item p { margin: 0; font-weight: 700; }
.shield-icons { display: flex; gap: 18px; align-items: center; justify-content: center; }
.shield-icons img { width: 130px; }
.social-list ul { margin-bottom: 0; }

/* Section 3 */
.vehicle-section-heading { font-size: 18px; font-weight: 900; }
.vehicle-subcards { display: grid; gap: 18px; }
.two-van-layout { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
.vehicle-subcard { padding: 24px; }
.vehicle-subcard h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.15; font-weight: 950; }
.vehicle-subcard-label { margin-bottom: 10px; }
.vehicle-image-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 18px; }
.vehicle-image-row img { max-height: 92px; object-fit: contain; }
.vehicle-image-row-large img { max-height: 110px; }
.vehicle-image-row-pickup img { max-height: 110px; }
.workshop-callout { margin-top: 28px; }
.vehicle-partner-band {
  margin: 28px calc(-1 * var(--content-pad)) 0;
  padding: 28px var(--content-pad);
  background: var(--graphite);
  color: #fff;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.vehicle-partner-band p { margin: 0; max-width: 500px; color: #fff; }
.vehicle-partner-btn { min-height: 44px; }

/* Section 4 */
.exemptions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 20px;
  margin: 26px 0 34px;
}
.exemption-item { position: relative; min-height: 150px; overflow: hidden; }
.exemption-trigger {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.exemption-trigger img { max-width: 118px; max-height: 118px; object-fit: contain; }
.exemption-trigger {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 16px;
  padding: 16px 56px 16px 16px;
  text-align: left;
  place-items: initial;
}
.exemption-trigger img {
  max-width: 72px;
  max-height: 72px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  justify-self: center;
}
.exemption-trigger__label {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--graphite);
  text-align: left;
}
.exemption-plus {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--graphite);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}
.exemption-inline-card {
  position: absolute;
  inset: 0;
  padding: 18px 18px 18px;
  background: #fff;
  overflow-y: auto;
}
.exemption-inline-card h2 { margin: 0 34px 10px 0; font-size: 18px; line-height: 1.12; font-weight: 950; }
.exemption-inline-card p,
.exemption-inline-card li { font-size: 15px; line-height: 1.42; }
.exemption-inline-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

/* Section 5 */
.purpose-tacho-row { display: grid; grid-template-columns: minmax(260px, .55fr) minmax(320px, 1fr); gap: 44px; align-items: center; margin-bottom: 34px; }
.purpose-tacho-image img { display: block; max-width: 420px; width: 100%; border-radius: 14px; }
.purpose-main-copy { margin-bottom: 30px; }

/* Section 6 */
.gnss-band { margin-top: 0; }
.gnss-stage-wrap { margin: 26px 0; }
.gnss-stage { position: relative; width: min(100%, 980px); margin: 0; }
.gnss-device-img { display: block; width: 100%; height: auto; }
.hotspot,
.gnss-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17,21,16,.18);
  cursor: pointer;
}
.hotspot::before,
.gnss-hotspot::before { content: "+"; font-size: 21px; font-weight: 950; line-height: 1; }
.gnss-hotspot.active { background: var(--green); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gnss-info-card { width: 100%; padding: 24px; margin: 0 0 28px; }
.gnss-card-head h2 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; font-weight: 950; }
.gnss-card-content p:last-child { margin-bottom: 0; }

/* Section 7 */
.dsrc-image-wrap img { max-width: 230px; }
.rtm-list { padding-left: 24px; }
.rtm-list li { margin-bottom: 10px; }

/* Section 8 */
.tachograph-card-list { display: grid; gap: 18px; margin-top: 26px; }
.tachograph-card-row { width: 100%; padding: 24px; display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 34px; align-items: center; }
.tachograph-card-image img { display: block; max-width: 240px; width: 100%; }
.tachograph-card-info h2 { margin: 0 0 14px; font-size: clamp(24px, 2vw, 32px); line-height: 1.1; font-weight: 950; letter-spacing: -.03em; }
.tachograph-card-info p:last-child { margin-bottom: 0; }

/* Sections 9 and 10 */
.driver-card-intro { margin-bottom: 34px; }
.driver-card-image-wrap img { max-width: 320px; }
.driver-card-text-section { margin: 0 0 30px; }
.driver-card-text-section > p { max-width: 100%; }
.driver-card-accordion { margin-top: 20px; }
.company-card-image-wrap img { max-width: 260px; }

/* Section 11 */
.summary-card-list { display: grid; gap: 22px; }
.summary-intro-card h2 { margin: 0 0 20px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.summary-card-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; align-items: start; }
.summary-card-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  margin-top: 2px;
}
.summary-card-item p,
.summary-card-copy-group p { margin: 0; font-size: 19px; line-height: 1.58; }
.summary-card-copy-group { display: grid; gap: 14px; }
.summary-final-action { display: flex; justify-content: center; margin-top: 30px; }
.summary-final-action .primary-btn { min-width: 340px; }

/* Responsive */
@media (max-width: 1100px) {
  .rest-goals-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .exemptions-grid { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
}

@media (max-width: 900px) {
  :root { --topbar: 56px; --content-pad: 18px; }
  .topbar { height: var(--topbar); padding: 0 14px; gap: 10px; }
  .brand-mark { width: 104px; height: 36px; }
  .brand-mark img { max-height: 28px; }
  .topbar-title { font-size: 13px; }
  .ghost-pill { display: none; }
  .mobile-menu { display: grid; place-items: center; }
  .layout { display: block; }
  .sidebar {
    position: fixed;
    top: var(--topbar);
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    min-height: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.drawer-open .sidebar { transform: translateX(0); }
  .mobile-drawer-backdrop { position: fixed; inset: var(--topbar) 0 0; background: rgba(17,21,16,.45); z-index: 50; }
  body.drawer-open .mobile-drawer-backdrop { display: block; }
  .section-header h1 { font-size: clamp(32px, 10vw, 46px); }
  #landing .hero, .summary-hero { padding-top: 42px; }
  #landing .hero h1, .summary-hero h1 { font-size: clamp(38px, 12vw, 58px); }
  #landing .intro-card, .summary-intro-card { padding: 24px 22px 26px; }
  #landing .intro-card p, .summary-intro-card p, .summary-intro-card li { font-size: 17px; }
  .primary-btn, .vehicle-partner-btn, .secondary-pill, .blue-action-btn { width: 100%; min-width: 0; }
  .mobility-intro-grid, .mobility-law-grid, .mobility-current-grid, .goal-cabotage-grid, .social-protection-grid, .dsrc-intro-grid, .driver-card-intro, .purpose-tacho-row { grid-template-columns: 1fr; gap: 24px; }
  .mobility-timeline-card { grid-template-columns: 1fr; }
  .timeline-check { justify-self: start; }
  .two-van-layout { grid-template-columns: 1fr; }
  .rest-goals-grid { grid-template-columns: 1fr; }
  .exemptions-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .vehicle-accordion-panel, .purpose-accordion-panel, .dsrc-accordion-panel, .driver-card-accordion-panel { padding-left: 24px; }
  .tachograph-card-row { grid-template-columns: 1fr; gap: 18px; }
  .tachograph-card-image img { max-width: 240px; }
  .summary-card-item { grid-template-columns: 34px 1fr; }
  .summary-card-number { width: 34px; height: 34px; }
}

@media (max-width: 520px) {
  .topbar-title { display: none; }
  .section-body p, .section-body li { font-size: 16px; }
  .exemptions-grid { grid-template-columns: 1fr; }
  .exemption-item, .exemption-trigger { min-height: 150px; }
  .unified-note, .vehicle-info-note, .driver-card-note { grid-template-columns: 1fr; }
}

/* Section 6 GNSS band sits outside .section-body, so it must not use negative body margins. */
.section-header + .gnss-band {
  margin: 0;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}


/* ======================================================================
   COURSE-REWORK portal layer: single shell, course selection, dynamic sections.
   ====================================================================== */
body.portal-mode .layout {
  display: block;
}
body.portal-mode .sidebar {
  display: none;
}
body.portal-mode .topbar-title::after {
  content: "";
}
.portal-page {
  min-height: calc(100vh - var(--topbar));
  background:
    radial-gradient(circle at 78% 18%, rgba(122, 184, 54, .22), transparent 32%),
    linear-gradient(135deg, #111716 0%, #18201d 58%, #0f1513 100%);
  color: #fff;
  padding: 64px 20px 84px;
}
.portal-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.portal-kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 850;
}
.portal-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -.06em;
  color: #fff;
}
.portal-copy {
  max-width: 820px;
  margin: 0 0 38px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.course-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(21,27,22,.12);
  border-left: 8px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.course-tile:hover,
.course-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(0,0,0,.23);
  outline: none;
}
.course-tile.is-placeholder {
  opacity: .62;
  cursor: default;
}
.course-tile h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.course-tile p {
  margin: 0;
  font-size: 17px;
  line-height: 1.52;
  color: var(--muted);
}
.course-tile .course-meta {
  margin-top: auto;
  padding-top: 24px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
body.course-mode .main {
  min-width: 0;
}
body.course-mode .section {
  display: block;
}
body.course-mode .portal-page {
  display: none;
}
body.course-mode .sidebar {
  display: block;
}
.course-error {
  padding: 32px 20px;
  color: var(--ink);
}
@media (max-width: 900px) {
  .portal-page { padding: 42px 18px 64px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-tile { min-height: 180px; }
}

/* ======================================================================
   V70 component vocabulary layer
   Sections should be readable as visual components:
   section-header, image-text/text-image, subsection-header, timeline-card,
   text-block, regular-text, note, accordion, hotspot, horizontal-card, summary.
   Old section-specific classes may remain as JS/layout hooks, but this layer
   gives the reusable component names the actual visual authority.
   ====================================================================== */

/* Typographic/content primitives */
.regular-text,
.regular-text-block {
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
}
.text-block,
.unified-text-block {
  width: 100%;
  margin: 0 0 24px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-align: left;
}
.text-block p:last-child,
.regular-text p:last-child { margin-bottom: 0; }

/* Section and subsection headings */
.subsection-header,
h2.subsection-header {
  display: block;
  width: auto;
  margin: 32px calc(-1 * var(--content-pad)) 24px;
  padding: 18px var(--content-pad);
  background: #fff;
  color: var(--graphite);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 6px 0 0 var(--green);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -.025em;
  text-align: left;
}
.subsection-header h2,
h2.subsection-header {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
}
.section-body > .subsection-header:first-child,
.section-header + .subsection-header { margin-top: 0; }

/* Image/text layouts */
.image-text,
.text-image {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 0 0 34px;
}

/* Keep image/text spacing predictable. The image column sizes to the image/content,
   so wide screens do not create a giant empty canyon between image and copy. */
.image-text {
  grid-template-columns: max-content minmax(0, 1fr);
}
.text-image {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.image-text__image,
.image-text-image {
  max-width: min(42vw, 520px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.text-image .image-text__image,
.text-image .image-text-image {
  justify-content: flex-start;
}
.image-text__image img,
.image-text-image img,
.image-text__content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.image-text__content h2,
.image-text-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 950;
}
.image-text__content p:last-child { margin-bottom: 0; }

/* Cards */
.standard-card,
.timeline-card,
.horizontal-info-card,
.icon-feature-card,
.interactive-icon-card,
.hotspot-explanation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-grid { display: grid; gap: 18px; }
.timeline { display: grid; gap: 18px; margin: 0 0 34px; }
.timeline-card {
  width: 100%;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 92px;
  gap: 18px;
  align-items: center;
}
.timeline-card p { margin-bottom: 9px; }
.timeline-card p:last-child { margin-bottom: 0; }
.timeline-card__label {
  color: var(--green-dark);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px !important;
}
.timeline-card__icon { width: 68px; justify-self: center; }

/* Icon feature grid */
.icon-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}
.icon-feature-card {
  min-height: 180px;
  padding: 24px 18px;
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.icon-feature-card img { max-height: 54px; }
.icon-feature-card p { margin: 0; font-weight: 700; }

/* Accordions */
.accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-toggle {
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border: 0;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
  font-size: 17px;
}
.accordion-symbol {
  order: -1;
  width: 26px;
  flex: 0 0 26px;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}
.accordion-panel { padding: 6px 26px 24px 64px; background: #fff; }

/* Notes */
.note,
.unified-note {
  width: 100%;
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--green-soft);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--green);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.note__icon,
.vehicle-info-icon,
.driver-card-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--graphite);
  font-weight: 950;
  font-size: 14px;
  line-height: 1;
}
.note p { margin: 0; }

/* Horizontal cards */
.horizontal-card-list { display: grid; gap: 18px; margin-top: 26px; }
.horizontal-info-card {
  width: 100%;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 34px;
  align-items: center;
}
.horizontal-info-card__image img { display: block; max-width: 240px; width: 100%; }
.horizontal-info-card__content h2 { margin: 0 0 14px; font-size: clamp(24px, 2vw, 32px); line-height: 1.1; font-weight: 950; letter-spacing: -.03em; }
.horizontal-info-card__content p:last-child { margin-bottom: 0; }

/* Hotspots */
.hotspot-stage { position: relative; width: min(100%, 980px); margin: 0; }
.hotspot-marker,
.gnss-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17,21,16,.18);
  cursor: pointer;
}
.hotspot-marker::before,
.gnss-hotspot::before { content: "+"; font-size: 21px; font-weight: 950; line-height: 1; }
.hotspot-marker.active,
.gnss-hotspot.active { background: var(--green); }
.hotspot-explanation-card { width: 100%; padding: 24px; margin: 0 0 28px; }

/* Interactive icon grid */
.interactive-icon-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 20px; margin: 26px 0 34px; }
.interactive-icon-card { position: relative; min-height: 150px; overflow: hidden; }
.interactive-icon-card__trigger,
.exemption-trigger {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.interactive-icon-card__trigger img,
.exemption-trigger img { max-width: 118px; max-height: 118px; object-fit: contain; }
.interactive-icon-card__plus,
.exemption-plus {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--graphite);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}
.inline-explanation-card,
.exemption-inline-card { position: absolute; inset: 0; padding: 18px; background: #fff; overflow-y: auto; }

/* CTA band */
.cta-band,
.vehicle-partner-band {
  margin: 28px calc(-1 * var(--content-pad)) 0;
  padding: 28px var(--content-pad);
  background: var(--graphite);
  color: #fff;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.cta-band p,
.vehicle-partner-band p { margin: 0; max-width: 500px; color: #fff; }
.secondary-btn { min-height: 44px; }

/* Summary components */
.summary-card { width: 100%; max-width: none; }
.summary-list { display: grid; gap: 22px; }
.summary-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; align-items: start; }
.summary-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .icon-feature-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .interactive-icon-grid { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
}
@media (max-width: 900px) {
  .image-text,
  .text-image { grid-template-columns: 1fr; gap: 24px; }
  .timeline-card { grid-template-columns: 1fr; }
  .timeline-card__icon { justify-self: start; }
  .icon-feature-grid { grid-template-columns: 1fr; }
  .accordion-panel { padding-left: 24px; }
  .horizontal-info-card { grid-template-columns: 1fr; gap: 18px; }
  .interactive-icon-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 520px) {
  .interactive-icon-grid { grid-template-columns: 1fr; }
  .note, .unified-note { grid-template-columns: 1fr; }
}

/* V72: image-text spacing correction.
   The old grid behavior could reserve a wide first column on large screens.
   Use flex so the image keeps its rendered/natural width, then a fixed gap, then text. */
.image-text,
.text-image {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: flex-start;
}
.text-image {
  flex-direction: row;
}
.image-text__image,
.image-text-image {
  flex: 0 1 auto;
  width: auto;
  max-width: min(42vw, 520px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.image-text__image img,
.image-text-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.image-text__content,
.image-text-copy {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}
@media (max-width: 900px) {
  .image-text,
  .text-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .image-text__image,
  .image-text-image {
    max-width: 100%;
  }
  .image-text__image img,
  .image-text-image img {
    max-width: 100%;
  }
}

/* V73: image-text content-box alignment fix.
   The visual gap was not only gap: the image/text columns could still behave like a wide
   reserved area, so the text box appeared centered in leftover space. Force component
   geometry to be: rendered image width + fixed gap + text box. */
.image-text,
.text-image {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 32px !important;
}
.text-image {
  flex-direction: row !important;
}
.image-text > .image-text__image,
.image-text > .image-text-image,
.text-image > .image-text__image,
.text-image > .image-text-image {
  flex: 0 0 auto !important;
  width: fit-content !important;
  max-width: min(42vw, 520px) !important;
  margin: 0 !important;
  justify-self: start !important;
  align-self: center !important;
  display: flex !important;
  justify-content: flex-start !important;
}
.image-text > .image-text__image img,
.image-text > .image-text-image img,
.text-image > .image-text__image img,
.text-image > .image-text-image img {
  width: auto !important;
  max-width: min(42vw, 520px) !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
}
.image-text > .image-text__content,
.image-text > .image-text-copy,
.text-image > .image-text__content,
.text-image > .image-text-copy {
  flex: 0 1 720px !important;
  max-width: 720px !important;
  min-width: 0 !important;
  margin: 0 !important;
  justify-self: start !important;
  align-self: center !important;
  text-align: left !important;
}
@media (max-width: 900px) {
  .image-text,
  .text-image {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }
  .image-text > .image-text__image,
  .image-text > .image-text-image,
  .text-image > .image-text__image,
  .text-image > .image-text-image {
    width: 100% !important;
    max-width: 100% !important;
  }
  .image-text > .image-text__image img,
  .image-text > .image-text-image img,
  .text-image > .image-text__image img,
  .text-image > .image-text-image img {
    max-width: 100% !important;
  }
  .image-text > .image-text__content,
  .image-text > .image-text-copy,
  .text-image > .image-text__content,
  .text-image > .image-text-copy {
    flex-basis: auto !important;
    max-width: 100% !important;
  }
}

/* V75: Section 4 card labels - final runtime override.
   Cards show icon on the left and category title on the right. */
.exemptions-grid .exemption-trigger,
.exemptions-grid .interactive-icon-card__trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 16px 58px 16px 18px !important;
  text-align: left !important;
  place-items: unset !important;
}

.exemptions-grid .exemption-trigger img,
.exemptions-grid .interactive-icon-card__trigger img {
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  justify-self: unset !important;
}

.exemptions-grid .exemption-trigger__label {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: var(--graphite) !important;
  font-size: 16px !important;
  line-height: 1.24 !important;
  font-weight: 850 !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
  .exemptions-grid .exemption-trigger,
  .exemptions-grid .interactive-icon-card__trigger {
    gap: 14px !important;
    padding: 14px 54px 14px 16px !important;
  }

  .exemptions-grid .exemption-trigger img,
  .exemptions-grid .interactive-icon-card__trigger img {
    flex-basis: 64px !important;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
  }

  .exemptions-grid .exemption-trigger__label {
    font-size: 15px !important;
  }
}


/* ========================================
   SECTION 4 REBUILD — clean exemption grid
   Old section-4 patch layers are intentionally bypassed.
   ======================================== */
.exemptions-v2-page {
  display: block;
}

.exemptions-v2-intro {
  margin: 28px 0 22px;
}

.exemptions-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 30px;
}

.exemptions-v2-card {
  position: relative;
  min-height: 138px;
  border: 1px solid var(--line-color);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.exemptions-v2-card__trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px 58px 20px 18px;
  text-align: left;
  cursor: pointer;
}

.exemptions-v2-card__icon-wrap {
  width: 88px;
  min-width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exemptions-v2-card__icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}

.exemptions-v2-card__title {
  display: block;
  flex: 1 1 auto;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-color);
}

.exemptions-v2-card__plus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--text-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.exemptions-v2-card.is-open .exemptions-v2-card__plus,
.exemptions-v2-card.visited .exemptions-v2-card__plus {
  background: rgba(146, 207, 51, 0.10);
}

.exemptions-v2-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  padding: 16px 16px 14px;
  overflow-y: auto;
}

.exemptions-v2-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: var(--text-color);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.exemptions-v2-panel__title {
  margin: 0 38px 10px 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-color);
}

.exemptions-v2-panel__content,
.exemptions-v2-panel__content p,
.exemptions-v2-panel__content li,
.exemptions-v2-panel__content ul {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.42;
}

.exemptions-v2-panel__content p {
  margin: 0 0 8px;
}

.exemptions-v2-panel__content ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

@media (max-width: 1280px) {
  .exemptions-v2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .exemptions-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .exemptions-v2-grid {
    grid-template-columns: 1fr;
  }

  .exemptions-v2-card {
    min-height: 126px;
  }

  .exemptions-v2-card__trigger {
    gap: 12px;
    padding: 18px 52px 18px 14px;
  }

  .exemptions-v2-card__icon-wrap {
    width: 72px;
    min-width: 72px;
  }

  .exemptions-v2-card__icon {
    width: 62px;
    height: 62px;
  }

  .exemptions-v2-card__title {
    font-size: 16px;
  }
}

/* ========================================
   SECTION 4 SAFE VISITED OVERLAY
   Based on the V77 working Section 4. Does not change card structure or JS.
   ======================================== */
.exemptions-v2-card {
  border-color: rgba(21, 27, 22, 0.14);
  box-shadow: 0 12px 28px rgba(17, 21, 16, 0.06);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.exemptions-v2-card:hover,
.exemptions-v2-card:focus-within {
  border-color: rgba(143, 207, 60, 0.55);
  box-shadow: 0 16px 34px rgba(17, 21, 16, 0.09);
}

.exemptions-v2-card.visited {
  background: linear-gradient(0deg, rgba(143, 207, 60, 0.10), rgba(143, 207, 60, 0.10)), var(--surface);
  border-color: rgba(143, 207, 60, 0.55);
}

.exemptions-v2-card.visited .exemptions-v2-card__plus {
  background: rgba(143, 207, 60, 0.16);
  border-color: var(--accent);
}

.exemptions-v2-card.is-open {
  border-color: var(--accent);
  box-shadow: 0 18px 42px rgba(17, 21, 16, 0.12);
}

/* ========================================
   V86 IMPORT: Obsluha tachografu course
   Shared green TAMEX look + course-specific interaction layouts.
   ======================================== */
.obsluha-controls-section .section-instruction,
.obsluha-pictograms-section .section-two-combined-text {
  max-width: none;
}

/* Section 1: tachograph hotspots */
.tachograph-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(420px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 28px 0;
}
.tachograph-stage .explanation-card {
  grid-column: 1;
  grid-row: 1;
  min-height: 210px;
  padding: 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--line-color, #dde7d2);
  border-left: 6px solid var(--accent, #8bd134);
  border-radius: 18px;
  box-shadow: var(--shadow-soft, 0 18px 44px rgba(0,0,0,.08));
  z-index: 2;
}
.tachograph-stage .explanation-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}
.tachograph-stage .explanation-card p,
.tachograph-stage .explanation-card li {
  font-size: 17px;
  line-height: 1.5;
}
.image-wrap#tachographWrap {
  grid-column: 2;
  position: relative;
  align-self: center;
}
.tachograph-img {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
}
.hotspot {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--accent, #8bd134);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft, 0 8px 20px rgba(0,0,0,.15));
}
.hotspot::before { content: "+"; font-weight: 900; font-size: 22px; line-height: 1; color: var(--text-color, #111510); }
.hotspot.active,
.hotspot:hover { background: var(--accent, #8bd134); }
.hotspot.visited { box-shadow: 0 0 0 5px rgba(141, 209, 52, .18); }
.connector-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.connector-line { fill: none; stroke: var(--accent, #8bd134); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.connector-dot { fill: var(--accent, #8bd134); }
.card-nav { display: flex; gap: 10px; margin-top: 16px; }
.card-nav button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--accent, #8bd134); background: #fff; cursor: pointer; font-size: 24px; font-weight: 900; }
.hint { margin: 12px 0 0; color: var(--muted, #64705f); font-size: 14px; }

/* Section 2: pictograms */
.pictogram-band.subsection-header { margin-top: 34px; }
.pictogram-explanation {
  margin: 18px 0;
  padding: 18px 22px;
  border: 1px solid var(--line-color, #dde7d2);
  border-left: 6px solid var(--accent, #8bd134);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft, 0 12px 28px rgba(0,0,0,.07));
  font-size: 17px;
  line-height: 1.45;
}
.pictogram-explanation strong { display: block; font-size: 20px; margin-bottom: 4px; }
.pictogram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 16px;
  margin: 18px 0 30px;
}
.pictogram-item {
  min-height: 112px;
  border: 1px solid var(--line-color, #dde7d2);
  border-left: 5px solid var(--accent, #8bd134);
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(17,21,16,.06);
}
.pictogram-item:hover,
.pictogram-item.active { background: #f3faeb; }
.pictogram-img { max-width: 48px; max-height: 48px; image-rendering: auto; }
.pictogram-item .plus {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent, #8bd134);
  color: var(--text-color, #111510);
  font-weight: 900;
}
.pictogram-item.visited .plus { background: rgba(141,209,52,.16); }

/* Section 3: printout overview */
.printout-intro-layout.image-text { align-items: center; }
.printout-image-wrap img.printout-sample { max-width: 260px; width: 100%; border-radius: 10px; box-shadow: var(--shadow-soft, 0 12px 28px rgba(0,0,0,.08)); }
.printout-text p { font-size: 18px; line-height: 1.58; }
.printout-cta-band {
  margin: 30px 0 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--graphite, #142015);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.printout-cta-band span { font-size: 18px; font-weight: 800; }

/* Section 4: display carousel */
.display-carousel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
}
.carousel-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--accent, #8bd134);
  background: #fff;
  color: var(--text-color, #111510);
  font-size: 36px;
  cursor: pointer;
  box-shadow: var(--shadow-soft, 0 10px 24px rgba(0,0,0,.08));
}
.display-card {
  border: 1px solid var(--line-color, #dde7d2);
  border-left: 6px solid var(--accent, #8bd134);
  border-radius: 20px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-soft, 0 18px 44px rgba(0,0,0,.08));
}
.display-card h2 { margin: 0 0 20px; font-size: 28px; line-height: 1.15; }
.display-image-wrap { text-align: center; margin: 0 0 20px; }
.display-tacho-img { width: 100%; max-width: 720px; height: auto; border-radius: 14px; }
.display-slide-content p,
.display-slide-content li { font-size: 17px; line-height: 1.5; }
.display-slide-content ol { margin-left: 22px; }
.blue-action-btn { margin-top: 16px; }
.display-dots { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.display-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-color, #dde7d2); background: #fff; cursor: pointer;
}
.display-dot.active { background: var(--accent, #8bd134); border-color: var(--accent, #8bd134); font-weight: 900; }
.display-check { margin-left: 8px; color: var(--accent, #8bd134); font-weight: 900; }
.display-info-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
  padding: 20px;
  border-radius: 18px;
  background: #f3faeb;
  border: 1px solid rgba(141,209,52,.34);
}
.ok-key {
  width: 58px;
  height: 42px;
  border-radius: 10px;
  background: var(--graphite, #142015);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
}
.display-info-row p { margin: 0; font-size: 17px; line-height: 1.45; }

/* Section 5: printout types */
.printout-wide-bar.subsection-header { margin: 26px 0 16px; }
.printout-content-row.image-text { align-items: center; }
.printout-icons { display: flex; gap: 20px; align-items: center; }
.printout-icons img { width: 54px; height: 54px; object-fit: contain; }
.printout-content-row p { font-size: 18px; line-height: 1.58; }

@media (max-width: 1100px) {
  .tachograph-stage { grid-template-columns: 1fr; }
  .tachograph-stage .explanation-card, .image-wrap#tachographWrap { grid-column: 1; }
  .pictogram-grid { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
}
@media (max-width: 760px) {
  .display-carousel { grid-template-columns: 1fr; }
  .carousel-arrow { justify-self: center; }
  .pictogram-grid { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
  .display-card { padding: 20px; }
}


/* ========================================
   V87 feedback fixes
   - Remove duplicate course title from sidebar header.
   - Stabilize Obsluha tachografu hotspot and course layouts.
   ======================================== */
.side-head h2 {
  display: none !important;
}
.side-head {
  padding: 22px 20px 24px !important;
}

/* Obsluha tachografu — controls section: anchor image/hotspots to real image width and top. */
.obsluha-controls-section .tachograph-stage {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(420px, 820px);
  justify-content: start;
  align-items: start !important;
  gap: 32px;
}
.obsluha-controls-section .tachograph-stage .explanation-card {
  align-self: start !important;
}
.obsluha-controls-section .image-wrap#tachographWrap {
  width: 100%;
  max-width: 820px;
  justify-self: start !important;
  align-self: start !important;
  position: relative;
}
.obsluha-controls-section .tachograph-img {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
}
.obsluha-controls-section .connector-layer {
  display: none;
}

/* Obsluha tachografu — pictograms should stay square. */
.obsluha-pictograms-section .pictogram-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 140px));
  justify-content: start;
  align-items: start;
}
.obsluha-pictograms-section .pictogram-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
}

/* Obsluha tachografu — display carousel content centered as a card system. */
.obsluha-display-section .display-card {
  text-align: center;
}
.obsluha-display-section .display-card h2,
.obsluha-display-section .display-image-wrap,
.obsluha-display-section .display-dots,
.obsluha-display-section .blue-action-btn {
  margin-left: auto;
  margin-right: auto;
}
.obsluha-display-section .display-slide-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.obsluha-display-section .display-slide-content ol,
.obsluha-display-section .display-slide-content ul {
  display: inline-block;
  text-align: left;
}
.obsluha-display-section .display-dots {
  justify-content: center;
}
.obsluha-display-section .blue-action-btn {
  display: inline-flex;
}

/* Obsluha tachografu — summary card normalized. */
.obsluha-summary-section .summary-intro-card {
  width: 100%;
  max-width: none;
}
.obsluha-summary-section .summary-intro-card h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.obsluha-summary-section .summary-list {
  display: grid;
  gap: 20px;
}
.obsluha-summary-section .summary-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0;
}
.obsluha-summary-section .summary-card-copy-group p {
  margin: 0 0 8px;
}
.obsluha-summary-section .summary-card-copy-group ul {
  margin: 0 0 0 20px;
  padding: 0;
}
.obsluha-summary-section .summary-card-copy-group li {
  margin: 4px 0;
  line-height: 1.42;
}

/* Company-card subsection headers: ensure wrapper structure wins if old h2 rules linger. */
.section-ten-company-card .company-card-text-section > .subsection-header {
  margin-top: 32px;
}

@media (max-width: 1100px) {
  .obsluha-controls-section .tachograph-stage {
    grid-template-columns: 1fr;
  }
  .obsluha-controls-section .image-wrap#tachographWrap {
    max-width: 820px;
  }
}
@media (max-width: 760px) {
  .obsluha-pictograms-section .pictogram-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}


/* ========================================
   V88 FIX — apply manifest section classes
   The shared renderer now wraps each loaded HTML partial in:
   <section id="..." class="course-section [className]">
   These rules keep the wrapper neutral while allowing section-specific selectors
   such as .obsluha-controls-section and #landing to finally match.
   ======================================== */
.course-section {
  min-height: calc(100vh - var(--topbar));
}
.course-section > .section-header:first-child {
  margin-top: 0;
}

/* V102 — Course 3 / Sociálna legislatíva, Section 1 image-text cleanup.
   Make the first block follow the same visual language as the Balík Mobility
   image-text block: fixed image/text gap, rounded image, saner width, no weird
   oversized hero behavior. */
.social-law-intro.image-text {
  align-items: flex-start;
  margin-bottom: 36px;
}
.social-law-image {
  flex: 0 0 auto;
}
.social-law-image img {
  width: auto;
  max-width: min(42vw, 430px);
  height: auto;
  border-radius: 18px;
  box-shadow: none;
  display: block;
}
.social-law-copy {
  flex: 0 1 720px;
  max-width: 720px;
  min-width: 0;
  padding-top: 0;
  align-self: flex-start;
}
.social-law-copy h2 {
  margin-top: 0;
}
.social-law-copy p {
  font-size: 19px;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .social-law-image img {
    max-width: 100%;
  }
}
.social-activities-intro {
  margin: 0 0 28px;
}
.social-activities-intro p {
  font-size: 19px;
  line-height: 1.65;
}
.social-activity-symbols {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 28px;
  margin: 28px 0 30px;
}
.social-activity-symbol {
  appearance: none;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
  color: var(--graphite);
}
.social-activity-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.social-activity-symbol img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: auto;
  transition: filter .16s ease;
}
.social-activity-badge,
.social-activity-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: var(--graphite);
  font-weight: 950;
  font-size: 22px;
  line-height: 1;
}
.social-activity-symbol:hover .social-activity-icon,
.social-activity-symbol:focus-visible .social-activity-icon {
  border-color: var(--green);
  transform: translateY(-1px);
}
.social-activity-symbol.is-active .social-activity-icon {
  background: var(--graphite);
  border-color: var(--graphite);
}
.social-activity-symbol.is-active img {
  filter: invert(1);
}
.social-activity-symbol.is-active .social-activity-badge,
.social-activity-row.is-active .social-activity-number {
  background: var(--graphite);
  color: var(--green);
}
.social-activity-list {
  margin: 0 0 30px;
  padding: 0;
  background: transparent;
  color: var(--graphite);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.social-activity-row {
  appearance: none;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(18, 34, 24, 0.12);
  border-left: 5px solid var(--green);
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(18, 34, 24, 0.06);
}
.social-activity-row:hover,
.social-activity-row:focus-visible {
  border-color: rgba(143, 214, 49, 0.65);
  background: rgba(143, 214, 49, 0.05);
}
.social-activity-text {
  margin: 0;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.58;
}
.social-activity-text strong {
  color: var(--graphite);
  font-weight: 950;
}
.social-activity-row.is-active {
  border-color: var(--green);
  background: rgba(143, 214, 49, 0.08);
}
.social-activity-row.is-active .social-activity-text,
.social-activity-row.is-active .social-activity-text strong {
  font-weight: 950;
}
.social-worktime-note {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.social-worktime-note p + p {
  margin-top: 14px;
}
.social-actions {
  justify-content: center;
}
.social-actions .primary-btn {
  min-width: 260px;
}

@media (max-width: 900px) {
  .social-activity-symbols {
    gap: 18px;
    flex-wrap: wrap;
  }
  .social-activity-list {
    grid-template-columns: 1fr;
  }
  .social-activity-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
  }
  .social-activity-number,
  .social-activity-badge {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* V91/V107 — Course 3 / Section 2: denná doba jazdy */
.social-driving-section-body {
  padding-bottom: 72px;
}
.social-driving-intro,
.social-driving-copy {
  width: 100%;
  max-width: none;
  margin: 26px 0;
}
.social-driving-intro p,
.social-driving-copy p {
  font-size: 20px;
  line-height: 1.72;
  margin: 0 0 24px;
}
.social-driving-break-note {
  width: 100%;
  max-width: none;
  margin: 20px 0 34px;
  background: #fff;
  border: 1px solid rgba(146, 207, 51, .34);
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 22px 28px;
}
.social-driving-break-note p {
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
}
.social-driving-table-wrap {
  width: min(100%, 960px);
  margin: 24px 0 42px;
  overflow-x: auto;
}
.social-driving-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  border: 1px solid var(--line-strong);
}
.social-driving-table th {
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.45);
}
.social-driving-table .social-driving-week-head {
  background: var(--graphite);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-size: 20px;
  letter-spacing: -.02em;
}
.social-driving-table .social-driving-days-head th {
  background: var(--blue);
}
.social-driving-table th span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  opacity: .85;
}
.social-driving-table td {
  font-size: 21px;
  line-height: 1.32;
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  vertical-align: middle;
}
.social-driving-table th:last-child,
.social-driving-table td:last-child {
  border-right: 0;
}
@media (max-width: 760px) {
  .social-driving-table {
    min-width: 760px;
  }
  .social-driving-intro p,
  .social-driving-copy p,
  .social-driving-break-note p {
    font-size: 18px;
  }
  .social-driving-break-note {
    padding: 18px 20px;
  }
}

/* V92 — Course 3 / Section 3: Prestávky počas jazdy */
.social-breaks-section-body {
  padding-bottom: 72px;
}
.social-breaks-copy {
  width: 100%;
  max-width: none;
  margin-bottom: 26px;
}
.social-breaks-copy p,
.social-breaks-copy li {
  font-size: 20px;
  line-height: 1.72;
}
.social-breaks-copy p {
  margin: 0 0 22px;
}
.social-breaks-copy ul {
  margin: 0 0 24px 26px;
  padding: 0;
}
.social-breaks-copy li {
  margin: 0 0 10px;
}
.social-breaks-demo-block {
  margin: 28px 0 36px;
}
.social-breaks-demo-block h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 950;
  margin: 0 0 18px;
  color: var(--ink);
}
.social-breaks-visual-card {
  width: min(100%, 980px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--green);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.social-breaks-visual-card img {
  width: 100%;
  height: auto;
  display: block;
}
.social-breaks-subheader {
  margin-top: 34px;
  margin-bottom: 28px;
}
.social-display-warning-row {
  width: min(100%, 760px);
  margin: 28px 0 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.social-display-warning {
  background: #060606;
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  padding: 24px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.social-display-warning span {
  color: #fff;
}
@media (max-width: 760px) {
  .social-breaks-copy p,
  .social-breaks-copy li {
    font-size: 18px;
  }
  .social-display-warning-row {
    grid-template-columns: 1fr;
  }
  .social-display-warning {
    font-size: 24px;
  }
}


/* ========================================
   SOCIAL COURSE SECTION 4 — weekly / two-week driving time quiz
   ======================================== */
.social-two-weeks-section-body {
  padding-bottom: 82px;
}

.social-two-weeks-copy {
  width: 100%;
  max-width: none;
  margin: 28px 0 24px;
}

.social-two-weeks-copy p,
.social-two-weeks-copy li {
  font-size: 20px;
  line-height: 1.7;
}

.social-two-weeks-copy ul {
  margin: 18px 0 0 28px;
  padding: 0;
}

.social-two-weeks-copy li + li {
  margin-top: 12px;
}

.social-two-weeks-subheader {
  margin-top: 28px;
}

.social-two-weeks-table-wrap {
  width: min(760px, 100%);
  margin: 34px 0 42px;
  overflow-x: auto;
}

.social-two-weeks-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.social-two-weeks-table th {
  background: var(--green-dark);
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  padding: 18px 12px;
  border: 1px solid rgba(255,255,255,.28);
  text-align: center;
}

.social-two-weeks-table td {
  font-size: 18px;
  line-height: 1.35;
  padding: 22px 12px;
  border: 1px solid var(--line-color);
  text-align: center;
  vertical-align: middle;
}

.social-two-weeks-table .summary-row th,
.social-two-weeks-table .summary-row td,
.social-two-weeks-table .bottom-row td {
  background: #f1f4ee;
  color: var(--text-color);
  font-weight: 900;
}

.social-two-weeks-table-wrap.compact {
  margin-top: 24px;
  margin-bottom: 32px;
}

.social-quiz-card {
  width: min(920px, 100%);
  margin: 32px 0 44px;
  background: #fff;
  border: 1px solid var(--line-color);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  padding: 32px 34px;
  box-shadow: var(--shadow);
}

.social-quiz-card h2 {
  margin: 0 0 4px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
  color: var(--text-color);
  max-width: 560px;
}

.social-quiz-card > p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.45;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 16px;
}

.social-quiz-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(320px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.social-quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  align-content: start;
}

.social-quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.2;
  transition: border-color .18s ease, background-color .18s ease, opacity .18s ease;
}

.social-quiz-option:hover,
.social-quiz-option.selected {
  border-color: rgba(72, 130, 54, .7);
  background: rgba(143, 207, 60, .08);
}

.social-quiz-option.correct {
  border-color: rgba(72, 130, 54, .95);
  background: rgba(143, 207, 60, .10);
}

.social-quiz-option.wrong {
  border-color: #7d7d7d;
  background: rgba(0,0,0,.035);
}

.social-quiz-option.muted {
  opacity: .72;
}

.social-quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.social-quiz-mark {
  width: 20px;
  height: 20px;
  border: 1.8px solid #a2aaa2;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
  background: #fff;
}

.social-quiz-option.selected .social-quiz-mark {
  border-color: var(--green-dark);
}

.social-quiz-option.selected .social-quiz-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
}

.social-quiz-option.correct:not(.selected) .social-quiz-mark::before {
  content: "✓";
  color: var(--green-dark);
  font-weight: 900;
}

.social-quiz-option.wrong .social-quiz-mark::before,
.social-quiz-option.muted .social-quiz-mark::before {
  content: "×";
  color: #6d6d6d;
  font-weight: 900;
}

.social-quiz-feedback {
  margin-top: 8px;
  background: #f4f6f2;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-quiz-feedback--idle {
  background: #f6f8f3;
}

.social-quiz-feedback.warning {
  background: #fff7df;
}

.social-quiz-result-icon {
  width: 56px;
  height: 56px;
  border: 3px solid var(--text-color);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--green-dark);
}

.social-quiz-feedback--idle .social-quiz-result-icon {
  color: #7b857b;
  border-color: #aab2aa;
  font-size: 22px;
}

.social-quiz-feedback.wrong .social-quiz-result-icon {
  color: #245aa7;
}

.social-quiz-feedback strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.social-quiz-feedback p {
  max-width: 420px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
}

.social-quiz-actions,
.social-quiz-submit {
  display: none !important;
}

.social-quiz-reset {
  margin: 18px auto 0;
}

@media (max-width: 760px) {
  .social-two-weeks-copy p,
  .social-two-weeks-copy li {
    font-size: 17px;
  }
  .social-two-weeks-table th,
  .social-two-weeks-table td {
    font-size: 14px;
    padding: 12px 8px;
  }
  .social-quiz-card {
    padding: 24px 18px;
  }
  .social-quiz-card h2 {
    font-size: 21px;
    max-width: none;
  }
  .social-quiz-layout {
    grid-template-columns: 1fr;
  }
  .social-quiz-feedback {
    min-height: 0;
  }
  .social-quiz-option {
    font-size: 18px;
    padding: 14px 12px;
  }
}


/* V94 — Course 3 Section 5: daily rest / work shift split */
.social-daily-rest-section .section-body { padding-bottom: 80px; }
.social-rest-copy { width: 100%; max-width: none; margin: 28px 0; }
.social-rest-copy p, .social-rest-copy li { font-size: 20px; line-height: 1.65; }
.social-match-card, .social-daily-rest-quiz { width: min(860px, 100%); margin: 38px 0; padding: 42px; border: 1px solid rgba(21,27,22,.12); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.social-match-card h2, .social-daily-rest-quiz h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 950; }
.social-match-card p, .social-daily-rest-quiz p { margin: 0 0 24px; font-size: 18px; line-height: 1.5; }
.social-match-icons { display: flex; justify-content: center; gap: 26px; margin: 28px 0 36px; }
.social-match-icons div { text-align: center; }
.social-match-icons img { width: 38px; height: 38px; object-fit: contain; display: block; margin: 0 auto 8px; image-rendering: pixelated; }
.social-match-icons span { width: 38px; height: 38px; border-radius: 50%; background: var(--green-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.social-match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.social-match-row { border: 1px solid rgba(21,27,22,.14); border-left: 8px solid #8ca2c7; border-radius: 12px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 18px; }
.social-match-row span { width: 32px; height: 32px; border-radius: 50%; background: #f1f4ee; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
/* V120 — Course 3 / Section 5 tables use the same visual language as Section 3 driving tables */
.social-rest-table-wrap,
.social-rest-scroll-table {
  width: min(100%, 960px);
  margin: 24px 0 42px;
  overflow-x: auto;
}

.social-rest-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.social-rest-table th {
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.45);
}

.social-rest-table thead tr:first-child th {
  background: var(--graphite);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.social-rest-table td {
  font-size: 21px;
  line-height: 1.32;
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  vertical-align: middle;
}

.social-rest-table th:last-child,
.social-rest-table td:last-child {
  border-right: 0;
}

.social-rest-table.wide {
  min-width: 820px;
  margin-bottom: 20px;
}

.social-rest-note {
  width: min(100%, 960px);
  margin: 34px 0;
}

@media (max-width: 760px) {
  .social-rest-table {
    min-width: 760px;
  }
}
.social-rest-carousel { width: min(980px, 100%); margin: 42px 0 54px; }
.social-rest-carousel__stage { background: #fff; border: 1px solid rgba(21,27,22,.10); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 18px; }
.social-rest-carousel__stage img { width: 100%; max-height: 640px; object-fit: contain; display: block; }
.social-rest-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.social-rest-carousel__prev, .social-rest-carousel__next { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; color: var(--text-color); font-size: 26px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.social-rest-carousel__dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.social-rest-carousel__dots button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(21,27,22,.20); background: #fff; color: var(--text-color); font-weight: 800; cursor: pointer; }
.social-rest-carousel__dots button.active { background: var(--accent); border-color: var(--accent); }
.social-daily-rest-options { display: grid; gap: 18px; margin-top: 28px; }
.social-daily-rest-options button { border: 1px solid rgba(21,27,22,.22); background: #fff; color: var(--text-color); border-radius: 10px; padding: 18px 20px; text-align: left; font-size: 17px; line-height: 1.45; cursor: pointer; }
.social-daily-rest-options button.selected, .social-daily-rest-options button:focus { outline: 2px solid #2d5aa0; outline-offset: 2px; }
.social-daily-rest-options button.correct { border-color: #2d5aa0; background: #f7fbff; }
.social-daily-rest-options button.wrong { border-color: #777; background: #fbfbfb; }
.social-daily-rest-options button.muted { opacity: .7; }
.social-daily-rest-feedback { margin-top: 34px; background: #f4f6f2; border-radius: 10px; padding: 30px; text-align: center; }
.social-daily-rest-feedback.wrong { background: #f7f7f7; }
.social-daily-rest-result-icon { width: 62px; height: 62px; border: 3px solid var(--text-color); border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: #2d5aa0; font-size: 34px; font-weight: 900; }
.social-daily-rest-feedback strong { display: block; margin-bottom: 14px; font-size: 18px; }
.social-daily-rest-feedback p { max-width: 720px; margin: 0 auto 22px; font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) { .social-match-card, .social-daily-rest-quiz { padding: 26px 18px; } .social-match-grid { grid-template-columns: 1fr; } .social-rest-copy p, .social-rest-copy li { font-size: 17px; } .social-rest-carousel__dots button { width: 28px; height: 28px; font-size: 13px; } }

/* V95 — Course 3 Section 6: multi-driver daily rest */
.social-multi-driver-section-body { padding-bottom: 80px; }
.social-multi-copy { width: 100%; max-width: none; margin: 28px 0; }
.social-multi-copy p { font-size: 21px; line-height: 1.7; margin: 0 0 24px; }
.social-multi-driver-block { margin: 34px 0 46px; }
.social-multi-driver-block h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.15; font-weight: 950; }
.social-multi-timeline { position: relative; width: min(980px, 100%); padding: 0 0 74px; margin: 0; }
.social-multi-track { height: 58px; width: 82%; display: flex; align-items: stretch; margin-left: 0; background: #eee; overflow: hidden; }
.social-multi-track .seg { display: flex; align-items: center; justify-content: center; min-width: 18px; }
.social-multi-track .seg img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; filter: brightness(0); }
.social-multi-track .seg.work { background: #d2174a; }
.social-multi-track .seg.drive { background: #e92742; }
.social-multi-track .seg.rest { background: #068ca9; }
.social-multi-track .seg.off { background: #efefef; }
.social-multi-rest-label { position: absolute; top: 0; left: 84%; width: 100px; height: 58px; display: flex; align-items: center; justify-content: center; background: #efefef; font-size: 26px; }
.social-multi-plus { position: absolute; top: 46px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(21,27,22,.18); background: #fff; color: #1c4d9b; box-shadow: 0 4px 12px rgba(0,0,0,.22); cursor: pointer; font-size: 22px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; z-index: 4; }
.social-multi-plus.active, .social-multi-plus:hover { background: var(--accent); color: var(--text-color); border-color: var(--accent); }
.social-multi-plus.rest-plus { left: 88%; }
.social-multi-duration { position: absolute; left: 24%; bottom: 16px; font-size: 30px; line-height: 1; background: #fff; padding: 0 10px; z-index: 1; }
.social-multi-arrow { position: absolute; left: 0; bottom: 28px; width: 72%; height: 3px; background: #111; }
.social-multi-arrow::before, .social-multi-arrow::after { content: ""; position: absolute; bottom: -8px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.social-multi-arrow::before { left: -2px; border-right: 18px solid #111; }
.social-multi-arrow::after { right: -2px; border-left: 18px solid #111; }
.social-multi-info { width: 100%; margin: 22px 0 0; font-size: 19px; line-height: 1.45; }
.social-multi-info.visible { display: grid; }
.social-multi-info__text p { margin: 0; }
.social-weekly-requirements-note h2 { margin: 0 0 14px; font-size: 28px; font-weight: 900; line-height: 1.15; }
.social-weekly-requirements-note ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.social-weekly-requirements-note li { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 14px; align-items: start; }
.social-weekly-requirements-note li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--graphite); font-weight: 950; font-size: 16px; line-height: 1; }
.social-weekly-requirements-note li p { margin: 0; }
@media (max-width: 760px) {
  .social-multi-copy p { font-size: 18px; }
  .social-multi-driver-block h2 { font-size: 24px; }
  .social-multi-timeline { overflow-x: auto; padding-bottom: 82px; }
  .social-multi-track { width: 720px; min-width: 720px; }
  .social-multi-rest-label { left: 610px; }
  .social-multi-plus.rest-plus { left: 650px; }
  .social-multi-duration { left: 250px; }
  .social-multi-arrow { width: 520px; }
}


/* V96 — Course 3 Section 7: weekly rest */
.social-weekly-rest-section-body { padding-bottom: 80px; }
.social-weekly-copy { width: 100%; max-width: none; margin: 28px 0; }
.social-weekly-copy p { font-size: 20px; line-height: 1.65; margin: 0 0 26px; }
.social-weekly-table-wrap { width: min(940px, 100%); margin: 42px 0; overflow-x: auto; }
.social-weekly-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow-soft); }
.social-weekly-table th, .social-weekly-table td { border: 1px solid rgba(21,27,22,.14); padding: 22px 18px; text-align: center; font-size: 17px; line-height: 1.45; vertical-align: middle; }
.social-weekly-table th { background: #2d5aa0; color: #fff; font-weight: 950; }
.social-weekly-table td { min-height: 86px; }
.social-weekly-table .rest-head, .social-weekly-table .muted-head { background: #d8dce0; color: var(--text-color); }
.social-weekly-table .rest-cell, .social-weekly-table .muted-cell { background: #eeeeee; }
.weekly-basic-table { min-width: 760px; }
.weekly-compensation-table { min-width: 760px; }
.weekly-compensation-table td { height: 160px; }
.content-unlock-pill { width: min(430px, 100%); margin: 16px 0 44px; border: 1.5px solid var(--text-color); border-radius: 999px; padding: 15px 22px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 14px; color: var(--text-color); background: #fff; }
.social-weekly-note { width: min(720px, 100%); margin: 24px auto; }
.social-weekly-note p { margin: 0; font-size: 18px; line-height: 1.5; }
.social-weekly-requirements { margin: 34px calc(-1 * var(--content-pad)) 0; padding: 30px var(--content-pad) 38px; background: #0d8fae; color: #fff; }
.social-weekly-requirements h2 { margin: 0 0 24px; font-size: 22px; line-height: 1.2; font-weight: 950; }
.social-weekly-requirements ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; max-width: 1040px; }
.social-weekly-requirements li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 26px; align-items: start; }
.social-weekly-requirements li span { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0d8fae; display: inline-flex; align-items: center; justify-content: center; font-weight: 950; }
.social-weekly-requirements p { margin: 0; color: #fff; font-size: 18px; line-height: 1.6; }
@media (max-width: 760px) {
  .social-weekly-copy p { font-size: 17px; }
  .social-weekly-table th, .social-weekly-table td { font-size: 14px; padding: 14px 10px; }
  .content-unlock-pill { font-size: 13px; padding: 12px 16px; }
  .social-weekly-requirements li { grid-template-columns: 38px minmax(0,1fr); gap: 14px; }
  .social-weekly-requirements p { font-size: 16px; }
}


/* Course 3 summary final page */
.social-summary-section .summary-intro-card {
  max-width: 980px;
}
.social-summary-section .summary-card-item {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.social-summary-section .summary-card-number {
  width: 42px;
  height: 42px;
}


/* ========================================
   COURSE 4 — Sťahovanie a archivácia údajov
   Imported from screenshot package. Shared green TAMEX visual system.
   ======================================== */
.course4-section-body { padding-bottom: 80px; }
.course4-copy { max-width: 980px; margin: 28px 0; }
.course4-copy p, .course4-copy li { font-size: 20px; line-height: 1.65; }
.course4-copy ul { margin: 0 0 18px 24px; padding: 0; }
.course4-text-block { margin: 28px 0; }
.course4-text-block h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.course4-note { margin: 28px auto; width: min(760px, 100%); }
.course4-card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: min(880px, 100%); margin: 32px auto 48px; }
.course4-card-type { padding: 26px; text-align: left; }
.course4-card-type h3 { margin: 0 0 14px; font-size: 22px; }
.course4-card-type p { font-size: 18px; line-height: 1.55; }
.course4-card-type img { display: block; max-width: 100%; height: auto; margin: 24px auto 0; }
.course4-image-text.image-text { align-items: flex-start; }
.course4-image-text img { max-width: 100%; height: auto; border-radius: 14px; }
.course4-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 90px; align-items: center; width: min(980px, 100%); margin: 46px auto 80px; }
.course4-device-card { min-height: 310px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; }
.course4-device-card img { max-width: min(360px, 100%); max-height: 320px; object-fit: contain; }
.course4-device-card h3 { font-size: 20px; line-height: 1.25; margin: 0; }
.course4-device-card p { font-size: 17px; line-height: 1.5; max-width: 360px; margin: 0; }
.course4-hotspot-area, .course4-process-wrap { position: relative; width: min(760px, 100%); margin: 46px auto 26px; }
.course4-hotspot-area img, .course4-process-wrap img { display: block; width: 100%; height: auto; }
.course4-dot, .course4-process-dot { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(21,27,22,.14); background: #fff; color: var(--text-color); box-shadow: var(--shadow-soft); font-size: 18px; font-weight: 950; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.course4-dot:hover, .course4-dot.active, .course4-process-dot:hover, .course4-process-dot.active { background: var(--accent); border-color: var(--accent); }
.course4-info-panel { width: min(820px, 100%); margin: 24px auto 36px; padding: 26px 30px; border: 1px solid rgba(21,27,22,.12); border-left: 8px solid var(--accent); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.course4-info-panel h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.course4-info-panel p { margin: 0 0 10px; font-size: 18px; line-height: 1.55; }
.course4-process-wrap { width: min(860px, 100%); }
.course4-process-wrap--app { width: min(760px, 100%); }
.course4-accordion { width: min(760px, 100%); margin: 32px auto; }
.course4-accordion .accordion-panel p { font-size: 18px; line-height: 1.55; }
.course4-summary-section .summary-intro-card { background: #fff; }
@media (max-width: 900px) {
  .course4-card-pair, .course4-device-grid { grid-template-columns: 1fr; gap: 24px; }
  .course4-device-card { min-height: auto; }
  .course4-copy p, .course4-copy li { font-size: 18px; }
}


/* V100 — Course 4 clean assets / activated card adjustments */
.course4-device-card img[src$="dlk-smart.png"] {
  max-width: min(460px, 100%);
  max-height: 260px;
}
.course4-device-card img[src$="vdo_fleet_app.png"] {
  max-width: min(210px, 100%);
  max-height: 320px;
}
.course4-device-card img[src$="vdo-link.png"] {
  max-width: min(460px, 100%);
  max-height: 260px;
}
.course4-hotspot-area:has(img[src$="vdo-fleet-pc.png"]) {
  width: min(860px, 100%);
}
.course4-hotspot-area img[src$="vdo-fleet-pc.png"] {
  background: transparent;
  object-fit: contain;
}
.course4-process-wrap:has(img[src$="tachograph_download_dlk_vdo_fleet_app_vdo_fleet.jpg"]),
.course4-process-wrap:has(img[src$="tachograph_download_vdo_fleet_app_vdo_fleet.jpg"]) {
  width: min(1040px, 100%);
}
.course4-process-wrap img[src$="tachograph_download_dlk_vdo_fleet_app_vdo_fleet.jpg"],
.course4-process-wrap img[src$="tachograph_download_vdo_fleet_app_vdo_fleet.jpg"] {
  border-radius: 18px;
  background: #fff;
}


/* V108 — Course 3 daily driving table explanatory rows */
.social-driving-table .social-driving-week-explain {
  background: #f1f6ec;
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  border-bottom: 1px solid #d7e8c4;
}
.social-driving-table .social-driving-week-rule {
  background: #edf7e2;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  border-bottom: 1px solid #cce4b5;
}
.social-driving-table .social-driving-over-nine {
  background: rgba(142, 211, 45, 0.16);
  font-weight: 900;
}


/* V109 — Course 3 daily driving table simplified to two rows */
.social-driving-table-simple .social-driving-week-head {
  background: var(--graphite);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.social-driving-table-simple td {
  padding: 18px 10px;
}
.social-driving-table-simple .social-driving-day {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
}
.social-driving-table-simple td strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}


/* V115 — Course 3 / Prestávky: bottom-aligned driving diagrams + real DTCO warning images.
   Both diagrams now use one shared system:
   - all activity bars share the same bottom baseline
   - driving is a thick red block rising upward from that baseline
   - break/rest is a thin green line on the same bottom baseline
   - start/end country pictograms are placed at the boundary between rest and driving
   - duration labels use h/min format instead of decimal hours
*/
.drive-rule-diagram {
  --drive-red: #ef233c;
  --drive-green: #2ab24b;
  --track-top: 58px;
  --base-thickness: 8px;
  --drive-thickness: 30px;
  --endpoint-boundary: 7%;
  --drive-rule-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: min(100%, 1040px);
  margin: 28px 0 34px;
  padding: 28px 30px 86px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(146, 207, 51, 0.30);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}


.drive-rule-track {
  min-width: 760px;
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 0;
}

.drive-rule-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--track-top);
  height: var(--base-thickness);
  background: var(--drive-green);
  z-index: 1;
}

.drive-rule-endpoint {
  position: absolute;
  top: calc(var(--track-top) - 19px);
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.drive-rule-endpoint--start {
  left: calc(var(--endpoint-boundary) - 20px);
}

.drive-rule-endpoint--end {
  right: calc(var(--endpoint-boundary) - 20px);
}

.drive-rule-endpoint img {
  width: 40px;
  height: auto;
  display: block;
  image-rendering: pixelated;
  filter: none !important;
  background: #fff;
  padding: 0;
}

.drive-rule-segment {
  flex: 0 0 var(--segment);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 124px;
  min-width: 30px;
}

.drive-rule-segment::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}

.drive-rule-segment--drive::before {
  top: calc(var(--track-top) + var(--base-thickness) - var(--drive-thickness));
  height: var(--drive-thickness);
  background: var(--drive-red);
}

.drive-rule-segment--break::before,
.drive-rule-segment--rest-edge::before {
  top: var(--track-top);
  height: var(--base-thickness);
  background: var(--drive-green);
}

.drive-rule-marker {
  position: absolute;
  z-index: 7;
  width: 22px;
  height: auto;
  image-rendering: pixelated;
  filter: none !important;
  background: #fff;
  padding: 0;
  box-sizing: content-box;
}

.drive-rule-segment--drive .drive-rule-marker {
  top: calc(var(--track-top) + var(--base-thickness) - var(--drive-thickness) - 31px);
}

.drive-rule-segment--break .drive-rule-marker,
.drive-rule-segment--rest-edge .drive-rule-marker {
  top: calc(var(--track-top) - 31px);
}

.drive-rule-time {
  position: absolute;
  top: calc(var(--track-top) + 34px);
  font-family: var(--drive-rule-font);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-align: center;
  z-index: 7;
}

.drive-rule-segment--drive .drive-rule-time { color: var(--drive-red); }
.drive-rule-segment--break .drive-rule-time { color: #111; }

.drive-rule-minutes {
  display: none;
}

.social-display-warning-row--images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  align-items: start;
  justify-content: flex-start;
  gap: 28px;
  margin: 24px 0 34px;
}

.social-display-warning-image {
  margin: 0;
  min-width: 0;
}

.social-display-warning-image img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  image-rendering: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .drive-rule-diagram {
    --track-top: 54px;
    --base-thickness: 7px;
    --drive-thickness: 26px;
    padding: 24px 16px 78px;
  }

  .drive-rule-track {
    min-width: 640px;
    min-height: 118px;
  }

  .drive-rule-endpoint--start {
    left: calc(var(--endpoint-boundary) - 17px);
  }

  .drive-rule-endpoint--end {
    right: calc(var(--endpoint-boundary) - 17px);
  }

  .drive-rule-endpoint img {
    width: 34px;
  }

  .drive-rule-marker {
    width: 20px;
  }

  .drive-rule-segment--drive .drive-rule-marker {
    top: calc(var(--track-top) + var(--base-thickness) - var(--drive-thickness) - 28px);
  }

  .drive-rule-segment--break .drive-rule-marker,
  .drive-rule-segment--rest-edge .drive-rule-marker {
    top: calc(var(--track-top) - 28px);
  }

  .drive-rule-time {
    top: calc(var(--track-top) + 30px);
    font-size: clamp(15px, 3.1vw, 19px);
  }

  .social-display-warning-row--images {
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 18px;
  }

  .social-display-warning-image img {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .drive-rule-diagram {
    padding-left: 10px;
    padding-right: 10px;
  }

  .drive-rule-track {
    min-width: 520px;
  }

  .drive-rule-endpoint img {
    width: 30px;
  }

  .drive-rule-endpoint--start {
    left: calc(var(--endpoint-boundary) - 15px);
  }

  .drive-rule-endpoint--end {
    right: calc(var(--endpoint-boundary) - 15px);
  }

  .drive-rule-marker {
    width: 18px;
  }

  .social-display-warning-row--images {
    grid-template-columns: 1fr;
  }

  .social-display-warning-image img {
    max-width: 100%;
  }
}

/* V119 — global normal-text width and spacing cleanup.
   Normal text blocks should use the full available content width and should not
   introduce a fake empty line before the first paragraph. Keep special layouts
   like image-text cards, tables, quizzes and timelines untouched. */
.section-body > .regular-text,
.section-body > .regular-text-block,
.social-driving-intro,
.social-driving-copy,
.social-breaks-copy,
.social-two-weeks-copy,
.social-rest-copy,
.social-multi-copy,
.social-weekly-copy,
.course4-copy {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
}

.section-body > .regular-text > :first-child,
.section-body > .regular-text-block > :first-child,
.social-driving-intro > :first-child,
.social-driving-copy > :first-child,
.social-breaks-copy > :first-child,
.social-two-weeks-copy > :first-child,
.social-rest-copy > :first-child,
.social-multi-copy > :first-child,
.social-weekly-copy > :first-child,
.course4-copy > :first-child {
  margin-top: 0 !important;
}

.section-body > .regular-text > :last-child,
.section-body > .regular-text-block > :last-child,
.social-driving-intro > :last-child,
.social-driving-copy > :last-child,
.social-breaks-copy > :last-child,
.social-two-weeks-copy > :last-child,
.social-rest-copy > :last-child,
.social-multi-copy > :last-child,
.social-weekly-copy > :last-child,
.course4-copy > :last-child {
  margin-bottom: 0;
}


/* V123 — Course 3 global content-column alignment pass.
   Major content blocks align to the left content column and normal text can use
   full width. Internal alignment inside tables, icons, quizzes, diagrams and
   cards remains intentionally controlled by their own component styles. */
.social-law-intro,
.social-activity-symbols,
.social-activity-grid,
.social-driving-intro,
.social-driving-copy,
.social-driving-break-note,
.social-driving-table-wrap,
.social-breaks-copy,
.social-breaks-demo-block,
.social-display-warning-row,
.social-two-weeks-copy,
.social-two-weeks-table-wrap,
.social-quiz-card,
.social-rest-copy,
.social-match-card,
.social-rest-table-wrap,
.social-rest-scroll-table,
.social-rest-note,
.social-rest-carousel,
.social-daily-rest-quiz,
.social-multi-copy,
.social-multi-driver-block,
.social-multi-timeline,
.social-multi-note,
.social-weekly-copy,
.social-weekly-table-wrap,
.content-unlock-pill {
  margin-left: 0;
  margin-right: 0;
}

.social-activities-intro,
.social-driving-intro,
.social-driving-copy,
.social-breaks-copy,
.social-two-weeks-copy,
.social-rest-copy,
.social-multi-copy,
.social-weekly-copy {
  width: 100%;
  max-width: none;
}

