/* =========================================================
   FRBK – Custom CSS (+ Pico)
   - Light/Dark
   - Hero, kort, liste, knapper, nav, fokus
   - By Chris Rørvik 2026
   ========================================================= */

/* ---------- Brand (juster disse) ---------- */
:root{
  /* Klubbfarge (primær) – juster om du vil */
  --brand: #0172ad;

  /* En varm sekundærfarge */
  --brand-warm: #e25b2a;

  /* Radius og skygger */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(0,0,0,0.10);
  --shadow-soft: 0 10px 24px rgba(0,0,0,0.08);
}

/* ---------- Theme: DEFAULT = system lys ---------- */
:root{
  --bg: #fbfbfc;
  --surface: rgba(255,255,255,0.86);
  --surface-2: rgba(255,255,255,0.96);
  --text: rgba(10,13,18,0.92);
  --muted: rgba(10,13,18,0.68);
  --border: rgba(10,13,18,0.12);

  --link: var(--brand);
  --focus: rgba(11,94,215,0.35);

  --hero-media-bg:
    linear-gradient(135deg, rgba(10,13,18,0.10), rgba(10,13,18,0.00)),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), rgba(255,255,255,0.00)),
    rgba(10,13,18,0.05);
}

/* System mørk fallback */
@media (prefers-color-scheme: dark) {
  :root{
    --bg: #0b0f16;
    --surface: rgba(255,255,255,0.06);
    --surface-2: rgba(255,255,255,0.10);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.72);
    --border: rgba(255,255,255,0.14);

    --focus: rgba(11,94,215,0.45);

    --hero-media-bg:
      linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05)),
      radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.00)),
      rgba(255,255,255,0.05);
  }
}

/* Manual overstyring via knapp */
:root[data-theme="light"]{
  --bg: #fbfbfc;
  --surface: rgba(255,255,255,0.86);
  --surface-2: rgba(255,255,255,0.96);
  --text: rgba(10,13,18,0.92);
  --muted: rgba(10,13,18,0.68);
  --border: rgba(10,13,18,0.12);
  --focus: rgba(11,94,215,0.35);

  --hero-media-bg:
    linear-gradient(135deg, rgba(10,13,18,0.10), rgba(10,13,18,0.00)),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), rgba(255,255,255,0.00)),
    rgba(10,13,18,0.05);
}

:root[data-theme="dark"]{
  --bg: #0b0f16;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --border: rgba(255,255,255,0.14);
  --focus: rgba(11,94,215,0.45);

  --hero-media-bg:
    linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05)),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.00)),
    rgba(255,255,255,0.05);
}

/* ---------- Pico variabler mapping---------- */
:root{
  --pico-primary: var(--brand);
  --pico-primary-background: var(--brand);
  --pico-primary-border: var(--brand);
  --pico-border-radius: var(--radius);
  --content-wide: 72rem;
  --content-narrow: 70ch;
}

/* ---------- Globale verdier--------- */
html, body{
  background: var(--bg);
  color: var(--text);
}

/* Unngå layout-hopp når scrollbar dukker opp/forsvinner */
html{
  scrollbar-gutter: stable;
}

main.container{
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

/* Linker */
a{
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover{
  opacity: 0.9;
}

/* Fokus */
:where(a, button, input, textarea, select):focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- Header / nav ---------- */
header.container{
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 20;
}

header nav{
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.25rem 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 21;
}

header nav a{
  text-decoration: none;
}

header nav strong{
  letter-spacing: 0.2px;
}

header nav ul{
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-logo{
  height: 4.25rem;
  width: auto;
  display: block;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links li{
  list-style: none;
}

.nav-links a{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background-color 140ms ease, opacity 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover,
.nav-links a:active{
  background: rgba(255,255,255,0.12);
}

.nav-brand{
  display: flex;
  align-items: center;
}

.site-logo-link{
  display: inline-flex;
  align-items: center;
}

.menu-toggle{
  border: 0;
  background: transparent;
  padding: 0.35rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle__bar{
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-nav.is-open .menu-toggle__bar:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.site-nav.is-open .menu-toggle__bar:nth-child(2){
  opacity: 0;
}
.site-nav.is-open .menu-toggle__bar:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

/* Nav-actions (tema-knapp + hamburger, alltid synleg) */
.nav-actions{
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-actions > *{
  margin: 0;
}

.no-js .menu-toggle{
  display: none !important;
}

/* Theme bryter */
/* Facebook i mobil-meny — skjult på desktop */
.nav-links__facebook{ display: none; }

.nav-actions .nav-facebook{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.15s;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}
.nav-actions .nav-facebook:hover{
  opacity: 1;
  color: var(--text);
  background: rgba(255,255,255,0.12);
}
.nav-actions .nav-facebook:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.theme-toggle{
  border: 0;
  border-radius: 999px;
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
}
.theme-toggle:hover{
  background: rgba(255,255,255,0.12);
}

.theme-toggle:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.theme-icon{
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 220ms ease, opacity 220ms ease;
}

.theme-icon--sun{
  color: rgba(255,219,88,0.85);
}

.theme-icon--moon{
  color: rgba(230,238,255,0.9);
}

.theme-icon--moon{
  position: absolute;
  opacity: 0;
  transform: translateY(2px) scale(0.9);
}

:root[data-theme="dark"] .theme-icon--sun{
  opacity: 0;
  transform: rotate(-35deg) scale(0.85);
}

:root[data-theme="dark"] .theme-icon--moon{
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme]) .theme-icon--sun{
    opacity: 0;
    transform: rotate(-35deg) scale(0.85);
  }
  :root:not([data-theme]) .theme-icon--moon{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-toggle.is-toggling .theme-icon--sun{
  animation: spin-sun 520ms ease;
}

.theme-toggle.is-toggling .theme-icon--moon{
  animation: sway-moon 520ms ease;
}

@keyframes spin-sun{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(180deg); }
}

@keyframes sway-moon{
  0%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-2px) rotate(-10deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}

/* Active nav-lenke */
.nav-links a[aria-current="page"] {
  font-weight: 700;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Husker ikke >_< ---------- */
.lead{
  font-size: 1.125rem;
  color: var(--muted);
}

.muted{
  color: var(--muted);
}

/* ---------- Knapper (Pico role="button") ---------- */
a[role="button"], button{
  border-radius: 999px;
}

/* Secondary knapper bedre kontrast */
a[role="button"].secondary{
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
a[role="button"].secondary:hover{
  background: var(--surface) !important;
}

/* ---------- Kort ---------- */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card--newslist,
.card--matches{
  padding: 1.25rem;
}

.card--quicklinks{
  padding: 1.25rem;
}

.card__header{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.card__header a{
  font-size: 0.95rem;
  opacity: 0.9;
}

.card__eyebrow{
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

/* ---------- Hjem grid (nyheter + kamper) ---------- */
.home-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: var(--content-wide);
  margin: 1.75rem auto 2rem;
}

.section-intro{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  max-width: var(--content-wide);
  margin: 2rem auto 1rem;
}

.section-intro__eyebrow{
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.section-intro h2{
  margin: 0 0 0.25rem;
}

.section-intro p{
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.section-intro__link{
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
}

.news-showcase{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1.25rem;
  max-width: var(--content-wide);
  margin: 0 auto 2rem;
}

.news-feature{
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 22rem;
  padding: 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(9,13,20,0.10), rgba(9,13,20,0.72)),
    linear-gradient(135deg, rgba(1,114,173,0.9), rgba(226,91,42,0.75));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-feature:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.18);
}

.news-feature__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.84rem;
}

.news-feature__tag{
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-feature h3{
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  color: #fff;
}

.news-feature p{
  margin: 0;
  max-width: 44ch;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  line-height: 1.65;
}

.news-feature__cta{
  margin-top: 1.5rem;
  font-weight: 700;
}

.quick-links{
  display: grid;
  gap: 0.85rem;
}

.quick-link-card{
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(1,114,173,0.03));
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.quick-link-card:hover{
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: var(--shadow);
}

.quick-link-card h3{
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.quick-link-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- List items ---------- */
.list{
  display:grid;
  gap: 0.5rem;
}

.list__item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-decoration: none;
}

.list__item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

:root[data-theme="dark"] .list__item:hover{
  box-shadow: 0 12px 20px rgba(0,0,0,0.35);
}

.list__item--static{
  cursor: default;
}

.list__title{
  font-weight: 650;
  color: var(--text);
}

.list__meta{
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Kampliste ---------- */
.match-list{
  display: grid;
  gap: 0.4rem;
}

.match-item{
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  gap: 0.6rem 0.85rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.match-item__date{
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
}

.match-item__day{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.match-item__month{
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.match-item__info{
  min-width: 0;
}

.match-item__teams{
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-item__location{
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-item__time{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  align-self: start;
  padding-top: 0.15rem;
}

/* Knapper under kampkortet */
.actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top: 1rem;
}

/* ---------- Masthead (bakgrunn bak nav + hero) ---------- */
.masthead{
  background-image:
    linear-gradient(180deg, rgba(9,13,20,0.72), rgba(9,13,20,0.45)),
    var(--masthead-image, url("/img/hero-fotballbane.jpg"));
  background-position: center, var(--masthead-position, center);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  padding: 0.75rem 0 1.25rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.96);
  --text: rgba(255,255,255,0.96);
  --muted: rgba(255,255,255,0.78);
  --border: rgba(255,255,255,0.22);
  --surface: rgba(9,12,18,0.30);
  --surface-2: rgba(9,12,18,0.45);
  --link: rgba(255,255,255,0.96);
  --focus: rgba(255,255,255,0.45);
}

.masthead--hero{
  padding-bottom: 2.5rem;
}

.masthead__content{
  padding-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.masthead header nav a{
  color: var(--text);
}


.masthead h1,
.masthead p,
.masthead a{
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.masthead .hero-card__text,
.masthead .hero-card__text h1,
.masthead .hero-card__text p{
  color: rgba(255,255,255,0.96);
}

.masthead .hero-card{
  background: transparent;
  border: 0;
  box-shadow: none;
}


.hero-card__grid--single{
  grid-template-columns: 1fr;
}

.hero-card--overlay .hero-card__text{
  padding: 1.75rem 1.5rem;
}

.hero-card{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card__grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
}

.hero-card__text{
  padding: 1.25rem;
}

.hero-card__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero__actions{
  display:flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}


/* Høyre side media området */
.hero-card__media{
  min-height: 240px;
  border-left: 1px solid var(--border);
  background: var(--hero-media-bg);
}

/* Om jeg senere bytter til en <img>, vil det fortsatt se bra ut */
.hero-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* ---------- "Badges" seksjon ---------- */
.badges{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.badges--supporting{
  margin-top: 0.5rem;
}

.badge{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.25rem 1.4rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.badge::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.badge:nth-child(1)::before{
  background: var(--brand);
}
.badge:nth-child(2)::before{
  background: var(--brand-warm);
}
.badge:nth-child(3)::before{
  background: linear-gradient(180deg, var(--brand), var(--brand-warm));
}

.badge strong{
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.badge span{
  display:block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- Sponsorer ---------- */
.sponsors{
  /* egen linje under badges */
  margin: 3rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* sørg for at overskrifter over seksjonene ikke presser innholdet ulikt */
.badges > h2,
.badges h3{
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.sponsors > h2,
.sponsors h3{
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.sponsors__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: center;
}

.sponsor,
.sponsor-card{
  aspect-ratio: 3 / 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(11,94,215,0.06), rgba(226,91,42,0.03)),
    var(--surface);
  padding: 0.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
}

/* Same utsjånad som lyst tema i dark mode */
:root[data-theme="dark"] .sponsor,
:root[data-theme="dark"] .sponsor-card{
  background:
    linear-gradient(90deg, rgba(11,94,215,0.06), rgba(226,91,42,0.03)),
    #e8eef5;
  border-color: rgba(0,0,0,0.08);
}

.sponsor img,
.sponsor-card img{
  /* gjør alle logoer konsekvente, behold proporsjoner og sentrer */
  max-height: 140px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display:block;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
footer.container{
  margin-top: 3rem;
  opacity: 0.85;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-meta{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo{
  height: 2em;
  width: auto;
}

.footer-tagline{
  white-space: nowrap;
}

.footer-legal{
  margin-top: 0.5rem;
  opacity: 0.5;
}
.footer-legal a{
  color: inherit;
  text-decoration: none;
  font-size: 0.75rem;
}
.footer-legal a:hover{
  text-decoration: underline;
}

/* ---------- Mobil ---------- */
@media (max-width: 1280px){
  .sponsor img, .sponsor-card img{ max-height: 5rem; }
}
@media (max-width: 900px){
  header nav{
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .js .menu-toggle{
    display: inline-flex;
  }
  .js .nav-links{
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    flex-basis: 100%;
    padding: 0.35rem 0 0.5rem;
    order: 3;
    position: relative;
    z-index: 2;
  }
  .site-nav.is-open .nav-links{
    display: flex;
    position: relative;
    z-index: 30;
  }
  .no-js .nav-links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    flex-basis: 100%;
    padding-bottom: 0.5rem;
    order: 3;
  }
  .nav-actions .nav-facebook--desktop{ display: none; }
  .nav-links__facebook{ display: list-item; }

  .nav-brand{
    flex: 1;
  }
  .nav-links{
    justify-content: center;
    align-items: center;
  }
  .nav-links li{
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
  }
  .nav-links a{
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1rem;
    background: transparent;
    border: 0;
  }
  .nav-links__facebook a{
    gap: 0.35rem;
  }
  .section-intro{
    flex-direction: column;
    align-items: start;
  }
  .news-showcase{
    grid-template-columns: 1fr;
  }
  .masthead--hero header nav{
    padding-left: 0;
  }
  .home-grid{ grid-template-columns: 1fr; }
  .hero-card__grid{ grid-template-columns: 1fr; }
  .hero-card__media{
    border-left: 0;
    border-top: 1px solid var(--border);
    min-height: 180px;
  }
  .masthead{
    padding-bottom: 1rem;
  }
  .masthead--hero{
    padding-bottom: 1.75rem;
  }
  .masthead__content{
    padding-top: 0.75rem;
  }
  .hero-card--overlay .hero-card__text{
    padding: 1.25rem 1rem;
  }
  .badges{ grid-template-columns: 1fr; }
  .sponsors__grid{ grid-template-columns: repeat(2, 1fr); }
  .sponsor img, .sponsor-card img{ max-height: 4rem; }
  .facts-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .prose--om-klubben .facts-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .prose--kontakt .contact-grid{
    grid-template-columns: 1fr;
    max-width: none;
  }
  .document-card,
  .timeline-item{
    grid-template-columns: 1fr;
  }
  .document-card__year{
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .timeline::before,
  .timeline-item::before{
    display: none;
  }
}

@media (max-width: 720px){
  .badges{ grid-template-columns: repeat(2, 1fr); }
  .hero-card__grid{ grid-template-columns: 1fr; }
  .hero-card__media{
    border-left: 0;
    border-top: 1px solid var(--border);
    min-height: 160px;
  }
}

@media (max-width: 560px){
  header nav{
    padding: 0.5rem 0;
  }
  header nav ul{
    column-gap: 0.6rem;
  }
  .site-logo{
    height: 4rem;
  }
  .footer-meta{
    flex-direction: column;
    gap: 0.25rem;
  }
  .footer-title,
  .footer-tagline{
    display: block;
    text-align: center;
  }
  .footer-logo{
    order: 2;
  }
  .footer-tagline{
    order: 3;
    white-space: normal;
  }
  .footer-logo{
    height: 3.5rem;
  }
  .sponsor img, .sponsor-card img{ max-height: 2.8rem; }
  .list__item{
    grid-template-columns: 1fr;
  }
  .list__meta{
    white-space: normal;
  }
  .prose__body--surface{
    padding: 1.1rem 1rem;
  }
  .contact-card,
  .fact-card{
    padding: 1rem;
  }
  .contact-card h3{
    font-size: 1.05rem;
  }
  .contact-card__role{
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }
  .page-highlight{
    min-height: auto;
    padding: 0.95rem 1rem;
  }
  .contact-card__details{
    gap: 0.45rem;
    margin-top: 0.8rem;
  }
  .contact-card__details a{
    font-size: 0.96rem;
    overflow-wrap: anywhere;
  }
  .fact-card__value{
    font-size: 1.05rem;
  }
  .prose--om-klubben .facts-grid{
    grid-template-columns: 1fr;
  }
}

/* ---------- Side-header ---------- */
.page-header {
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--content-wide);
  margin: 0 auto 2rem;
}
.page-header--rich{
  padding-bottom: 1.25rem;
}
.page-header__meta{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}
.page-header .lead {
  margin: 0;
  max-width: 48rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ---------- Nyheitsgrid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--content-wide);
  margin: 0 auto 2rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card--feature{
  margin-bottom: 2rem;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-card__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
}
.news-card__img-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-warm) 100%);
  opacity: 0.65;
}

.news-card__body {
  padding: 1.1rem 1.1rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.news-card__kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(1,114,173,0.10);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.news-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.22;
}

.news-card__summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.news-card__read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.news-card--feature .news-card__img,
.news-card--feature .news-card__img-placeholder {
  aspect-ratio: 16 / 8;
}

.news-card--feature .news-card__title {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.news-card--feature .news-card__summary {
  max-width: 62ch;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Artikkel / Prose ---------- */
.prose {
  max-width: var(--content-narrow);
}

.prose--page{
  max-width: none;
}

.article-header {
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 2px solid var(--border);
  max-width: var(--content-narrow);
  margin: 0 auto 2rem;
}

.article-header--feature{
  padding-bottom: 1.75rem;
}

.article-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(1,114,173,0.1);
}

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.article-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.prose__body {
  line-height: 1.75;
}

.prose__body--surface{
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.prose__body p {
  margin-bottom: 1.25rem;
}
.prose__body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.prose__body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose__body img {
  border-radius: var(--radius-sm);
  max-width: 100%;
  margin: 1.5rem 0;
}
.prose__body ul,
.prose__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose__body li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}
.prose__body blockquote {
  border-left: 3px solid var(--brand);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  width: fit-content;
}
.back-link:hover {
  color: var(--brand);
}

.sponsor-card--static {
  cursor: default;
}

.page-highlights{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  max-width: var(--content-wide);
  margin: -0.75rem auto 1.5rem;
}

.page-highlight{
  display: flex;
  align-items: flex-start;
  min-height: 5rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
}

.info-section{
  max-width: var(--content-wide);
  margin: 2rem auto;
  padding-inline: 0;
}

.info-section .section-intro{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.info-section .section-intro p{
  max-width: 42rem;
}

.facts-grid,
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.prose--om-klubben .facts-grid{
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  max-width: 52rem;
}

.prose--kontakt .contact-grid{
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  max-width: 62rem;
}

.prose--styre .contact-grid{
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: 68rem;
}

.fact-card,
.contact-card,
.document-card,
.timeline-item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.fact-card{
  padding: 1.1rem 1.15rem;
  min-width: 0;
}

.fact-card__label,
.contact-card__role{
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.fact-card__value{
  margin-top: 0.5rem;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.contact-card{
  padding: 1.25rem;
  min-width: 0;
}

.contact-card h3{
  margin: 0.45rem 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.2;
  text-wrap: balance;
}

.contact-card__details{
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  min-width: 0;
}

.contact-card__details a{
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}

.document-list,
.timeline{
  display: grid;
  gap: 1rem;
}

.document-card{
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  overflow: hidden;
}

.document-card__year{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(1,114,173,0.10), rgba(226,91,42,0.06));
  border-right: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
}

.document-card__body{
  padding: 1.1rem 1.15rem;
}

.document-card__body h3{
  margin: 0 0 0.5rem;
}

.document-card__body a{
  font-weight: 600;
  text-decoration: none;
}

.timeline{
  position: relative;
}

.timeline::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6.1rem;
  width: 1px;
  background: var(--border);
}

.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.timeline-item::before{
  content: "";
  position: absolute;
  left: 5.78rem;
  top: 1.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.timeline-item__year{
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
}

.timeline-item__content h3{
  margin: 0;
  font-size: 1.1rem;
}

.timeline-item__content p{
  margin: 0.45rem 0 0;
  color: var(--muted);
}

/* ---------- Spelarprofilar ---------- */
.players-grid {
  display: grid;
  gap: 1.25rem;
}

.player-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  border-left: 4px solid var(--brand);
}

.player-card__photo {
  flex-shrink: 0;
}

.player-card__photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.player-card__body {
  flex: 1;
  min-width: 0;
}

.player-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.player-card__stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.player-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.player-stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.player-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.player-card__clubs {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.player-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Tomme tilstandar ---------- */
.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- Skip-lenke (tilgjengelegheit) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.5rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid rgba(255,255,255,0.7);
  outline-offset: -3px;
}

/* =========================================================
   FRBK Chat-widget
   ========================================================= */

.frbk-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: inherit;
  pointer-events: none;
}

.frbk-chat::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.chat-open .frbk-chat::before {
  opacity: 1;
  pointer-events: auto;
}

body.footer-chat-hidden:not(.chat-open) .frbk-chat {
  opacity: 0;
}

body.footer-chat-hidden:not(.chat-open) .frbk-chat__toggle {
  pointer-events: none;
}

/* --- Toggle-knapp --- */
.frbk-chat__toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11,94,215,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  padding: 0;
  flex-shrink: 0;
  pointer-events: auto;
}
.frbk-chat__toggle:hover {
  background: #0a4fb3;
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(11,94,215,0.45);
}
.frbk-chat__toggle--open {
  background: #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.frbk-chat__toggle--open:hover {
  background: #444;
}

/* --- Vindauge --- */
.frbk-chat__window {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 3rem));
  max-height: 70vh;
  background: var(--surface-2, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  border-radius: var(--radius, 16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.frbk-chat__window--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* --- Header --- */
.frbk-chat__header {
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
.frbk-chat__title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.frbk-chat__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.frbk-chat__close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.frbk-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.frbk-chat__new {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 1.1rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.frbk-chat__new:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.frbk-chat__input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.frbk-chat__counter {
  font-size: 0.7rem;
  color: var(--muted, rgba(10,13,18,0.55));
  text-align: right;
  padding-right: 0.4rem;
  line-height: 1;
}

/* --- Meldingsområde --- */
.frbk-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}

/* --- Meldingsboblar --- */
.frbk-chat__msg {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
}
.frbk-chat__msg--user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.frbk-chat__msg--assistant {
  align-self: flex-start;
  background: var(--surface, rgba(255,255,255,0.86));
  color: var(--text, rgba(10,13,18,0.92));
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  border-bottom-left-radius: 4px;
}

/* Dark mode for chat-vindauget */
[data-theme="dark"] .frbk-chat__window,
[data-theme="dark"] .frbk-chat__footer {
  background: #1a2030;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .frbk-chat__window,
  :root:not([data-theme="light"]) .frbk-chat__footer {
    background: #1a2030;
  }
}

/* Dark mode for assistent-boblane */
[data-theme="dark"] .frbk-chat__msg--assistant {
  background: #252e42;
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .frbk-chat__msg--assistant {
    background: #252e42;
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
  }
}

/* --- Laste-animasjon (tre prikkar) --- */
.frbk-chat__msg--loading {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.7rem 1rem;
}
.frbk-chat__msg--loading span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0.5;
  animation: frbk-bounce 1.2s infinite ease-in-out;
}
.frbk-chat__msg--loading span:nth-child(1) { animation-delay: 0s;   background: #e25b2a; }
.frbk-chat__msg--loading span:nth-child(2) { animation-delay: 0.2s; background: #c0392b; }
.frbk-chat__msg--loading span:nth-child(3) { animation-delay: 0.4s; background: var(--brand); }
@keyframes frbk-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* --- Inndata-rad --- */
.frbk-chat__footer {
  padding: 0.65rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  border-top: 1px solid var(--border, rgba(0,0,0,0.1));
  background: var(--surface-2, #fff);
  flex-shrink: 0;
}
.frbk-chat__input {
  width: 100%;
  border: 1px solid var(--border, rgba(0,0,0,0.15));
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  font-size: 16px;
  background: var(--bg, #fbfbfc);
  color: var(--text, rgba(10,13,18,0.92));
  outline: none;
  transition: border-color 0.15s;
  margin: 0;
}
.frbk-chat__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus, rgba(11,94,215,0.2));
}
.frbk-chat__send {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
  padding: 0;
  margin: 0;
  align-self: center;
}
.frbk-chat__send:hover {
  background: #0a4fb3;
  transform: scale(1.08);
}
.frbk-chat__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Mobiltilpassing --- */
@media (max-width: 720px) {
  .frbk-chat {
    left: 0;
    right: 0;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    align-items: center;
    gap: 0.5rem;
  }
  .frbk-chat__window {
    position: fixed;
    left: 0.375rem;
    right: 0.375rem;
    bottom: 0;
    width: min(100vw - 0.75rem, 34rem);
    max-height: min(78dvh, 78vh);
    border-radius: 1.35rem 1.35rem 0 0;
    transform: translateY(calc(100% + 5rem));
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
  }
  .frbk-chat__window--open {
    transform: translateY(0);
  }
  .frbk-chat__input {
    padding: 0.55rem 0.95rem;
  }
  .frbk-chat__toggle {
    width: 3.1rem;
    height: 3.1rem;
    box-shadow: 0 10px 26px rgba(11,94,215,0.34);
  }
  body.chat-open .frbk-chat {
    bottom: 0;
  }
  body.chat-open .frbk-chat__toggle {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  body.nav-menu-open .frbk-chat {
    opacity: 0;
    pointer-events: none;
  }

  body.nav-menu-open.nav-menu-scrolled .frbk-chat {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Redusert rørsle (tilgjengelegheit) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .frbk-chat__messages {
    scroll-behavior: auto;
  }
  .list__item:hover {
    transform: none;
    box-shadow: none;
  }
}
