/* OneCivic subpage only — load after ceperia.css */
body.page-onecivic{
  /* OneCivic guideline palette (scoped to this page only) */
  --primary: #0f172a;     /* Premium / authority */
  --primary-2: #60a5fa;   /* Accent (blue, no green) */
  --bg: #f8fafc;          /* Off-white support */
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border: #cbd5e1;
  --divider: #e2e8f0;
  --text: #0f172a;
  --muted: #334155;
  --faint: #64748b;
  --inverse: #f8fafc;
  --success: var(--primary-2);
  --primary-soft: color-mix(in srgb, var(--primary-2) 12%, #ffffff);
}

/* Keep Ceperia fonts in header/footer; apply Plus Jakarta Sans only to page content */
body.page-onecivic main{
  --font-display: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  font-family: var(--font-body);
}

/* ---------------------------------------------------------
   Icon system (page-scoped)
   - Same sizing/alignment across sections
   - Color follows role: accent vs inverse-on-dark
   --------------------------------------------------------- */
body.page-onecivic main{
  --oc-icon-size: 3.1rem;
  --oc-icon-size-lg: 3.1rem;
  --oc-icon-size-xl: 2.6rem; /* used inside dark tiles */
}
.oc-icon{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  border-radius: 0;
  color: var(--primary-2);
}
.oc-icon svg{
  width: var(--oc-icon-size, 3.1rem);
  height: var(--oc-icon-size, 3.1rem);
  display: block;
}
.oc-icon--inverse{
  color: #fff;
}
.oc-icon--tile svg{
  width: var(--oc-icon-size-xl, 2.6rem);
  height: var(--oc-icon-size-xl, 2.6rem);
}

/* Timeline tiles must stay centered (grid), even with `.oc-icon` applied */
.oc-timeline__media-icon.oc-icon{
  display: grid;
  place-items: center;
  place-content: center;
  justify-content: center;
  align-content: center;
}
body.page-onecivic main h1,
body.page-onecivic main h2,
body.page-onecivic main h3{
  font-family: var(--font-display);
}

body.page-onecivic :focus-visible{
  outline-color: color-mix(in srgb, var(--primary-2) 70%, transparent);
}

/* Checkboxes — same border/colors as register inputs (all page-onecivic surfaces). */
body.page-onecivic input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 0.3rem;
  background: #fff;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

body.page-onecivic input[type="checkbox"]:checked {
  background: var(--primary, #0f172a);
  border-color: var(--primary, #0f172a);
}

body.page-onecivic input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.12rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.page-onecivic input[type="checkbox"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-2, #60a5fa) 50%, transparent);
  outline-offset: 1px;
}

/* Button shape: align with OneCivic rounded-square UI (page-scoped) */
body.page-onecivic .btn,
body.page-onecivic .btn-hero,
body.page-onecivic .btn-pill{
  border-radius: 0.65rem;
}

/*
 * Standard button footprint on all page-onecivic surfaces (register, success,
 * legal, landings). Overrides ceperia.css pill padding (.95rem / min-height 44px).
 * Marketing CTAs keep .btn-hero / .btn-pill sizing below.
 */
body.page-onecivic .btn:not(.btn-hero):not(.btn-pill){
  min-height: 2.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

body.page-onecivic .btn.btn-hero,
body.page-onecivic .btn.btn-pill{
  min-height: 2.875rem;
  padding: 0.5rem 1.7rem;
  font-size: var(--text-sm, 0.875rem);
}

body.page-onecivic .btn-outline-secondary{
  background: #fff;
  color: var(--text, #0f172a);
  border: 1px solid var(--border, #cbd5e1);
}

body.page-onecivic .btn-outline-secondary:hover{
  background: #f8fafc;
  filter: none;
}

/* Full-width stacked actions (register success, pending application, etc.) */
body.page-onecivic .oc-btn-stack{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

body.page-onecivic .oc-btn-stack > .btn,
body.page-onecivic .oc-btn-stack > button.btn{
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

/* CTA buttons */
body.page-onecivic .btn-primary{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
body.page-onecivic .btn-primary:hover{
  filter: none;
  background: color-mix(in srgb, var(--primary) 88%, #fff);
}
body.page-onecivic .btn-primary:active{
  background: color-mix(in srgb, var(--primary) 82%, #fff);
}

/* Hero primary variant uses a gradient in base CSS — keep it aligned to the CTA */
body.page-onecivic .btn-primary.btn-hero{
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 92%, #000 8%) 0%,
    var(--primary) 100%
  );
  border-color: color-mix(in srgb, var(--primary) 70%, #000);
}

/* Dark sections: invert buttons to white */
body.page-onecivic .oc-hero .btn-primary,
body.page-onecivic .dg-final .btn-primary,
body.page-onecivic .dg-final .btn-dark{
  background: #fff;
  color: var(--primary);
  border-color: rgba(255,255,255,0.18);
}

/* Dark hero: keep secondary buttons readable (outline style) */
body.page-onecivic .oc-hero .btn-secondary{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.38);
}
body.page-onecivic .oc-hero .btn-secondary:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.52);
}
body.page-onecivic .oc-hero .btn-secondary:active{
  background: rgba(255,255,255,0.12);
}
body.page-onecivic .oc-hero .btn-primary:hover,
body.page-onecivic .dg-final .btn-primary:hover,
body.page-onecivic .dg-final .btn-dark:hover{
  background: color-mix(in srgb, #fff 92%, var(--primary));
}
body.page-onecivic .oc-hero .btn-primary:active,
body.page-onecivic .dg-final .btn-primary:active,
body.page-onecivic .dg-final .btn-dark:active{
  background: color-mix(in srgb, #fff 86%, var(--primary));
}

/* Success accent: checkmarks in the hero hooks */
body.page-onecivic .oc-hero__hook-icon{
  color: var(--success);
}

/* Hero background image (SVG) */
.oc-hero{
  position: relative;
  min-height: min(78vh, 38rem);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-top: none;
  background: var(--primary);
  color: var(--inverse);
  overflow: hidden;
}
.oc-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--oc-hero-visual-url, url("../images/hero-onecivic.svg"));
  background-repeat: no-repeat;
  background-position: 72% 50%;
  background-size: cover;
}
@media (min-width: 900px){
  .oc-hero::before{
    background-position: 78% 42%;
  }
}
@media (max-width: 700px){
  .oc-hero::before{
    background-position: 62% 38%;
    background-size: cover;
  }
  .oc-hero{ min-height: min(88vh, 40rem); }
}
.oc-hero::after{
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Scrim nur links/mittig — rechts deutlicheres Phone, weniger Abdeckung */
  background:
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--primary) 92%, transparent) 0%,
      color-mix(in srgb, var(--primary) 70%, transparent) 36%,
      color-mix(in srgb, var(--primary) 28%, transparent) 55%,
      transparent 70%
    ),
    radial-gradient(ellipse 80% 55% at 20% 12%, color-mix(in srgb, var(--primary-2) 14%, transparent) 0%, transparent 52%),
    radial-gradient(ellipse 55% 50% at 88% 48%, color-mix(in srgb, var(--primary-2) 10%, transparent) 0%, transparent 55%);
}
.oc-hero__grid{
  position: relative; z-index: 1;
}
.oc-hero__content{
  max-width: 36rem;
}
.oc-hero__strap-wrap{
  position: relative; z-index: 1;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
.oc-hero h1{
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 0 1rem;
}
.oc-hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: color-mix(in srgb, var(--inverse) 80%, #94a3b8);
}
.oc-hero__eyebrow-flag{
  font-size: 1em;
  letter-spacing: 0;
  line-height: 1;
}
.oc-hero__emph{
  color: var(--primary-2);
  text-decoration: none;
}
.oc-hero__lead{
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  color: color-mix(in srgb, var(--inverse) 82%, #94a3b8);
  line-height: 1.55;
  max-width: 40ch;
  margin: 0 0 1.25rem;
}
.oc-hero__strap{
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--inverse) 74%, #94a3b8);
  max-width: 36rem;
  width: auto;
  margin: 0;
  text-align: start;
}
.oc-hero__strap strong{ color: var(--inverse); font-weight: 650; }
.oc-hero__hooks{
  list-style: none; margin: 0 0 0; padding: 0;
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 1.25rem;
  max-width: none;
}
.oc-hero__hooks--grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  max-width: min(36rem, 100%);
}
@media (min-width: 520px){
  .oc-hero__hooks--grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.oc-hero__hooks li{
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--inverse);
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.oc-hero__hook-icon{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: var(--primary);
}
.oc-hero__hook-icon svg{
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero-CTAs unterhalb des Intro-Blocks — volle Containerbreite (nicht max-width der Copy-Spalte) */
.oc-hero__grid > .oc-hero__actions{
  width: 100%;
  max-width: none;
  margin-top: 1.5rem;
}

/* Hero-CTAs: mobile 1 Spalte; ≥901px 4 Spalten (nicht für --pair: zwei Buttons nebeneinander) */
body.page-onecivic .oc-hero__actions:not(.oc-hero__actions--pair){
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--layout-gutter);
  row-gap: 0.85rem;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body.page-onecivic .oc-hero__actions:not(.oc-hero__actions--pair) > .btn{
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  white-space: normal;
}
@media (min-width: 901px){
  body.page-onecivic .oc-hero__actions:not(.oc-hero__actions--pair){
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.page-onecivic .oc-hero__actions:not(.oc-hero__actions--pair) > .btn:only-child{
    grid-column: 1;
  }
  body.page-onecivic .oc-hero__actions:not(.oc-hero__actions--pair) > .btn:nth-child(1):nth-last-child(2){
    grid-column: 1;
  }
  body.page-onecivic .oc-hero__actions:not(.oc-hero__actions--pair) > .btn:nth-child(2):nth-last-child(1){
    grid-column: 2;
  }
}

/* Ecosystem: Tabs + Preview — Hintergrund wie Screenshot: Map/Netz + weicher Wärmeglow oben */
.oc-eco{
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: visible;
  padding: 3.25rem 0 3.5rem;
  border-top: none;
  background: transparent;
}
.oc-eco::before,
.oc-eco::after{
  content: none;
}
.oc-eco > .container{ position: relative; z-index: 1; }
.oc-eco h2{ text-align: left; margin: 0 0 0.5rem; max-width: 22ch; }
.oc-eco__intro{
  text-align: left;
  margin: 0 0 2.35rem;
  max-width: min(66ch, 92vw);
  padding-inline: 0.25rem;
  color: var(--muted);
}

/* One ecosystem: clean feature list (screenshot-like) */
.oc-eco__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
  max-width: 100%;
  margin: 0;
  padding: 0;
}
@media (max-width: 800px){
  .oc-eco__grid{ grid-template-columns: 1fr; }
}
.oc-eco-card{
  display: block;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
@media (max-width: 800px){
  .oc-eco-card{ }
}
.oc-eco-card--span-full{
  grid-column: auto;
  grid-template-columns: unset;
}
@media (max-width: 800px){
  .oc-eco-card--span-full{ }
}
.oc-eco-card__content{
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: start;
}
.oc-eco-card__icon{
  align-self: flex-start;
}
.oc-eco-card__icon svg{
  width: var(--oc-icon-size, 3.1rem);
  height: var(--oc-icon-size, 3.1rem);
}
.oc-eco-card__copy{
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0;
}
.oc-eco-card h3{
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
/* Headlines without arrows */
.oc-eco-card__arrow{ display:none; }
.oc-eco-card p{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  max-width: 44ch;
}
.oc-eco-card--span-full p{ max-width: 44ch; }
.oc-eco-card__media{
  display: none;
}
.oc-eco-card__media--tint-a,
.oc-eco-card__media--tint-b,
.oc-eco-card__media--tint-c,
.oc-eco-card__media--marketplace,
.oc-eco-card__media--gov-suite,
.oc-eco-card__media--tint-d,
.oc-eco-card__media--tint-beyond{ display:none; }
.oc-eco-card__img{
  display: none;
}
.oc-eco-card__media:has(.oc-eco-card__img) .oc-eco-card__ph{ display: none; }
.oc-eco-card__media--monetization{ display:none; }
.oc-eco-card__ph{
  display: none;
}
.oc-eco-card__ph-device{
  width: 2.9rem; height: auto;
  opacity: 0.55;
}
.oc-eco-card__ph-icon-lg{
  width: 3.5rem; height: 3.5rem;
  opacity: 0.4;
  color: currentColor;
}
.oc-eco-card__ph-label{
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Unterer Block: solider Hintergrund, liegt über ggf. aus der oc-eco ragendem Deko-Layer */
.oc-launch{
  position: relative;
  z-index: 1;
  padding: 3.25rem 0 3.5rem;
  border-top: none;
  background: var(--bg);
}
.oc-launch h2{
  text-align: left;
  margin: 0 0 2rem;
  max-width: min(36ch, 100%);
}
.oc-launch__lead{
  margin: -1.15rem 0 2.2rem;
  max-width: min(72ch, 100%);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* From strategy to rollout: screenshot-artiges Feature-Grid (2 pro Zeile) */
.oc-launch__cluster{
  max-width: min(100%, var(--content));
  margin-inline: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.oc-bento.oc-bento--open{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.35rem);
  margin: 0;
  padding: 0;
  background: transparent;
  align-items: start;
}
@media (max-width: 700px){
  .oc-bento.oc-bento--open{ grid-template-columns: 1fr; }
}
.oc-bento__card{
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  text-align: start;
}
.oc-bento__icon{
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.65rem;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
}
.oc-bento__icon svg{
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}
.oc-bento__card h3{
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  max-width: 44ch;
}
.oc-bento__card p{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.62;
  max-width: 48ch;
}

.oc-model{
  padding: 2.75rem 0 2.25rem;
  background: transparent;
}
.oc-model h2{ margin: 0 0 0.85rem; max-width: min(32ch, 100%); }
.oc-model__lead{
  margin: 0 0 1.6rem;
  max-width: min(76ch, 100%);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.oc-model__points{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px){
  .oc-model__points{ grid-template-columns: 1fr; }
}
.oc-model__points li{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0;
}
.oc-model__icon{
  margin-top: 0.05rem;
}
.oc-model__icon svg{
  width: var(--oc-icon-size, 3.1rem);
  height: var(--oc-icon-size, 3.1rem);
  display:block;
}
.oc-model__points strong{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.oc-model__points span{
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.oc-outcomes{
  padding: 3.25rem 0 3.5rem;
  background: transparent;
  border-top: none;
}
.oc-outcomes h2{ margin: 0 0 0.85rem; max-width: min(32ch, 100%); }
.oc-outcomes__lead{
  margin: 0 0 1.75rem;
  max-width: min(86ch, 100%);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.oc-outcomes__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
@media (max-width: 800px){
  .oc-outcomes__grid{ grid-template-columns: 1fr; }
}
.oc-outcomes__item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.oc-outcomes__icon{
  /* visual baseline aligns via .oc-icon */
}
.oc-outcomes__icon svg{
  width: var(--oc-icon-size, 3.1rem);
  height: var(--oc-icon-size, 3.1rem);
  display:block;
}
.oc-outcomes__item strong{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.oc-outcomes__item span{
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* Built to launch: timeline — narrow icon column (tiles are small), rail + content share remaining width */
.oc-timeline{
  --tl-media: 6.25rem;
  --tl-gap: clamp(1rem, 2vw, 1.5rem);
  --tl-rail: 2.5rem;
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.35rem);
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.oc-timeline::before{
  content:"";
  position: absolute;
  left: calc(var(--tl-media) + var(--tl-gap) + (var(--tl-rail) / 2));
  top: 0.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: color-mix(in srgb, var(--border) 70%, transparent);
}
.oc-timeline__item{
  display: grid;
  grid-template-columns: var(--tl-media) var(--tl-rail) minmax(0, 1fr);
  column-gap: var(--tl-gap);
  align-items: start;
}
@media (max-width: 900px){
  .oc-timeline{
    /* Mobile timeline: left continuous rail, content column with icon above headline */
    --tl-media: 3.6rem;
    --tl-gap: 1rem;
    --tl-rail: 1.75rem;
  }
  .oc-timeline::before{
    content:"";
    left: calc(var(--tl-rail) / 2);
    top: 0;
    bottom: 0;
  }
  .oc-timeline__item{
    grid-template-columns: var(--tl-rail) minmax(0, 1fr);
    column-gap: var(--tl-gap);
    grid-template-areas:
      "rail media"
      "rail content";
  }
  /* Place icon ABOVE the headline (in the content column) */
  .oc-timeline__media{
    grid-area: media;
    min-height: 0;
    padding-top: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .oc-timeline__rail{
    grid-area: rail;
    justify-content: center;
    padding-bottom: 0.75rem;
  }
  /* Subtle nodes on mobile (optional but less visually heavy) */
  .oc-timeline__node{
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-top: 0.25rem;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 92%, transparent);
  }
  .oc-timeline__content{ grid-area: content; }

  /* Smaller icon tile only on mobile */
  .oc-timeline__media-icon{
    width: var(--tl-media);
    height: var(--tl-media);
    border-radius: 0.7rem;
  }
  .oc-timeline__media-icon svg{
    width: 1.65rem;
    height: 1.65rem;
  }
}
.oc-timeline__media{
  position: relative;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  min-height: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0.25rem;
}
@media (max-width: 900px){
  /* Let the media row shrink to the icon */
  .oc-timeline__media{
    padding-top: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .oc-timeline__media-icon{
    margin-bottom: 0.65rem;
  }
}
.oc-timeline__rail{
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.oc-timeline__node{
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--primary);
  margin-top: 0.35rem; /* aligns to headline cap-height */
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 92%, transparent);
}
.oc-timeline__media-icon{
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.75rem;
  background: var(--primary);
  display:grid;
  place-items:center;
}
.oc-timeline__media-icon svg{
  width: var(--oc-icon-size-xl, 2.6rem);
  height: var(--oc-icon-size-xl, 2.6rem);
  display:block;
}
.oc-timeline__content h3{
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 44ch;
}
.oc-timeline__content p{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.62;
  max-width: 60ch;
}

.oc-cta{ padding: 3.5rem 0; }
.oc-cta .cta-band{ margin: 0; }
.oc-cta .cta-band p{ color: rgba(247, 244, 238, 0.84); }
.oc-hero .oc-cta-inline{ display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* Country launch: facts left, map right; hero-matched section background */
.oc-country-launch{
  --oc-country-launch-bg: var(--lm-hero-visual-url, url("../images/hero--ride--delivery.png"));
  position: relative;
  isolation: isolate;
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  color: var(--text);
  border-top: none;
  overflow: hidden;
}
.oc-country-launch::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image: var(--oc-country-launch-bg);
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
}
.oc-country-launch::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--surface, #fff) 86%, transparent);
}
.oc-country-launch__grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
}
@media (max-width: 900px){
  .oc-country-launch__grid{
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2rem);
  }
}
.oc-country-launch__copy{
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: clamp(0.85rem, 1vw, 1rem);
  background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.06);
}
.oc-country-launch h2{
  margin: 0 0 0.85rem;
  max-width: min(24ch, 100%);
  text-align: left;
}
.oc-country-launch__lead{
  margin: 0;
  max-width: min(44ch, 100%);
  color: var(--muted, #64748b);
  font-size: var(--text-sm, 0.9375rem);
  line-height: 1.7;
}
.oc-country-launch__facts{
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  max-width: min(42ch, 100%);
}
.oc-country-launch__fact{
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.oc-country-launch__fact-title{
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text, #0f172a);
}
.oc-country-launch__fact-text{
  font-size: var(--text-sm, 0.9375rem);
  line-height: 1.65;
  color: var(--muted, #64748b);
}
.oc-country-launch__figure{
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
}
.oc-country-launch__map{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Marketing homepage hero (ceperia.com/onecivic): visual fills section, copy + 2-col hooks */
.oc-hero.oc-hero--marketing{
  min-height: min(82svh, 42rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.oc-hero.oc-hero--marketing .oc-hero__grid{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.oc-hero.oc-hero--marketing .oc-hero__content{
  max-width: min(36rem, 100%);
}
.oc-hero.oc-hero--marketing h1{
  max-width: 20ch;
}
.oc-hero.oc-hero--marketing .oc-hero__lead{
  max-width: 44ch;
}
.oc-hero.oc-hero--marketing .oc-hero__hooks--grid{
  margin-top: 0.15rem;
}
body.page-onecivic--corporate .oc-hero.oc-hero--marketing > .container.oc-hero__grid > .oc-hero__actions{
  margin-top: 1.35rem;
}
body.page-onecivic--corporate #main-content > .oc-hero--marketing:first-child,
.page-landing-mobility .lm-page > .lm-hero-03:first-child{
  margin-top: 0;
}

/* --- OneCivic municipal homepage (centered hero + stacked sections) --- */
body.page-onecivic .oc-hero--center .oc-hero__grid{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.page-onecivic .oc-hero--center .oc-hero__content{
  max-width: min(48rem, 100%);
  margin-inline: auto;
  text-align: center;
}
body.page-onecivic .oc-hero--center h1{
  max-width: 22ch;
  margin-inline: auto;
}
body.page-onecivic .oc-hero--center .oc-hero__lead{
  max-width: 52ch;
  margin-inline: auto;
}
body.page-onecivic .oc-hero--center .trust-eyebrow{
  margin-inline: auto;
}
body.page-onecivic .oc-hero--center::after{
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 88%, black) 0%,
      color-mix(in srgb, var(--primary) 64%, black) 50%,
      color-mix(in srgb, var(--primary) 78%, black) 100%
    ),
    radial-gradient(ellipse 75% 55% at 50% 18%, color-mix(in srgb, var(--primary-2) 14%, transparent) 0%, transparent 52%);
}
body.page-onecivic .oc-hero--center::before{
  opacity: 0.32;
}
body.page-onecivic .oc-hero__actions.oc-hero__actions--pair{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 26rem);
  margin-top: 1.25rem;
}
@media (min-width: 640px){
  body.page-onecivic .oc-hero__actions.oc-hero__actions--pair{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 32rem;
    gap: 0.75rem 1rem;
  }
  body.page-onecivic .oc-hero__actions.oc-hero__actions--pair > .btn{
    flex: 1 1 auto;
    min-width: 11rem;
    max-width: 16rem;
  }
}
body.page-onecivic .oc-hero__aux{
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  max-width: 44rem;
}
body.page-onecivic .oc-hero__aux a{
  font-size: 0.8125rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--inverse) 88%, #94a3b8);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-onecivic .oc-hero__aux a:hover{
  color: var(--inverse);
}

.oc-muni-section-title{
  text-align: center;
  margin: 0 auto 0.5rem;
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.65rem);
  color: var(--text);
}
.oc-muni-section-intro{
  text-align: center;
  margin: 0 auto 2rem;
  max-width: min(62ch, 92vw);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.oc-muni-section.oc-eco h2{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 28ch;
}
.oc-muni-section.oc-eco .oc-eco__intro{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.page-onecivic .oc-muni-section.oc-eco .oc-eco__grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  body.page-onecivic .oc-muni-section.oc-eco .oc-eco__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  body.page-onecivic .oc-muni-section.oc-eco .oc-eco__grid{
    grid-template-columns: 1fr;
  }
}

.oc-muni-about__inner{
  max-width: min(44rem, 100%);
  margin-inline: auto;
  text-align: center;
}
.oc-muni-about__title{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.65rem);
  margin: 0 0 1rem;
}
.oc-muni-about__body{
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.oc-muni-about__cta{
  margin: 1.5rem 0 0;
}

.oc-muni-news__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px){
  .oc-muni-news__grid{ grid-template-columns: 1fr; }
}
.oc-muni-news-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.15rem 1.2rem;
  background: var(--bg);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(10,10,10,0.05));
  text-align: left;
}
.oc-muni-news-card__cat{
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.oc-muni-news-card__title{
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}
.oc-muni-news-card__date{
  margin: 0 0 0.65rem;
  font-size: var(--text-xs);
  color: var(--muted);
}
.oc-muni-news-card__summary{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.oc-muni-news-card__more{
  margin: 0.85rem 0 0;
}
.oc-muni-news-card__more a{
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--primary);
  text-decoration: none;
}
.oc-muni-news-card__more a:hover{ text-decoration: underline; }

.oc-muni-depts__grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
}
@media (max-width: 800px){
  .oc-muni-depts__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .oc-muni-depts__grid{ grid-template-columns: 1fr; }
}
.oc-muni-depts__link{
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 0.5rem);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}
.oc-muni-depts__link:hover{
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
}
.oc-muni-depts__link--disabled{
  opacity: 0.72;
  cursor: default;
}

.oc-muni-explore__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 1000px){
  .oc-muni-explore__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .oc-muni-explore__grid{ grid-template-columns: 1fr; }
}
.oc-muni-explore-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(10,10,10,0.06));
  text-align: left;
  display: flex;
  flex-direction: column;
}
.oc-muni-explore-card__visual{
  height: 6.5rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 55%, transparent), color-mix(in srgb, var(--primary-2) 40%, var(--bg))),
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--primary) 22%, transparent) 100%);
}
.oc-muni-explore-card__body{
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.oc-muni-explore-card__body h3{
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--text);
}
.oc-muni-explore-card__body p{ margin: 0; font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }
.oc-muni-explore-card__cta{ margin-top: auto; padding-top: 0.5rem; }

.oc-muni-events{
  padding: 2rem 0;
  background: color-mix(in srgb, var(--surface-2) 65%, var(--bg));
  border-block: 1px solid var(--divider);
}
.oc-muni-events__list{
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: min(40rem, 100%);
  margin-inline: auto;
}
.oc-muni-events__list li{
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.oc-muni-events__list li:last-child{ border-bottom: 0; }
.oc-muni-events__list a{ color: var(--primary); text-decoration: none; font-weight: 650; }
.oc-muni-events__list a:hover{ text-decoration: underline; }

.oc-muni-contact__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}
@media (max-width: 800px){
  .oc-muni-contact__grid{ grid-template-columns: 1fr; }
}
.oc-muni-contact__title{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.65rem);
}
.oc-muni-contact__lead{
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.oc-muni-contact__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.oc-muni-contact__details{
  margin: 0;
}
.oc-muni-contact__row{
  margin: 0 0 1rem;
}
.oc-muni-contact__row dt{
  margin: 0 0 0.2rem;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.oc-muni-contact__row dd{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.55;
}
.oc-muni-contact__row dd a{ color: var(--primary); text-decoration: none; }
.oc-muni-contact__row dd a:hover{ text-decoration: underline; }

.oc-muni-contact__aside{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.oc-muni-contact__depts{
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
}
.oc-muni-contact__depts-title{
  margin: 0 0 0.65rem;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.oc-muni-contact__dept-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}
@media (max-width: 480px){
  .oc-muni-contact__dept-list{ grid-template-columns: 1fr; }
}
.oc-muni-contact__dept-list a,
.oc-muni-contact__dept-list span{
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.oc-muni-contact__dept-list a{
  color: var(--primary);
}
.oc-muni-contact__dept-list a:hover{
  text-decoration: underline;
}

.oc-muni-news__view-all{
  margin: 2rem 0 0;
  text-align: center;
}
.oc-muni-news__view-all-link{
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.oc-muni-news__view-all-link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   OneCivic corporate marketing header (www.onecivic.* hosts)
   — 3-column grid: logo | main nav (centered) | utility + menu.
   — Solid light chrome (suite-tweaks): readable on dark heroes; shadow when scrolled.
   ------------------------------------------------------------------ */
body.page-onecivic--corporate .site-header .header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: clamp(0.65rem, 2vw, 1.25rem);
  row-gap: 0;
  padding-block: 0;
  background: transparent;
  color: var(--text, #0f172a);
  border-radius: 0;
}

body.page-onecivic--corporate .site-header .header-inner .brand {
  grid-column: 1;
  align-self: center;
  margin-inline-end: 0;
  padding-block: 0.65rem;
}

body.page-onecivic--corporate .site-header .brand-text {
  color: var(--text, #0f172a);
}

/* Middle column: same background as the bar (no separate black strip). */
body.page-onecivic--corporate .site-header .nav.nav--suite {
  grid-column: 2;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: transparent;
  padding-inline: clamp(0.5rem, 2.5vw, 2rem);
  padding-block: 0.65rem;
}

body.page-onecivic--corporate .site-header .nav.nav--suite > a,
body.page-onecivic--corporate .site-header .nav.nav--suite > button[data-mega-trigger] {
  color: var(--muted, #334155);
}

body.page-onecivic--corporate .site-header .nav.nav--suite > button[data-mega-trigger]::before {
  /* Ceperia mega-nav: line follows label color; keep 1px with suite header overrides. */
  background: currentColor;
  height: 1px;
}

body.page-onecivic--corporate .site-header .header-trailing {
  grid-column: 3;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  padding-block: 0.65rem;
}

body.page-onecivic--corporate .site-header .icon-btn.menu-toggle {
  color: var(--text, #0f172a);
  border-color: var(--border, #cbd5e1);
  background: var(--surface, #ffffff);
}

/* Mobile: primary nav hidden (ceperia); two columns — wordmark | actions + menu. */
@media (max-width: 820px) {
  body.page-onecivic--corporate .site-header .header-inner {
    grid-template-columns: 1fr auto;
  }

  body.page-onecivic--corporate .site-header .header-inner .brand {
    grid-column: 1;
  }

  body.page-onecivic--corporate .site-header .header-trailing {
    grid-column: 2;
  }
}

body.page-onecivic--corporate .header-marketing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.85rem;
  margin-inline-start: 0;
}

body.page-onecivic--corporate .header-marketing-cta__link {
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted, #334155);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

body.page-onecivic--corporate .header-marketing-cta__link:hover {
  color: var(--text, #0f172a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ghost outline: same footprint as primary CTA; radius matches body.page-onecivic .btn (rounded square, not full pill). */
body.page-onecivic--corporate .header-marketing-cta__link--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.85rem;
  border-radius: 0.65rem;
  background: transparent;
  border: 1px solid var(--border, #cbd5e1);
  color: var(--text, #0f172a) !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 650;
  box-shadow: none;
}

body.page-onecivic--corporate .header-marketing-cta__link--outline:hover {
  border-color: var(--text, #0f172a);
  color: var(--text, #0f172a) !important;
  text-decoration: none !important;
}

/* Primary CTA: black on the light frosted bar; radius matches OneCivic buttons. */
body.page-onecivic--corporate .header-marketing-cta__link--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.85rem;
  border-radius: 0.65rem;
  background: #0a0a0a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 650;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

body.page-onecivic--corporate .header-marketing-cta__link--primary:hover {
  background: #171717;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.28);
}

@media (max-width: 920px) {
  body.page-onecivic--corporate .site-header .header-marketing-cta {
    display: none;
  }
}

body.page-onecivic--corporate .drawer-marketing-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--divider, #e2e8f0);
}

body.page-onecivic--corporate .drawer-marketing-cta__link {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text, #0f172a);
  text-decoration: none;
  padding: 0.45rem 0;
}

body.page-onecivic--corporate .drawer-marketing-cta__link--outline {
  display: block;
  text-align: center;
  padding: 0.48rem 0.95rem;
  margin-top: 0.15rem;
  border-radius: 0.65rem;
  background: transparent;
  border: 1px solid var(--border, #cbd5e1);
  color: var(--text, #0f172a) !important;
  font-weight: 650;
}

body.page-onecivic--corporate .drawer-marketing-cta__link--outline:hover {
  border-color: var(--text, #0f172a);
}

body.page-onecivic--corporate .drawer-marketing-cta__link--primary {
  margin-top: 0.25rem;
  text-align: center;
  padding: 0.48rem 0.95rem;
  border-radius: 0.65rem;
  background: #0a0a0a;
  color: #fff !important;
  font-weight: 650;
  font-size: 0.8125rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

body.page-onecivic--corporate .drawer-marketing-cta__link--primary:hover {
  background: #171717;
  color: #fff !important;
}

@media (min-width: 921px) {
  body.page-onecivic--corporate .drawer-marketing-cta {
    display: none;
  }
}

/* Account-type menu rows (register/login picker + www Register dropdown). */
body.page-onecivic .oc-account-type-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--border, #e2e8f0);
}

body.page-onecivic .oc-account-type-option-panel > .oc-account-type-option:first-child,
body.page-onecivic .oc-account-type-option-panel > a.oc-account-type-option:first-child {
  border-top: 0;
}

body.page-onecivic .oc-account-type-option:hover,
body.page-onecivic .oc-account-type-option:focus-visible {
  background: #f8fafc;
  outline: none;
}

body.page-onecivic .oc-account-type-option__body {
  flex: 1;
  min-width: 0;
}

body.page-onecivic .oc-account-type-option__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.35;
}

body.page-onecivic .oc-account-type-option__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--faint, #64748b);
  line-height: 1.45;
}

body.page-onecivic .oc-account-type-option__arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
  color: var(--faint, #94a3b8);
}

body.page-onecivic--corporate .drawer-register-menu__panel .oc-account-type-option {
  padding: 0.875rem 1rem;
}

/* Corporate header — Register dropdown (partner onboarding deep links) */
body.page-onecivic--corporate .header-register-menu {
  position: static;
}

body.page-onecivic--corporate .header-register-menu__trigger {
  cursor: pointer;
}

body.page-onecivic--corporate .register-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0;
  z-index: 2;
  pointer-events: none;
}

body.page-onecivic--corporate .register-mega:not([hidden]) {
  pointer-events: auto;
}

body.page-onecivic--corporate .register-mega-inner {
  position: relative;
  width: min(calc(100% - 2rem), var(--content, 72rem));
  margin-inline: auto;
  padding: 0 0 1.5rem;
}

body.page-onecivic--corporate .header-register-menu__panel {
  position: absolute;
  top: 0;
  left: var(--register-left, 0);
  z-index: 120;
  width: max-content;
  min-width: var(--mega-panel-width, 19rem);
  max-width: min(calc(100vw - 2rem), 36rem);
  padding: 0;
  border-radius: 0;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface, #fff);
  box-shadow: none;
  overflow: hidden;
  pointer-events: auto;
}

body.page-onecivic--corporate .header-register-menu__panel .oc-account-type-option__title {
  white-space: nowrap;
}

body.page-onecivic--corporate .header-register-menu__panel[hidden] {
  display: none;
}

body.page-onecivic--corporate .header-register-menu__footnote {
  margin: 0;
  padding: 0.55rem 0.9rem 0.65rem;
  border-top: 1px solid var(--divider, #e2e8f0);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted, #64748b);
}

body.page-onecivic--corporate .drawer-register-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

body.page-onecivic--corporate .drawer-register-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

body.page-onecivic--corporate .drawer-register-menu__panel {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

body.page-onecivic--corporate .drawer-register-menu__panel[hidden] {
  display: none;
}

body.page-onecivic--corporate .drawer-register-footnote {
  margin: 0;
  padding: 0.55rem 1rem 0.65rem;
  border-top: 1px solid var(--divider, #e2e8f0);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted, #64748b);
}

/* --- Contact page (Sulu Form Bundle): full .container width, 2-col form grid --- */
body.page-contact .page-contact {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--bg);
}

body.page-contact .page-contact__inner.container {
  width: min(calc(100% - 2rem), var(--content));
  max-width: none;
  margin-inline: auto;
}

body.page-contact .page-contact__form-wrap {
  width: 100%;
}

body.page-contact .page-contact__eyebrow {
  margin-bottom: 0.65rem;
}

body.page-contact .page-contact__title {
  margin: 0 0 1rem;
  max-width: min(36ch, 100%);
  font-size: clamp(2rem, 1.35rem + 2.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

body.page-contact .page-contact__intro {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  max-width: min(66ch, 100%);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}

body.page-contact .page-contact__form-title,
body.page-contact .page-contact__form-block-title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.5rem);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

body.page-contact .page-contact__form-title {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Symfony compound wrapper holds rows — grid must be on this div, not on <form> */
body.page-contact .page-contact__form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

body.page-contact .page-contact__form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: clamp(1.35rem, 2.4vw, 1.85rem);
  width: 100%;
}

body.page-contact .page-contact__form-grid > .page-contact__field,
body.page-contact .page-contact__form-grid > [class*="width-"] {
  min-width: 0;
  margin: 0;
}

body.page-contact .page-contact__form-grid > .page-contact__field:not([class*="width-"]) {
  grid-column: 1 / -1;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-full,
body.page-contact .page-contact__form-grid > .page-contact__field.width-is-last.width-full,
body.page-contact .page-contact__form-grid > .width-full {
  grid-column: 1 / -1;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-half,
body.page-contact .page-contact__form-grid > .width-half {
  grid-column: span 6;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-one_third,
body.page-contact .page-contact__form-grid > .width-one_third {
  grid-column: span 4;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-two_thirds,
body.page-contact .page-contact__form-grid > .width-two_thirds {
  grid-column: span 8;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-one_quarter,
body.page-contact .page-contact__form-grid > .width-one_quarter {
  grid-column: span 3;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-three_quarters,
body.page-contact .page-contact__form-grid > .width-three_quarters {
  grid-column: span 9;
}

body.page-contact .page-contact__form-grid > .page-contact__field.width-five_sixths,
body.page-contact .page-contact__form-grid > .page-contact__field.width-one_sixth,
body.page-contact .page-contact__form-grid > .width-five_sixths,
body.page-contact .page-contact__form-grid > .width-one_sixth {
  grid-column: span 6;
}

@media (max-width: 820px) {
  /* Match desktop selector specificity — previous :is(.width-half) lost to .page-contact__field.width-half */
  body.page-contact .page-contact__form-grid > .page-contact__field.width-half,
  body.page-contact .page-contact__form-grid > .width-half,
  body.page-contact .page-contact__form-grid > .page-contact__field.width-one_third,
  body.page-contact .page-contact__form-grid > .width-one_third,
  body.page-contact .page-contact__form-grid > .page-contact__field.width-two_thirds,
  body.page-contact .page-contact__form-grid > .width-two_thirds,
  body.page-contact .page-contact__form-grid > .page-contact__field.width-one_quarter,
  body.page-contact .page-contact__form-grid > .width-one_quarter,
  body.page-contact .page-contact__form-grid > .page-contact__field.width-three_quarters,
  body.page-contact .page-contact__form-grid > .width-three_quarters,
  body.page-contact .page-contact__form-grid > .page-contact__field.width-five_sixths,
  body.page-contact .page-contact__form-grid > .width-five_sixths,
  body.page-contact .page-contact__form-grid > .page-contact__field.width-one_sixth,
  body.page-contact .page-contact__form-grid > .width-one_sixth {
    grid-column: 1 / -1;
  }
}

body.page-contact .page-contact__field > label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

body.page-contact .page-contact__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.page-contact .page-contact__field select,
body.page-contact .page-contact__field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.45;
  appearance: none;
}

body.page-contact .page-contact__field select {
  padding-right: 2.25rem;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% + 0.1rem),
    calc(100% - 0.85rem) calc(50% + 0.1rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

body.page-contact .page-contact__field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

body.page-contact .page-contact__field input:focus-visible,
body.page-contact .page-contact__field select:focus-visible,
body.page-contact .page-contact__field textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--text) 35%, var(--border));
}

/* Validation (matches design reference) */
body.page-contact .page-contact__field input[aria-invalid="true"]:not([type="checkbox"]),
body.page-contact .page-contact__field select[aria-invalid="true"],
body.page-contact .page-contact__field textarea[aria-invalid="true"] {
  border-color: #b45348;
  background-color: #fff;
}

body.page-contact .page-contact__field--check input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid #b45348;
  outline-offset: 1px;
}

body.page-contact .page-contact__errors {
  margin: 0.45rem 0 0.15rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #b45348;
}

body.page-contact .page-contact__errors li {
  margin: 0;
  padding: 0;
}

body.page-contact .page-contact__field--check > .choice,
body.page-contact .page-contact__field--check .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

body.page-contact .page-contact__field--check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: #0f172a;
}

body.page-contact .page-contact__field--check label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}

body.page-contact .page-contact__field--check label a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.page-contact .page-contact__actions {
  margin-top: 0.35rem;
  padding-top: 0.15rem;
}

body.page-contact .page-contact__form button[type="submit"],
body.page-contact .page-contact__form-grid button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: min(11.5rem, 100%);
  padding: 0.65rem 1.75rem;
  border-radius: 0.65rem;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
  box-shadow: none;
  filter: none;
}

body.page-contact .page-contact__form button[type="submit"]:hover,
body.page-contact .page-contact__form-grid button[type="submit"]:hover {
  background: color-mix(in srgb, #0f172a 88%, #fff);
  border-color: color-mix(in srgb, #0f172a 88%, #fff);
  filter: none;
}

body.page-contact .page-contact__success {
  grid-column: 1 / -1;
  padding: 1.25rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text);
}

body.page-contact .page-contact__hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

body.page-contact .honung {
  display: none !important;
}
