/* =====================================================================
   Plenguru – designløft, retning C «Hagen»
   Lenkes SIST i <head> på alle sider (etter style.css OG sidenes egne <style>-blokker). Alt som ikke er designet om her, beholder
   dagens utseende i stedet for å gå i stykker. Endrer bare utseende, aldri innhold.
   ===================================================================== */

/* ---------- 1. Fargevariabler: dagens navn peker til C-paletten ----------
   De fleste komponentene i style.css bruker disse, og får dermed ny palett automatisk. */
:root {
  --cream: #F2EEE3;
  --card: #FBF9F3;
  --forest: #14301F;
  --forest-2: #1F4A30;
  --sage: #DCE5CB;
  --sun: #F4C430;
  --ink: #15201A;
  --mute: #556057;
  --hairline: rgba(21, 32, 26, .13);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --r-lg: clamp(18px, 1.8vw, 24px);
  --r-md: 16px;
  --r-sm: 10px;

  --color-primary: var(--forest-2);
  --color-secondary: var(--sage);
  --color-accent: var(--sun);
  --color-bg: var(--cream);
  --color-text: var(--ink);
  --color-text-muted: var(--mute);
  --color-dark: var(--forest);
  --color-border: var(--hairline);
  --line: var(--hairline);
  --font-base: var(--sans);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --shadow-sm: none;
  --shadow-md: 0 1px 0 var(--hairline);
  --shadow-lg: 0 18px 40px -18px rgba(20, 48, 31, .3);
  --max-width: 1320px;
}

/* ---------- 2. Logoen endres IKKE i denne runden ----------
   Låst til nøyaktig dagens visning, uavhengig av variablene over. */
.logo-text { font-family: 'Inter', sans-serif !important; font-weight: 700 !important; color: #5C8A3A !important; }
.logo--light .logo-text { color: #A8D5A2 !important; }

/* ---------- 3. Typografi ---------- */
body { font-family: var(--sans); font-size: 1.0625rem; color: var(--ink); background: var(--cream); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }

/* ---------- 4. Felles ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 5. Topp og meny (dagens oppførsel beholdes: følger med ved scrolling, mobilmeny under 640 px) ---------- */
.site-header { background-color: var(--cream); border-bottom: 1px solid transparent; backdrop-filter: none; }
.nav { height: 76px; }
.nav-menu { gap: 1.75rem; margin-left: auto; }
.nav-right { margin-left: 1.25rem; }
.nav-menu a, .nav-dropdown-btn { font-size: 1rem; font-weight: 500; color: var(--ink); padding: .35rem 0; border-radius: 0; background: none; }
.nav-menu a:hover { background: none; color: var(--forest-2); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-menu a.is-active { color: var(--forest); font-weight: 600; }
.nav-menu a.is-active::after { left: 0; right: 0; bottom: -4px; height: 2px; background: var(--sun); }
.nav-menu > li:last-child > a { padding: .55rem 1.15rem; border: 1.5px solid var(--forest); border-radius: 999px; }
.nav-menu > li:last-child > a:hover { background: var(--forest); color: var(--cream); text-decoration: none; }
.nav-menu > li:last-child > a.is-active::after { display: none; }
.nav-dropdown { min-width: 250px; padding: .45rem; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--card); box-shadow: 0 18px 40px -18px rgba(20, 48, 31, .35); }
.nav-dropdown a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: var(--r-sm); font-weight: 500; color: var(--ink); }
.nav-dropdown a:hover { background: var(--cream); color: var(--forest); text-decoration: none; }
.nav-badge { padding: .15rem .55rem; border-radius: 999px; background: var(--sun); color: var(--forest); font-size: .6875rem; font-weight: 700; }
.nav-search-input { border: 1.5px solid var(--forest); border-radius: 999px; background: var(--card); }
/* Lukket søkefelt kan ikke få tastaturfokus (feil i dagens side) */
.nav-search-box:not(.is-open) { visibility: hidden; }

@media (max-width: 640px) {
  .nav { height: 68px; }
  .nav-menu { top: 68px; gap: 0; padding: .25rem 1.25rem 1.25rem; border-bottom: 1px solid var(--hairline); box-shadow: 0 18px 30px -18px rgba(20, 48, 31, .25); background: var(--cream); }
  .nav-menu > li { border-top: 1px solid var(--hairline); margin: 0; padding: 0; }
  .nav-menu > li:first-child { border-top: 0; }
  /* Ingen seksjonsoverskrifter: alle lenkene ser like ut */
  .nav-menu > li::before, .nav-menu > li:first-child::before, .nav-has-dropdown::before, .nav-menu > li:last-child::before { content: none !important; display: none !important; }
  .nav-menu a, .nav-dropdown a, .nav-menu > li:last-child > a { display: flex; justify-content: flex-start; padding: 1rem 0; border: 0; border-radius: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; color: var(--forest); background: none; }
  .nav-dropdown a + a { border-top: 1px solid var(--hairline); }
  .nav-menu > li:last-child > a:hover, .nav-menu a:hover { background: none; color: var(--forest-2); }
}

/* ---------- 6. Artikkeltopp: mørk flate med bildet til høyre (dagens HTML) ---------- */
.guide-hero { background: none; border-bottom: 0; padding: clamp(1.5rem, 3vw, 2rem) 0 0; }
.guide-hero:not(.guide-hero--photo) > .container { width: calc(100% - 2 * clamp(1rem, 3vw, 1.5rem)); max-width: calc(var(--max-width) - 3rem); margin-inline: auto; padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--r-lg); background: var(--forest); color: var(--cream); } /* samme sidemarg som toppene med bilde */
.guide-hero--photo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; min-height: 0; padding: 0; width: calc(100% - 2 * clamp(1rem, 3vw, 1.5rem)); max-width: calc(var(--max-width) - 3rem); margin: clamp(1rem, 2vw, 1.5rem) auto 0; overflow: hidden; border-radius: var(--r-lg); background-color: var(--forest); background-image: none; background-position: center 60%; }
.guide-hero--photo::before { content: none; }
.guide-hero--photo::after { content: ""; min-height: 320px; background-image: var(--hero-img); background-size: cover; background-position: inherit; }
.guide-hero--photo .container { padding: clamp(1.5rem, 3.5vw, 3rem); max-width: none; margin: 0; }
.guide-hero .breadcrumb, .guide-hero .breadcrumb a, .guide-hero--photo .breadcrumb, .guide-hero--photo .breadcrumb a { color: #A9B8A6; font-size: .875rem; }
.guide-hero .breadcrumb a { display: inline-block; padding-block: .3rem; }
.guide-hero .breadcrumb a:hover { color: #fff; }
.guide-hero .breadcrumb { align-items: center; margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.guide-hero-badge, .guide-hero--photo .guide-hero-badge { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--sun); color: var(--forest); font-size: .75rem; font-weight: 700; letter-spacing: 0; text-transform: none; margin-bottom: 1.1rem; }
.guide-hero-title, .guide-hero--photo .guide-hero-title { color: var(--cream); font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -.03em; }
.guide-hero-lead, .guide-hero--photo .guide-hero-lead { color: #C9D5C4; font-size: 1.125rem; max-width: 54ch; margin-top: 1.25rem; }
.guide-reading-time, .guide-hero--photo .guide-reading-time { display: inline-block; margin-top: 1.5rem; padding: 0; background: none; color: #A9B8A6; font-size: .875rem; border: 0; }

/* Sommer- og vinterguiden: toppbildet er en egen <img> over artikkelen, og tittelen står i artikkelkolonnen.
   Bildet får samme innrammede form som de andre toppene; tittelen får mørk tekst på lys bakgrunn. */
.sommer-hero-img, .vinter-hero-img { width: calc(100% - 2 * clamp(1rem, 3vw, 1.5rem)); max-width: calc(var(--max-width) - 3rem); height: clamp(220px, 28vw, 380px); margin: clamp(1rem, 2vw, 1.5rem) auto 0; border-radius: var(--r-lg); }
.sommer-hero-img + .guide-layout, .vinter-hero-img + .guide-layout { padding-top: 1rem; }
/* Sommer- og vinterguiden (arbeidskopier fra c/lag-sesongguider.mjs): samme topp som de andre, men bildet er et ekte <img> i høyre kolonne */
.guide-hero--img::after { content: none; }
.guide-hero--img > .guide-hero-img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }.guide-article > .breadcrumb, .guide-article > .breadcrumb a { color: var(--mute); }
.guide-article > .guide-hero-title { color: var(--forest); }
.guide-article > .guide-hero-lead { color: var(--mute); }
.guide-article > .guide-reading-time { color: var(--mute); }
/* Rent dekorative farger tilpasses paletten. Farger med betydning (trafikklys, sol/skygge, vinterblått, pH-skala) beholdes. */
.fokus-kort { background: var(--forest-2); border-radius: var(--r-md); }
.maaned-boks { border-radius: var(--r-md); }
.maaned-boks--juni { background: var(--sage); color: var(--forest); }
.maaned-boks--juli { background: var(--forest-2); }
.maaned-boks--august { background: var(--sun); color: var(--forest); }

/* ---------- 7. Artikkel ---------- */
.guide-layout { gap: 3rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.guide-article { font-size: 1.125rem; line-height: 1.7; }
.guide-section { scroll-margin-top: 96px; }
.guide-section h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); letter-spacing: -.03em; color: var(--forest); line-height: 1.05; margin-bottom: 1.1rem; }
.guide-section h3 { font-family: var(--display); font-size: 1.3125rem; letter-spacing: -.02em; color: var(--forest); }
.guide-section a, .guide-step-card-body p a, .guide-article p a { font-weight: 600; color: var(--forest-2); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.guide-section a:hover, .guide-article p a:hover { background: var(--sun); color: var(--forest); }
.guide-tip { background: var(--sage); border-left: 3px solid var(--forest-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--forest); font-size: .9375rem; }

/* FAQ i artikkelen: svarene dempet, spørsmålene skilt med linjer */
#faq h3 { font-size: 1.3125rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
#faq h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
#faq p { color: var(--mute); }

/* Innholdsfortegnelse: en linje i margen */
.guide-toc { padding: 1.25rem 1.25rem 1.25rem 1.4rem; background: none; border: 0; border-left: 2px solid var(--hairline); border-radius: 0; box-shadow: none; }
.guide-toc h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mute); }
.guide-toc a { position: relative; padding: .4rem 0; font-size: .9375rem; color: var(--mute); background: none; border-radius: 0; }
.guide-toc a:hover { color: var(--forest); background: none; }
.guide-toc a.is-active { color: var(--forest); font-weight: 700; background: none; }
.guide-toc a.is-active::before { content: ""; position: absolute; left: calc(-1.4rem - 2px); top: .35rem; bottom: .35rem; width: 2px; background: var(--forest); }
.guide-toc-mobile a { border-radius: 999px; background: var(--card); border: 1px solid var(--hairline); color: var(--ink); }
.guide-toc-mobile a.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* Steg (mose-artikkelens stil) */
.step-heading { display: flex; align-items: center; gap: .85rem; margin-top: 2.25rem; padding: 1.75rem 0 0; border-top: 1px solid var(--hairline); background: none; border-radius: 0; }
h2 + .step-heading { margin-top: 1.25rem; padding-top: 0; border-top: 0; }
.step-number { flex-shrink: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sun); color: var(--forest); font-family: var(--display); font-weight: 700; font-size: 1rem; }
.step-heading h3 { font-size: 1.375rem; color: var(--forest); }

/* Stegkort med bilde (vårguiden m.fl.) */
.guide-step-card { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hairline); box-shadow: none; }
.guide-step-img { border-radius: 0; height: 240px; }
.guide-step-card-body { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.guide-step-circle { width: 2.25rem; height: 2.25rem; background: var(--sun); color: var(--forest); font-family: var(--display); }
.guide-step-header h2 { font-family: var(--display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; color: var(--forest); }
.guide-step-card-body p, .guide-step-card-body h3 { color: var(--ink); }
.guide-step-card-body h3 { font-family: var(--display); font-size: 1.0625rem; color: var(--forest); }

/* Tidslinje (årshjul i guidene) */
.guide-timeline-wrap { background: var(--card); border-block: 1px solid var(--hairline); }
.guide-timeline-dot { background: var(--card); border-color: var(--forest-2); }
.guide-timeline-item--active .guide-timeline-dot { background: var(--sun); border-color: var(--forest); }
.guide-timeline-line { background: var(--hairline); }
.guide-timeline-month { font-family: var(--display); color: var(--forest); }

/* Årsakskort (mose) */
.cause-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.cause-card { grid-column: auto !important; max-width: none !important; margin: 0 !important; text-align: left !important; align-items: flex-start !important; }
.cause-card { padding: 1rem; border-radius: var(--r-md) !important; background: var(--card) !important; border: 1px solid var(--hairline) !important; box-shadow: none !important; }
.cause-card svg [stroke] { stroke: var(--forest-2); }
.cause-card-label { font-weight: 600; color: var(--forest); }

/* Tabell */
.guide-table-wrap { border-radius: var(--r-md); border: 1px solid var(--hairline); box-shadow: none; background: var(--card); }
.guide-table th { background: var(--sage); color: var(--forest); font-size: .8125rem; font-weight: 700; }
.guide-table tbody tr:nth-child(odd) td, .guide-table tbody tr:nth-child(even) td { background: var(--card); }
.guide-table td { border-bottom: 1px solid var(--hairline); }
.guide-table td:first-child { font-weight: 600; }

/* Les også: ren liste */
.guide-related-title { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; text-transform: none; color: var(--forest); }
.guide-related-links { gap: 0; }
.guide-related-link { padding: .95rem 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none; font-weight: 600; color: var(--forest); }
.guide-related-link:last-child { border-bottom: 1px solid var(--hairline); }
.guide-related-link:hover { background: none; color: var(--forest-2); transform: none; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.guide-related-link span { opacity: 1; transition: transform .2s; }
.guide-related-link:hover span { transform: rotate(-45deg); }

/* ---------- 8. Bunntekst ---------- */
.site-footer { background: var(--forest); color: #BFCDBA; }
.footer-tagline { display: none; } /* Fjernes fra HTML ved implementering (godkjent) */
.footer-nav h3, .footer-nav-col h3 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sun); }
.footer-nav a { color: #BFCDBA; }
.footer-nav a:hover { color: #fff; }
.footer-social { border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: .5rem 1.05rem; color: #BFCDBA; }
.footer-social:hover { background: var(--cream); color: var(--forest); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); color: #8FA08D; }

/* ---------- 8b. Kalkulator og plenkalender (overført fra skissen c/stil.css, samme HTML som dagens sider) ---------- */
/* ---------- Kalkulator (samme HTML som dagens kalkulator.html) ---------- */
.main-content { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.main-content > .container:has(> .calc-card) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.calc-card { grid-column: 1; grid-row: 1; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.calc-tip-box { grid-column: 1; grid-row: 2; }
.results-section { grid-column: 2; grid-row: 1 / span 2; }
.kalk-section { grid-column: 1 / -1; max-width: 760px; }

.calc-step + .calc-step { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.calc-step-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-family: var(--display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; color: var(--forest); }
.calc-step-num { flex-shrink: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); color: var(--forest); font-size: .9375rem; font-weight: 700; }

/* Valg av kategori: kort som kan krysses av */
.calc-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.calc-option { position: relative; }
.calc-option input, .radio-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-option label { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--cream); font-weight: 600; color: var(--forest); cursor: pointer; transition: border-color .15s, background .15s; }
.calc-option label:hover { border-color: var(--forest-2); }
.calc-option-icon { width: 26px; height: 26px; color: var(--forest-2); }
.calc-option label::after { content: ""; position: absolute; top: .75rem; right: .75rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); }
.calc-option input:checked + label { border-color: var(--forest); background: var(--sage); }
.calc-option input:checked + label::after { border-color: var(--forest); background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23F4C430' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.calc-option input:focus-visible + label, .radio-option input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Areal og måned */
.input-wrap { display: flex; max-width: 300px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--cream); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(244, 196, 48, .4); }
.calc-input { flex: 1; min-width: 0; border: 0; background: none; padding: .7rem 1rem; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--forest); -moz-appearance: textfield; }
.calc-input:focus-visible { outline: none; }
.calc-input::-webkit-outer-spin-button, .calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input::placeholder { color: var(--mute); font-weight: 500; opacity: 1; }
.input-unit { display: grid; place-items: center; padding: 0 1.1rem; border-left: 1px solid var(--line); font-weight: 600; color: var(--mute); }
.calc-error { display: none; margin-top: .6rem; font-size: .9375rem; font-weight: 600; color: #9B2C1F; }
.calc-error.is-visible { display: block; }
.calc-select { appearance: none; -webkit-appearance: none; min-width: 240px; padding: .8rem 2.75rem .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2314301F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1rem center / 16px no-repeat; font: inherit; font-weight: 600; color: var(--forest); cursor: pointer; }
.calc-select:focus-visible { border-color: var(--forest); }

/* Tilleggsspørsmål som dukker opp etter valg */
.calc-context { display: none; margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); }
.calc-context.is-visible { display: block; }
.calc-context-label { margin-bottom: .7rem; font-size: .9375rem; font-weight: 700; color: var(--forest); }
.radio-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-option { position: relative; }
.radio-option label { display: block; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.radio-option label:hover { border-color: var(--forest-2); }
.radio-option input:checked + label { border-color: var(--forest); background: var(--forest); color: var(--cream); }

.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.btn-beregn { border: 0; border-radius: 999px; padding: .9rem 2.25rem; background: var(--sun); color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s; }
.btn-beregn:hover { background: #E9B71E; }
.calc-disclaimer { font-size: .875rem; color: var(--mute); }
.calc-tip-box { margin-top: .75rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--sage); color: var(--forest); font-size: .9375rem; line-height: 1.55; }
.calc-tip-box a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Resultat: mørkt panel ved siden av skjemaet (lys inndata, mørkt svar, som plenvarselet) */
.results-section { display: grid; place-items: center; min-height: 320px; padding: 2rem; border: 1.5px dashed rgba(21, 32, 26, .22); border-radius: var(--r-lg); text-align: center; color: var(--mute); font-size: .9375rem; }
.results-section:not(.is-visible)::before { content: "Velg hva du vil beregne, fyll inn arealet og trykk «Beregn». Resultatet vises her."; max-width: 26ch; }
.results-section.is-visible { display: block; min-height: 0; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 0; background: var(--forest); color: var(--cream); text-align: left; }
.results-title { text-align: left; font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 1rem; }
.result-alert { margin-bottom: .6rem; padding: .8rem 1rem; border-radius: var(--r-sm); border-left: 3px solid var(--sun); background: rgba(244, 196, 48, .12); font-size: .9375rem; line-height: 1.5; }
.results-grid { display: grid; gap: .6rem; }
.result-card { padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--card); color: var(--ink); }
.result-card-name { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: .75rem; font-weight: 700; }
.result-card-product { margin-top: .6rem; font-size: .875rem; color: var(--mute); }
.result-card-amount { margin-top: .15rem; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--forest); font-variant-numeric: tabular-nums; }
.result-card-range { margin-top: .2rem; font-size: .8125rem; color: var(--mute); }
.result-card-bags { display: inline-block; margin-top: .8rem; padding: .3rem .8rem; border-radius: 999px; background: var(--sun); color: var(--forest); font-size: .9375rem; font-weight: 700; }
.result-card-tip { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; }
.result-card--warning .result-card-amount { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; color: var(--ink); }

/* Forklaring, tabell, FAQ og lenker under kalkulatoren */
.kalk-section { margin-top: clamp(3rem, 6vw, 4.5rem); font-size: 1.0625rem; line-height: 1.7; }
.kalk-section-title { font-size: clamp(1.75rem, 2.8vw, 2.375rem); letter-spacing: -.03em; color: var(--forest); margin-bottom: 1rem; }
.kalk-section-lead { font-size: 1.1875rem; color: var(--forest); }
.kalk-section > p + p { margin-top: 1rem; }
.guide-table-wrap { margin-top: 1.5rem; overflow-x: auto; }
.kalk-section .faq-list { padding: 0; border: 0; border-radius: 0; background: none; }
.kalk-section .faq-list h3 { font-size: 1.3125rem; letter-spacing: -.02em; line-height: 1.2; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.kalk-section .faq-list h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.kalk-section .faq-list p { color: var(--mute); margin-top: .5rem; }
.kalk-section .guide-related { margin-top: 0; }

/* ---------- Plenkalender (samme HTML som dagens kalender.html) ---------- */
.calendar-section { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.calendar-wheel-wrap { width: 100%; max-width: 440px; margin-inline: auto; }
#arshjul-svg { width: 100%; height: auto; overflow: visible; }
.ah-seg { cursor: pointer; outline: none; }
.ah-seg .ah-fill { transition: fill .15s; }
.ah-seg:not(.is-selected):hover .ah-fill { fill: #CFDBBB; }
.ah-seg:focus-visible .ah-fill { stroke: var(--sun); stroke-width: 4; }

/* Sesongkortet: samme stil som listene ellers på siden (ingen sesongfarge) */
.ap-card { position: relative; }
.ap-head { display: flex; align-items: flex-start; gap: 1rem; }
.ap-head > div { flex: 1; }
.ap-name { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -.03em; color: var(--forest); }
.ap-range { margin-top: .25rem; font-size: .9375rem; color: var(--mute); }
.ap-now-badge { flex-shrink: 0; padding: .25rem .75rem; border-radius: 999px; background: var(--sun); color: var(--forest); font-size: .8125rem; font-weight: 700; }
.ap-list { margin-top: 1.25rem; counter-reset: ap; border-top: 1px solid var(--line); }
.ap-list li { counter-increment: ap; border-bottom: 1px solid var(--line); }
.ap-link { display: flex; align-items: baseline; gap: .85rem; padding: .7rem 0; font-weight: 500; line-height: 1.4; color: var(--ink); transition: color .15s; }
.ap-link::before { content: counter(ap); flex-shrink: 0; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sage); font-size: .75rem; font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; align-self: center; }
.ap-link { align-items: center; }
.ap-link::after { content: "→"; margin-left: auto; padding-left: .75rem; color: var(--mute); transition: transform .2s, color .2s; }
.ap-link:hover { color: var(--forest); }
.ap-link:hover::after { color: var(--forest); transform: translateX(3px); }
.ap-foot { margin-top: 1.25rem; }
.ap-foot .btn-outline { display: inline-flex; margin-top: 0; background: none; padding: .6rem 1.2rem; border: 1.5px solid var(--forest); border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--forest); transition: background .2s, color .2s; }
.ap-foot .btn-outline:hover { background: var(--forest); color: var(--cream); }

/* Sesongtekstene under hjulet */
body:has(#arshjul) .section { padding-top: clamp(3rem, 6vw, 4.5rem); }
body:has(#arshjul) .guide-section h3 { font-size: 1.3125rem; letter-spacing: -.02em; line-height: 1.2; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
body:has(#arshjul) .guide-section h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
body:has(#arshjul) .guide-section h3 + p { color: var(--mute); margin-top: .5rem; }
body:has(#arshjul) .guide-section > p:last-child > a:only-child { font-weight: 700; }


/* Nøytraliserer dagens panel- og kalkulatorstiler (style.css og kalkulator.html sin <style>) der de krasjer med C */
.ap-card { background: none; border-top: 0; border-radius: 0; box-shadow: none; overflow: visible; animation: none; }
.ap-head { padding: 0; border-bottom: 0; }
.ap-list { display: block; padding: 0; gap: 0; }
.ap-list li { display: block; }
.ap-list li::before { content: none; display: none; }
.ap-link { font-size: 1rem; }
.ap-link:hover { text-decoration: none; }
.ap-foot { padding: 0; }
.ap-foot .btn { width: auto; justify-content: flex-start; }
.ap-now-badge { margin-left: auto; color: var(--forest); text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.calc-step-label { padding-bottom: 0; border-bottom: 0; }
.calc-select { width: auto; }

@media (max-width: 1000px) {
  /* Kalkulator: én kolonne; resultatet kommer under skjemaet og vises først etter «Beregn» */
  .main-content > .container:has(> .calc-card) { display: block; }
  .results-section { margin-top: 1rem; }
  .results-section:not(.is-visible) { display: none; }
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
  .calendar-wheel-wrap { max-width: 380px; }
}
@media (max-width: 760px) {
  .calc-options { gap: .45rem; }
  .calc-option label { padding: .85rem .8rem; font-size: .9375rem; }
  .calc-option label::after { top: .6rem; right: .6rem; width: 1.1rem; height: 1.1rem; }
  .input-wrap { max-width: none; }
  .calc-select { width: 100%; min-width: 0; }
  .btn-beregn { width: 100%; }
}

/* ---------- 8c. Guidesiden (guider.html) og guidekort med ikon ---------- */
.section:has(.guide-filter) .section-header { text-align: left; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: none; }
.section-header h1, .section-header h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.03em; line-height: 1; color: var(--forest); }
.section-header p { color: var(--mute); margin-top: .75rem; }
.section:has(.guide-filter) .section-header p { max-width: 62ch; margin-inline: 0; }
.guide-filter { justify-content: flex-start; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.guide-filter-btn { padding: .55rem 1.1rem; border: 1.5px solid var(--hairline); border-radius: 999px; background: var(--card); color: var(--ink); font-family: var(--sans); font-size: .9375rem; font-weight: 500; }
.guide-filter-btn:hover { border-color: var(--forest-2); background: var(--card); color: var(--forest); }
.guide-filter-btn.is-active { border-color: var(--forest); background: var(--forest); color: var(--cream); }
.guide-cards { gap: 1rem; }
.guide-card { border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--card); box-shadow: none; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: var(--forest); box-shadow: none; transform: translateY(-2px); }
.guide-card-link { padding: 1.35rem 1.35rem 1.25rem; }
.guide-card-icon svg circle:first-child { fill: var(--sage); opacity: 1; }
.guide-card-title { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--forest); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.guide-card:hover .guide-card-title { text-decoration-color: var(--sun); }
.guide-card-text { color: var(--mute); font-size: .9375rem; }
/* Pilen var en blokk over hele kortbredden: ved vipping svingte hele blokken rundt midten. Nå er den bare så bred som seg selv,
   og står nederst i kortet så pilene på samme rad står på linje. */
.guide-card-link { display: flex; flex-direction: column; height: 100%; }
.guide-card-arrow { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 1rem; color: var(--forest); transform-origin: center; transition: transform .2s; }
.guide-card:hover .guide-card-arrow { transform: rotate(-45deg); }

/* Ugressgalleriet: kolonnene kan krympe, så galleriet ikke blir bredere enn skjermen på 320 px */
.ugress-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) { .ugress-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ugress-gallery > a { min-width: 0; }
.ugress-gallery > a p, .ugress-gallery > a span { overflow-wrap: anywhere; } /* retter også en eksisterende feil på dagens side (320 px) */
/* Tre-kolonners bokser satt opp med style= i HTML (f.eks. «Lys / Fukt / …» i Ugress i plen): kolonnene får lov til å krympe */
.guide-article div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.guide-article div[style*="grid-template-columns: repeat(3, 1fr)"] > * { min-width: 0; overflow-wrap: anywhere; }

/* ---------- 8e. Fast skriftskala ----------
   Dagens stilark og sidenes egne stiler bruker mange nesten like størrelser (0,8 / 0,88 / 0,9 / 0,92 rem …).
   Her samles alt på én skala, så hver størrelse har én rolle:
   13 px etiketter/metadata · 15 px sekundær tekst · 16 px knapper/felt/meny · 17 px brødtekst ·
   19 px ingress · 21 px små overskrifter · 38/60 px seksjons-/sidetittel. */
:root { --fs-meta: .8125rem; --fs-sek: .9375rem; --fs-ui: 1rem; --fs-brod: 1.0625rem; --fs-ingress: 1.1875rem; --fs-h3: 1.3125rem; }
.breadcrumb, .breadcrumb a, .breadcrumb span, .guide-hero .breadcrumb, .guide-hero .breadcrumb a { font-size: var(--fs-meta); }
.calc-disclaimer { font-size: var(--fs-meta); font-style: normal; }
.guide-table, .guide-table td { font-size: var(--fs-sek); }
.guide-table th { font-size: var(--fs-meta); }
.calc-option label, .input-unit, .radio-option label, .calc-context-label { font-size: var(--fs-ui); }
.calc-tip-box, .guide-tip, .guide-card-text, .result-alert, .result-card-tip { font-size: var(--fs-sek); }
.kalk-section .faq-list p, #faq p, .guide-section p, .guide-step-card-body p, .guide-step-card-body li, .guide-section li { font-size: var(--fs-brod); }
.guide-related-link { font-size: var(--fs-brod); }
.footer-nav a, .footer-nav li a, .footer-social { font-size: var(--fs-sek); }
.footer-bottom, .footer-bottom p { font-size: var(--fs-meta); }
.footer-nav h3, .footer-nav-col h3, .guide-toc h2 { font-size: var(--fs-meta); }
.guide-toc a { font-size: var(--fs-sek); }
.guide-hero-lead, .guide-hero--photo .guide-hero-lead { font-size: var(--fs-ingress); }
.kalk-section-lead { font-size: var(--fs-ingress); }
.guide-related-title, .step-heading h3, .guide-step-header h2, .guide-section h3 { font-size: var(--fs-h3); }
.cause-card-label { font-size: var(--fs-sek); }
.guide-reading-time, .guide-hero--photo .guide-reading-time, .guide-hero-badge, .guide-hero--photo .guide-hero-badge { font-size: var(--fs-meta); }
.guide-timeline-month, .guide-timeline-tasks { font-size: var(--fs-meta); }
.section-header p { font-size: var(--fs-brod); }
.guide-card-title { font-size: var(--fs-h3); }
/* Unntak med vilje: tekst inne i SVG-tegninger (kalenderhjulet, ikoner) skaleres med figuren og følger ikke tekstskalaen. */

/* ---------- 8d. Nyhetsbrev (MailerLite) og 404 ----------
   MailerLite-koden røres ikke. Skjemaet styles med samme ID-selektorer som MailerLite bruker (krever !important). */
.newsletter-form-box { background: var(--card); border: 1px solid var(--hairline); border-left: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: none; }
.newsletter-title { color: var(--forest); font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; line-height: 1.05; }
html body #mlb2-42359798.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input { background-color: var(--cream) !important; color: var(--ink) !important; border: 1.5px solid var(--hairline) !important; border-radius: 999px !important; padding: .8rem 1.1rem !important; font-family: var(--sans) !important; font-size: 1rem !important; }
html body #mlb2-42359798.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus { border-color: var(--forest) !important; box-shadow: 0 0 0 4px rgba(244, 196, 48, .4) !important; }
html body #mlb2-42359798.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button { background-color: var(--sun) !important; color: var(--forest) !important; border-radius: 999px !important; font-family: var(--sans) !important; font-weight: 700 !important; padding: .85rem 1.5rem !important; }
html body #mlb2-42359798.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover { background-color: #E9B71E !important; }
/* 404: dekorativ emoji skjules (står fortsatt i HTML-en, ingen innholdsendring) */
main div[aria-hidden="true"][style*="font-size: 4rem"] { display: none; }

/* ---------- 8f. Knappestandard ----------
   Tre typer, likt over hele nettstedet. Alle er helt runde, bruker Figtree og har 1,5 px kant.
   Primær (48 px, gul):        hovedhandling – Vis vær, Beregn, Meld meg på, Til forsiden, Les guidene
   Sekundær (48 px, kantlinje): alternativ handling – Se alle guider, Høstguide for plenen
   Liten (40 px, kantlinje; valgt = fylt): filtre, valg i kalkulatoren, Nyhetsbrev i menyen, Instagram */
:root { --knapp-h: 3rem; --knapp-h-liten: 2.5rem; --knapp-gul-hover: #E9B71E; }
.btn, .btn-beregn, .ap-foot .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--knapp-h); padding: 0 1.5rem; margin-top: 0;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: var(--fs-ui); font-weight: 700; line-height: 1.1; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary, .btn-beregn { background: var(--sun); border-color: var(--sun); color: var(--forest); }
.btn-primary:hover, .btn-beregn:hover { background: var(--knapp-gul-hover); border-color: var(--knapp-gul-hover); color: var(--forest); }
.btn-outline, .ap-foot .btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); font-weight: 600; }
.btn-outline:hover, .ap-foot .btn-outline:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.weather-location-form .btn-primary { min-height: var(--knapp-h); padding: 0 1.5rem; border-radius: 999px; color: var(--forest); }
.weather-location-form .btn-primary:hover { background: var(--knapp-gul-hover); }
html body #mlb2-42359798.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button { min-height: var(--knapp-h) !important; padding: 0 1.5rem !important; font-size: var(--fs-ui) !important; line-height: 1.1 !important; border: 1.5px solid var(--sun) !important; }

.guide-filter-btn, .radio-option label, .footer-social, .guide-toc-mobile a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--knapp-h-liten); padding: 0 1.1rem;
  border: 1.5px solid var(--forest); border-radius: 999px; background: transparent; color: var(--forest);
  font-family: var(--sans); font-size: var(--fs-sek); font-weight: 600; line-height: 1.1;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.guide-filter-btn:hover, .radio-option label:hover { background: var(--card); border-color: var(--forest); color: var(--forest); }
.guide-toc-mobile a { flex-shrink: 0; white-space: nowrap; background: var(--card); }
.guide-toc-mobile a:hover { background: var(--card); }
.guide-filter-btn.is-active, .radio-option input:checked + label, .guide-toc-mobile a.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.footer-social { border-color: rgba(255, 255, 255, .35); color: #BFCDBA; }
.footer-social:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }
@media (min-width: 641px) {
  .nav-menu > li:last-child > a { display: inline-flex; align-items: center; min-height: var(--knapp-h-liten); padding: 0 1.1rem; border: 1.5px solid var(--forest); border-radius: 999px; font-size: var(--fs-sek); font-weight: 600; color: var(--forest); }
}
@media (max-width: 760px) {
  .btn-beregn { width: 100%; }
}
/* Framdriftsprikker (Anlegge plen): samme logikk som knappene – gjeldende fylt, ferdig salvie, kommende lys med kant */
.steg-dot { background: var(--card); color: var(--forest); border: 1.5px solid var(--hairline); font-weight: 700; }
.steg-dot:hover { background: var(--sage); color: var(--forest); }
.steg-dot.is-done { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.steg-dot.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.steg-line { background: var(--hairline); }
.steg-line.is-done { background: var(--sage); }

/* ---------- 8g. Forsiden (arbeidskopi c/sider/index.html) ---------- */
/* Topp: avrundet bildeflate med tittel, knapp og tillitsstripe nederst */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: left; width: calc(100% - 2 * clamp(1rem, 3vw, 1.5rem)); max-width: calc(var(--max-width) - 3rem); min-height: clamp(420px, 60vh, 580px); margin: clamp(.5rem, 1.5vw, 1rem) auto 0; padding: 0; border-radius: var(--r-lg); background: var(--forest); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 13, 0) 35%, rgba(8, 22, 13, .72) 100%); }
.hero-bg-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.hero-inner { width: 100%; max-width: none; margin: 0; padding: clamp(1.5rem, 4vw, 3.25rem); }
.hero-content { max-width: none; text-align: left; }
.hero-title { font-family: var(--display); font-size: clamp(2.75rem, 6.2vw, 5.75rem); font-weight: 600; line-height: .95; letter-spacing: -.035em; color: #fff; max-width: 12ch; text-shadow: none; }
.hero-actions { margin-top: 1.5rem; justify-content: flex-start; }
.hero-actions .btn-primary { padding-right: .4rem; width: auto; }
.hero-actions .btn-primary::after { content: "→"; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-left: .35rem; border-radius: 50%; background: var(--forest); color: var(--sun); transition: transform .2s; }
.hero-actions .btn-primary:hover::after { transform: rotate(-45deg); }
.trust-strip { width: 100%; margin: 0; padding: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); background: rgba(8, 22, 13, .35); backdrop-filter: blur(6px); }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem 1.5rem; max-width: none; width: 100%; margin: 0; padding: 1rem clamp(1.5rem, 4vw, 3.25rem); }
.trust-item { display: flex; align-items: center; gap: .5rem; padding: 0; border: 0; }
.trust-item + .trust-item, .trust-strip .trust-item { border: 0 !important; padding: 0 !important; }
.trust-icon { display: none; }
.trust-item::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: var(--sun); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.trust-text, .trust-text strong { font-size: var(--fs-sek); font-weight: 500; color: rgba(255, 255, 255, .92); }

/* Plenvarsel: mørkt, kompakt panel. Introen til venstre, søk eller svar til høyre. All logikk og alle id-er er uendret. */
.weather-section { padding: clamp(2rem, 4vw, 3rem) 0 0; background: none; }
.weather-section > .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.75rem, 3.5vw, 3.5rem); align-items: start; width: calc(100% - 2 * clamp(1rem, 3vw, 1.5rem)); max-width: calc(var(--max-width) - 3rem); padding: clamp(1.25rem, 2.8vw, 2.25rem); border-radius: var(--r-lg); background: var(--forest); color: var(--cream); }
.weather-section .section-header { margin: 0; text-align: left; }
.vw-pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--sage); font-size: var(--fs-meta); font-weight: 600; }
.weather-section .section-header h2 { margin-top: .9rem; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; color: var(--cream); }
.weather-section-inner { margin: 0; max-width: none; background: none; border-radius: 0; box-shadow: none; overflow: visible; } /* var hvit boks på 520 px */
.weather-widget { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--cream); }
.weather-prompt { align-items: stretch; text-align: left; padding: 0; }
.weather-prompt-icon, .weather-emoji, .tip-banner-icon { display: none !important; } /* dekorative emojier; teksten står fortsatt i HTML-en */
.weather-prompt-desc { margin: 0 0 .75rem; color: #BFCDBA; font-size: var(--fs-ui); }
.weather-location-form { display: flex; gap: 0; max-width: 560px; padding: .35rem; border-radius: 999px; background: var(--card); flex-direction: row; }
.weather-location-input { flex: 1; min-width: 0; height: auto; padding: .7rem 1.2rem; border: 0; border-radius: 999px; background: none; color: var(--ink); font-family: var(--sans); font-size: var(--fs-ui); box-shadow: none; }
.weather-location-input::placeholder { color: var(--mute); }
.weather-location-input:focus { outline: none; box-shadow: none; }
.weather-location-form:focus-within { box-shadow: 0 0 0 4px rgba(244, 196, 48, .45); }
.weather-location-form .btn-primary { flex-shrink: 0; width: auto; }
.weather-loading, .weather-error { color: #BFCDBA; text-align: left; padding: 0; }
.weather-content { gap: 0; }
.weather-summary { display: block; padding: 0; border: 0; background: none; }
.weather-summary-body { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; grid-template-rows: auto 1fr; column-gap: .5rem; row-gap: 0; }
.weather-location-name { grid-column: 1; grid-row: 1; margin: 0; text-transform: none; letter-spacing: 0; padding: .85rem 1rem 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--sun); color: var(--forest); font-size: var(--fs-meta); font-weight: 600; }
.weather-temp-line { grid-column: 1; grid-row: 2; margin: 0; line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; padding: .5rem 1rem .85rem; border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--sun); color: var(--forest); }
.weather-temp { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.625rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--forest); }
.weather-desc { font-size: var(--fs-meta); font-weight: 600; color: var(--forest); }
.weather-meta { display: contents; }
.vstat, .weather-soil-temp { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-between; gap: .9rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--forest-2); margin: 0; }
.weather-soil-temp[hidden] { display: none; }
.vstat-navn { font-size: var(--fs-meta); color: #BFCDBA; }
.vstat-verdi { font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--cream); font-variant-numeric: tabular-nums; }
.vstat-verdi small { font-family: var(--sans); font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0; color: #BFCDBA; }
.weather-advice-label { margin: 1.1rem 0 .25rem; font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0; text-transform: none; color: #BFCDBA; }
.weather-advice-list { gap: 0; }
.weather-advice-item { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: 0; background: none; color: var(--cream); font-size: var(--fs-ui); font-weight: 500; line-height: 1.4; }
.weather-advice-item:last-child { border-bottom: 0; }
.weather-advice-icon { flex-shrink: 0; min-width: 5rem; padding: .28rem .65rem; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: .75rem; font-weight: 700; text-align: center; color: var(--cream); }
.weather-advice-item--action .weather-advice-icon { background: var(--sun); border-color: var(--sun); color: var(--forest); }
.weather-advice-item--wait .weather-advice-icon { border-color: var(--sun); color: var(--sun); }
.weather-footer { flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #A9B8A6; font-size: var(--fs-meta); }
.weather-footer a, .weather-refresh-btn, .weather-change-btn { display: inline-block; padding-block: .35rem; color: #A9B8A6; font-size: var(--fs-meta); text-decoration: underline; text-underline-offset: 3px; }
.weather-footer a:hover, .weather-refresh-btn:hover, .weather-change-btn:hover { color: #fff; }
.weather-refresh-btn[hidden], .weather-change-btn[hidden] { display: none !important; } /* skjult til et sted er valgt, som i dag */

/* Populære guider: kort med bilde øverst. Lenken ligger på tittelen, men hele kortet er klikkbart. */
.guides.section { padding-block: clamp(4rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); background: none; }
.guides .section-header, .faq-section .section-header { text-align: left; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); max-width: none; }
.guides .section-header h2, .faq-section .section-header h2 { font-size: var(--d2, clamp(2rem, 3.6vw, 3.25rem)); letter-spacing: -.03em; line-height: 1; color: var(--forest); }
.guides .section-header p { margin: .75rem 0 0; max-width: 62ch; }
.guide-card--bilde { position: relative; overflow: hidden; }
.guide-card--bilde .guide-card-link { padding: 0; }
.guide-card--bilde .guide-card-icon, .guide-card--bilde .guide-card-arrow { display: none; }
.guide-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card--bilde .guide-card-body { padding: 0 1.25rem 1.35rem; }
.guide-card-meta { display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0 0; /* ligger inne i kortteksten, som har egen marg */ font-size: var(--fs-meta); color: var(--mute); }
.guide-card-kat { padding: .22rem .65rem; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: .75rem; font-weight: 600; }
.guide-card--bilde .guide-card-title { margin-top: .5rem; }
.guide-card--bilde .guide-card-title a { color: inherit; text-decoration: inherit; }
.guide-card--bilde .guide-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* hele kortet klikkbart */
.guide-card--bilde .guide-card-title a:focus-visible { outline: none; }
.guide-card--bilde:has(.guide-card-title a:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }
.guides-cta { display: flex; justify-content: center; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.guides-cta .btn-outline::after { content: "→"; margin-left: .15rem; transition: transform .2s; }
.guides-cta .btn-outline:hover::after { transform: rotate(-45deg); }

/* Spørsmål: overskrift til venstre, én samlet liste til høyre. <details> åpner og lukker uten skript. */
.faq-section { padding-top: clamp(3rem, 6vw, 5rem); background: none; }
.faq-section > .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq-section .faq-list { max-width: none; margin: 0; padding-inline: clamp(1.25rem, 2.4vw, 1.75rem); border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card); }
.faq-section .faq-item { padding: 0; border: 0; border-radius: 0; background: none; }
.faq-section .faq-item + .faq-item { border-top: 1px solid var(--hairline); }
.faq-section .faq-question { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.2rem 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--forest); }
.faq-section .faq-question::-webkit-details-marker { display: none; }
.faq-section .faq-question i { position: relative; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sage); transition: background .2s, transform .2s; }
.faq-section .faq-question i::before, .faq-section .faq-question i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; background: var(--forest); }
.faq-section .faq-question i::after { transform: rotate(90deg); }
.faq-section .faq-item[open] .faq-question i { background: var(--sun); transform: rotate(45deg); }
.faq-section .faq-answer { margin: 0; padding: 0 0 1.4rem; color: var(--mute); font-size: var(--fs-brod); max-width: 62ch; }

/* Sesongtips: kort som ligger halvt over bunnteksten */
.tip-banner { position: relative; z-index: 2; padding: clamp(4rem, 8vw, 6.5rem) 0 0; margin-bottom: -2.25rem; background: none; border: 0; }
.tip-banner-inner { display: flex; align-items: center; gap: 1.25rem; width: calc(100% - 2 * clamp(1rem, 3vw, 1.5rem)); max-width: calc(var(--max-width) - 3rem); padding: 1rem clamp(1.25rem, 2.8vw, 2.25rem); border-radius: var(--r-lg); background: var(--sage); color: var(--forest); box-shadow: 0 14px 32px -14px rgba(8, 22, 13, .45); text-align: left; }
.tip-banner-label { flex-shrink: 0; margin: 0; padding: .3rem .8rem; border-radius: 999px; background: var(--forest); color: var(--sun); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0; text-transform: none; }
.tip-banner-inner > div:not(.tip-banner-icon) { display: flex; align-items: center; gap: 1.25rem; }
.tip-banner-text { margin: 0; font-size: var(--fs-brod); font-weight: 600; color: var(--forest); }
.tip-banner-text a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
body:has(.tip-banner) .site-footer { margin-top: 0; }
body:has(.tip-banner) .footer-inner { padding-top: calc(clamp(3rem, 6vw, 4.5rem) + 2.25rem); }

@media (max-width: 1000px) {
  .weather-section > .container, .faq-section > .container { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero { min-height: 460px; }
  .trust-strip-inner { grid-template-columns: 1fr 1fr; gap: .5rem 1rem; padding: .9rem 1.5rem; }
  .trust-text, .trust-text strong { font-size: .875rem; }
  .weather-summary-body { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; row-gap: 0; }
  .weather-location-name { grid-column: 1 / -1; grid-row: 1; }
  .weather-temp-line { grid-column: 1 / -1; grid-row: 2; margin-bottom: .5rem; }
  .vstat, .weather-soil-temp { grid-row: 3; padding: .75rem .85rem; gap: .5rem; }
  .weather-advice-item { align-items: flex-start; gap: .85rem; }
  .weather-advice-icon { min-width: 4.5rem; }
  .weather-location-form { max-width: none; }
  /* Guidekort på mobil: kompakt liste med lite bilde til venstre (som i skissen), så bildene ikke dominerer */
  .guide-cards:has(.guide-card--bilde) { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .guide-card--bilde .guide-card-link { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 1rem; }
  .guide-card--bilde .guide-card-img { grid-row: 1 / span 2; height: 100%; min-height: 104px; aspect-ratio: auto; }
  .guide-card--bilde .guide-card-body { padding: .8rem .9rem .85rem 0; }
  .guide-card--bilde .guide-card-meta { margin-top: 0; }
  .guide-card--bilde .guide-card-title { font-size: 1.1875rem; margin-top: .35rem; }
  .guide-card--bilde .guide-card-text { font-size: .875rem; margin-top: .25rem; }
  .faq-section .faq-question { font-size: var(--fs-brod); }
  .tip-banner-inner, .tip-banner-inner > div:not(.tip-banner-icon) { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ---------- 8h. Søkeresultater og cookie-banner ----------
   Begge lages av skript (søket) eller står skjult i HTML (banneret). Bare utseendet endres. Id-er, klasser og logikk er uendret. */
/* Søk, desktop: feltet får en kremflate bak seg, så menyen ikke synes gjennom når det er åpent */
.nav-search-box.is-open { width: 340px; padding: 6px 2px 6px 14px; background: var(--cream); }
/* Menyen skjules mens søket er åpent, i stedet for å bli kuttet midt i et ord bak feltet */
@media (min-width: 641px) {
  .nav-menu { transition: opacity .15s, visibility .15s; }
  .nav:has(.nav-search-box.is-open) .nav-menu { opacity: 0; visibility: hidden; }
}
.nav-search-input { height: 44px; padding: 0 1.1rem; font-size: var(--fs-ui); color: var(--ink); box-shadow: none; }
.nav-search-input:focus { border-color: var(--forest); }
.nav-search-input::placeholder { color: var(--mute); opacity: 1; }
/* Resultatene: samme kort som Verktøy-menyen (kremkort, myk skygge, avrundede rader) */
.nav-search-results { top: calc(100% + 2px); width: 360px; padding: .45rem; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--card); box-shadow: 0 18px 40px -18px rgba(20, 48, 31, .35); }
.nav-search-result-item { padding: .7rem .85rem; border-bottom: 0; border-radius: var(--r-sm); }
.nav-search-result-item + .nav-search-result-item { margin-top: 2px; }
.nav-search-result-item:hover, .nav-search-result-item:focus-visible { background: var(--cream); }
.nav-search-result-title { font-size: var(--fs-ui); font-weight: 600; line-height: 1.3; color: var(--forest); }
.nav-search-result-desc { margin-top: .2rem; font-size: var(--fs-meta); line-height: 1.45; color: var(--mute); }
.nav-search-no-results { margin: 0; padding: .7rem .85rem; font-size: var(--fs-sek); color: var(--mute); }

/* Cookie-banner: flytende kort nederst. Godta = primærknapp, Avvis = sekundærknapp (begge like store og like lette å trykke). */
.cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; max-width: 1040px; margin: 0 auto; padding: 1rem 1rem 1rem 1.5rem; gap: 1rem 1.5rem;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: 0 18px 40px -12px rgba(20, 48, 31, .35); font-size: var(--fs-sek); }
.cookie-banner-text { color: var(--ink); }
.cookie-banner-text a { color: var(--forest-2); text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cookie-banner-actions { gap: .6rem; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--knapp-h); min-width: 7rem; padding: 0 1.5rem;
  border: 1.5px solid var(--forest); border-radius: 999px; font-family: var(--sans); font-size: var(--fs-ui); font-weight: 700; line-height: 1.1; transition: background-color .15s, color .15s, border-color .15s; }
.cookie-btn--accept { background: var(--sun); border-color: var(--sun); color: var(--forest); }
.cookie-btn--accept:hover { background: var(--knapp-gul-hover); border-color: var(--knapp-gul-hover); }
.cookie-btn--reject { background: transparent; color: var(--forest); font-weight: 600; }
.cookie-btn--reject:hover { background: var(--forest); color: var(--cream); }

@media (max-width: 640px) {
  /* Søk, mobil: feltet under toppen som i dag, resultatene som et kort med sidemarg */
  .nav-search-box { top: 68px; border-bottom: 0; }
  .nav-search-box.is-open { width: 100%; padding: .5rem 1.25rem .75rem; background: var(--cream); }
  .nav-search-results { top: calc(68px + 64px); left: 1rem; right: 1rem; width: auto; border: 1px solid var(--hairline); border-radius: var(--r-md); }
  .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; padding: 1.1rem 1.1rem 1rem; }
  .cookie-btn { min-width: 0; }
}

/* ---------- 8i. Mobilkontroll (test/mobil.mjs) ----------
   Rettelser etter automatisk kontroll av alle sider på 320–430 px. */
/* Hoppmål som ikke er .guide-section (stegkortene i Anlegge plen, ugressgalleriet) havnet under toppmenyen */
main [id] { scroll-margin-top: 96px; }
/* Minste tekst er 13 px (--fs-meta). Disse lå på 10,9–12,5 px. */
.guide-card-kat, .guide-prereq-desc, .guide-img-figure figcaption, .guide-article figcaption, .ph-markør-tekst, .sesong-boks-mnd { font-size: var(--fs-meta); }
/* Faste skriftstørrelser satt med style= i HTML-en (0,68–0,78 rem). HTML-en endres ikke, så det må overstyres her. */
main [style*="font-size:0.6"], main [style*="font-size: 0.6"], main [style*="font-size:0.7"], main [style*="font-size: 0.7"], main [style*="font-size:0.8rem"], main [style*="font-size: 0.8rem"] { font-size: var(--fs-meta) !important; }
/* Trykkflater: lenkene i bunnteksten og brødsmulene var 18–22 px høye. Nå minst 24 px (WCAG 2.5.8), uten å flytte dem synlig. */
.footer-nav a { display: inline-block; padding-block: .2rem; }
.breadcrumb a { display: inline-block; padding-block: .15rem; }

/* ---------- 8j. Tilgjengelighet (implementering 12. nov) ---------- */
/* Hopp til innhold: usynlig til den får tastaturfokus (WCAG 2.4.1) */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .7rem 1.1rem; border-radius: var(--r-sm); background: var(--forest); color: var(--cream); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
/* Kalkulatoren: feilmeldingen står nå rett over Beregn-knappen, i en tydelig boks */
.calc-error.is-visible { margin: 1.75rem 0 -.75rem; padding: .75rem 1rem; border-radius: var(--r-sm); background: #FBEAE7; border-left: 3px solid #9B2C1F; }

/* ---------- 8k. Bilder (ytelse) ----------
   width/height i HTML gir nettleseren sideforholdet før bildet er lastet (ingen hopp i layout).
   :where gir null spesifisitet, så alle regler som setter høyde (klasser, style=) vinner fortsatt. */
:where(img[width][height]) { height: auto; }

/* ---------- 9. Mindre skjermer ---------- */
@media (max-width: 900px) {
  .guide-hero--photo { grid-template-columns: minmax(0, 1fr); }
  .guide-hero--photo::after { min-height: 0; height: clamp(200px, 44vw, 360px); }
  .guide-hero--img > .guide-hero-img { min-height: 0; height: clamp(200px, 44vw, 360px); }
}
@media (max-width: 760px) {
  .cause-grid { grid-template-columns: 1fr 1fr; }
  .cause-card:last-child { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .guide-article { font-size: 1.0625rem; }
  .guide-table th, .guide-table td { padding: .7rem; }
}
