/* Föreningsplattformen – fp-bridge.css (2026-10-27)
   Mappar mallens svk-variabler (Startmall Stockholm / Unblock-mönstren) till WebbPlattformens tokens.
   Laddas efter svk-unblock-styles.css, på sajten och i blockeditorn. Ersätter sr-sana-global (avstängd). */

html:root {
  --svk-navy-950: var(--wp-surface-ink);
  --svk-navy-900: var(--wp-ink);
  --svk-navy-800: #1d2c42;
  --svk-navy-700: var(--wp-ink);
  --svk-paper: var(--wp-surface); /* sidans botten: kräm som på webbplattformen.se; kort använder --svk-white */
  --svk-white: #ffffff;
  --svk-sky-tint: var(--wp-surface);
  --svk-sky-soft: var(--wp-surface-tint);
  --svk-signal: var(--wp-blue);
  --svk-signal-hover: var(--wp-blue-deep);
  --svk-gold: var(--wp-blue-deep);
  --svk-gold-bg: var(--wp-yellow-soft);
  --svk-text-dark: var(--wp-ink);
  --svk-text-muted: var(--wp-ink-muted);
  --svk-text-light: var(--wp-ink);
  --svk-text-light-muted: var(--wp-ink-muted);
  --svk-line-light: var(--wp-line-soft);
  --svk-line-dark: rgba(15, 27, 45, 0.14);
  --svk-shadow-sm: none;
  --svk-shadow-md: var(--wp-shadow-pop);
  --svk-font-sans: var(--wp-font-sans);
  --svk-font-mono: var(--wp-font-sans); /* B-riktningen: eyebrows i sans versaler, inte mono */

  /* FluentCommunity (Hubben) och SureDash */
  --fcom-primary-color: var(--wp-ink);
  --fcom-primary-bg: var(--wp-surface-raised);
  --fcom-secondary-bg: var(--wp-surface);
  --fcom-text-color: var(--wp-ink);
  --fcom-secondary-text-color: var(--wp-ink-muted);
  --fcom-primary-button: var(--wp-blue);
  --fcom-primary-button-text: #ffffff;
  --el-color-primary: var(--wp-blue);
  --sd-accent-color: var(--wp-blue);
  --sd-primary-color: var(--wp-blue);
  --sd-link-color: var(--wp-blue);
  --sd-heading-color: var(--wp-ink);
  --sd-primary-btn-bg: var(--wp-blue);
  --sd-primary-btn-color: #ffffff;
  --suredash-primary-color: var(--wp-blue);
  --suredash-accent-color: var(--wp-blue);
}

/* Grund: kräm yta, bläck text, Schibsted Grotesk */
html body {
  background: var(--wp-surface);
  color: var(--wp-ink);
  font-family: var(--wp-font-sans);
  -webkit-font-smoothing: antialiased;
}
html body :is(p, li) { color: var(--wp-ink); line-height: 1.6; }
html body :is(.svk-v2-lead, .svk-v2-body, .svk-kpi__desc) { color: var(--wp-ink-muted); line-height: 1.6; }

/* Rubriker: Instrument Serif, normal vikt */
html body :is(h1, h2, h3, .svk-v2-h1, .svk-v2-h2, .svk-v2-h3, .svk-v2-hero__title, .svk-v2-card__title, .svk-kpi__num) {
  font-family: var(--wp-font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.06;
  color: var(--wp-ink);
}
html body :is(h3, .svk-v2-h3, .svk-v2-card__title) { line-height: 1.15; }
html body h4 { font-family: var(--wp-font-sans); font-weight: 600; color: var(--wp-ink); }

/* Länkar i löptext: understrukna (tillgänglighet, samma regel som webbplattformen.se A10) */
html body :is(p, li) a:not([class*="btn"]) { color: var(--wp-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Ytor */
html body .svk-v2-hero { background: var(--wp-surface); background-image: none; }
html body :is(.svk-v2-card--navy, .svk-v2-section--navy) { background: var(--wp-surface-ink); color: var(--wp-ink-on-dark); }
html body :is(.svk-v2-card--navy, .svk-v2-section--navy) :is(h1, h2, h3, h4) { color: var(--wp-ink-on-dark); }
html body :is(.svk-v2-card--navy, .svk-v2-section--navy) :is(p, li) { color: var(--wp-ink-on-dark-muted); }

/* Knappar: accent som pill, bläck för sekundär */
html body :is(.svk-v2-btn--signal, .svk-v2-btn--primary, .fcom_primary_btn, .sd-btn-primary, .el-button--primary) {
  background-color: var(--wp-blue);
  border-color: var(--wp-blue);
  color: #ffffff;
  border-radius: var(--wp-radius-pill);
}
html body :is(.svk-v2-btn--signal, .svk-v2-btn--primary):hover { background-color: var(--wp-blue-deep); border-color: var(--wp-blue-deep); }
html body [class*="svk-v2-btn"] { border-radius: var(--wp-radius-pill); font-family: var(--wp-font-sans); font-weight: 500; }

/* Fokus */
html body :focus-visible { outline: 2px solid var(--wp-focus); outline-offset: 2px; }

/* Markering (gul överstrykning som på webbplattformen.se) */
html body mark, html body .fp-mark { background: linear-gradient(transparent 55%, var(--wp-yellow) 55%); color: inherit; padding: 0 2px; }

/* Mörka kort och sektioner: rubriker och text ljusa även när mallen sätter färg på __title/__text-klasser (högre specificitet) */
html body :is(.svk-v2-card--navy, .svk-v2-section--navy) :is(h1, h2, h3, h4, [class*="__title"], [class*="__kicker"]) { color: var(--wp-ink-on-dark); }
html body :is(.svk-v2-card--navy, .svk-v2-section--navy) :is(p, li, [class*="__text"], [class*="__desc"]) { color: var(--wp-ink-on-dark-muted); }

/* ===== Officiella sajten (steg 4, 2026-10-27) ===== */

/* Ordmärke tills logotypen är vald */
html body .fp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
html body .fp-brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--wp-blue); color: #fff; font: 400 22px/1 var(--wp-font-display); }
html body .fp-brand__text { font: 400 1.45rem/1 var(--wp-font-display); color: var(--wp-ink); letter-spacing: -0.01em; white-space: nowrap; }
html body .fp-brand__text--footer { font-size: 1.6rem; }

/* Kort utan bild */
html body .fp-card-ingen-bild .fp-badge { display: none; }
html body .fp-card-ingen-bild .svk-v2-pathway-card__body { padding-top: 28px; }
html body .svk-v2-pathway-card__text { color: var(--wp-ink-muted); margin: 8px 0 0; }
html body .fp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { html body .fp-grid-2 { grid-template-columns: 1fr; } }
html body .fp-section-note { margin: 28px 0 0; color: var(--wp-ink-muted); }

/* Priser */
html body .fp-pris__belopp { font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; margin: 10px 0 6px; }
html body .fp-pris__moms { color: var(--wp-ink-muted); font-size: 15px; margin: 0 0 8px; }
html body .fp-pris .svk-v2-btn { width: 100%; justify-content: center; }

/* Stegen (Styrelsebytet, Flytta hit) */
html body .svk-v2-ladder-step__title { font-family: var(--wp-font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; color: var(--wp-ink); margin: 18px 0 8px; }
html body .svk-v2-ladder-step__text { color: var(--wp-ink-muted); font-size: 15px; line-height: 1.55; margin: 0; }
html body .svk-v2-section--navy .svk-v2-ladder-step :is(.svk-v2-ladder-step__title, h3) { color: var(--wp-ink); }
html body .svk-v2-section--navy .svk-v2-ladder-step .svk-v2-ladder-step__text { color: var(--wp-ink-muted); }
html body .fp-ladder-ljus .svk-v2-ladder-step__text { margin-top: 18px; }

/* Hero-rutan och nyckeltalen */
html body .fp-hero-box .svk-v2-news-item { cursor: default; }
html body .svk-v2-metrics__desc { color: var(--wp-ink-muted); font-size: 13.5px; line-height: 1.45; margin: 6px 0 0; }

/* Formuläret (Fluent Forms) */
html body .fp-formular { padding: 28px; }
html body .fp-formular .ff-btn-submit, html body .fp-formular button[type="submit"] { background: var(--wp-blue) !important; border-color: var(--wp-blue) !important; color: #fff !important; border-radius: var(--wp-radius-pill) !important; padding: 13px 26px !important; font: 500 16px/1 var(--wp-font-sans) !important; }
html body .fp-formular .ff-btn-submit:hover { background: var(--wp-blue-deep) !important; }
html body .fp-formular :is(input, select, textarea) { border-radius: var(--wp-radius-sm); border-color: var(--wp-line-strong); font-family: var(--wp-font-sans); }
html body .fp-formular .ff-el-input--label label { font-weight: 500; color: var(--wp-ink); }
html body .fp-kom-igang { align-items: start; }

/* Ankarlänkar under det klistrade sidhuvudet */
html { scroll-padding-top: 96px; }
