/*
 * Auto Final 0.5.17 — optional light mode.
 * IMPORTANT: every visual override is scoped under html.af-theme-light.
 * Without that class, the existing dark theme remains unchanged.
 */
html:not(.af-theme-light){color-scheme:dark}
html.af-theme-light{
  color-scheme:light;
  --af-light-bg:#ecefeb;
  --af-light-bg-soft:#f2f4f1;
  --af-light-panel:#f8f9f7;
  --af-light-panel-2:#e5e9e5;
  --af-light-text:#171c18;
  --af-light-muted:#626a65;
  --af-light-border:#d2d8d3;
  --af-light-shadow:0 16px 44px rgba(20,28,22,.08);
}

/* Public site canvas. CRM/app template is intentionally excluded. */
html.af-theme-light body.af-site:not(.af-app-page){
  --af-bg:#ecefeb;
  --af-panel:#f7f8f6;
  --af-border:#d2d8d3;
  --af-text:#171c18;
  --af-muted:#626a65;
  background:var(--af-light-bg)!important;
  color:var(--af-light-text)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-main{
  background:var(--af-light-bg)!important;
  color:var(--af-light-text)!important;
}

/* Theme-owned pages. */
html.af-theme-light body.af-site:not(.af-app-page) .af-home-hero{
  background:radial-gradient(circle at 76% 30%,rgba(4,207,31,.065),transparent 32%),linear-gradient(135deg,#eef1ed,#e3e8e3 62%,#eef1ed)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-hero h1,
html.af-theme-light body.af-site:not(.af-app-page) .af-clean-page h1{color:#171c18!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-hero p,
html.af-theme-light body.af-site:not(.af-app-page) .af-clean-page p{color:#616a64!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-clean-page{
  background:linear-gradient(135deg,#eef1ed,#e5e9e5)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-btn{
  border-color:#c7cec8!important;
  color:#1c231e!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-btn--ghost{background:#f8f9f7!important}

/* Auto Final Etusivu plugin: known public homepage surfaces follow the same switch. */
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin{
  --af-home-bg:#ecefeb !important;
  --af-home-panel:#f7f8f6 !important;
  --af-home-text:#171c18 !important;
  --af-home-muted:#626a65 !important;
  --af-home-line:rgba(20,28,22,.12) !important;
  background:var(--af-light-bg)!important;
  color:var(--af-light-text)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero{
  background:#e7ebe7!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero__media-half{
  filter:saturate(.52) contrast(.88) brightness(1.15)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero__shade{
  background:
    linear-gradient(90deg,rgba(238,241,238,.74),rgba(238,241,238,.58) 34%,rgba(238,241,238,.62) 50%,rgba(238,241,238,.58) 68%,rgba(238,241,238,.76)),
    linear-gradient(180deg,rgba(238,241,238,.16),rgba(232,236,232,.83))!important;
  box-shadow:inset 0 -100px 120px rgba(232,236,232,.72)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero h1{color:#171c18!important;text-shadow:0 1px 0 rgba(255,255,255,.35)}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero__eyebrow,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero__join,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero__since{color:#59615c!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-hero__lead{color:#4d5650!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-intro,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-highlights,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-final-cta{background:var(--af-light-bg)!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-trust,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-business{background:#e7ebe7!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-intro h2,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-highlight h2,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-business h2,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-final-cta h2,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-trust strong{color:#171c18!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-trust span{color:#67706a!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-highlight,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service-group{
  border-color:var(--af-light-border)!important;
  background:linear-gradient(145deg,#f8f9f7,#eef1ed)!important;
  box-shadow:0 12px 34px rgba(20,28,22,.045);
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service-group__head h2,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-booking-service__copy strong{color:#1a201c!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-booking-service{
  color:#1a201c!important;
  background:rgba(255,255,255,.28)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-booking-service:hover{background:rgba(4,207,31,.045)!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-booking-service__cta{color:#59615c!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service{
  background:#e7ebe7!important;
  color:#171c18!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service::before{
  filter:saturate(.48) contrast(.88) brightness(1.16)!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service__shade{
  background:linear-gradient(180deg,rgba(239,242,239,.30),rgba(239,242,239,.86) 72%,rgba(239,242,239,.96))!important;
}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service h2,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service span{color:#171c18!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service p:not(.af-home-kicker){color:#545d57!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-highlight a{color:#303832!important}
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-highlight a:hover,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-service:hover span,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-booking-service:hover .af-home-booking-service__copy strong,
html.af-theme-light body.af-site:not(.af-app-page) .af-home-plugin .af-home-booking-service:hover .af-home-booking-service__cta{color:#04CF1F!important}

/* Rengashinnasto template wrapper only; plugin remains responsible for its own component styling. */
html.af-theme-light body.af-site.af-template-rengashinnasto .af-main,
html.af-theme-light body.af-site.af-template-rengashinnasto .af-page--pricing{
  background:var(--af-light-bg)!important;
}

@media(max-width:760px){
  html.af-theme-light body.af-site:not(.af-app-page) .af-aq-header .af-aq-wing--tires{border-right-color:rgba(20,28,22,.10)!important}
}


