:root{
  color-scheme:light dark;

  --bg:#f1f2ee;
  --surface:#f8f9f6;
  --surface-soft:#e7e9e3;

  --text:#1f211f;
  --muted:#666b64;
  --quiet:#92988f;
  --line:#d3d7cf;

  --accent:#225cc4;
  --accent-soft:#e9f0ff;

  --menu:#1e211e;

  --max:1100px;

  --shadow:
    0 1px 2px rgba(20,25,20,.03),
    0 14px 40px rgba(20,25,20,.055);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;

  background:var(--bg);
  color:var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

button{
  color:inherit;
}

.page{
  width:min(var(--max),calc(100% - 40px));
  margin-inline:auto;
}


/* HEADER */

.site-header{
  position:sticky;
  top:0;
  z-index:100;

  background:
    color-mix(in srgb,var(--bg) 93%,transparent);

  border-bottom:1px solid var(--line);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.header-inner{
  width:min(var(--max),calc(100% - 40px));
  height:70px;

  margin:auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand-wrap{
  display:flex;
  align-items:center;

  gap:14px;
}

.menu-button{
  min-width:88px;
  height:40px;

  padding:0 15px;

  border:0;
  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#225cc4;
  color:#fff;

  cursor:pointer;

  font-size:0;

  box-shadow:
    0 4px 12px rgba(20,22,20,.12);

  transition:
    transform .15s ease,
    background .15s ease;
}

.menu-button::before{
  content:"=";

  margin-right:8px;

  font-size:20px;
  font-weight:500;
  line-height:1;
}

.menu-button::after{
  content:"Meny";

  font-size:12px;
  font-weight:550;

  letter-spacing:.01em;
}

.menu-button:hover{
  transform:translateY(-1px);
}

.menu-button[aria-expanded="true"]{
  background:#225cc4;
}

.brand{
  font-size:17px;
  font-weight:520;

  letter-spacing:-.03em;
}

.brand span{
  color:var(--accent);
}

.search-shortcut{
  padding:8px 2px;

  border:0;
  border-bottom:1px solid transparent;

  background:transparent;
  color:var(--muted);

  cursor:pointer;

  font-size:12px;
}

.search-shortcut:hover{
  color:var(--text);
  border-color:var(--text);
}


/* MENU PANEL */

.menu-panel{
  position:absolute;
  left:0;
  right:0;
  top:70px;

  border-bottom:1px solid var(--line);

  background:var(--surface);
  color:var(--text);

  box-shadow:
    0 25px 45px rgba(0,0,0,.14);
}

.menu-inner{
  width:min(var(--max),calc(100% - 40px));

  margin:auto;
  padding:36px 0 42px;

  display:grid;
  grid-template-columns:1fr 1fr auto;

  gap:60px;
}

.menu-inner nav{
  display:flex;
  flex-direction:column;

  gap:14px;
}

.menu-inner nav::before{
  content:"Navigasjon";

  margin-bottom:3px;

  color:var(--muted);

  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.menu-inner nav:nth-child(2)::before{
  content:"Informasjon";
}

.menu-inner nav a,
.menu-inner nav span{
  font-size:15px;
  font-weight:400;
}

.menu-inner nav a:hover{
  color:var(--accent);
}

.borgli-menu{
  align-self:end;

  color:var(--accent);

  font-size:12px;
}


/* TOP AREA */

.start{
  padding:44px 0 34px;

  border-bottom:1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb,var(--surface) 72%,transparent),
      transparent
    );
}

.start .page{
  position:relative;
}

.start-copy{
  max-width:680px;
}

.start-copy h1{
  margin:0;

  font-size:clamp(34px,5vw,48px);
  line-height:1.05;

  font-weight:540;
  letter-spacing:-.05em;
}

.start-copy p{
  margin:10px 0 0;

  max-width:520px;

  color:var(--muted);

  font-size:14px;
  line-height:1.65;
}


/* SEARCH */

.search-field{
  width:min(520px,100%);
  height:54px;

  margin-top:24px;
  padding:0 16px;

  display:flex;
  align-items:center;

  gap:12px;

  border:1px solid var(--line);
  border-radius:12px;

  background:var(--surface);

  box-shadow:var(--shadow);

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.search-field:focus-within{
  border-color:var(--accent);

  box-shadow:
    0 0 0 4px
      color-mix(in srgb,var(--accent) 8%,transparent),
    var(--shadow);
}

.search-field svg{
  width:18px;
  height:18px;

  flex:0 0 auto;

  fill:none;
  stroke:var(--quiet);
  stroke-width:1.8;
  stroke-linecap:round;
}

.search-field input{
  width:100%;
  height:100%;

  min-width:0;

  border:0;
  outline:0;

  background:transparent;
  color:var(--text);

  font-size:14px;
}

.search-field input::placeholder{
  color:var(--quiet);
}


/* SEARCH RESULTS */

.search-results{
  width:min(520px,100%);

  margin-top:8px;

  overflow:hidden;

  border:1px solid var(--line);
  border-radius:12px;

  background:var(--surface);

  box-shadow:
    0 18px 42px rgba(20,25,20,.09);
}

.search-result{
  min-height:62px;

  padding:12px 15px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  border-bottom:1px solid var(--line);
}

.search-result:last-child{
  border-bottom:0;
}

.search-result.active:hover{
  background:var(--accent-soft);
}

.search-result strong{
  display:block;

  font-size:13px;
  font-weight:520;
}

.search-result div span{
  display:block;

  margin-top:3px;

  color:var(--quiet);

  font-size:12px;
}

.search-result > span{
  color:var(--accent);
}

.search-result small{
  color:var(--quiet);

  font-size:12px;
}

.search-result.inactive{
  opacity:.55;
}

.no-search-results{
  padding:17px;

  color:var(--muted);

  font-size:12px;
}


/* SECTIONS */

.popular-section,
.categories-section,
.recent-section{
  padding:44px 0;
}

.popular-section{
  border-bottom:1px solid var(--line);
}

.categories-section{
  border-bottom:1px solid var(--line);
}

.section-heading{
  margin-bottom:19px;

  display:flex;
  align-items:baseline;
  justify-content:space-between;

  gap:20px;
}

.section-heading h2{
  margin:0;

  font-size:22px;
  font-weight:520;

  letter-spacing:-.03em;
}

.section-heading span{
  color:var(--quiet);

  font-size:12px;
}


/* POPULAR */

.popular-list{
  display:grid;
  grid-template-columns:repeat(5,1fr);

  gap:10px;
}

.popular-item{
  min-height:118px;

  padding:16px;

  display:flex;
  flex-direction:column;

  border:1px solid var(--line);
  border-radius:12px;

  background:var(--surface);

  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.popular-item.active:hover{
  transform:translateY(-2px);

  border-color:
    color-mix(in srgb,var(--accent) 40%,var(--line));

  box-shadow:var(--shadow);
}

.popular-item.inactive{
  opacity:.5;
}

.popular-number{
  color:var(--quiet);

  font-size:12px;
}

.popular-item div{
  margin-top:auto;
}

.popular-item strong{
  display:block;

  font-size:13px;
  font-weight:520;
}

.popular-item div span{
  display:block;

  margin-top:3px;

  color:var(--quiet);

  font-size:12px;
}

.popular-arrow{
  margin-top:9px;

  color:var(--accent);

  font-size:16px;
}

.popular-soon{
  margin-top:9px;

  color:var(--quiet);

  font-size:12px;
}


/* CATEGORIES */

.category-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr;

  gap:12px;
}

.category-item{
  min-height:190px;

  padding:24px;

  border:1px solid var(--line);
  border-radius:16px;

  display:flex;
  flex-direction:column;

  background:var(--surface);

  position:relative;

  overflow:hidden;
}

.category-item:first-child{
  background:
    linear-gradient(
      135deg,
      var(--surface),
      color-mix(in srgb,var(--accent-soft) 70%,var(--surface))
    );
}

.category-item h3{
  margin:0;

  font-size:20px;
  font-weight:520;

  letter-spacing:-.03em;
}

.category-item p{
  max-width:260px;

  margin:8px 0 24px;

  color:var(--muted);

  font-size:12px;
  line-height:1.6;
}

.category-meta{
  margin-top:auto;

  display:flex;
  flex-direction:column;

  gap:4px;

  color:var(--quiet);

  font-size:12px;
}

.category-item::after{
  content:"";

  position:absolute;

  right:-32px;
  bottom:-42px;

  width:120px;
  height:120px;

  border:1px solid
    color-mix(in srgb,var(--accent) 18%,transparent);

  border-radius:50%;
}

.category-item:first-child::after{
  width:150px;
  height:150px;

  right:-35px;
  bottom:-58px;

  border-color:
    color-mix(in srgb,var(--accent) 28%,transparent);
}


/* RECENT */

.recent-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);

  gap:10px;
}

.recent-item{
  min-height:76px;

  padding:15px;

  border-top:2px solid var(--line);

  background:transparent;

  opacity:.55;
}

.recent-item.active{
  opacity:1;

  border-color:var(--accent);
}

.recent-item strong{
  display:block;

  font-size:12px;
  font-weight:520;
}

.recent-item span{
  display:block;

  margin-top:4px;

  color:var(--quiet);

  font-size:12px;
}


/* FOOTER */

.site-footer{
  margin-top:20px;

  border-top:1px solid var(--line);

  background:var(--surface);
}

.footer-top{
  padding:30px 0 24px;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:30px;
}

.footer-top strong{
  font-size:13px;
  font-weight:520;
}

.footer-top p{
  margin:5px 0 0;

  color:var(--quiet);

  font-size:12px;
}

.footer-top nav{
  display:flex;
  flex-wrap:wrap;

  gap:20px;

  color:var(--muted);

  font-size:12px;
}

.footer-top nav a:hover{
  color:var(--accent);
}

.footer-bottom{
  padding:16px 0 24px;

  display:flex;
  justify-content:space-between;

  gap:20px;

  border-top:1px solid var(--line);

  color:var(--quiet);

  font-size:12px;
}

.footer-bottom a{
  color:var(--accent);
}


/* EMPTY */

.empty-note{
  margin:0;

  color:var(--quiet);

  font-size:12px;
}


/* DARK */

@media(prefers-color-scheme:dark){

  :root{
    --bg:#121410;
    --surface:#191c17;
    --surface-soft:#20231d;

    --text:#f0f2ed;
    --muted:#a0a69d;
    --quiet:#72796e;
    --line:#2d322a;

    --accent:#7fa6ff;
    --accent-soft:#1c2942;

    --menu:#090b09;

    --shadow:
      0 1px 2px rgba(0,0,0,.2),
      0 16px 40px rgba(0,0,0,.18);
  }

}


/* TABLET */

@media(max-width:850px){

  .popular-list{
    grid-template-columns:repeat(3,1fr);
  }

  .category-grid{
    grid-template-columns:1fr 1fr;
  }

  .category-item:first-child{
    grid-column:1 / -1;
  }

  .recent-list{
    grid-template-columns:repeat(2,1fr);
  }

}


/* MOBILE */

@media(max-width:620px){

  .page,
  .header-inner,
  .menu-inner{
    width:calc(100% - 28px);
  }

  .header-inner{
    height:62px;
  }

  .menu-button{
    min-width:42px;
    width:42px;
    height:38px;

    padding:0;
  }

  .menu-button::before{
    margin:0;

    font-size:19px;
  }

  .menu-button::after{
    display:none;
  }

  .brand{
    font-size:15px;
  }

  .menu-panel{
    top:62px;

    max-height:calc(100dvh - 62px);

    overflow:auto;
  }

  .menu-inner{
    padding:26px 0 34px;

    grid-template-columns:1fr;

    gap:28px;
  }

  .menu-inner nav{
    gap:13px;
  }

  .menu-inner nav a,
  .menu-inner nav span{
    min-height:30px;

    display:flex;
    align-items:center;

    font-size:15px;
  }


  .start{
    padding:29px 0 25px;
  }

  .start-copy h1{
    font-size:31px;
  }

  .start-copy p{
    font-size:12px;
  }

  .search-field{
    margin-top:18px;

    height:50px;
  }


  .popular-section,
  .categories-section,
  .recent-section{
    padding:34px 0;
  }

  .section-heading{
    margin-bottom:15px;
  }

  .section-heading h2{
    font-size:20px;
  }


  .popular-list{
    display:flex;

    overflow-x:auto;

    gap:9px;

    margin-right:-14px;
    padding-right:14px;
    padding-bottom:4px;

    scrollbar-width:none;
  }

  .popular-list::-webkit-scrollbar{
    display:none;
  }

  .popular-item{
    flex:0 0 160px;

    min-height:108px;
  }


  .category-grid{
    grid-template-columns:1fr;
  }

  .category-item,
  .category-item:first-child{
    grid-column:auto;

    min-height:150px;

    padding:20px;
  }

  .category-item h3{
    font-size:18px;
  }

  .category-item p{
    margin-bottom:18px;
  }


  .recent-list{
    grid-template-columns:1fr 1fr;
  }


  .footer-top{
    flex-direction:column;

    gap:18px;
  }

  .footer-bottom{
    flex-direction:column;

    gap:6px;
  }

}


/* SMALL MOBILE */

@media(max-width:370px){

  .recent-list{
    grid-template-columns:1fr;
  }

}


/* =========================================================
   COMPACT REFINEMENT
   ========================================================= */

.start{
  padding-top:34px;
  padding-bottom:26px;
}

.start-copy h1{
  font-size:clamp(30px,4vw,41px);
}

.start-copy p{
  margin-top:7px;
}

.search-field{
  height:50px;
  margin-top:18px;
}

.popular-section,
.categories-section,
.recent-section{
  padding-top:34px;
  padding-bottom:34px;
}

.popular-item{
  min-height:98px;
  padding:14px;
}

.category-grid{
  grid-template-columns:repeat(2,1fr);
}

.category-item,
.category-item:first-child{
  min-height:150px;
  padding:20px;
}

.category-item:first-child{
  grid-column:auto;
}

.category-item h3{
  font-size:18px;
}

.category-item p{
  margin-top:6px;
  margin-bottom:16px;
}

.recent-item{
  min-height:64px;
}


/* Feedback link gets a little more presence */

.feedback-link{
  color:var(--accent) !important;
}


/* Mobile stays finger-friendly, not microscopic */

@media(max-width:620px){

  .start{
    padding-top:24px;
  }

  .start-copy h1{
    font-size:28px;
  }

  .popular-section,
  .categories-section,
  .recent-section{
    padding-top:28px;
    padding-bottom:28px;
  }

  .category-grid{
    grid-template-columns:1fr;
  }

  .category-item,
  .category-item:first-child{
    min-height:auto;
    padding:17px;
  }

  .popular-item{
    min-height:94px;
  }

}


/* =========================================================
   INFO PAGES
   ========================================================= */

.info-main{
  padding:42px 0 56px;
}

.info-layout{
  display:grid;
  grid-template-columns:minmax(0,360px) minmax(0,1fr);
  gap:64px;
  align-items:start;
}

.info-intro{
  position:sticky;
  top:102px;
}

.info-kicker{
  display:block;
  margin-bottom:12px;

  color:var(--accent);

  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.info-intro h1{
  margin:0;

  font-size:clamp(30px,4vw,42px);
  line-height:1.08;

  font-weight:540;
  letter-spacing:-.045em;
}

.info-intro p{
  max-width:330px;

  margin:14px 0 0;

  color:var(--muted);

  font-size:13px;
  line-height:1.7;
}

.info-content{
  max-width:650px;
}

.info-section{
  padding:0 0 30px;
  margin-bottom:30px;

  border-bottom:1px solid var(--line);
}

.info-section:last-child{
  margin-bottom:0;
  border-bottom:0;
}

.info-section h2{
  margin:0 0 12px;

  font-size:20px;
  font-weight:520;
  letter-spacing:-.025em;
}

.info-section p{
  margin:0 0 14px;

  color:var(--muted);

  font-size:13px;
  line-height:1.75;
}

.info-section p:last-child{
  margin-bottom:0;
}

.info-link{
  display:inline-flex;
  align-items:center;
  gap:7px;

  margin-top:3px;

  color:var(--accent);

  font-size:12px;
  font-weight:520;
}

.info-link:hover{
  text-decoration:underline;
}

.info-back{
  margin-top:34px;
}

.info-back a{
  color:var(--muted);

  font-size:12px;
}

.info-back a:hover{
  color:var(--accent);
}


@media(max-width:850px){

  .info-layout{
    grid-template-columns:1fr;
    gap:34px;
  }

  .info-intro{
    position:static;
  }

  .info-intro p{
    max-width:560px;
  }

}


@media(max-width:620px){

  .info-main{
    padding:28px 0 42px;
  }

  .info-layout{
    gap:28px;
  }

  .info-intro h1{
    font-size:29px;
  }

  .info-section{
    padding-bottom:24px;
    margin-bottom:24px;
  }

  .info-section h2{
    font-size:18px;
  }

  .info-section p{
    font-size:12px;
  }

}

/* AKTIV MENYFANE */

.menu-panel a.active-category-link{
  color:var(--accent);
  font-weight:600;
}

.menu-panel a.active-category-link::after{
  content:"";
  display:block;

  width:100%;
  height:2px;

  margin-top:5px;

  background:var(--accent);
  border-radius:999px;
}


/* MOBIL */

@media(max-width:620px){

  .active-category-header{
    padding-top:18px;
  }

  .active-category-header .page{
    padding-bottom:18px;
  }

  .active-category-header h1{
    font-size:27px;
  }

  .active-category-header p{
    font-size:12px;
  }

}

/* KATEGORI UNDER LOGO */

.brand-column{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.header-category{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
}

@media(max-width:620px){

  .header-category{
    margin-top:3px;
    font-size:8px;
  }

}

/* PERSONVERN ACCORDION */

.privacy-accordion details{
  border-top:1px solid var(--line);
}

.privacy-accordion details:last-child{
  border-bottom:1px solid var(--line);
}

.privacy-accordion summary{
  position:relative;

  padding:18px 42px 18px 0;

  cursor:pointer;
  list-style:none;

  font-size:13px;
  font-weight:520;
}

.privacy-accordion summary::-webkit-details-marker{
  display:none;
}

.privacy-accordion summary::after{
  content:"+";

  position:absolute;
  right:4px;
  top:50%;

  transform:translateY(-50%);

  color:var(--accent);

  font-size:22px;
  font-weight:300;
  line-height:1;
}

.privacy-accordion details[open] summary::after{
  content:"−";
}

.privacy-answer{
  padding:0 34px 18px 0;
}

.privacy-answer p{
  margin:0 0 10px;

  color:var(--muted);

  font-size:12px;
  line-height:1.7;
}

.privacy-answer p:last-child{
  margin-bottom:0;
}

.privacy-accordion summary:hover{
  color:var(--accent);
}

/* KATEGORIKORT – LIK STIL */

.category-item:first-child{
  background:var(--surface);
}

.category-item:first-child::after{
  width:120px;
  height:120px;

  right:-32px;
  bottom:-42px;

  border-color:
    color-mix(in srgb,var(--accent) 18%,transparent);
}

/* KLIKKBARE KATEGORIER */

.category-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;

  transition:
    border-color .15s ease,
    transform .15s ease,
    background .15s ease;
}

.category-link:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
}

.category-link:hover h3{
  color:var(--accent);
}

.category-disabled{
  opacity:.65;
}

/* UTVIDBARE KATEGORIKORT */

.category-expand{
  width:100%;
  margin-top:16px;
  padding:10px 0 0;

  border:0;
  border-top:1px solid var(--line);

  background:transparent;
  color:var(--muted);

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  cursor:pointer;

  font:inherit;
  font-size:12px;
  text-align:left;
}

.category-expand:hover{
  color:var(--accent);
}

.category-expand strong{
  color:var(--accent);

  font-size:18px;
  font-weight:300;
  line-height:1;
}

.category-calculators{
  margin-top:10px;

  display:flex;
  flex-direction:column;

  gap:3px;
}

.category-calculator-link{
  min-height:36px;

  padding:8px 0;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  border-bottom:1px solid
    color-mix(in srgb,var(--line) 70%,transparent);

  color:var(--text);
  text-decoration:none;

  font-size:12px;
}

.category-calculator-link:last-child{
  border-bottom:0;
}

.category-calculator-link span{
  color:var(--accent);
}

.category-calculator-link:hover{
  color:var(--accent);
}

.category-empty{
  display:block;

  padding:8px 0;

  color:var(--quiet);

  font-size:12px;
  line-height:1.5;
}


/* La kortet vokse naturlig når listen åpnes */

.category-item,
.category-item:first-child{
  min-height:150px;
}


/* MOBIL */

@media(max-width:620px){

  .category-expand{
    min-height:38px;
    font-size:12px;
  }

  .category-calculator-link{
    min-height:42px;
    font-size:12px;
  }

}

/* TOPP 3 I KATEGORIKORT */

.category-top-three{
  margin-top:14px;
  padding-top:12px;

  border-top:1px solid var(--line);

  display:flex;
  flex-direction:column;

  gap:5px;
}

.category-top-label{
  margin-bottom:2px;

  color:var(--quiet);

  font-size:12px;
  font-weight:700;

  letter-spacing:.08em;
  text-transform:uppercase;
}

.category-top-item{
  color:var(--muted);

  font-size:12px;
  line-height:1.4;
}

.category-link:hover .category-top-item{
  color:var(--text);
}

.category-top-three.empty{
  opacity:.7;
}


/* Litt bedre plass når kortet inneholder topp 3 */

.category-item,
.category-item:first-child{
  min-height:185px;
}


/* MOBIL */

@media(max-width:620px){

  .category-item,
  .category-item:first-child{
    min-height:auto;
  }

  .category-top-three{
    margin-top:12px;
    padding-top:10px;
  }

  .category-top-item{
    font-size:12px;
  }

}

/* FULL KATEGORILISTE */

.category-all-section{
  padding:0 0 10px;
}

.category-all-section .page{
  width:min(820px,calc(100% - 40px));
}

.category-all-toggle{
  width:100%;

  padding:16px 2px;

  border:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);

  background:transparent;
  color:var(--text);

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  cursor:pointer;

  font:inherit;
  font-size:13px;
  font-weight:520;
  text-align:left;
}

.category-all-toggle:hover{
  color:var(--accent);
}

.category-all-toggle strong{
  flex:0 0 auto;

  color:var(--accent);

  font-size:22px;
  font-weight:300;
  line-height:1;
}

.category-all-list{
  border-bottom:1px solid var(--line);
}

.category-all-item{
  min-height:58px;

  padding:13px 2px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  border-bottom:1px solid
    color-mix(in srgb,var(--line) 70%,transparent);

  color:var(--text);
  text-decoration:none;
}

.category-all-item:last-child{
  border-bottom:0;
}

.category-all-item > div{
  min-width:0;
}

.category-all-item strong{
  display:block;

  font-size:12px;
  font-weight:520;
}

.category-all-item > div > span{
  display:block;

  margin-top:3px;

  color:var(--quiet);

  font-size:12px;
  line-height:1.45;
}

.category-all-arrow{
  flex:0 0 auto;

  color:var(--accent);

  font-size:14px;
}

.category-all-item:hover strong{
  color:var(--accent);
}

.category-all-empty{
  margin:0;
  padding:16px 2px;

  color:var(--quiet);

  font-size:12px;
}


/* MOBIL */

@media(max-width:620px){

  .category-all-section .page{
    width:calc(100% - 28px);
  }

  .category-all-toggle{
    min-height:50px;

    padding-top:14px;
    padding-bottom:14px;

    font-size:12px;
  }

  .category-all-item{
    min-height:62px;
    padding:13px 2px;
  }

  .category-all-item strong{
    font-size:12px;
  }

  .category-all-item > div > span{
    font-size:12px;
  }

}

/* KOMPAKT KATEGORILISTE */

.category-all-section{
  padding:12px 0 0;
}

.category-all-section .page{
  width:min(520px,calc(100% - 40px));
  margin:0 auto;
}

.category-all-toggle{
  width:100%;

  padding:11px 14px;

  border:1px solid var(--line);
  border-radius:9px;

  background:var(--surface);
  color:var(--text);

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  cursor:pointer;

  font:inherit;
  font-size:12px;
  font-weight:520;

  text-align:left;
}

.category-all-toggle:hover{
  border-color:var(--accent);
}

.category-all-toggle strong{
  color:var(--accent);

  font-size:18px;
  font-weight:300;
  line-height:1;
}

.category-all-list{
  margin-top:6px;

  overflow:hidden;

  border:1px solid var(--line);
  border-radius:9px;

  background:var(--surface);
}

.category-all-item{
  min-height:42px;

  padding:9px 13px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  border-bottom:1px solid var(--line);

  color:var(--text);
  text-decoration:none;
}

.category-all-item:last-child{
  border-bottom:0;
}

.category-all-item strong{
  font-size:12px;
  font-weight:520;
}

.category-all-item > div > span{
  display:none;
}

.category-all-arrow{
  color:var(--accent);
  font-size:12px;
}

.category-all-item:hover{
  background:var(--surface-soft);
}

.category-all-item:hover strong{
  color:var(--accent);
}


@media(max-width:620px){

  .category-all-section .page{
    width:calc(100% - 28px);
  }

  .category-all-toggle{
    min-height:44px;
    font-size:12px;
  }

  .category-all-item{
    min-height:44px;
  }

}

/* KATEGORIDROPDOWN I STARTOMRÅDET */

.start-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
}

.start-heading-row .start-copy{
  min-width:0;
}

.category-header-tools{
  flex:0 0 auto;
  width:min(340px,42%);
  padding-top:2px;
}

.category-header-tools .category-all-section{
  padding:0;
}

.category-header-tools .category-all-section .page{
  width:100%;
  margin:0;
}

.category-header-tools .category-all-toggle{
  min-height:42px;
  padding:10px 12px;
  font-size:12px;
}

.category-header-tools .category-all-list{
  margin-top:5px;
}

.category-header-tools .category-all-item{
  min-height:39px;
  padding:8px 11px;
}

.category-header-tools .category-all-item strong{
  font-size:12px;
}


/* MOBIL */

@media(max-width:620px){

  .start-heading-row{
    flex-direction:column;
    gap:14px;
  }

  .category-header-tools{
    width:100%;
    padding-top:0;
  }

}

/* FLYTENDE KATEGORIDROPDOWN */

.category-header-tools{
  position:relative;
  z-index:20;
}

.category-header-tools .category-all-section{
  position:relative;
}

.category-header-tools .category-all-list{
  position:absolute;

  top:calc(100% + 5px);
  left:0;
  right:0;

  z-index:50;

  margin-top:0;

  background:var(--surface);

  box-shadow:
    0 14px 30px
    color-mix(in srgb,var(--text) 10%,transparent);
}

@media(max-width:620px){

  .category-header-tools .category-all-list{
    left:0;
    right:0;
  }

}

/* FINJUSTER PLASSERING AV KATEGORIDROPDOWN */

.category-header-tools{
  margin-top:-4px;
}

@media(max-width:620px){

  .category-header-tools{
    margin-top:0;
  }

}

/* FINPLASSERING AV KATEGORIDROPDOWN */

.category-header-tools{
  transform:translate(30px, 3px);
}

@media(max-width:620px){

  .category-header-tools{
    transform:none;
  }

}

/* LITT MER MOT HØYRE */

.category-header-tools{
  transform:translate(40px, 3px);
}

@media(max-width:620px){

  .category-header-tools{
    transform:none;
  }

}

/* TYDELIG LENGER MOT HØYRE */

.category-header-tools{
  transform:translate(140px, 3px);
}

@media(max-width:620px){

  .category-header-tools{
    transform:none;
  }

}

/* FINJUSTER KATEGORIDROPDOWN */

.category-header-tools{
  transform:translate(85px, 3px);
}

@media(max-width:620px){

  .category-header-tools{
    transform:none;
  }

}

/* =========================================================
   MOBILE FINAL REFINEMENT
   ========================================================= */

@media(max-width:620px){

  /* Startområdet */

  .start{
    padding:22px 0 24px;
  }

  .start-heading-row{
    display:block;
  }

  .start-copy h1{
    font-size:28px;
    line-height:1.08;
  }

  .start-copy p{
    margin-top:7px;
    font-size:12px;
    line-height:1.5;
  }


  /* Kategoridropdown inne i kategori */

  .category-header-tools{
    width:100%;
    margin:13px 0 0;
    padding:0;

    transform:none;
  }

  .category-header-tools .category-all-section{
    padding:0;
  }

  .category-header-tools .category-all-section .page{
    width:100%;
  }

  .category-header-tools .category-all-toggle{
    min-height:42px;
    padding:10px 12px;

    font-size:12px;
  }

  .category-header-tools .category-all-list{
    top:calc(100% + 5px);
    left:0;
    right:0;

    width:100%;
  }

  .category-header-tools .category-all-item{
    min-height:42px;
    padding:9px 12px;
  }


  /* Søket */

  .search-field{
    height:48px;
    margin-top:15px;
  }


  /* Mest brukt */

  .popular-section{
    padding-top:26px;
    padding-bottom:26px;
  }

  .popular-list{
    gap:8px;
  }

  .popular-item{
    flex-basis:150px;
    min-height:90px;
  }


  /* Kategorikort */

  .categories-section{
    padding-top:26px;
    padding-bottom:26px;
  }

  .category-grid{
    gap:9px;
  }

  .category-item,
  .category-item:first-child{
    min-height:auto;
    padding:15px;
  }

  .category-item h3{
    font-size:17px;
  }

  .category-item p{
    margin-top:5px;
    margin-bottom:12px;

    font-size:12px;
    line-height:1.5;
  }

  .category-top-three{
    margin-top:10px;
    padding-top:9px;
    gap:4px;
  }

  .category-top-item{
    font-size:12px;
  }


  /* Nylig lagt til */

  .recent-section{
    padding-top:26px;
    padding-bottom:26px;
  }

  .recent-list{
    gap:8px;
  }

  .recent-item{
    min-height:60px;
    padding:12px;
  }

}

/* RENERE KATEGORIKORT PÅ MOBIL */

@media(max-width:620px){

  .category-meta{
    display:none;
  }

  .category-top-three{
    margin-top:9px;
    padding-top:8px;
    gap:3px;
  }

  .category-top-label{
    font-size:8px;
  }

  .category-top-item{
    font-size:12px;
    line-height:1.3;
  }

}

/* =========================================================
   GLOBAL KALKULATOR-FAQ
   Samme standard på alle kalkulatorer
   ========================================================= */

.calculator-faq{
  margin-top:42px;
  padding-top:34px;

  border-top:1px solid var(--line);
}

.calculator-faq-kicker{
  display:block;
  margin-bottom:8px;

  color:var(--accent);

  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
}

.calculator-faq h2{
  margin:0 0 18px;

  font-size:22px;
  font-weight:520;
  letter-spacing:-.03em;
}

.calculator-faq details{
  border-top:1px solid var(--line);
}

.calculator-faq details:last-of-type{
  border-bottom:1px solid var(--line);
}

.calculator-faq summary{
  position:relative;

  padding:17px 34px 17px 0;

  cursor:pointer;
  list-style:none;

  font-size:13px;
  font-weight:520;
}

.calculator-faq summary::-webkit-details-marker{
  display:none;
}

.calculator-faq summary::marker{
  content:"";
}

.calculator-faq summary::after{
  content:"+";

  position:absolute;
  right:4px;
  top:50%;

  transform:translateY(-50%);

  color:var(--accent);

  font-size:20px;
  font-weight:300;
}

.calculator-faq details[open] summary::after{
  content:"−";
}

.calculator-faq details p{
  max-width:650px;

  margin:0 0 12px;
  padding-right:20px;

  color:var(--muted);

  font-size:12px;
  line-height:1.7;
}

.calculator-faq details code{
  display:inline-block;

  margin-bottom:18px;
  padding:7px 10px;

  border-radius:7px;

  background:var(--surface-soft);
  color:var(--text);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size:12px;
}

@media(max-width:620px){

  .calculator-faq{
    margin-top:34px;
    padding-top:28px;
  }

  .calculator-faq h2{
    font-size:20px;
  }

  .calculator-faq summary{
    padding-top:15px;
    padding-bottom:15px;

    font-size:12px;
  }

}

/* STANDARD FEEDBACK-NOTE */

.feedback-note{
  margin-top:42px;
  padding:20px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:30px;

  border:1px solid var(--line);
  border-radius:11px;

  background:var(--surface);
}

.feedback-note strong{
  font-size:13px;
  font-weight:520;
}

.feedback-note p{
  max-width:430px;
  margin:4px 0 0;

  font-size:12px;
}

.feedback-note a{
  flex:0 0 auto;

  color:var(--accent);

  font-size:12px;
}

@media(max-width:620px){
  .feedback-note{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }
}

/* Feedback på Lån og Valuta – samme innholdsbredde som standard */
.loan-faq-wrap .feedback-note,
.currency-faq-wrap .feedback-note{
  width:min(680px,100%);
  margin-left:auto;
  margin-right:auto;
}

/* Lån og Valuta – match standard innholdsbredde */
.loan-faq-wrap .page,
.currency-faq-wrap .page{
  max-width:680px;
}

.loan-faq-wrap .feedback-note,
.currency-faq-wrap .feedback-note{
  width:auto;
  max-width:none;
}
