/* ============================================================================================
 * Vaalea ilme (light theme), 2026-09-27. Loaded after /site/a.css and /site/fixes.css.
 *
 * Juha, 25.9: "Tämä on mulle liian tumma. Mä haluan, että tämä on vaaleampi." "Mä haluan vähän
 * kirkkautta. En keltaista sinne, enkä punaista." "Just muutama saa vaaleampaa vihreätä siihen."
 * He sees colours in a limited way, so brightness and contrast are a legibility need, not taste.
 *
 * So the dark green surfaces (hero overlays, the CTA panel, the dark band, the footer) become
 * light mint-white with dark ink type, and green moves to where it is an ACCENT: buttons, links,
 * rules, the eyebrow line, the logo. The brand stays green; it stops being a dark green page.
 * Contrast is measured on rendered pixels (scratchpad contrast.mjs), not on these tokens.
 * ========================================================================================== */

:root {
  --v-ink: #1b2a20;
  --v-head: #133324;
  --v-text: #2b3a31;
  --v-muted: #3e4d43;
  /* Juha 14:00: "muutama saa vaaleampaa vihreätä". Lighter than the brand #1a5c42, each the
   * lightest green that keeps its contrast: text on the mint bands >= 4.5:1, white on a button
   * >= 4.5:1 (computed 27.9: #2a7453 on mint 5.00, white on #2f7d58 5.01). */
  --v-green: #246449;
  --v-btn: #286c4d;
  --v-btn-hover: #1e5c40;
  --v-mint: #e9f4ec;
  --v-line: #cfe0d4;
}

/* Site editor's named, higher-contrast palette. Values are fixed and contrast-safe; editors do
   not enter arbitrary colors. */
[data-isk-contrast="deeper"] {
  --v-head: #10281c;
  --v-text: #24372c;
  --v-muted: #35473a;
  --v-green: #1e6348;
  --v-btn: #246b4c;
  --v-btn-hover: #19553a;
}

/* ---- header over the home hero: the scrolled look from the start ------------------------ */
.ov .util, .ov .util a, .ov .util .sp { color: var(--v-ink); }
.ov .hdr .mark-n, .ov .hdr .mark-s { color: var(--v-ink); }
.ov .hdr .nav a { color: var(--v-ink); }
.ov .hdr .nav a::after { background: var(--v-green); }
.ov .hdr .btn-g { color: var(--v-ink); border-color: #dbe4dd; }
.ov .hdr .burger, .ov:not(.hdr-solid) .hdr .burger { color: var(--v-ink); }
.ov .hdr .burger span { background: var(--v-ink); }
.ov .mark-img .mark-lt { display: block; }
.ov .mark-img .mark-dk { display: none; }

/* ---- home hero ----------------------------------------------------------------------------- */
.hero-bleed .hero-scrim {
  background:
    linear-gradient(97deg, rgba(246,251,247,.95) 0%, rgba(246,251,247,.93) 44%, rgba(246,251,247,.74) 62%,
      rgba(246,251,247,.30) 82%, rgba(246,251,247,.12) 100%),
    linear-gradient(180deg, rgba(246,251,247,.55) 0%, rgba(246,251,247,0) 32%);
}
@media (max-width: 940px) {
  .hero-bleed .hero-scrim { background: rgba(246,251,247,.92); }
}
.ov .hero-media::after, .ov .hero-photo::after {
  background: linear-gradient(180deg, rgba(246,251,247,.9) 0%, rgba(246,251,247,.6) 60%, rgba(246,251,247,0) 100%);
}
.hero-eyebrow { color: var(--v-green) !important; }
.hero-eyebrow::before { background: var(--v-green); }
.hero h1 { color: var(--v-head); }
.hero h1 .ser { color: var(--v-green); }
.hero-lede { color: var(--v-text); }
.hero-tert a { color: var(--v-green); border-bottom-color: rgba(26,92,66,.45); }
.office-l { color: var(--v-muted); }
.office-n { color: var(--v-head); }

/* 2026-10-06. Juha asked for a few washed-out details to read slightly darker. */
.hero-tert a { border-bottom-color: rgba(19,51,36,.62); }
.pathbar a { border-left-color: #c4d4c8; }

/* the four pathway links along the bottom of the hero */
.pathbar {
  background: rgba(255,255,255,.9);
  border-top: 1px solid var(--v-line);
}
.pathbar a { color: var(--v-ink); border-left-color: #dbe4dd; }
.pathbar a:hover { background: #eef6f0; }
.pathbar a:nth-child(n+3), .pathbar a + a { border-top-color: #dbe4dd; }
.pathbar-k { color: var(--v-green); }
.pathbar-t { color: var(--v-ink); }
/* The dark design's cards were see-through, so the first one (the left column on tablets, every
 * card on phones) dropped its left padding to line up with the headline. On the white panel that
 * put "Asukkaalle" against the edge of the box. Every card gets the same inner space. */
.pathbar a:first-child { padding-left: clamp(14px, 1.7vw, 32px); }
/* Same arrow position in every card: at the right edge, as it already was wherever the text wraps. */
.pathbar-t { justify-content: space-between; }
@media (max-width: 1000px) { .pathbar a:nth-child(odd) { padding-left: clamp(14px, 1.7vw, 32px); } }
@media (max-width: 560px) { .pathbar a, .pathbar a:first-child, .pathbar a:nth-child(odd) { padding-left: 20px; padding-right: 20px; } }

/* ---- subpage heroes ------------------------------------------------------------------------ */
.phero-scrim {
  background: linear-gradient(180deg, rgba(246,251,247,.86) 0%, rgba(246,251,247,.92) 40%, rgba(246,251,247,.95) 100%);
}
.phero { color: var(--v-text); }
.phero h1 { color: var(--v-head); }
.phero p, .phero li { color: var(--v-text); }
.phero .eyebrow { color: var(--v-green); }
.phero .eyebrow::before { background: var(--v-green); }
.phero a:not(.btn) { color: var(--v-green); }

/* ---- bands and the closing CTA panel --------------------------------------------------------- */
.sec-t { background: var(--v-mint); }
.band-c { background: var(--v-mint); color: var(--v-text); }
.band-c h2 { color: var(--v-head); }
.band-c p { color: var(--v-text); }
.cta-photo .ov, .cta-photo .ov { background: linear-gradient(180deg, rgba(246,251,247,.94) 0%, rgba(246,251,247,.92) 40%,
  rgba(246,251,247,.78) 58%, rgba(246,251,247,.9) 78%, rgba(246,251,247,.95) 100%); }
@media (max-width: 900px) {
  .cta-photo .ov { background: rgba(246,251,247,.93); }
}
.cta-photo .eyebrow { color: var(--v-green); }
.cta-photo .eyebrow::before { background: var(--v-green); }
.cta-photo h2 { color: var(--v-head); }
.cta-photo p { color: var(--v-text); }

/* ---- footer -------------------------------------------------------------------------------- */
.foot { background: var(--v-mint); color: var(--v-text); }
.foot-topo { opacity: .05; }
.foot h4 { color: var(--v-head); }
.foot a { color: var(--v-ink); opacity: 1; }
.foot a:hover { color: var(--v-green); }
.foot .mark-n, .foot .mark-s { color: var(--v-ink); }
.foot-tag { color: var(--v-text); opacity: 1; }
.foot-soc a { border-color: #b9cdbf; color: var(--v-green); }
.foot-soc a:hover { background: var(--v-green); border-color: var(--v-green); color: #fff; }
.foot-mail, .foot-tel { color: var(--v-head) !important; }
.foot-rows { border-top-color: var(--v-line); }
.foot .pend { color: var(--v-muted); }
.foot-b { border-top-color: var(--v-line); opacity: 1; color: var(--v-muted); }

/* ---- lighter green accents (Juha 14:00) ---------------------------------------------------- */
.btn-p, .btn-mint { background: var(--v-btn); border-color: var(--v-btn); color: #fff; }
.btn-p:hover, .btn-mint:hover { background: var(--v-btn-hover); border-color: var(--v-btn-hover); color: #fff; }
.mbar a.pri { background: var(--v-btn); }
.tlink { color: var(--v-green); }
.hdr .nav a::after, .ov .hdr .nav a::after { background: var(--v-green); }
.foot-soc a:hover { background: var(--v-btn); border-color: var(--v-btn); }

/* Small type over a photograph needs more than the band green: the hero eyebrow measured 3.95:1
 * and the subpage eyebrow 4.42:1 with #2a7453. The darker of the new greens here. */
/* ink, not green: 4.48:1 even with the darker green over the lightest part of the photo */
.hero-eyebrow { color: var(--v-head) !important; }
.hero-eyebrow::before { background: var(--v-btn-hover); }
.phero .eyebrow { color: var(--v-btn-hover); }
.phero .eyebrow::before { background: var(--v-btn-hover); }
.lk-form .req { color: var(--v-btn-hover); }

/* 2026-09-27. Rasmus: the path cards read as a box floating in the photo. The white strip now
 * runs edge to edge as a breaker under the hero, while the cards stay on the text column (cards
 * stretched to full width were rendered and rejected: 640px cells at 2560, arrows far from the
 * labels, first card off the headline line). The row shifts left by one card inset so
 * "Asukkaalle" lines up with the headline, and the hero's bottom padding goes so no sliver of
 * photo shows under the strip. Four-column layout only; tablets and phones keep their stack. */
@media (min-width: 1001px) {
  .hero { padding-bottom: 0; }
  .pathbar {
    --pbp: clamp(14px, 1.7vw, 32px);
    box-shadow: 0 0 0 100vmax rgba(255,255,255,.9);
    clip-path: inset(0 -100vmax);
    border-top: 0;
  }
  .pathbar::before {
    content: ""; position: absolute; left: -100vmax; right: -100vmax; top: 0; height: 1px;
    background: #dbe4dd;
  }
  .pathbar-g { margin-left: calc(-1 * var(--pbp)); width: calc(100% + var(--pbp)); }
  /* Rasmus: without an outer edge the first and last card run into the strip and stop reading
     as buttons. Every card is closed on both sides. */
  .pathbar a:first-child { border-left: 1px solid #dbe4dd; }
  .pathbar a:last-child { border-right: 1px solid #dbe4dd; }
}

:root { --v-green: #246449; --v-btn: #286c4d; --v-btn-hover: #1e5c40; }
