* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f5f7fb;
  color: #222;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
header {
  grid-column: 1 / -1;
  grid-row: 1;
  background: #1f4b99;
  padding: 1.2rem 2rem;
  color: #fff;
}
header h1 { font-size: 1.4rem; margin: 0; line-height: 1.5; }
.sidebar {
  grid-column: 1;
  grid-row: 2;
  background: #1f4b99;
  padding: 1rem;
  min-width: 0;
}
.sidebar a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 0.4rem 0;
  padding: 0.65rem;
  border-radius: 6px;
}
.sidebar a:hover, .sidebar a[aria-current="page"] { background: rgba(255,255,255,0.2); }
.sidebar a:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 2px; }
section {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  min-height: 70vh;
  color: #fff;
  background-color: #263d60;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
section > * { position: relative; z-index: 1; max-width: 100%; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; color: #ffeb3b; }
p, li { font-size: 1.1rem; line-height: 1.7; overflow-wrap: anywhere; }
.quote {
  background: rgba(255,255,255,0.2);
  padding: 1rem;
  border-left: 4px solid #ffb300;
  margin: 1rem 0;
  font-style: italic;
}
.illustrated-section { background: #f5f7fb; color: #222; justify-content: flex-start; min-height: 0; }
.illustrated-section::after { display: none; }
.illustrated-section h2 { color: #1f4b99; }
.illustrated-section .quote { background: #e7edf8; }
.page-illustration { display: block; width: 100%; height: auto; object-fit: contain; margin-top: 1rem; }
footer {
  grid-column: 1 / -1;
  grid-row: 3;
  background: #1f4b99;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.home-content { grid-column: 2; grid-row: 2; min-width: 0; color: #15366d; background: #f6fbff; }
.home-intro { padding: clamp(1.25rem, 3vw, 2.5rem); text-align: center; }
.home-intro h2, .home-details h2 { color: #143d80; }
.home-intro p { max-width: 850px; margin: 0.75rem auto 0; }
.home-eyebrow { font-weight: 700; color: #285ea1; }
.home-image-link { display: block; }
.home-image-link .page-illustration { margin: 0; }
.home-content a:focus-visible { outline: 3px solid #176dc9; outline-offset: -3px; }
.home-details { padding: clamp(1.25rem, 3vw, 2.5rem); }
.home-workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; padding-left: 1.5rem; margin-bottom: 3rem; }
.home-workflow strong, .home-workflow span { display: block; }
.home-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.home-benefits article { padding: 1.5rem; border: 1px solid #cfe5f5; border-radius: 16px; background: #e7f5ff; }
.home-benefits article:nth-child(2) { background: #e8faf3; }
.home-benefits article:nth-child(3) { background: #fff7e5; }
.home-benefits article:nth-child(4) { background: #fff0f5; }
.home-benefits article:nth-child(5) { background: #f0edff; }
.home-benefits h3 { font-size: 1.25rem; margin: 0; }
.home-benefits a { color: inherit; text-underline-offset: 4px; }
.home-benefits ul { padding-left: 1.25rem; margin-bottom: 0; }
.home-benefits li { margin-bottom: 0.5rem; }
.home-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 1.5rem; margin-top: 2rem; background: #e3f3ff; border-radius: 16px; }
.home-values dt { font-size: 1.2rem; font-weight: 700; }
.home-values dd { margin: 0.4rem 0 0; line-height: 1.6; }
.home-closing { text-align: center; font-weight: 700; }
@media (max-width: 760px) {
  .home-workflow, .home-values { grid-template-columns: 1fr; }
  body { display: block; }
  header { padding: 1rem; }
  .sidebar { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.75rem; }
  .sidebar a { margin: 0; padding: 0.6rem; }
  section { min-height: 55vh; }
  .illustrated-section { min-height: 0; padding: 1rem; }
}

.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-top: 0; }
.contact-card { background: #fff; border: 1px solid #cfe5f5; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); }
.contact-information dt { font-weight: 700; font-size: 1.15rem; margin-top: 1.25rem; }
.contact-information dd { margin: 0.35rem 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.contact-information address { font-style: normal; }
.contact-information a { color: #143d80; text-underline-offset: 3px; }
.contact-button { display: flex; justify-content: center; gap: 1rem; padding: 1rem; margin-top: 1.5rem; border-radius: 12px; background: #208237; color: #fff; font-weight: 700; text-decoration: none; }
.contact-button:hover { background: #16682a; }
.contact-services { grid-template-columns: 1fr; }
.contact-services article { background: #eef8ee; }
.contact-services p { margin: 0.5rem 0 0; }
.contact-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.contact-values li { padding: 1rem; background: #eef8ee; border-radius: 12px; font-weight: 600; }
@media (max-width: 760px) {
  .contact-details, .contact-values { grid-template-columns: 1fr; }
}

.sidebar-group { margin: 0.4rem 0; min-width: 0; }
.sidebar-group summary { color: #fff; cursor: pointer; padding: 0.65rem; border-radius: 6px; overflow-wrap: anywhere; }
.sidebar-group summary:hover, .sidebar-group[open] > summary { background: rgba(255,255,255,0.2); }
.sidebar-group summary:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 2px; }
.sidebar-submenu { margin: 0.4rem 0 0.4rem 0.75rem; padding-left: 0.5rem; border-left: 2px solid rgba(255,255,255,0.4); }
@media (max-width: 760px) {
  .sidebar-group { flex-basis: 100%; margin: 0; }
  .sidebar-group summary { padding: 0.6rem; }
}

.footer-legal { margin-top: 0.75rem; }
.footer-legal a { color: #fff; text-underline-offset: 4px; }
.footer-legal a:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 4px; }
.legal-content { max-width: 960px; }
.legal-content h2 { margin-top: 2rem; }
.legal-content address { font-style: normal; line-height: 1.8; }
.legal-content a { color: #143d80; overflow-wrap: anywhere; }
.legal-draft { padding: 1rem; background: #fff3cd; border-left: 4px solid #946200; border-radius: 6px; }
.legal-pending { color: #714b00; }


.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.5rem; padding-top: 0; }
.example-group { min-width: 0; padding: 1.5rem; border: 1px solid #cfe5f5; border-radius: 16px; background: #fff; }
.example-group h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.example-files { list-style: none; padding: 0; margin: 0; }
.example-files li { padding: 1rem 0; border-top: 1px solid #dfebf5; }
.example-open { display: block; color: #143d80; font-weight: 600; text-underline-offset: 3px; }
.example-file-meta { display: block; margin-top: 0.35rem; color: #465b73; font-size: 0.85rem; font-weight: 400; }
.example-download { display: inline-block; margin-top: 0.75rem; padding: 0.4rem 0.8rem; border-radius: 6px; background: #e3f3ff; color: #143d80; font-size: 0.95rem; text-underline-offset: 3px; }
.example-download:hover { background: #cbe8fc; }

.ecu-content > h2:not(:first-child) { margin-top: 2.5rem; }
.ecu-content a { color: #143d80; text-underline-offset: 3px; }
.ecu-reference { font-size: 0.95rem; margin: 1.25rem 0 2rem; }

.milestone-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 2rem; }
.milestone-stats > div { padding: 2rem 1rem; border: 1px solid #cfe5f5; border-radius: 16px; background: #e7f5ff; text-align: center; }
.milestone-stats > div:nth-child(2) { background: #e8faf3; }
.milestone-stats > div:nth-child(3) { background: #fff7e5; }
.milestone-stats dt { font-weight: 600; }
.milestone-stats dd { margin: 0.75rem 0 0; font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 800; }
.milestone-note { text-align: center; font-size: 0.95rem; color: #465b73; }
.home-content .home-closing a { color: #143d80; text-underline-offset: 3px; }
@media (max-width: 760px) { .milestone-stats { grid-template-columns: 1fr; } }
