/* =====================================================================
   Nerot.fi — stylesheet
   Vanilla CSS, no build step. Design tokens up top, then components.
   Palette & type mirror the live site (Kadence): Figtree + brand blue.
   ===================================================================== */

/* Self-hosted Figtree (variable) — matches live, no external font CDN */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Self-hosted Roboto Condensed (variable) — live uses it for the hero title & the big "Nerot.fi" watermark */
@font-face {
  font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/robotocondensed-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/robotocondensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand (from live palette) */
  --brand:        #1b75ae;   /* primary action / links */
  --brand-bright: #2ab2e5;   /* accent, the logo "N" */
  --brand-2:      #2a9ce5;   /* secondary blue */
  --brand-dark:   #145d8a;   /* hover / active */
  --brand-tint:   #eaf6fc;   /* pale blue wash */

  /* Ink & surfaces (grey ramp from live) */
  --ink:    #222222;
  --ink-2:  #3b3b3b;
  --muted:  #515151;
  --line:   #e1e1e1;
  --bg:     #ffffff;
  --bg-alt: #f7f7f7;

  /* Shape & depth */
  --radius:    12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(34, 34, 34, .05), 0 3px 10px rgba(34, 34, 34, .05);
  --shadow:    0 1px 2px rgba(34, 34, 34, .05), 0 10px 30px rgba(34, 34, 34, .08);

  --container: 1180px;
  --header-h:  124px;

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
/* Live (Kadence) heading weights: h1 700, h2 normal(400), h3 600 */
h1 { line-height: 1.2; font-weight: 700; color: var(--ink); }
h2, h3, h4 { line-height: 1.3; font-weight: 600; color: var(--ink); }
ul, ol { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* Grid/flex children may not shrink below content by default — allow shrink to prevent overflow */
.hero-inner > *, .about-why > *, .digipakki-row > *, .card-grid > *, .article-grid > *,
.quote-grid > *, .promo-grid > *, .benefit-grid > *, .steps > * { min-width: 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .8em 1.4em; border-radius: 8px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1.08rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-arrow { display: none; }

/* =====================================================================
   HEADER + NAV
   ===================================================================== */
.site-header {
  position: relative; z-index: 50;
  background: #2ab2e5;
}
.site-header .container { position: relative; }
/* Riisuttu kromi (/tarjouspyynnot/ilmoita/): pelkkä logo-kaista, ei navia eikä footeria. */
.site-header--bare .container { display: flex; padding-top: 50px; padding-bottom: 16px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); padding-top: 30px; }
.brand-logo { flex: none; }
.brand-logo img { width: 200px; height: auto; }

/* "oma.nerot.fi" tab, top-right */
.header-pill {
  position: absolute; top: 0; right: 20px; z-index: 3;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: 9px 20px; border-radius: 0 0 14px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.header-pill:hover { color: var(--brand); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: #fff; border-radius: 2px;
}

.primary-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
/* oma.nerot.fi on jo desktopilla headerin omana pillinä (.header-pill); tämä nav-item
   näkyy vain ≤1024, kun pilli piiloutuu ja valikko muuttuu hampurilaiseksi (live: viimeinen
   linkki mobiilivalikossa) */
.nav-item--oma { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-weight: 400; font-size: 1.125rem;
  padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
.nav-link:hover, .nav-item:hover .nav-link { color: #fff; background: rgba(255, 255, 255, .18); }
.nav-caret { width: 12px; height: 12px; opacity: .85; transition: transform .18s ease; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
}
/* Oikean laidan valikot aukeavat oikealle tasattuina, etteivät piilotetutkaan
   dropdownit levennä sivua kapeilla desktop-leveyksillä (1024–1500px) */
.nav-item:nth-last-child(-n+2) .dropdown { left: auto; right: 0; }
.dropdown {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown,
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 10px; }
.nav-login {
  color: #fff; font-weight: 600; font-size: .97rem;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .7);
}
.nav-login:hover { color: var(--brand); background: #fff; border-color: #fff; }

/* Burger (mobile only) */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; margin-left: auto; }
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  background: var(--bg);
  padding: clamp(44px, 6vw, 76px) 0 clamp(44px, 6vw, 72px);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 427px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.hero-title { font-family: 'Roboto Condensed', 'Figtree', sans-serif; font-size: clamp(2.5rem, 1.456rem + 3.26vw, 4rem); font-weight: 800; letter-spacing: 0; line-height: 1; color: var(--ink-2); text-shadow: 1px 1px 1px rgba(255, 255, 255, .9); }
.hero-points { margin-top: 20px; display: grid; gap: 3px; }
.hero-points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-points li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px;
  background: var(--ink-2); border-radius: 50%;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-media img { width: 100%; height: auto; }

/* Etusivun hero: maaliruiskekuva rivin taustana (kuten live), yksi palsta */
.hero-home {
  background: #fefefe url('/assets/img/hero-background.jpg') 100% 50% / 60% auto no-repeat;
  padding: 8rem 0 6.5rem;
}
.hero-home .hero-text { padding-left: 16px; max-width: 560px; }
.hero-home .hero-title { margin-bottom: 1rem; }
.hero-home .hero-points { list-style: disc; padding-left: 1.5rem; display: block; margin-top: 0; }
.hero-home .hero-points li { padding-left: 0; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.hero-home .hero-points li::before { display: none; }
.hero-home .hero-actions { margin-top: 30px; }
.hero-home .hero-actions .btn { font-size: 1.25rem; font-weight: 400; letter-spacing: .5px; padding: 13px 15px; border: 2px solid var(--brand); border-radius: 5px; }
.hero-mobile-note { display: none; }

/* Kategoriasivun hero: kompaktimpi, täysleveä nappi (live-parity) */
.page-hero { padding: 30px 0 34px; }
.page-hero .breadcrumb { margin-bottom: 44px; }
.page-hero .hero-actions .btn { width: 100%; justify-content: center; padding: 19px 24px; font-size: 1.125rem; }
/* Liven synkattu Kadence-otsikkolohko (kt-adv-heading6577_*) renderöityy 36px:nä
   jokaisella kategoria/palvelusivulla — .page-title:in yleinen clamp on isompi
   ja käyttäytyy oikein muualla (artikkelit-arkisto, info-sivut), joten kavennus
   vain page-hero-kontekstissa. */
.page-hero .page-title { font-size: clamp(1.9rem, 3.2vw, 2.25rem); }

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-tight { padding-top: clamp(8px, 1.5vw, 20px); }
.section-alt { background: var(--bg-alt); }
.section-header { margin: 0 0 clamp(28px, 4vw, 44px); }
.section-header--tight { margin-bottom: 20px; }
.section-eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2rem); font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); }
.section-lead { color: var(--muted); font-size: 1.125rem; line-height: 1.6; margin-top: 14px; max-width: 900px; }
.section-lead a { text-decoration: underline; }

/* ----- Steps band (näin se toimii) ----- */
.steps-band { background: linear-gradient(rgba(42, 178, 229, .75), rgba(42, 178, 229, .75)), url('/assets/img/backgound-image.webp') center center / cover no-repeat fixed; color: #fff; padding: 26px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 44px); text-align: center; }
.step h3 { color: #fff; font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .92); font-size: .98rem; max-width: 340px; margin: 0 auto; }
.steps-note { margin-top: clamp(24px, 3.5vw, 36px); background: rgba(255, 255, 255, .12); }
.steps-note .container { padding-top: 8px; padding-bottom: 8px; text-align: center; color: #fff; font-weight: 500; font-size: .98rem; }

/* ----- Service cards (suosituimmat palvelut / kategoriat) ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Kun ruudukko seuraa suoraan teksti+arvostelu-lohkoa (ei section-headeria
   välissä), .section-header:in oma margin-bottom puuttuu — lisätään sama tila
   tähän erikseen (liven mitattu ~73px 1280px:ssä). */
.text-media + .card-grid { margin-top: clamp(40px, 6vw, 73px); }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-bright); }
.service-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-tint); }
.service-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 20px 22px 8px; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0 22px 22px; }

.section-cta { text-align: center; margin-top: 36px; }

/* ----- About + Why (2-col) ----- */
.about-why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.about-col h2, .why-col h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); }
.about-col p { color: var(--muted); margin-top: 16px; font-size: 1.04rem; }
.why-col h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* ----- Benefits (miksi Nerot.fi) ----- */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 24px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* ----- Stats band -----
   Live: sininen bändi (~276px) watermarkilla; valkoinen tilastokaista
   (ei rakoja, ohuet pystyviivat) alkaa bändin sisältä ja ylittää sen
   alareunan ~140px. */
.stats-band { position: relative; padding-top: 209px; }
.stats-veil { position: absolute; top: 0; left: 0; right: 0; height: 276px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(42, 178, 229, .75), rgba(42, 178, 229, .75)), url('/assets/img/backgound-image.webp') center center / cover no-repeat fixed; }
.stats-logo { width: 1024px; max-width: 92%; height: auto; flex: none; pointer-events: none; user-select: none; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); text-align: center; }
.stat { padding: 24px 20px 38px; border-left: 1px solid #ececec; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; color: #2a9ce5; letter-spacing: -.01em; }
.stat span { color: var(--muted); font-weight: 500; font-size: 1.05rem; margin-top: 4px; }

/* ----- Testimonials ----- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: #fff; border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.stars { color: #f5b301; letter-spacing: 1px; margin-bottom: 16px; font-size: 1.3rem; }
.quote-card blockquote { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
.quote-card cite { position: relative; display: block; margin-top: 24px; padding-left: 48px; text-align: left; font-style: normal; font-weight: 700; color: var(--ink); font-size: 1rem; }
.quote-card cite::before { content: "\201C"; position: absolute; left: 4px; top: -2px; font-family: Georgia, "Times New Roman", serif; font-size: 3.2rem; line-height: 1; color: #c9d2d8; }
.quote-card cite span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; margin-top: 3px; }

/* Big pull quote (blue band) */
.pullquote-band { background: linear-gradient(rgba(42, 178, 229, .75), rgba(42, 178, 229, .75)), url('/assets/img/backgound-image.webp') center center / cover no-repeat fixed; color: #fff; text-align: center; padding: clamp(52px, 6.6vw, 84px) 0 clamp(48px, 6vw, 76px); }
/* Parallax janky on mobile — pin to scroll */
@media (max-width: 1024px) { .steps-band, .stats-veil, .pullquote-band { background-attachment: scroll; } }
.pullquote-band blockquote { max-width: 1160px; margin: 0 auto; font-size: clamp(1.1rem, 1.65vw, 1.32rem); font-style: italic; font-weight: 500; line-height: 1.5; }
.pullquote-band cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; }

/* ----- Link columns (kilpailuta eri alojen tekijät) ----- */
.link-columns { columns: 4; column-gap: 28px; }
.link-columns li { break-inside: avoid; }
.link-columns a { display: block; color: #3b3b3b; font-size: 1.125rem; line-height: 2; letter-spacing: -.02em; }
.link-columns a:hover { color: var(--brand); }

/* ----- Digipakki row (2 cards + hintalaskuri cta) ----- */
/* Live jakaa rivin 60/40 (mitattu: 1280 → 673/445, 900 → 500/325), ei 2:1 — 2:1 kutisti
   cta-palstan tabletilla napin tekstiä kapeammaksi, jolloin nappi valui oikean laidan yli */
.digipakki-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-bright); }
.promo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-tint); }
.promo-card h3 { font-size: 1.2rem; margin: 20px 22px 8px; }
.promo-card p { color: var(--muted); margin: 0 22px 22px; font-size: .96rem; }
.calc-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 500; letter-spacing: 0; margin-bottom: 22px; }
/* Varmistus tabletin kapeimmassa päässä (~768px): live (Kadence .kb-button) rivittää napin
   tekstin, .btn:n oletus white-space: nowrap työntäisi napin palstan yli. */
.calc-cta .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }

/* ----- Article cards (litteä: ei kortin kehystä) ----- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card { display: flex; flex-direction: column; background: transparent; border: 0; border-radius: 0; overflow: hidden; box-shadow: none; }
.article-thumb-link { display: block; }
.article-thumb { aspect-ratio: 16 / 9; background: var(--brand-tint); object-fit: cover; width: 100%; }
.article-body { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand); }
.article-excerpt { color: var(--muted); font-size: 1rem; margin-top: 14px; line-height: 1.75; }
.article-more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .92rem; color: var(--brand); }

/* =====================================================================
   CATEGORY PAGE (/kotisivut/ ym.)
   ===================================================================== */
.breadcrumb { font-size: 1.125rem; color: var(--ink-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-2); text-decoration: underline; }
.breadcrumb a:hover { color: var(--brand); }
.page-title { font-size: clamp(2.1rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0; overflow-wrap: break-word; }
.hero-lead { margin-top: 18px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; }

/* Alakategorioiden pillerit */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.pill-link { border: 1px solid var(--brand); color: var(--brand); border-radius: 8px; padding: 12px 20px; font-size: 1rem; font-weight: 500; transition: background .16s ease, color .16s ease; }
.pill-link:hover { background: var(--brand); color: #fff; }

/* Teksti + yksittäinen arvostelu (2 palstaa) */
.text-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.text-media--wide { grid-template-columns: 2.66fr 1fr; gap: 80px; }
.text-media-body > * + * { margin-top: 18px; }
.text-media-body p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.75; }
.text-media-body a { color: var(--brand); text-decoration: underline; }

/* Tarjouspyyntölista (template) */
.joblist { border-top: 1px solid var(--line); padding-top: 40px; }
.job-card { padding: 38px 0; border-bottom: 1px solid var(--line); }
.job-card:first-child { padding-top: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.job-title { font-size: clamp(1.2rem, 1.75vw, 1.35rem); font-weight: 500; color: var(--ink); line-height: 1.3; margin: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag { background: var(--brand); color: #fff; font-size: .8rem; font-weight: 500; padding: 4px 12px; border-radius: 6px; line-height: 1.5; }
a.job-tag { text-decoration: none; transition: background-color .15s ease; }
a.job-tag:hover, a.job-tag:focus-visible { background: var(--brand-dark); color: #fff; }
.job-excerpt { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-top: 14px; }

/* Sivutus (keskitetty, reunaton – aktiivinen sininen laatikko) */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; margin-top: clamp(32px, 5vw, 56px); }
.pager-page, .pager-next { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-2); font-size: 1rem; }
.pager-page:hover, .pager-next:hover { color: var(--brand); }
.pager-page.is-active { background: var(--brand); color: #fff; }
.pager-gap { padding: 0 6px; color: var(--muted); }
.pager-next { margin-left: 8px; }

/* =====================================================================
   SERVICE SUBPAGE (/kotisivut/kotisivut-yritykselle/ ym. palvelusivut)
   ===================================================================== */
/* Täysleveä leipätekstipalsta */
.prose > * + * { margin-top: 18px; }
.prose p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.75; }
.prose a { color: var(--brand); text-decoration: underline; }
/* Napit eivät saa periä leipätekstin linkkityyliä: .prose a (0,2,0) on
   spesifisempi kuin .btn-primary (0,1,0), joten .prose:n sisällä ollut nappi
   sai sinisen tekstin siniselle taustalle. */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #fff; }
.prose a.btn-ghost   { color: var(--brand); }
.prose a.btn-ghost:hover { color: #fff; }

/* Kevyt osioerotin sektioiden väliin (kt-divider) */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Keskitetty nappirivi */
.btn-row { text-align: center; margin-top: clamp(48px, 6vw, 75px); }
.btn-xl { padding: 18px 38px; font-size: 1.25rem; }

/* Hintapaketit */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(28px, 4vw, 44px); }
.pkg-card { background: var(--bg-alt); color: #000; padding: 2.25rem 1.5rem; display: flex; flex-direction: column; }
.pkg-title { font-size: 18px; font-weight: 700; color: #000; line-height: 1.4; margin: 0 0 14px; }
.pkg-card p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.pkg-card hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .35); margin: 4px 0 18px; }
.pkg-card ul { list-style: disc; font-size: 14px; line-height: 1.5; padding-left: 1.3em; margin: 0 0 26px; display: grid; row-gap: 7px; }
.pkg-price { display: block; margin-top: auto; text-align: center; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 500; padding: 11px 16px; border-radius: 4px; }

/* UKK-haitari (natiivi <details>) */
.faq { display: grid; row-gap: 32px; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 2rem 44px 0 0; font-size: 1.25rem; font-weight: 400; color: var(--ink); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: calc(2rem + .35em);
  width: 9px; height: 9px; border-right: 2px solid #4a5568; border-bottom: 2px solid #4a5568;
  transform: rotate(45deg); transition: transform .16s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); top: calc(2rem + .55em); }
.faq-answer { padding: 1.5rem 1.5rem 0 0; }
.faq-answer p { color: var(--ink-2); line-height: 1.7; }

/* =====================================================================
   CTA BAND (light)
   ===================================================================== */
.cta-band { background: var(--bg-alt); text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 26px; color: var(--ink-2); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: #1b75ae; color: #fff; padding: clamp(48px, 6vw, 75px) 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-logo img { width: 175px; height: auto; }
.footer-brand .footer-copy { margin-top: 20px; color: #fff; font-size: 1.125rem; }
.footer-col h2 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0; color: #fff; margin-bottom: 22px; font-weight: 600; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col li { line-height: 1.5; }
.footer-col a { color: #fff; font-size: 1.125rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .23); padding: 22px 0 26px; }
.footer-bottom p { color: #fff; font-size: 1.125rem; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* =====================================================================
   404
   ===================================================================== */
.error-section { text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand-tint); line-height: 1; letter-spacing: -.04em; }
.error-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: 8px; }
.error-lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 16px auto 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* =====================================================================
   KOTISIVUJEN OSTO-OPAS (sisällysluettelo + opasosiot)
   ===================================================================== */
.osto-toc-row { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(30px, 4vw, 48px); }
.toc-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0 0 22px; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-top: 14px; line-height: 1.4; }
.toc-list li:first-child { margin-top: 0; }
.toc-list a { color: var(--ink); text-decoration: none; font-size: 1.06rem; }
.toc-list a:hover { color: var(--brand); text-decoration: underline; }
.osto-toc-media img { width: 100%; height: auto; }
.osto-guide h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.6; color: var(--ink); margin-top: 40px; }
.osto-guide > h3:first-child { margin-top: 0; }

/* =====================================================================
   KOTISIVUJEN HINTALASKURI (interaktiivinen laskuri + kustannusarviokortti)
   ===================================================================== */
.laskuri-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(28px, 4vw, 56px); }
.laskuri-section { border: 0; padding: 0; margin: 0 0 34px; }
.laskuri-section legend { font-size: 1.2rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 14px; }
.laskuri-field, .hourly-work { margin-bottom: 4px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; cursor: pointer; }
.opt input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.laskuri-select-label { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.laskuri select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; margin-bottom: 8px; }

.result-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; text-align: center; background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 24px; }
.result-title { font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.result-price { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 12px 0 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-note { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.result-btn { width: 100%; justify-content: center; margin-top: 22px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* Breakpointit peilaavat liveä (Kadence): tablet ≤1024px, mobiili ≤767px.
   Live pitää korttiruudukot 3-palstaisina tabletilla ja pinoaa vasta ≤767;
   tilastokaista pysyy 3 palstassa KAIKILLA leveyksillä; steps-bändistä näkyy
   mobiilissa vain note-rivi; WP-hintapaketit pinoutuvat 781px:ssä (WP core). */
@media (max-width: 1024px) {
  /* Mobiilinavi (live vaihtaa hampurilaiseen ≤1024) */
  .burger { display: block; }
  .header-pill { display: none; }
  .header-inner { height: 72px; padding-top: 0; }
  /* Live pienentää logon 120px:iin sekä tabletilla että mobiilissa (enemmän ilmaa,
     header pysyy 72px:ssä) */
  .brand-logo img { width: 120px; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px; margin: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    box-shadow: 0 20px 30px rgba(34, 34, 34, .1);
    transform: translateY(-120%); transition: transform .24s ease; visibility: hidden;
  }
  .primary-nav.open { transform: translateY(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item--oma { display: block; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; font-size: 1.05rem; color: var(--ink-2); }
  .nav-link:hover, .nav-item:hover .nav-link { color: var(--brand); background: transparent; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0;
    display: none;
  }
  .dropdown.open { display: block; }
  .nav-item:hover .dropdown:not(.open) { opacity: 0; visibility: hidden; } /* no hover-open on touch */
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: 16px 0 0; }
  .nav-login { text-align: center; color: var(--brand); border-color: var(--line); }

  /* Kaksipalstaiset tekstirivit pinoon jo tabletilla (live: kt-tab-layout-row) */
  .about-why, .text-media, .laskuri-grid { grid-template-columns: 1fr; }
  .result-card { position: static; }
  /* Live: linkkilista on 2 erillistä 2-palstaista kadence-iconlistiä jotka pinoutuvat
     tabletilla (kt-tab-layout-row) - sisäpalstamäärä (2) ei skaalaudu, joten näkyvä
     palstamäärä on 2 koko tabletti+mobiili-kirjolla, ei 3 */
  .link-columns { columns: 2; }
  .hero-home { padding: 3rem 0; }
}

/* WP core -palstat (hintapaketit) pinoutuvat livessä 781px:ssä */
@media (max-width: 781px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  /* Steps-bändistä näkyy vain note-rivi (live: kb-v-sm-hidden) */
  .steps { display: none; }
  .steps-band { padding-top: 0; }

  /* Ruudukot yhteen palstaan */
  .card-grid, .article-grid, .quote-grid, .benefit-grid, .promo-grid, .digipakki-row { grid-template-columns: 1fr; }

  /* Arvostelut: mobiilissa näytetään vain ensimmäinen kortti */
  .quote-grid .quote-card:nth-child(n+2) { display: none; }

  /* Tilastokaista pysyy 3 palstassa – skaalataan pienemmäksi */
  .stats-band { padding-top: 120px; }
  .stats-veil { height: 170px; }
  .stats-logo { width: 94%; }
  .stat { padding: 18px 8px 22px; }
  /* Luku mahtuu yhdelle riville 390px:ssä ("10 000+" on levein);
     nowrap estää rivinvaihdon numeron sisäisestä välilyönnistä */
  .stat strong { font-size: 2rem; white-space: nowrap; }
  .stat span { font-size: .9rem; }

  /* Kategoriasivun hero pinoon (live: kt-mobile-layout-row; teksti ensin) */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Etusivun hero mobiilissa: maaliräiske ulomman rivin taustana (hero-bg.webp
     + 30 % valkoveili), otsikko ja teksti keskitettyinä, bulletit piiloon,
     napit vierekkäin keskitettyinä (live) */
  .hero-home {
    background:
      linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .3)),
      url('/assets/img/hero-bg.webp') 0 0 / auto 180% no-repeat,
      #fefefe;
    padding: 3rem 0 4.5rem;
  }
  .hero-home .hero-text { padding-left: 0; max-width: none; }
  .hero-home .hero-title { font-size: clamp(2.75rem, 0.489rem + 7.065vw, 6rem); text-align: center; text-shadow: 2px 2px 2px #fff; }
  .hero-home .hero-points { display: none; }
  .hero-mobile-note { display: block; text-align: center; font-size: 1.3rem; font-weight: 400; line-height: 1.5; margin-top: 18px; color: var(--ink-2); text-shadow: 1px 1px 3px #fff; }
  .hero-mobile-note strong { font-weight: 700; }
  .hero-home .hero-actions { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: stretch; gap: 12px; margin-top: 34px; }
  .hero-home .hero-actions .btn { flex: 1 1 0; min-width: 0; width: auto; justify-content: center; text-align: center; font-size: 1.05rem; padding: 13px 12px; white-space: normal; }

  /* Footer yhteen palstaan */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 32px; }
  .footer-bottom { margin-top: 30px; }

  /* Osto-opas: sisällysluettelo + kuva pinoon */
  .osto-toc-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Erikoissivut (Phase B): digipakki, esittely, tarjouspyynnöt/ilmoita,
   haluatko-yrityksenne. Sivukohtaisia komponentteja, jotka eivät
   toistu muualla — pidetään tässä koottuna tiedoston lopussa.
   ============================================================ */

/* ----- Kapea sisältöpalsta (lomakesivut) ----- */
.container--narrow { max-width: 750px; }

/* ----- Esittelykysymykset (haluatko-yrityksenne); vastaukset sähköpostitse ----- */
.esittely-questions { list-style: decimal; margin: 34px 0 0; padding-left: 1.6em; }
.esittely-questions li { margin-bottom: 20px; padding-left: 4px; }
.esittely-q { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.esittely-hint { display: block; margin-top: 4px; font-size: 80%; font-style: italic; color: var(--muted); }
.esittely-cta { margin-top: 34px; }
.esittely-cta__note { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }

/* ----- /tarjouspyynnot/ilmoita/ : kategoriavalinta ----- */
.ilmoita-hero { padding: 21px 0 0; }
/* Live pienentää tämän landingin h1:n (Kadencen "large", ei sivuston oletusotsikko). */
.ilmoita-hero .page-title { font-size: clamp(1.75rem, 1.576rem + 0.543vw, 2rem); line-height: 1; }
.ilmoita-lead {
  max-width: 1100px; margin: 70px auto 0; text-align: center;
  color: var(--ink-2); font-size: 1.06rem; line-height: 1.7;
}
.ilmoita-cat-title { margin-top: 34px; text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.ilmoita-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.ilmoita-select { margin-top: 18px; text-align: center; padding-bottom: clamp(80px, 12vw, 150px); }
.ilmoita-select select {
  width: 100%; max-width: 300px; padding: .7em 1em; font-size: 1rem; color: var(--ink-2);
  border: 1px solid #d0d0d0; border-radius: 8px; background: #fff;
}
.ilmoita-noteband { background: var(--brand-bright); color: #fff; text-align: center; font-weight: 500; font-size: .98rem; }
.ilmoita-noteband .container { padding-top: 12px; padding-bottom: 12px; }

/* ----- Esittely: hero-laskuri + tekijäruudukko ----- */
.esittely-intro { align-items: center; }
.hero-counter { text-align: center; }
.hero-counter__num { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 700; line-height: 1; color: var(--brand-2); }
.hero-counter__label { margin: 10px auto 0; max-width: 320px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #718096; }
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 28px; }
.pro-card__link { display: flex; align-items: center; gap: 14px; color: inherit; }
.pro-card__img { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 4px; background: #f2f2f2; }
.pro-card__text { display: flex; flex-direction: column; min-width: 0; }
.pro-card__name { font-size: .95rem; font-weight: 600; color: var(--ink); }
.pro-card__link:hover .pro-card__name { text-decoration: underline; }
.pro-card__id { margin-top: 2px; font-size: .9rem; color: var(--muted); }
.pro-grid-loading { margin: 28px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

/* ----- Digipakki: palveluntarjoajalista + TOC + logokaista ----- */
.provider-list { display: grid; gap: 8px; }
.provider-card {
  display: grid; grid-template-columns: 210px 1fr minmax(160px, auto);
  gap: clamp(16px, 2.2vw, 32px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: #fff;
}
.provider-logo { display: flex; align-items: center; justify-content: center; }
.provider-logo img { max-width: 100%; max-height: 74px; width: auto; height: auto; object-fit: contain; }
.provider-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.provider-name { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0; }
.provider-badge { font-size: .82rem; font-weight: 600; color: var(--brand-2); white-space: nowrap; }
.provider-desc { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
.provider-actions { display: flex; flex-direction: column; gap: 8px; }
.provider-actions .btn { width: 100%; justify-content: center; padding: .55em 1em; font-size: .95rem; }
/* Digipakin oma TOC on livellä pallukkalistana (Kadence list-style-disc), toisin
   kuin sivuston muu .toc-list (kts. yllä ~rivi 441) — ero on aidosti liven mukainen,
   ei virhe, joten sitä varten oma modifioija eikä .toc-list:in uudelleenmäärittelyä. */
.toc-title--lg { font-size: 1.875rem; font-weight: 400; margin-bottom: 16px; }
.toc-list--bullets { list-style: disc; padding-left: 20px; }
.toc-list--bullets li { margin-top: 10px; }
.toc-list--bullets li:first-child { margin-top: 0; }

.logo-strip-band { padding: clamp(24px, 4vw, 40px) 0; }
.logo-strip-viewport { overflow: hidden; }
.logo-strip-track {
  display: flex; align-items: center; width: max-content;
  gap: clamp(40px, 6vw, 72px);
  animation: logo-strip-scroll 28s linear infinite;
}
.logo-strip-track:hover { animation-play-state: paused; }
.logo-strip-item img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .8; }
@keyframes logo-strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip-track { animation: none; }
}

/* ----- Erikoissivut: responsiivisuus ----- */
@media (max-width: 1024px) {
  .pro-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-card { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .provider-head { justify-content: center; }
  .provider-actions { flex-direction: row; }
}

/* ============================================================
   /info/-osio (Phase C): 2-palstainen layout — sisältö oikealla,
   sticky-sivupalkkinavi vasemmalla (peilaa liven Kadence-sidebaria).
   ============================================================ */
.info-section { padding-top: clamp(28px, 4vw, 48px); }
.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;   /* sisältö vasemmalla, navi oikealla (kuten live) */
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.info-main { min-width: 0; }
.info-main .page-title { margin-top: 6px; }
.info-main .prose { max-width: 760px; }

/* Sivupalkki: laatikoitu bullet-navi (peilaa liven Kadence-widgetiä) */
.info-sidebar { align-self: start; }
.info-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 26px 24px;
}
.info-main ul { list-style: disc; padding-left: 1.4em; }
.info-main ol { list-style: decimal; padding-left: 1.5em; }
.info-main li { margin-bottom: 6px; }
.info-nav__list { list-style: disc; margin: 0; padding-left: 20px; }
.info-nav__sub  { list-style: disc; margin: 4px 0 6px; padding-left: 20px; }
.info-nav__group { margin: 2px 0; }
.info-nav__group > a { color: var(--ink); font-weight: 400; line-height: 1.4; }
/* block (ei inline-block): monirivinen linkki kohdistaa disc-markerin
   ensimmäiseen riviin viimeisen baselinen sijaan */
.info-nav a { display: block; padding: 3px 0; }
.info-nav a:hover { color: var(--brand); text-decoration: underline; }
.info-nav__sub a { color: var(--ink-2); font-size: .97rem; }
.info-nav a.is-current { color: var(--brand); font-weight: 700; }

/* Tabletti (768–1024): navi pysyy oikeassa laidassa, vain kavennettuna. Sivuston
   yleinen ≤1024-sääntö (2-palstaiset tekstirivit pinoon) ei päde tähän: sisältö +
   navi ei ole tekstirivi, ja .prose on katkaistu 760px:ään — 1024px:ssä pinoutuminen
   jättäisi juuri sen verran tyhjää, mihin navi mahtuu. Pinoutuminen siis vasta ≤767. */
@media (min-width: 768px) and (max-width: 1024px) {
  .info-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .info-nav { padding: 16px 18px 18px; }
  .info-nav__list { padding-left: 18px; }
  .info-nav__sub  { padding-left: 16px; }
}
@media (max-width: 767px) {
  .info-layout { grid-template-columns: 1fr; gap: 30px; }
  .info-sidebar { position: static; }   /* DOM on jo sisältö-ensin → pinoutuu oikein */
  .info-nav__list { columns: 2; column-gap: 34px; }
  .info-nav__group { break-inside: avoid; }
}
@media (max-width: 600px) {
  .info-nav__list { columns: 1; }
}

/* ----- Palkkalaskuri (/info/ammattilaiset/tuntipalkka-ja-palkkalaskuri/) ----- */
.palkkalaskuri-divider { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.palkkalaskuri { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; align-items: start; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 1rem 0 2rem; }
.calc-field { display: flex; flex-direction: column; gap: .35rem; }
.calc-field-empty { display: none; }
.calc-field label { font-size: 15px; line-height: 1.3; color: var(--brand); }
.calc-field input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; font-size: 18px; }
.calc-field input:focus { border-color: var(--brand); outline: 0; }
.palkkalaskuri-result { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; }
.palkkalaskuri-result h4 { font-size: 28px; margin: 0 0 1rem; }
.palkkalaskuri-result #divid3, .palkkalaskuri-result #divid4 { line-height: 1.3; margin-top: 1rem; }
@media (max-width: 1024px) { .palkkalaskuri { grid-template-columns: 1fr; } }
@media (max-width: 767px)  { .calc-grid { grid-template-columns: 1fr; } }

/* ----- Jäsenyyshinnasto (/info/ammattilaiset/hinnasto/) ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4rem 1rem; margin: 1.75rem 0 1rem; }
.pricing-card { display: flex; flex-direction: column; border: 2px solid var(--brand-bright); border-radius: 7px; transition: box-shadow .16s ease; }
.pricing-card:hover { box-shadow: 0 0 14px rgba(0, 0, 0, .2); }
.pricing-card__head { background: var(--brand-bright); color: #fff; text-align: center; padding: 1.5rem 1rem; border-radius: 5px 5px 0 0; }
.pricing-card__plan { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); font-weight: 600; margin-bottom: 1rem; color: #fff; }
.pricing-card__price { font-size: 1.25rem; line-height: 1.2; }
.pricing-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; min-height: 320px; }
.pricing-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 1.5rem; }
.pricing-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.pricing-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-bright); }
.pricing-list strong { color: var(--ink); }

/* Hover/focus-paljastuva selite (peilaa liven kb-icon-list-tooltip) */
.pricing-tip { position: relative; }
.pricing-tip strong { cursor: help; border-bottom: 1px dotted var(--brand-bright); }
.pricing-tip-text {
  position: absolute; left: 28px; top: 100%; margin-top: 6px; z-index: 20;
  width: 250px; max-width: 60vw;
  background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.45; font-weight: 400;
  padding: 10px 12px; border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  pointer-events: none;
}
.pricing-tip:hover .pricing-tip-text,
.pricing-tip:focus-within .pricing-tip-text { opacity: 1; visibility: visible; transform: translateY(0); }
.pricing-note { text-align: right; font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.pricing-cta { text-align: center; }
.pricing-cta__note { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.pricing-divider { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.pricing-reasons { display: grid; grid-template-columns: 1.85fr 1fr; gap: 2.5rem; align-items: start; }
.pricing-reasons h2 { font-size: 1.6rem; margin-bottom: .25rem; }
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card__body { min-height: 0; }
  .pricing-reasons { grid-template-columns: 1fr; }
}


/* ============================================================
   VAIHE D — Artikkelit (yksittäinen artikkeli): 2-palstainen
   layout, sisältö vasemmalla + sticky promo-kortti oikealla.
   Peilaa liven Kadence single-post -pohjaa.
   ============================================================ */
.article-section { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(30px, 4vw, 64px);
}
.article-main { min-width: 0; }

.article-breadcrumb { margin-bottom: 26px; }
.entry-title {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; color: var(--ink); margin-bottom: 28px;
}

/* Pääkuva otsikon alla */
.article-hero-media { margin: 0 0 30px; }
.article-hero-media img {
  width: 100%; height: auto; border-radius: var(--radius); object-fit: cover;
}

/* Leipäteksti (laajentaa .prose:a) */
.article-prose { max-width: 760px; }
.article-prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 400; line-height: 1.3; margin-top: 40px; }
.article-prose h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.35; margin-top: 32px; }
.article-prose > *:first-child { margin-top: 0; }
.article-prose ul { list-style: disc; padding-left: 1.4em; }
.article-prose ol { list-style: decimal; padding-left: 1.5em; }
.article-prose li { color: var(--ink-2); line-height: 1.7; margin-top: 8px; }
.article-prose li::marker { color: var(--ink-2); }
.article-prose strong { font-weight: 700; color: var(--ink); }
.article-prose figure { margin: 26px 0; }
.article-prose figure img { border-radius: var(--radius-sm); width: auto; height: auto; max-width: 100%; }
.article-prose figure.aligncenter { text-align: center; }
.article-prose figure.aligncenter img { margin-inline: auto; }
.article-prose figure.alignright { float: right; margin: 6px 0 20px 28px; max-width: 50%; }
.article-prose figure.alignleft  { float: left;  margin: 6px 28px 20px 0; max-width: 50%; }
.article-prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 22px; margin: 24px 0;
  color: var(--ink-2); font-style: italic;
}
.article-prose blockquote p { margin-top: 10px; }
.article-prose blockquote p:first-child { margin-top: 0; }
.article-prose code { background: var(--bg-alt); padding: .12em .4em; border-radius: 4px; font-size: .92em; }
.article-prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Prev/next -navigaatio */
.post-nav { clear: both; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); padding-top: 26px; }
.post-nav__links { display: flex; justify-content: space-between; gap: 40px; }
.post-nav__prev, .post-nav__next { flex: 1 1 0; min-width: 0; }
.post-nav__prev a, .post-nav__next a { display: flex; flex-direction: column; gap: 8px; }
.post-nav__next { text-align: right; border-left: 1px solid var(--line); padding-left: 40px; }
.post-nav__next a { align-items: flex-end; }
.post-nav__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-nav__title { color: var(--brand); font-size: 1.02rem; line-height: 1.4; }
.post-nav__prev a:hover .post-nav__title, .post-nav__next a:hover .post-nav__title { color: var(--brand-dark); text-decoration: underline; }

/* Sivupalkin promo-kortti */
.article-promo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 28px 30px; text-align: center;
}
.kb-section-is-sticky { position: sticky; top: 24px; }
.article-promo__logo { width: 100%; max-width: 220px; height: auto; margin: 0 auto 20px; }
.article-promo__lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.article-promo__desc { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.article-promo__btn { width: 100%; justify-content: center; margin-top: 22px; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { max-width: 420px; }
  .kb-section-is-sticky { position: static; }
}
@media (max-width: 767px) {
  .article-prose figure.alignright, .article-prose figure.alignleft { float: none; max-width: 100%; margin: 22px 0; }
  .post-nav__links { gap: 16px; }
  .post-nav__next { padding-left: 16px; }
  .post-nav__label { font-size: .7rem; letter-spacing: .06em; }
  .post-nav__title { font-size: .92rem; line-height: 1.35; }
}

/* ============================================================
   VAIHE D — Artikkelit-listaus (/artikkelit/)
   ============================================================ */
.article-index { padding-top: 30px; }
.article-index .page-title { margin: 6px 0 clamp(34px, 5vw, 52px); }

/* Korttiruudukko: 2 palstaa (kuten live) */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 4vw, 48px); }
.post-grid > * { min-width: 0; }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; border-radius: 4px; overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.post-card__body { padding-top: 18px; }
.post-card__title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { margin-top: 14px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }

@media (max-width: 767px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Ammattilaisprofiili (/professional/<slug>/) — placeholder-
   layout kollegan tulevaa dynaamista sisältöä varten.
   ============================================================ */
.pro-profile-head { display: grid; grid-template-columns: minmax(160px, 320px) 1fr; gap: 36px; align-items: start; margin-top: 26px; }
.pro-profile__media { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-alt); }
.pro-profile__tagline { font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 16px; }
.pro-profile__meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 20px; }
.pro-profile__meta { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.pro-profile__site { display: inline-block; margin-top: 6px; color: var(--brand); text-decoration: underline; }
.pro-profile__site:hover { color: var(--brand-dark); }
.pro-profile__badge { height: 90px; width: auto; flex: none; }

.pro-profile-body { max-width: 760px; margin-top: 8px; }
.pro-profile-divider { border: 0; border-top: 1px solid var(--line); margin: clamp(30px, 4vw, 46px) 0; }

.pro-profile-references h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 18px; }
.pro-references-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro-reference img { width: 100%; height: auto; border-radius: 8px; display: block; }
.pro-reference__title { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }

.pro-profile-cta { text-align: center; max-width: 700px; margin-inline: auto; }
.pro-profile-cta h2 { font-size: 2rem; font-weight: 700; letter-spacing: -1px; line-height: 1.3; margin: 0 0 22px; }
.pro-profile-cta__note { margin-top: 16px; color: var(--muted); font-size: .95rem; }

@media (max-width: 767px) {
  .pro-profile-head { grid-template-columns: minmax(90px, 120px) 1fr; gap: 18px; }
  .pro-profile__meta-row { gap: 14px 24px; }
  .pro-references-grid { grid-template-columns: 1fr; }
}
