/* ==== specifications v2 (owner 2026-11-10: «gjøre specs-siden finere og mer passende» / «er dette det beste vi kan tilby?») ====
   An open strip of key facts between two rules (no white box; up to eight facts: two rows of four on a wide screen), then the rest as a list with the label over the value; phones: the first four rows whole and one full-width row opens the rest.
   Loaded after the page's own rules; every selector starts with section.specs so it wins. specs-v2.js only keeps measures and ranges from breaking in the middle and counts the key facts (data-n). */
section.specs{background:var(--sand);padding:84px 0 92px}
section.specs .wrap>h2{font-size:clamp(1.7rem,3vw,2.3rem);line-height:1.1;margin:0 0 12px}
section.specs .sub{max-width:66ch;font-size:1rem;line-height:1.6;color:var(--ink-soft);margin:0 0 44px}
section.specs .spec-key{display:grid;grid-template-columns:repeat(auto-fit,minmax(176px,1fr));background:none;border:0;border-top:1px solid rgba(33,31,27,.30);border-bottom:1px solid rgba(33,31,27,.30);margin:0}
section.specs .spec-key .kcell{padding:28px 26px 30px;border-left:1px solid rgba(33,31,27,.14);min-width:0}
section.specs .spec-key .kcell:first-child{border-left:0;padding-left:0}
section.specs .spec-key .k{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);font-weight:600;margin:0 0 12px}
section.specs .spec-key .v{font-family:'Newsreader',Georgia,serif;font-size:1.5rem;line-height:1.18;letter-spacing:-.006em;color:var(--ink);font-weight:400;text-wrap:balance;hyphens:none;overflow-wrap:normal}
section.specs .spec-key .v.vl{font-size:1.25rem;line-height:1.25}
section.specs .spec-key .vs{font-size:.84rem;line-height:1.4;color:var(--ink-soft);margin-top:8px}
section.specs .specsheet{display:grid;gap:0 56px;border-bottom:1px solid rgba(33,31,27,.18)}
section.specs .specsheet .cell{display:block;padding:22px 0 26px;border-top:1px solid rgba(33,31,27,.18);min-width:0}
section.specs .specsheet .cell .k{display:block;font-size:.72rem !important;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);font-weight:600;margin:0 0 9px}
section.specs .specsheet .cell .v{font-size:1.02rem;line-height:1.5;color:var(--ink);text-wrap:pretty;overflow-wrap:break-word}

/* wide screens: one row of key facts, the list in three columns (the first row of the list sits straight under the strip's rule) */
@media(min-width:981px){
  section.specs .spec-key[data-n="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
  section.specs .spec-key[data-n="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}
  section.specs .spec-key[data-n="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}
  section.specs .spec-key[data-n="7"],section.specs .spec-key[data-n="8"]{grid-template-columns:repeat(4,minmax(0,1fr))}
  section.specs .spec-key[data-n="7"] .kcell:nth-child(4n+1),section.specs .spec-key[data-n="8"] .kcell:nth-child(4n+1){border-left:0;padding-left:0}
  section.specs .spec-key[data-n="7"] .kcell:nth-child(n+5),section.specs .spec-key[data-n="8"] .kcell:nth-child(n+5){border-top:1px solid rgba(33,31,27,.14)}
  section.specs .specsheet{grid-template-columns:repeat(3,minmax(0,1fr))}
  section.specs .specsheet .cell:nth-child(-n+3){border-top:0;padding-top:30px}
}
/* tablets and phones: the key facts in two columns (an odd last one across), the list in two columns on a tablet */
@media(max-width:980px){
  section.specs .spec-key{grid-template-columns:1fr 1fr}
  section.specs .spec-key .kcell{padding:22px 22px 26px;border-left:0;border-top:1px solid rgba(33,31,27,.14)}
  section.specs .spec-key .kcell:nth-child(-n+2){border-top:0}
  section.specs .spec-key .kcell:nth-child(odd){padding-left:0}
  section.specs .spec-key .kcell:nth-child(even){border-left:1px solid rgba(33,31,27,.14)}
  section.specs .spec-key .kcell:last-child:nth-child(odd){grid-column:1/-1}
  section.specs .spec-key .v{font-size:1.4rem}
  section.specs .specsheet{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 44px}
  section.specs .specsheet .cell:nth-child(-n+2){border-top:0;padding-top:30px}
}
@media(max-width:700px){
  section.specs{padding:60px 0 64px}
  section.specs .sub{margin-bottom:30px}
  section.specs .spec-key .kcell{padding:20px 18px 24px}
  section.specs .spec-key .kcell:nth-child(odd){padding-left:0}
  section.specs .spec-key .k{margin-bottom:10px}
  section.specs .spec-key .v{font-size:1.3rem}
  section.specs .spec-key .v.vl{font-size:1.1rem}
  section.specs .specsheet{grid-template-columns:1fr;gap:0}
  section.specs .specsheet .cell{padding:18px 0 20px}
  section.specs .specsheet .cell:nth-child(-n+2){border-top:1px solid rgba(33,31,27,.18);padding-top:18px}
  section.specs .specsheet .cell:first-child{border-top:0;padding-top:24px}
  /* collapsed: the first four rows whole (no half-faded row); one full-width row opens the rest */
  section.specs .specsheet.spec-col{max-height:none;overflow:visible;position:static}
  section.specs .specsheet.spec-col:not(.open)::after{display:none}
  section.specs .specsheet.spec-col:not(.open) .cell:nth-child(n+5){display:none}
  section.specs .specsheet.spec-col:not(.open){border-bottom:0}
  section.specs .spec-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;margin:0;padding:18px 0 20px;border:0;border-top:1px solid rgba(33,31,27,.18);border-bottom:1px solid rgba(33,31,27,.18);font-size:.74rem;letter-spacing:.14em}
  section.specs .spec-toggle .ar{font-size:0;width:9px;height:9px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .25s}
  section.specs .spec-toggle.open .ar{transform:rotate(225deg) translate(-2px,-2px)}
}
