/* Shared foundations and content blocks for native Django/Wagtail pages. */
:root {
    --bc-content-width: 1200px;
    --bc-gutter: 48px;
    --bc-section-space: 80px;
    --bc-card-space: 32px;
    --bc-paper: #fffef6;
    --bc-green: #616d61;
    --bc-orange: #ff9000;
    --color-primary: #ff9000;
    --color-primary-dark: #616d61;
    --color-gray-900: #18181b;
    --color-gray-800: #27272a;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bc-paper); color: #111; font-family: 'Work Sans', system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
picture.bc-responsive { display: contents; }
picture.bc-responsive > source { display: none; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2 { font-weight: 500; }
h1 { font-size: clamp(40px, 5.5vw, 80px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.34vw, 48px); line-height: 1.2; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
main p { font-size: 18px; line-height: 1.5; }
main p + p { margin-top: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--bc-orange); outline-offset: 4px; }
.bc-container { width: min(var(--bc-content-width), calc(100% - 2 * var(--bc-gutter))); margin-inline: auto; }
.bc-service-intro { padding: 95px 0 100px; }
.bc-service-intro .bc-container { padding-inline: 32px; }
.bc-service-intro h1 { margin-bottom: 30px; }
.bc-service-button { display: inline-flex; align-items: center; gap: 20px; padding: 16px 32px; margin-top: 32px; border-radius: 999px; background: var(--bc-orange); color: white; font-size: 16px; font-weight: 600; }
.bc-service-button:hover { background: var(--bc-green); }
.bc-service-cards { padding: 140px 0; background: var(--bc-green); color: var(--bc-paper); border-radius: 100px 0 108px 0; }
.bc-service-cards h2 { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.bc-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.bc-service-card { background: var(--bc-paper); color: #111; border-radius: 20px; padding: 50px; text-align: center; }
.bc-service-card h3 { margin-bottom: 18px; }
.bc-service-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.bc-service-image-text { padding: 100px 0; }
.bc-service-columns h2 { margin-bottom: 30px; }
.bc-service-columns figure img { width: 100%; border-radius: 20px; }
.bc-service-contact { padding: 100px 0; }
.bc-service-contact .bc-service-columns { align-items: start; }
.bc-form-frame { color-scheme: light; }

@media (max-width: 1024px) {
    :root { --bc-gutter: 32px; }
    .bc-service-columns { gap: 40px; }
    .bc-service-intro { padding-top: 50px; }
}

@media (max-width: 767px) {
    main p { font-size: 14px; line-height: 1.5; }
    main p + p { margin-top: 16px; }
    :root { --bc-gutter: 20px; --bc-section-space: 48px; --bc-card-space: 24px; }
    .bc-service-intro { padding: 65px 0 60px; }
    .bc-service-intro .bc-container { padding-inline: 0; }
    .bc-service-intro h1 { margin-bottom: 20px; }
    .bc-service-button { padding: 12px 24px; font-size: 14px; margin-top: 24px; }
    .bc-service-cards { padding: 60px 0; }
    .bc-service-cards h2 { margin-bottom: 40px; }
    .bc-card-grid, .bc-service-columns { grid-template-columns: 1fr; gap: 30px; }
    .bc-service-card { padding: 40px 24px; }
    .bc-service-image-text, .bc-service-contact { padding: 60px 0; }
    .bc-service-contact figure { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Shared sections and content, replacing the imported page builder. */
.bc-band { position: relative; padding-block: var(--bc-section-space); }
.bc-band > .bc-container { position: relative; }
.bc-home .bc-band--intro { padding-block: 64px 80px; }
.bc-band--feature { padding-block: var(--bc-section-space); }
.bc-band--legal > .bc-container { max-width: 1060px; }
.bc-band--banner { min-height: 320px; }
.bc-band-background { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bc-band-background img { width: 100%; height: 100%; object-fit: cover; }
.bc-band--photo > .bc-band-background::after { content: ''; position:absolute; inset:0; background:rgba(35,55,40,.18); }
.bc-band--photo > .bc-container { z-index: 1; }
.bc-band > .bc-container > * + *, .bc-panel > * + * { margin-top: 24px; }
.bc-prose + .bc-prose { margin-top: 16px; }
.bc-theme--transparent { background: transparent; }
.bc-theme--paper { background: var(--bc-paper); color: #111; }
.bc-theme--white { background: #fff; color: #111; }
.bc-theme--light { background: #fff5e8; color: #111; }
.bc-theme--green { background: var(--bc-green); color: var(--bc-paper); }
.bc-layout { position: relative; display: grid; gap: 32px; }
.bc-layout > .bc-panel { position: relative; min-width: 0; margin-top: 0; }
.bc-layout--stack { grid-template-columns: minmax(0,1fr); gap: 24px; }
.bc-layout--columns2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bc-layout--columns3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bc-layout--columns4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bc-layout--sidebar_left { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.bc-layout--sidebar_right { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.bc-layout--row { display:flex; flex-wrap:wrap; align-items:center; }
.bc-layout.bc-theme--green, .bc-layout.bc-theme--light { padding: var(--bc-card-space); }
.bc-card { padding: var(--bc-card-space); border-radius: 24px; overflow: hidden; }
.bc-align--center { text-align: center; }
.bc-align--end { text-align: right; }
.bc-heading { font-weight: 500; line-height: 1.2; }
.bc-heading--hero { font-size: clamp(40px,5.5vw,80px); line-height: 1.1; }
.bc-heading--title { font-size: clamp(36px,4.5vw,64px); line-height: 1.1; }
.bc-heading--section { font-size: clamp(28px,3.34vw,48px); }
.bc-heading--subheading { font-size: clamp(24px,2.1vw,30px); }
.bc-heading--card { font-size: 24px; font-weight: 600; }
.bc-heading--small { font-size: 20px; font-weight: 600; }
.bc-photo img { width:100%; border-radius:20px; }
.bc-photo--small { width:96px; max-width:100%; }
.bc-align--center .bc-photo--small { margin-inline:auto; }
.bc-prose a { text-decoration:underline; text-underline-offset:3px; }
.bc-prose ul, .bc-prose ol { padding-left: 1.4em; margin:0; }
.bc-prose li { font-size:18px; line-height:1.5; }
.bc-prose li + li { margin-top:8px; }
.bc-prose p + ul, .bc-prose p + ol, .bc-prose ul + p, .bc-prose ol + p { margin-top:18px; }
.bc-prose--checklist ul { padding-left:0; list-style:none; }
.bc-prose--checklist li { position:relative; padding-left:26px; }
.bc-prose--checklist li::before { content:'✓'; position:absolute; left:0; color:var(--bc-orange); font-weight:700; }
.bc-prose--inline ul { display:flex; flex-wrap:wrap; list-style:none; gap:16px 24px; padding:0; }
.bc-prose--inline li + li { margin-top:0; }
.bc-video { aspect-ratio:16/9; overflow:hidden; border-radius:20px; background:#18181b; }
.bc-video iframe { width:100%; height:100%; border:0; display:block; }
.bc-map { height:500px; border-radius:24px; overflow:hidden; }
.bc-table-wrap { max-width:100%; overflow-x:auto; }
.bc-table-wrap table { border-collapse:collapse; width:100%; font-size:16px; }
.bc-table-wrap td, .bc-table-wrap th { border:1px solid #d5dbd4; padding:14px; text-align:left; vertical-align:top; }
.bc-table-wrap th { background:#eef0e8; }
.bc-table-wrap p { font-size:16px; }
.bc-prose blockquote { border-left:4px solid var(--bc-orange); margin:0; padding-left:24px; }
.bc-new-content { width:min(var(--bc-content-width),calc(100% - 2 * var(--bc-gutter))); margin:60px auto; }
.bc-article-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:32px; }
.bc-article-grid article { background:#fff4e6; border-radius:20px; padding:32px; }
.bc-article-grid h2 { font-size:30px; margin-bottom:20px; }
.bc-button { display:inline-flex; background:var(--bc-orange); color:#fff; padding:16px 30px; border-radius:999px; }

@media (min-width:1025px) {
  .bc-visible-011,.bc-visible-010,.bc-visible-001,.bc-visible-000 { display:none !important; }
}
@media (min-width:768px) and (max-width:1024px) {
  .bc-visible-101,.bc-visible-100,.bc-visible-001,.bc-visible-000 { display:none !important; }
  .bc-layout--columns4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .bc-visible-110,.bc-visible-100,.bc-visible-010,.bc-visible-000 { display:none !important; }
  .bc-band { padding-block:var(--bc-section-space); }
  .bc-home .bc-band--intro { padding-block:48px; }
  .bc-layout--columns2,.bc-layout--columns3,.bc-layout--columns4,.bc-layout--sidebar_left,.bc-layout--sidebar_right { grid-template-columns:minmax(0,1fr); }
  .bc-layout { gap:32px; }
  .bc-card,.bc-layout.bc-theme--green,.bc-layout.bc-theme--light { padding:var(--bc-card-space); }
  .bc-prose li { font-size:14px; }
  .bc-heading--card { font-size:24px; }
  .bc-map { height:420px; }
  .bc-new-content { width:calc(100% - 2 * var(--bc-gutter)); }
}
.bc-align--justify { text-align:justify; }
.bc-photo--small.bc-align--center { margin-inline:auto; }
.bc-photo--small.bc-align--end { margin-left:auto; }
.bc-band .bc-service-button.bc-align--center { display:flex; width:fit-content; margin-inline:auto; }
.bc-band .bc-service-button.bc-align--end { display:flex; width:fit-content; margin-left:auto; }
.bc-service-button--outline { background:transparent; border:1px solid currentColor; color:inherit; }
.bc-service-button--text { background:transparent; color:inherit; padding:0; border-radius:0; text-decoration:underline; }
.bc-service-button--text:hover { background:transparent; color:var(--bc-orange); }
.bc-align--start { text-align:left; }
.bc-theme--sage { background:#849284; color:var(--bc-paper); }
.bc-theme--ink { background:#18181b; color:#fff; }
.bc-theme--orange { background:var(--bc-orange); color:#111; }
.bc-band--split_feature { background:linear-gradient(90deg,#616d61 50%,#849284 50%); padding-block:96px; }
/* Curved joins between the two colour fields, matching the original dividers. */
.bc-split-divider { position:absolute; left:0; width:100%; overflow:hidden; line-height:0; pointer-events:none; }
.bc-split-divider--top { top:-1px; }
.bc-split-divider--bottom { bottom:-1px; transform:rotate(180deg); }
.bc-split-divider svg { display:block; position:relative; left:50%; transform:translateX(-50%); width:calc(200% + 1.3px); max-width:none; height:45px; fill:var(--bc-paper); }
.bc-split-divider--bottom svg { height:40px; }
@media (max-width:767px) {
 .bc-split-divider svg { width:calc(400% + 1.3px); height:20px; }
}
.bc-band--feature { border-radius:100px 0 108px 0; }
/* Plain green bands and compact catalogues had square corners in the design. */
.bc-band--feature:not(:has(.bc-card)),
.bc-band--feature:has(> .bc-container > .bc-layout--columns3.bc-gap--small) { border-radius:0; }
.bc-gap--none { gap:0; }
.bc-gap--small { gap:24px; }
.bc-gap--normal { gap:32px; }
.bc-gap--wide { gap:64px; }
.bc-items--start { align-items:start; }
.bc-items--center { align-items:center; }
.bc-items--end { align-items:end; }
.bc-items--stretch { align-items:stretch; }
.bc-layout > .bc-band-background + .bc-panel:empty { min-height:320px; }
.bc-layout--row { gap:16px; align-items:center; }
.bc-layout--row > .bc-panel { flex:1; }
.bc-layout--row > .bc-panel:has(.bc-icon) { flex:0 0 auto; }
.bc-layout--row.bc-card { padding:24px; }
.bc-layout--row .bc-panel .bc-prose + .bc-prose { margin-top:4px; }
.bc-layout--row .bc-prose + .bc-prose p { font-size:14px; }
.bc-icon { color:var(--bc-orange); display:block; flex-shrink:0; }
@media (min-width:1025px) {
 .bc-order--100,.bc-order--101,.bc-order--110,.bc-order--111 { direction:rtl; }
 .bc-layout > .bc-panel { direction:ltr; }
}
@media (min-width:768px) and (max-width:1024px) {
 .bc-order--010,.bc-order--011,.bc-order--110,.bc-order--111 { direction:rtl; }
 .bc-layout > .bc-panel { direction:ltr; }
}
@media (max-width:767px) {
 .bc-order--001,.bc-order--011,.bc-order--101,.bc-order--111 { direction:rtl; }
 .bc-layout > .bc-panel { direction:ltr; }
 .bc-layout--columns2,.bc-layout--columns3,.bc-layout--columns4,.bc-layout--sidebar_left,.bc-layout--sidebar_right { gap:32px; }
 .bc-band--split_feature { background:#616d61; padding-block:64px; }
}
.bc-layout:has(> .bc-band-background) { border-radius:20px; overflow:hidden; }
.bc-layout--columns2.bc-gap--none > .bc-panel:first-child > .bc-card { border-radius:20px 0 0 20px; }
.bc-layout--columns2.bc-gap--none > .bc-panel:last-child > .bc-layout:has(> .bc-band-background) { border-radius:0 20px 20px 0; }
@media (min-width:1025px) {
 .bc-layout--stack:is(.bc-order--100,.bc-order--101,.bc-order--110,.bc-order--111) { display:flex; flex-direction:column-reverse; }
}
@media (min-width:768px) and (max-width:1024px) {
 .bc-layout--stack:is(.bc-order--010,.bc-order--011,.bc-order--110,.bc-order--111) { display:flex; flex-direction:column-reverse; }
}
@media (max-width:767px) {
 .bc-layout:not(.bc-layout--row):is(.bc-order--001,.bc-order--011,.bc-order--101,.bc-order--111) { display:flex; flex-direction:column-reverse; }
 .bc-layout:not(.bc-layout--row):is(.bc-order--001,.bc-order--011,.bc-order--101,.bc-order--111) > .bc-panel { width:100%; }
}
.bc-uppercase, .bc-prose--eyebrow { text-transform:uppercase; }
.bc-prose--eyebrow p { font-size:13px; font-weight:600; letter-spacing:.08em; }
.bc-photo--small { width:64px; }
.bc-photo--logo { width:160px; max-width:100%; }
.bc-photo--logo.bc-align--center { margin-inline:auto; }
.bc-layout { align-content:start; }
.bc-justify--start { align-content:start; justify-content:start; }
.bc-justify--center { align-content:center; justify-content:center; }
.bc-justify--end { align-content:end; justify-content:end; }
.bc-justify--between { align-content:space-between; justify-content:space-between; }
.bc-layout.bc-items--stretch > .bc-panel > .bc-layout:only-child { height:100%; }
.bc-prose--pills ul,.bc-prose--inline_checks ul { display:flex; flex-wrap:wrap; gap:12px 20px; list-style:none; padding:0; }
.bc-prose--pills li + li,.bc-prose--inline_checks li + li { margin-top:0; }
.bc-prose--pills li { border-radius:999px; background:var(--bc-orange); padding:8px 16px; font-size:14px; color:#fff; }
.bc-prose--inline_checks li::before { content:'✓'; color:var(--bc-orange); margin-right:8px; font-weight:700; }
.bc-prose--inline_checks li br { display:none; }
.bc-prose--labels2 ul,.bc-prose--grid2 ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
.bc-prose--labels3 ul,.bc-prose--grid3 ul { grid-template-columns:repeat(3,minmax(0,1fr)); }
.bc-prose--labels4 ul,.bc-prose--grid4 ul { grid-template-columns:repeat(4,minmax(0,1fr)); }
:is(.bc-prose--labels2,.bc-prose--labels3,.bc-prose--labels4,.bc-prose--grid2,.bc-prose--grid3,.bc-prose--grid4) ul { display:grid; gap:16px; padding:0; list-style:none; }
:is(.bc-prose--labels2,.bc-prose--labels3,.bc-prose--labels4,.bc-prose--grid2,.bc-prose--grid3,.bc-prose--grid4) li + li { margin-top:0; }
:is(.bc-prose--labels2,.bc-prose--labels3,.bc-prose--labels4) li { border-radius:12px; padding:16px; background:var(--bc-orange); color:#fff; font-size:15px; }
@media (max-width:1024px) {
 :is(.bc-prose--labels3,.bc-prose--labels4,.bc-prose--grid3,.bc-prose--grid4) ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
 :is(.bc-prose--labels2,.bc-prose--labels3,.bc-prose--labels4,.bc-prose--grid2,.bc-prose--grid3,.bc-prose--grid4) ul { grid-template-columns:minmax(0,1fr); }
}
.bc-theme--muted { background:#eef0ed; color:#111; }
.bc-band--banner { padding:0; }
.bc-band--banner > .bc-container { width:100%; }

/* Shared card details, measured against the original desktop/mobile design. */
.bc-card.bc-theme--paper,
.bc-card.bc-theme--light,
.bc-card.bc-theme--green.bc-layout--stack { border-radius:20px; }
.bc-card.bc-theme--green.bc-layout--columns2 { border-radius:16px; }
.bc-card.bc-theme--light { padding:var(--bc-card-space); }
/* Some card titles are rich-text blocks rather than heading blocks. Keep the
   editor's text and structure while restoring their distinct title typography. */
.bc-card.bc-theme--light > .bc-panel > .bc-prose:first-child:has(+ .bc-prose) > p {
    font-size:23px; font-weight:500; line-height:27px;
}
.bc-card.bc-theme--light > .bc-panel > .bc-prose:first-child + .bc-prose { margin-top:12px; }
@media (max-width:767px) {
    .bc-band--feature, .bc-service-cards { border-radius:40px 0; }
    .bc-card.bc-theme--light { padding:var(--bc-card-space); }
    .bc-card.bc-theme--light > .bc-panel > .bc-prose:first-child:has(+ .bc-prose) > p {
        font-size:21px; line-height:21px;
    }
}

/* Spacing relationships: adjacent plain sections share the visual break. */
/* Reusable compact cards; pair with any shared colour theme. */
.bc-card.bc-card--compact { padding:28px; border-radius:16px; }
.bc-card.bc-card--compact > .bc-panel > .bc-prose { margin-top:16px; }
@media (min-width:768px) and (max-width:1199px) {
    .bc-card.bc-card--compact > .bc-panel > .bc-heading { min-height:2.4em; }
}
@media (max-width:767px) {
    .bc-card.bc-card--compact { padding:24px; }
}

.bc-band--section:has(+ .bc-band--section) { padding-bottom: 48px; }
.bc-band--section + .bc-band--section { padding-top: 48px; }
.bc-panel > .bc-service-button:only-child { margin-top: 0; }
.bc-prose + .bc-layout--row { margin-top: 32px; }
@media (min-width:768px) and (max-width:1024px) {
    .bc-gap--wide { gap:40px; }
}
@media (max-width:767px) {
    .bc-band--section:has(+ .bc-band--section) { padding-bottom:24px; }
    .bc-band--section + .bc-band--section { padding-top:24px; }
}

/* Shared metric lists: one value paragraph followed by its explanation. */
.bc-prose--metrics ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:0; list-style:none; }
.bc-prose--metrics li { padding:20px; border-radius:16px; background:#eef0ed; }
.bc-prose--metrics li + li { margin-top:0; }
.bc-prose--metrics li > p:first-child { font-size:24px; font-weight:600; line-height:1.2; }
.bc-prose--metrics li > p + p { margin-top:12px; font-size:16px; }
/* Imported checklist items can begin with a redundant line break. */
.bc-prose--checklist li > br:first-child { display:none; }
@media (max-width:1024px) {
    .bc-prose--metrics ul { grid-template-columns:minmax(0,1fr); }
}

/* Keep captions under logos readable in narrow sidebars. */
.bc-photo--logo + .bc-prose p { font-size:14px; hyphens:auto; }
/* Layouträttningar 3 december 2026 (jämförelse med den gamla webbplatsen).
   Gemensamma varianter som väljs i layoutrecepten; se docs/CSS-OCH-KOMPONENTER.md. */
.bc-layout--columns5 { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (min-width:768px) and (max-width:1024px) {
    .bc-layout--columns5 { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767px) {
    .bc-layout--columns5 { grid-template-columns:minmax(0,1fr); gap:16px; }
}
/* Ikoner: dekorativa (aria-hidden). På orange och mörka ytor används textfärgen. */
:is(.bc-theme--orange,.bc-theme--green,.bc-theme--ink,.bc-theme--sage) .bc-icon { color:currentColor; }
.bc-icon.bc-align--center { margin-inline:auto; }
.bc-icon--large { width:44px; height:44px; }
.bc-icon--badge { width:52px; height:52px; padding:13px; border-radius:50%; background:rgba(255,144,0,.14); color:var(--bc-orange); }
.bc-icon--tile { width:52px; height:52px; padding:13px; border-radius:12px; background:var(--bc-green); color:#fff; }
.bc-panel > .bc-icon + * { margin-top:20px; }
/* Nummeretikett, t.ex. 01–05 i punktlistor. Mörk text på orange enligt kontrastbeslutet. */
.bc-prose--badge p { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 10px; border-radius:999px; background:var(--bc-orange); color:#111; font-size:14px; font-weight:700; line-height:1; }
.bc-panel > .bc-prose--badge + * { margin-top:16px; }
/* Bild med orange cirkel bakom övre högra hörnet (sidintroduktion). */
.bc-card.bc-card--accent { overflow:visible; padding:0; border-radius:0; isolation:isolate; }
.bc-card.bc-card--accent::before { content:''; position:absolute; z-index:-1; top:-28px; right:-28px; width:62%; aspect-ratio:1; border-radius:50%; background:var(--bc-orange); }
@media (max-width:767px) {
    .bc-card.bc-card--accent::before { top:-14px; right:-12px; width:55%; }
}
/* Tabellceller: hela ord (sidans overflow-wrap:anywhere krymper annars kolumner till enstaka tecken). Smala skärmar rullar tabellen i sidled. */
.bc-table-wrap :is(td,th) { overflow-wrap:break-word; }
