/* Redesign v2 16.10.2026: struktur etter de store katalogene (stort bilde med søk, kategorier, filtre + kart, oppføringsside med kontaktkort).
   Egne farger, tekst og bilder. Rolig krem/hvit flate, én blå aksent for knapper, serif i overskrifter. */
.rd, .results, .cards { --ink:#1c2430; --muted:#55606e; --line:#e3ddd2; --accent:#24577A; --accent-dark:#1a4260; --soft:#eef4f8; --cream:#fbf8f3; --ok:#1d6b52; }
.rd { background:var(--cream); color:var(--ink); }
.rd .wrap { max-width:1200px; margin:0 auto; padding-left:24px; padding-right:24px; }
.rd main { max-width:none; padding:0; }
.rd h1, .rd h2 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight:400; letter-spacing:-0.01em; color:var(--ink); }
.rd h3 { color:var(--ink); }
.rd a { color:var(--accent); }
.rd footer h2 { color:#fff; font-family: inherit; font-weight:700; }
.crumbs { font-size:.88rem; color:var(--muted); margin:18px 0 14px; }
/* Søkefelt */
.bigsearch { display:flex; align-items:center; background:#fff; border:1px solid #c9d2dc; border-radius:999px; overflow:hidden; max-width:640px; }
.bigsearch label { position:absolute; left:-9999px; }
.bigsearch .ico { display:flex; padding:0 4px 0 18px; color:var(--muted); }
.bigsearch input { flex:1; min-width:0; border:0; font:inherit; font-size:1.05rem; padding:15px 10px; background:transparent; color:var(--ink); }
.bigsearch input:focus { outline:none; }
.bigsearch:focus-within { box-shadow:0 0 0 3px rgba(36,87,122,.25); }
.bigsearch button { align-self:stretch; border:0; background:var(--accent); color:#fff; font:inherit; font-weight:700; padding:0 28px; cursor:pointer; }
.bigsearch button:hover { background:var(--accent-dark); }
/* Forside: bilde med søk */
.photohero { position:relative; min-height:540px; display:flex; align-items:center; overflow:hidden; }
.photohero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:70% 40%; }
.photohero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(20,28,38,.55) 0%, rgba(20,28,38,.15) 60%, rgba(20,28,38,0) 100%); }
.photohero .wrap { position:relative; z-index:1; width:100%; }
.herobox { background:rgba(255,255,255,.96); border-radius:16px; padding:34px 34px 30px; max-width:600px; box-shadow:0 20px 50px rgba(0,0,0,.18); }
.herobox h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.1; margin-bottom:12px; }
.herobox .value { color:var(--muted); font-size:1.08rem; margin-bottom:22px; }
.photohero .credit { position:absolute; right:12px; bottom:8px; z-index:1; color:rgba(255,255,255,.85); font-size:.75rem; }
.catband { background:var(--soft); padding:34px 0; }
.cats { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.cat { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px 12px; color:var(--ink); }
.rd .cat { color:var(--ink); }
.cat:hover { border-color:var(--accent); text-decoration:none; box-shadow:0 6px 18px rgba(28,36,48,.08); }
.cat svg { width:38px; height:38px; color:var(--accent); }
.cat strong { font-size:1rem; }
.cat span { color:var(--muted); font-size:.9rem; }
.block { padding:64px 0; }
.block.band { background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.block h2 { font-size:2rem; margin-bottom:10px; }
.block .sub { color:var(--muted); font-size:1.05rem; max-width:46ch; }
.split { display:grid; grid-template-columns:1fr 1.3fr; gap:48px; align-items:center; }
.numbers { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.numbers li { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.numbers strong { display:block; font-family:Georgia, serif; font-weight:400; font-size:2.1rem; line-height:1.1; }
.numbers span { color:var(--muted); font-size:.95rem; }
.places { display:grid; grid-template-columns:repeat(4,1fr); gap:0 28px; list-style:none; margin-top:18px; }
.places a { display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line); color:var(--ink); }
.rd .places a { color:var(--ink); }
.places a span { color:var(--muted); }
.places a:hover { color:var(--accent); text-decoration:none; }
.more { display:inline-block; margin-top:18px; font-weight:700; }
.help { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.help a { display:block; background:#fff; border:1px solid var(--line); border-radius:12px; padding:26px; color:var(--ink); }
.rd .help a { color:var(--ink); }
.help a:hover { text-decoration:none; box-shadow:0 6px 18px rgba(28,36,48,.08); }
.help h3 { font-family:Georgia, serif; font-weight:400; font-size:1.35rem; margin-bottom:8px; }
.help p { color:var(--muted); }
.help .go { display:inline-block; margin-top:14px; color:var(--accent); font-weight:700; }
/* Kommuneside */
.banner { background:linear-gradient(180deg,#e9f1f6,#f4f8fa); padding:44px 0 34px; border-bottom:1px solid var(--line); }
.banner h1 { font-size:clamp(1.9rem,3.6vw,2.8rem); line-height:1.12; margin-bottom:18px; }
.intro { max-width:80ch; color:var(--ink); font-size:1.02rem; margin-bottom:26px; }
.listhead { font-size:1.9rem; margin-bottom:18px; }
.listhead span { color:var(--muted); font-size:1.1rem; font-family:inherit; }
.citygrid { display:grid; grid-template-columns:240px minmax(0,1fr); gap:28px; padding-bottom:64px; }
.filters { position:sticky; top:16px; }
.filters h3 { font-size:1.1rem; margin-bottom:8px; }
.filters fieldset { border:0; border-top:1px solid var(--line); padding:12px 0; }
.filters legend { font-weight:700; font-size:.95rem; padding:8px 0 4px; }
.filters label { display:flex; align-items:center; gap:8px; font-size:.95rem; padding:3px 0; cursor:pointer; }
.filters label span { margin-left:auto; color:var(--muted); font-size:.85rem; }
.filters input { width:17px; height:17px; accent-color:var(--accent); }
.linkbtn { background:none; border:0; color:var(--accent); font:inherit; font-weight:700; cursor:pointer; padding:6px 0; }
.kart { height:340px; border-radius:12px; border:1px solid var(--line); margin-bottom:6px; z-index:0; }
.kart.small { height:300px; margin:18px 0 6px; }
.kartnote { color:var(--muted); font-size:.85rem; margin-bottom:18px; }
.srcline { color:var(--muted); font-size:.88rem; margin-top:24px; }
/* Kort */
.results { display:grid; gap:16px; }
.pcard { display:grid; grid-template-columns:200px minmax(0,1fr); background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.pcard[hidden] { display:none; }
.pcard:hover { box-shadow:0 8px 22px rgba(28,36,48,.08); }
.thumb { display:flex; align-items:center; justify-content:center; background:var(--soft); color:var(--accent); min-height:150px; }
.thumb svg { width:56px; height:56px; opacity:.8; }
.thumb.t-sykehjem { background:#e7eff5; } .thumb.t-omsorgsbolig { background:#efece4; } .thumb.t-avlastningsbolig { background:#eaf1ec; }
.thumb.t-dagsenter { background:#f5eee2; } .thumb.t-institusjon { background:#ecebf2; } .thumb.t-hjemmetjeneste { background:#f1e9ea; }
.thumb.big { min-height:260px; border-radius:12px; margin:18px 0; }
.thumb.big svg { width:96px; height:96px; }
.pbody { padding:16px 18px; display:flex; flex-direction:column; gap:6px; }
.pbody h3 { font-size:1.15rem; line-height:1.3; margin:0; font-family:Georgia, serif; font-weight:400; }
.pbody h3 a { color:var(--accent); }
.where { color:var(--muted); font-size:.95rem; }
.tags { display:flex; flex-wrap:wrap; gap:6px; }
.tags span { font-size:.8rem; background:var(--soft); color:var(--ink); border-radius:999px; padding:2px 10px; }
.row { display:flex; gap:10px; margin-top:auto; padding-top:8px; flex-wrap:wrap; justify-content:flex-end; }
.call { display:inline-block; text-align:center; background:var(--accent); color:#fff !important; border-radius:999px; padding:10px 22px; font-weight:700; border:0; font:inherit; font-weight:700; cursor:pointer; }
.call:hover { background:var(--accent-dark); text-decoration:none; }
.alt { display:inline-block; text-align:center; border:1.5px solid var(--accent); color:var(--accent) !important; border-radius:999px; padding:9px 20px; font-weight:700; background:#fff; font:inherit; font-weight:700; cursor:pointer; }
.alt:hover { background:var(--soft); text-decoration:none; }
/* Oppføringsside */
.listing { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:36px; padding-bottom:32px; }
.lhead h1 { font-size:clamp(1.9rem,3.4vw,2.6rem); line-height:1.15; margin-bottom:6px; }
.lhead .where { font-size:1.05rem; margin-bottom:10px; }
.lsec { margin-top:28px; }
.lsec h2 { font-size:1.6rem; margin-bottom:12px; }
.lsec p { margin-bottom:10px; max-width:70ch; }
.factgrid { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; }
.factgrid div { padding:12px 0; border-bottom:1px solid var(--line); }
.factgrid dt { color:var(--muted); font-size:.85rem; }
.factgrid dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.contactcard { position:sticky; top:16px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; box-shadow:0 10px 30px rgba(28,36,48,.08); display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.contactcard h2 { font-size:1.3rem; }
.contactcard p { color:var(--muted); font-size:.92rem; }
.rd .source-box { margin-top:28px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; font-size:.92rem; }
.rd .source-box h2 { font-size:1.1rem; }
.more-near { padding-bottom:56px; }
.more-near .results { grid-template-columns:1fr 1fr; }
.more-near .pcard { grid-template-columns:110px minmax(0,1fr); }
@media (max-width:1000px){ .cats{grid-template-columns:repeat(3,1fr);} .places{grid-template-columns:1fr 1fr;} .split{grid-template-columns:1fr;} .citygrid{grid-template-columns:1fr;} .filters{position:static;} .listing{grid-template-columns:1fr;} .contactcard{position:static;} .more-near .results{grid-template-columns:1fr;} }
@media (max-width:640px){
  .rd .wrap{padding-left:16px;padding-right:16px;}
  .photohero{min-height:0; display:block; padding:200px 0 0;}
  .photohero img{height:260px;}
  .photohero::after{height:260px; background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.2));}
  .photohero .credit{top:236px; bottom:auto;}
  .herobox{padding:22px 18px; border-radius:14px;}
  .bigsearch input{font-size:1rem;padding:13px 6px;} .bigsearch button{padding:0 18px;}
  .cats{grid-template-columns:1fr 1fr; gap:10px;} .cat{padding:16px 8px;}
  .block{padding:44px 0;} .block h2{font-size:1.6rem;}
  .places{grid-template-columns:1fr;} .help{grid-template-columns:1fr;} .numbers strong{font-size:1.6rem;}
  .pcard{grid-template-columns:96px minmax(0,1fr);} .thumb{min-height:0;} .thumb svg{width:36px;height:36px;}
  .row{justify-content:stretch;} .row a{flex:1;} .call,.alt{padding:10px 12px;}
  .factgrid{grid-template-columns:1fr;}
  .kart{height:260px;}
}
/* Veiledningsartikkel */
.art .wrap { max-width:720px; padding-top:32px; padding-bottom:64px; }
.art .crumbs { font-size:.9rem; color:var(--muted); margin-bottom:14px; }
.art h1 { font-size:clamp(1.9rem,4vw,2.6rem); line-height:1.12; margin-bottom:14px; }
.art .ingress { font-size:1.2rem; color:var(--ink); margin-bottom:28px; }
.art h2 { font-size:1.35rem; margin:32px 0 8px; }
.art p { font-size:1.06rem; margin-bottom:12px; max-width:62ch; }
.art .kilder { margin-top:44px; padding-top:20px; border-top:1px solid var(--line); font-size:.95rem; }
.art .kilder h2 { font-size:1.05rem; margin-top:0; }
.art .kilder li { margin:0 0 6px 18px; color:var(--muted); }
.art .kilder p { font-size:.9rem; color:var(--muted); }
.rd footer a { color:#fff; }
.rd .sticky-call .btn.primary { background:var(--accent); border-color:var(--accent); border-radius:999px; }
.rd .sticky-call .btn { border-radius:999px; color:var(--accent); }
