/* Kolstad Fotball – offentlig forside */

:root {
  --red: #e1262d;
  --red-dark: #c41f24;
  --ink: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --panel: #f4f4f5;
  --footer: #121212;
  --shell: 1320px;
  --header-h: 68px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --shadow-header: 0 1px 0 rgba(24, 24, 27, 0.06);
  --shadow-header-soft: 0 1px 0 rgba(24, 24, 27, 0.06),
    0 6px 18px rgba(24, 24, 27, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  font-size: 16px;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 50px;
  padding: 0.65rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: filter 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(0.95);
}

.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn__play {
  font-size: 0.7rem;
}

.site-header__cta {
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.45rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
}

/* Forside: header over hero — mørk glass */
.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 14, 0.22),
    rgba(8, 12, 14, 0.12)
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.22s ease, border-color 0.22s ease,
    backdrop-filter 0.22s ease;
}

.site-header--overlay .brand {
  gap: 12px;
}

.site-header--overlay .brand__logo {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
  box-sizing: border-box;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8))
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.site-header--overlay .brand__name {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-header--overlay .brand__tagline {
  margin-top: 1px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-header--overlay .nav__list {
  gap: 0.15rem;
}

.site-header--overlay .nav > .nav__list > li > a,
.site-header--overlay .nav .has-dropdown > button {
  padding: 0.45rem 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-header--overlay .nav > .nav__list > li > a:hover,
.site-header--overlay .nav .has-dropdown > button:hover {
  color: rgba(255, 255, 255, 0.82);
}

.site-header--overlay .nav > .nav__list > li > a.is-active {
  color: #fff;
}

.site-header--overlay .nav > .nav__list > li > a.is-active::after {
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.15rem;
  background: var(--red);
}

.site-header--overlay .nav-toggle span:not(.sr-only) {
  background: #fff;
}

/* Dropdown — hvit panel som i referanse */
.site-header--overlay .has-dropdown > ul {
  top: 100%;
  min-width: 240px;
  padding: 10px 0;
  background: #fff;
  color: #3f3f46;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.site-header--overlay .has-dropdown > ul a {
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3f3f46;
}

.site-header--overlay .has-dropdown > ul a:hover,
.site-header--overlay .has-dropdown > ul a:focus-visible {
  color: var(--ink);
  background: #f4f4f5;
}

.site-header--overlay .has-dropdown > ul a.is-active {
  color: var(--red);
  background: transparent;
}

.site-header--overlay.is-scrolled {
  background: rgba(8, 12, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header--overlay.is-scrolled .brand__name,
.site-header--overlay.is-scrolled .nav > .nav__list > li > a,
.site-header--overlay.is-scrolled .nav .has-dropdown > button {
  color: #fff;
}

.site-header--overlay.is-scrolled .brand__tagline {
  color: rgba(255, 255, 255, 0.75);
}

.site-header--overlay.is-scrolled .nav > .nav__list > li > a:hover,
.site-header--overlay.is-scrolled .nav .has-dropdown > button:hover {
  color: rgba(255, 255, 255, 0.82);
}

.site-header--overlay.is-scrolled .nav > .nav__list > li > a.is-active {
  color: #fff;
}

.site-header--overlay.is-scrolled .nav-toggle span:not(.sr-only) {
  background: #fff;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand__name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  justify-self: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav a,
.nav .has-dropdown > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.48rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3f3f46;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav .has-dropdown > button:hover {
  color: var(--red);
}

.nav a.is-active {
  color: var(--red);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.48rem;
  right: 0.48rem;
  bottom: 0.05rem;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > button::after {
  content: "▾";
  font-size: 0.65rem;
  opacity: 0.7;
}

.has-dropdown > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-width: min(360px, 90vw);
  padding: 10px 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 60;
}

/* Usynlig hover-bro mellom trigger og panel */
.has-dropdown > ul::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Vis kun via .is-open (JS) — ellers kan :hover + :focus-within åpne flere samtidig */
.has-dropdown.is-open > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.has-dropdown > ul a {
  display: block;
  width: 100%;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3f3f46;
  white-space: nowrap;
}

.has-dropdown > ul a:hover,
.has-dropdown > ul a:focus-visible {
  background: #f4f4f5;
  color: var(--ink);
}

.nav a.is-cms-empty {
  opacity: 0.55;
}

.nav a.is-cms-empty::after {
  content: " (tom)";
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.85;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline: 6px 4px;
}

.header-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #3f3f46;
  opacity: 0.9;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.header-social__link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.header-social__link:hover,
.header-social__link:focus-visible {
  color: var(--red);
  opacity: 1;
}

.site-header--overlay .header-social__link {
  color: #fff;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.site-header--overlay .header-social__link:hover,
.site-header--overlay .header-social__link:focus-visible {
  color: var(--red);
  filter: none;
  opacity: 1;
}

.nav__social {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
}

/* Hero — strammet: litt lavere, innhold opp/venstre */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 575px;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.hero > picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.hero__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 58%;
  filter: brightness(1.02) contrast(1.05) saturate(1.06);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.58) 26%,
      rgba(0, 0, 0, 0.36) 50%,
      rgba(0, 0, 0, 0.2) 72%,
      rgba(0, 0, 0, 0.14) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.12) 22%,
      rgba(0, 0, 0, 0.1) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
  padding-top: var(--header-h);
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.hero__copy {
  max-width: 540px;
  margin-left: -14px;
}

.hero h1 {
  max-width: 540px;
  margin: 0;
  font-size: 2.28rem;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--red);
}

.hero__lead {
  margin-top: 16px;
  max-width: 36em;
  font-size: 1rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__slogan {
  position: absolute;
  z-index: 1;
  right: clamp(2.75rem, 5.5vw, 5rem);
  bottom: clamp(2.5rem, 5vw, 3.75rem);
  left: auto;
  margin: 0;
  max-width: 165px;
  line-height: 0;
  pointer-events: none;
}

.hero__slogan-img {
  display: block;
  width: auto;
  max-width: 165px;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.3));
}

/* Hero entrance — mounted-state (JS: --enter → --motion → --mounted) */
.hero.hero--enter .hero__title,
.hero.hero--enter .hero__lead,
.hero.hero--enter .hero__actions,
.hero.hero--enter .hero__slogan {
  opacity: 0;
  transition: none;
  will-change: transform, opacity;
}

.hero.hero--enter .hero__title {
  transform: translateX(-80px);
}

.hero.hero--enter .hero__lead {
  transform: translateX(-60px);
}

.hero.hero--enter .hero__actions {
  transform: translateX(-40px);
}

.hero.hero--enter .hero__slogan {
  transform: translateX(80px);
}

/* Steg 2: transition på, verdier fortsatt hidden */
.hero.hero--enter.hero--motion .hero__title,
.hero.hero--enter.hero--motion .hero__lead,
.hero.hero--enter.hero--motion .hero__actions,
.hero.hero--enter.hero--motion .hero__slogan {
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.hero--enter.hero--motion .hero__lead {
  transition-duration: 700ms, 700ms;
}

.hero.hero--enter.hero--motion .hero__actions {
  transition-duration: 650ms, 650ms;
}

/* Steg 3: synlig */
.hero.hero--enter.hero--mounted .hero__title,
.hero.hero--enter.hero--mounted .hero__lead,
.hero.hero--enter.hero--mounted .hero__actions,
.hero.hero--enter.hero--mounted .hero__slogan {
  opacity: 1;
  transform: translateX(0);
}

.hero.hero--enter.hero--mounted .hero__title {
  transition-delay: 0ms;
}

.hero.hero--enter.hero--mounted .hero__lead {
  transition-delay: 180ms;
}

.hero.hero--enter.hero--mounted .hero__actions {
  transition-delay: 320ms;
}

.hero.hero--enter.hero--mounted .hero__slogan {
  transition-delay: 280ms;
}

/* Hover/andre motion: reduced-motion. Hero-inngang kjøres alltid (ellers skjules den på denne maskinen). */

/* Sections shared */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head--stack {
  flex-direction: column;
  align-items: flex-start;
}

.section-head h2 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

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

/* News + matches */
.home-split {
  background: #fff;
  padding: 32px 0 48px;
}

.home-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: start;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Usynlig plassholder-kort: tar plass uten å synes */
.news-card--slot {
  visibility: hidden;
  pointer-events: none;
}

.news-card__body--slot {
  min-height: 9.75rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 24, 27, 0.06);
  border-radius: 6px;
  box-shadow: none;
  will-change: transform, opacity;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Load-animasjon: glide inn fra venstre (JS mounted-state + CSS transition) */
.news-card.news-card-hidden {
  opacity: 0;
  transform: translateX(-80px);
  transition: none;
}

.news-card.news-card-hidden.news-card-motion {
  /* Transition aktiv, verdier fortsatt hidden — nødvendig før flip til visible */
  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 800ms ease;
}

.news-card.news-card-visible {
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 800ms ease,
    border-color 0.15s ease,
    box-shadow 0.2s ease;
}

.news-card:not(.news-card-hidden):not(.news-card-visible) {
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  border-color: rgba(24, 24, 27, 0.12);
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.06);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e4e4e7;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.news-card time {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

.news-card h3 {
  margin-top: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.news-card:hover h3 {
  color: var(--red);
}

.news-card p {
  margin-top: 8px;
  flex: 1;
  font-size: 0.9rem;
  color: #3f3f46;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__author {
  flex: 0 0 auto !important;
  margin-top: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: #52525b !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

.news-card__more {
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red);
  transition: transform 0.2s ease;
  align-self: flex-start;
}

.news-card:hover .news-card__more {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  /* Hover-effekter av; inngangsglide beholdes (ellers skjules den helt på denne maskinen) */
  .news-card__image img,
  .news-card__more {
    transition: none;
  }

  .news-card:hover .news-card__image img,
  .news-card:hover .news-card__more {
    transform: none;
  }
}

.matches__list {
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 6px;
  background: #fff;
}

.matches__parken-link {
  display: inline-block;
  margin-top: 12px;
}

.match-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  transition: background 0.15s ease;
}

.matches__list li:last-child .match-row {
  border-bottom: 0;
}

.match-row:hover {
  background: #fafafa;
}

.match-row__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.15;
}

.match-row__date strong {
  margin: 4px 0;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1;
}

.match-row__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.match-row__main img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-row__teams {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.match-row__meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.match-row__end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 4px;
}

.match-row__end img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.match-row__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
}

/* Grasrotandelen – to-kolonne som på dagens Kolstad-side */
.grasrot {
  padding: 40px 0 48px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.grasrot__panel {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 650px;
}

.grasrot__cta {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem 0.75rem;
  background: #fff;
}

.grasrot__cta-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin: auto 0;
  max-width: 28rem;
  width: 100%;
  align-self: center;
}

.grasrot__cta h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #18181b;
}

.grasrot__cta p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3f3f46;
}

.grasrot__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #c8102e;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.grasrot__btn:hover {
  background: #a60d25;
  color: #fff;
}

.grasrot__cta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.grasrot__cta-foot a {
  color: #c8102e;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.grasrot__cta-foot a:hover {
  text-decoration: underline;
}

.grasrot__cta-foot img {
  display: block;
  width: 154px;
  height: auto;
}

.grasrot__stats {
  flex: 1 1 0;
  min-width: 0;
  max-width: 640px;
  height: 650px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.grasrot__stats iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 900px) {
  .grasrot__panel {
    flex-direction: column;
    min-height: 0;
  }

  .grasrot__stats {
    max-width: none;
    width: 100%;
  }

  .grasrot__cta {
    padding: 0.5rem 0 0;
  }
}

@media (max-width: 720px) {
  .grasrot__stats,
  .grasrot__stats iframe {
    height: 720px;
  }
}

/* Sponsors */
.sponsors {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid #f4f4f5;
  overflow: hidden;
}

.sponsors .section-head {
  margin-bottom: 32px;
}

.sponsors-heading-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sponsors-heading-link span {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.sponsors-heading-link:hover {
  color: var(--red);
}

.sponsors__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.sponsors__track {
  --sponsors-duration: 40s;
  --sponsors-gap: 5rem; /* 80px desktop */
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  padding-block: 0.25rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* !important: overstyr system «redusert bevegelse» / globale a11y-regler */
  animation: sponsors-scroll var(--sponsors-duration) linear infinite !important;
}

.sponsors__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--sponsors-gap);
  padding-right: var(--sponsors-gap);
  margin: 0;
  list-style: none;
}

@media (hover: hover) and (pointer: fine) {
  .sponsors__marquee:hover .sponsors__track {
    animation-play-state: paused !important;
  }
}

.sponsors__group li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 96px;
}

.sponsors__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  min-width: 120px;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.sponsors__logo img {
  width: auto;
  height: 72px;
  max-width: 240px;
  object-fit: contain;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Små/mørke/brede logoer trenger ekstra plass */
.sponsors__logo--boost {
  max-width: 320px;
  min-width: 160px;
}

.sponsors__logo--boost img {
  height: 96px;
  max-width: 320px;
}

.sponsors__logo:hover img,
.sponsors__logo:focus-visible img {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.03);
}

@keyframes sponsors-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--footer);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding: 56px 0 48px;
}

.site-footer h3 {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.brand--footer .brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}

.brand--footer .brand__name,
.brand--footer .brand__tagline {
  color: #fff;
}

.brand--footer .brand__tagline {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__slogan {
  margin-top: 24px;
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__slogan:has(.site-footer__slogan-img)::after {
  display: none;
}

.site-footer__slogan-img {
  display: block;
  width: min(240px, 70vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0.2rem;
}

.site-footer__slogan::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--red);
}

.site-footer__contact,
.site-footer__links {
  display: grid;
  gap: 12px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.site-footer__contact a:hover,
.site-footer__links a:hover {
  color: #fff;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social a,
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.site-footer__social-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.site-footer__social a:hover,
.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.site-footer__bottom-inner a {
  color: #fff;
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-footer__bottom-inner a:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 1280px) {
  .home-split__grid {
    gap: 36px;
  }

  .nav a,
  .nav .has-dropdown > button {
    padding: 0.3rem 0.4rem;
    font-size: 0.74rem;
  }

  .site-header--overlay .nav > .nav__list > li > a,
  .site-header--overlay .nav .has-dropdown > button {
    padding: 0.4rem 0.55rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 1100px) {
  .home-split__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 520px;
  }

  .hero__photo {
    object-position: center 60%;
  }

  .hero__copy {
    margin-left: -6px;
    transform: none;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero__slogan {
    right: 2.5rem;
    left: auto;
    bottom: 2.75rem;
    max-width: 150px;
  }

  .hero__slogan-img {
    max-width: 150px;
  }

  .sponsors__track {
    --sponsors-gap: 3.5rem; /* 56px */
  }

  .sponsors__logo {
    max-width: 210px;
    min-width: 100px;
  }

  .sponsors__logo img {
    height: 64px;
    max-width: 210px;
  }

  .sponsors__logo--boost {
    max-width: 280px;
    min-width: 140px;
  }

  .sponsors__logo--boost img {
    height: 84px;
    max-width: 280px;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-header__actions {
    order: 1;
  }

  .site-header__cta {
    display: none;
  }

  .header-social {
    display: none;
  }

  .nav__social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(24, 24, 27, 0.08);
  }

  .site-header--overlay .nav__social {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .nav__social .header-social__link {
    width: 22px;
    height: 22px;
  }

  .nav__social .header-social__link svg {
    width: 22px;
    height: 22px;
  }

  .site-header--overlay .nav__social .header-social__link {
    color: #fff;
  }

  .site-header--overlay .brand {
    gap: 12px;
  }

  .site-header--overlay .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  /* Mobil: lett transparent uten blur på topp */
  .site-header--overlay {
    background: linear-gradient(
      to bottom,
      rgba(8, 12, 14, 0.28),
      rgba(8, 12, 14, 0.14)
    );
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .site-header--overlay.is-scrolled {
    background: rgba(8, 12, 14, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .site-header--overlay .brand__name,
  .site-header--overlay.is-scrolled .brand__name {
    color: #fff;
  }

  .site-header--overlay .brand__tagline,
  .site-header--overlay.is-scrolled .brand__tagline {
    color: rgba(255, 255, 255, 0.75);
  }

  .site-header--overlay .nav-toggle span:not(.sr-only),
  .site-header--overlay.is-scrolled .nav-toggle span:not(.sr-only) {
    background: #fff;
  }

  .site-header--overlay .nav,
  .site-header--overlay .nav.is-open {
    background: rgba(12, 16, 18, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  .site-header--overlay .nav a,
  .site-header--overlay .nav .has-dropdown > button,
  .site-header--overlay.is-scrolled .nav a,
  .site-header--overlay.is-scrolled .nav .has-dropdown > button {
    color: rgba(255, 255, 255, 0.92);
  }

  .site-header--overlay .nav a.is-active,
  .site-header--overlay.is-scrolled .nav a.is-active {
    color: var(--red);
  }

  .site-header--overlay .has-dropdown > ul {
    position: static;
    margin: 0;
    padding: 0 0 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header--overlay .has-dropdown > ul a {
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.82);
  }

  .site-header--overlay .has-dropdown > ul a:hover,
  .site-header--overlay .has-dropdown > ul a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #fff;
    border-bottom: 0;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
  }

  .nav.is-open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav__list {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0 1.25rem;
  }

  .nav__list > li {
    width: 100%;
    border-bottom: 1px solid rgba(24, 24, 27, 0.08);
  }

  .nav a,
  .nav .has-dropdown > button {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .nav a.is-active::after {
    display: none;
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown > ul {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 0 0.35rem;
    background: rgba(24, 24, 27, 0.03);
    pointer-events: auto;
  }

  .has-dropdown > ul::before {
    display: none;
  }

  .has-dropdown.is-open > ul {
    display: block;
  }

  .has-dropdown > ul a {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem 0.85rem 1.75rem;
    white-space: normal;
  }

  .nav__social {
    margin-top: auto;
    margin-inline: 1.25rem;
    padding: 1rem 0 1.5rem;
  }

  .hero__content {
    padding-top: var(--header-h);
    padding-bottom: 0;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  .brand__tagline {
    display: none;
  }

  .site-header--overlay .brand {
    gap: 12px;
  }

  .site-header--overlay .brand__logo {
    width: 44px;
    height: 44px;
  }

  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .hero {
    height: 500px;
    min-height: 0;
  }

  .hero__photo {
    object-position: center 62%;
  }

  .hero__content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--header-h);
    padding-bottom: 0;
  }

  .hero__copy {
    max-width: min(540px, 100%);
    margin-left: 0;
  }

  .hero__slogan {
    right: 1.5rem;
    left: auto;
    bottom: 2rem;
    max-width: 140px;
  }

  .hero__slogan-img {
    max-width: 140px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero__lead {
    font-size: 0.98rem;
    margin-top: 14px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
  }

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

  .sponsors {
    padding: 40px 0;
  }

  .sponsors .section-head {
    margin-bottom: 28px;
  }

  .sponsors__track {
    --sponsors-gap: 2.5rem; /* 40px */
  }

  .sponsors__logo {
    max-width: 180px;
    min-width: 90px;
  }

  .sponsors__logo img {
    height: 56px;
    max-width: 180px;
  }

  .sponsors__logo--boost {
    max-width: 240px;
    min-width: 120px;
  }

  .sponsors__logo--boost img {
    height: 72px;
    max-width: 240px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }

  .home-split {
    padding: 24px 0 32px;
  }

  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }

  .match-row {
    padding: 12px;
    gap: 8px;
  }
}

/* Matches page */
.matches-page {
  padding: 40px 0 72px;
  background:
    linear-gradient(180deg, #f7f7f8 0%, #fff 28%),
    #fff;
  min-height: 60vh;
}

.matches-page__intro {
  max-width: 40rem;
  margin-bottom: 28px;
}

.matches-page__eyebrow {
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.matches-page h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.matches-page h1::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--red);
}

.matches-page__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.matches-page__status {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.matches-page__actions {
  margin-top: 1rem;
}

.matches-page__toggle {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border: 1.5px solid #d4d4d8;
  background: #fff;
  color: var(--ink, #18181b);
}

.matches-page__toggle:hover:not(:disabled) {
  border-color: var(--red, #c8102e);
  background: #fafafa;
  color: var(--red, #c8102e);
}

.matches-page__toggle:disabled {
  opacity: 0.55;
  cursor: default;
}

.matches-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 0.4rem;
  background: #fff;
}

.matches-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: min(100%, 14rem);
  flex: 1 1 12rem;
}

.matches-filter__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.matches-filter select {
  appearance: none;
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 0.8rem;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 0.35rem;
  background:
    linear-gradient(45deg, transparent 50%, #71717a 50%) calc(100% - 1.1rem) calc(50% - 0.18rem) / 0.4rem 0.4rem no-repeat,
    linear-gradient(135deg, #71717a 50%, transparent 50%) calc(100% - 0.75rem) calc(50% - 0.18rem) / 0.4rem 0.4rem no-repeat,
    #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.matches-filter select:focus {
  outline: 2px solid rgba(225, 38, 45, 0.35);
  outline-offset: 1px;
  border-color: rgba(225, 38, 45, 0.45);
}

.matches--page .matches__list {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.matches__day + .matches__day {
  margin-top: 1.35rem;
}

.matches__day-title {
  margin: 0 0 0.55rem;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.matches__day-list {
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 6px;
  background: #fff;
}

.matches__day-list > li:last-child .match-row {
  border-bottom: 0;
}

.matches__loading,
.matches__empty {
  padding: 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 720px) {
  .matches-page {
    padding: 28px 0 56px;
  }
}

/* Sponsors page */
.sponsors-page {
  padding: 48px 0 80px;
  background: #fff;
  min-height: 50vh;
}

.sponsors-page__title {
  margin: 12px 0 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: -0.01em;
}

.sponsors-page__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px 40px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sponsors-page__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
}

.sponsors-page__item img {
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sponsors-page__item--boost img {
  max-height: 96px;
}

a.sponsors-page__item:hover img {
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .sponsors-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
  }
}

@media (max-width: 720px) {
  .sponsors-page {
    padding: 32px 0 56px;
  }

  .sponsors-page__title {
    margin-bottom: 28px;
  }

  .sponsors-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .sponsors-page__item {
    min-height: 72px;
  }

  .sponsors-page__item img {
    max-height: 56px;
  }

  .sponsors-page__item--boost img {
    max-height: 72px;
  }

  .sponsors .section-head {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

/* Undersider (CMS-lignende PageRenderer) */
.page-shell {
  background: #fff;
  min-height: calc(100vh - var(--header-h) - 220px);
}

.page-shell__inner {
  width: min(100% - 2.5rem, 960px);
  margin-inline: auto;
  padding: 48px 0 64px;
}

@media (min-width: 768px) {
  .page-shell__inner {
    padding: 56px 0 72px;
  }
}

.page-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #52525b;
}

.page-breadcrumbs a {
  color: var(--red);
  font-weight: 600;
}

.page-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-breadcrumbs__sep {
  margin-inline: 0.35rem;
  color: #a1a1aa;
}

.page-title {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0;
}

.page-title-row .page-title {
  margin: 0;
}

.page-title-row__btn {
  flex-shrink: 0;
}

.page-body {
  margin-top: 1.75rem;
}

.page-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: #71717a;
}

.page-empty-spacer {
  min-height: 3rem;
}

.page-prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #27272a;
}

.page-prose h2,
.page-prose h3 {
  margin: 1.5rem 0 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-prose p {
  margin: 0 0 0.9rem;
}

.page-prose ul,
.page-prose ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.page-prose ol {
  list-style: decimal;
}

.page-prose li {
  margin-bottom: 0.45rem;
}

.page-prose h2 {
  font-size: 1.25rem;
}

.page-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
}

.page-prose th,
.page-prose td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.page-prose th {
  width: 38%;
  font-weight: 600;
  color: #52525b;
}

.page-prose thead th {
  width: auto;
  font-weight: 700;
  color: inherit;
}

.page-prose table + .page-prose,
.page-body > .page-prose + .page-prose {
  margin-top: 1.75rem;
}

.page-figure {
  margin: 1.25rem 0;
}

.page-figure img {
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.page-figure--logo {
  max-width: 280px;
  margin: 0 auto 1.5rem;
}

.page-figure--logo img {
  display: block;
  width: 100%;
  height: auto;
}

.file-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.page-prose .file-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.page-prose .file-list li {
  margin: 0;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.55rem;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-prose .file-card {
  color: inherit;
  text-decoration: none;
}

.file-card:hover {
  border-color: #d4d4d8;
  background: #f4f4f5;
}

.file-card__icon {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.75rem;
  border-radius: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.file-card__icon--pdf {
  background: linear-gradient(160deg, #ef4444, #b91c1c);
}

.file-card__icon--xls {
  background: linear-gradient(160deg, #22c55e, #15803d);
}

.file-card__icon--doc {
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
}

.file-card__icon--ppt {
  background: linear-gradient(160deg, #f97316, #c2410c);
}

.file-card__icon--img {
  background: linear-gradient(160deg, #8b5cf6, #6d28d9);
}

.file-card__icon--file {
  background: linear-gradient(160deg, #a1a1aa, #52525b);
}

.file-card__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.file-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink, #18181b);
}

.file-card__size {
  font-size: 0.8rem;
  color: #71717a;
  font-weight: 500;
}

.file-card__action {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red, #c8102e);
  white-space: nowrap;
}

.file-card-block {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.file-card-block .file-card {
  flex: 1 1 auto;
  min-width: 0;
}

.file-card__remove {
  display: none;
  flex-shrink: 0;
  align-self: stretch;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #fecaca;
  border-radius: 0.55rem;
  background: #fef2f2;
  color: #b91c1c;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.file-card__remove:hover {
  background: #fee2e2;
  border-color: #f87171;
}

body.has-site-edit-bar .file-card__remove,
.admin-rich .file-card__remove {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 560px) {
  .file-card {
    flex-wrap: wrap;
  }

  .file-card__action {
    margin-left: calc(2.4rem + 0.85rem);
  }

  .file-card-block {
    flex-direction: column;
  }

  .file-card__remove {
    align-self: stretch;
    justify-content: center;
  }
}

/* —— Utleie forespørselsskjema —— */
.utleie-form {
  margin: 0 0 2.75rem;
  padding: 0;
  border-top: 0;
}

.utleie-info {
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.utleie-form h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #18181b;
}

.utleie-form__lead {
  margin: 0 0 1.5rem;
  color: #52525b;
  line-height: 1.5;
}

.utleie-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.utleie-form__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .utleie-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.utleie-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f3f46;
}

.utleie-form__field abbr {
  text-decoration: none;
  color: var(--red);
}

.utleie-form__field input,
.utleie-form__field select,
.utleie-form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.4rem;
  background: #fff;
  color: #18181b;
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
}

.utleie-form__field input:focus,
.utleie-form__field select:focus,
.utleie-form__field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.utleie-form__field textarea {
  resize: vertical;
  min-height: 7rem;
}

.utleie-form__dates {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.utleie-form__dates legend {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #18181b;
}

.utleie-form__dates legend abbr {
  text-decoration: none;
  color: var(--red);
}

.utleie-form__dates .utleie-form__grid {
  margin-bottom: 0;
}

.utleie-form__dates .utleie-form__field {
  margin-bottom: 0;
}

.utleie-form__submit {
  margin-top: 0.25rem;
  border: 0;
  cursor: pointer;
}

.utleie-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.utleie-form__status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.utleie-form__status--ok {
  background: #ecfdf5;
  color: #065f46;
}

.utleie-form__status--err {
  background: #fef2f2;
  color: #991b1b;
}

/* —— Baneplan ukevisning —— */
.page-shell--wide .page-shell__inner:not(.baneplan-mount) {
  width: min(100% - 2.5rem, 960px);
  max-width: none;
}

.page-shell--wide .baneplan-mount {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin-inline: auto;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 0;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.baneplan {
  width: 100%;
  max-width: none;
}

.baneplan__weekview {
  width: 100%;
}

.baneplan-loading,
.baneplan-error {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fafafa;
}

.baneplan-error__detail {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #71717a;
}

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

.baneplan__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.baneplan__week {
  margin-left: 0.35rem;
  font-weight: 600;
}

.baneplan-btn,
.baneplan-tab,
.baneplan-daychip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.3rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.baneplan-btn:hover,
.baneplan-tab:hover,
.baneplan-daychip:hover {
  background: #f4f4f5;
}

.baneplan-tab.is-active,
.baneplan-daychip.is-active {
  background: var(--red, #b91c1c);
  border-color: var(--red, #b91c1c);
  color: #fff;
}

.baneplan__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.baneplan__tabs .baneplan-tab {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.baneplan__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: #3f3f46;
}

.baneplan-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.baneplan-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.baneplan-legend__swatch--trening {
  background: linear-gradient(145deg, #34d399, #059669);
}

.baneplan-legend__swatch--kamp {
  background: linear-gradient(145deg, #fb7185, #e11d48);
}

.baneplan-legend__swatch--annet {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.baneplan-legend__swatch--ledig {
  background: #fff;
  border: 1.5px dashed #a1a1aa;
  box-shadow: none;
}

.baneplan__dayview {
  display: none;
}

.baneplan__scroll {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
}

.baneplan__grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* Hele dagen synlig uten vertikal scroll */
  height: min(70vh, calc(100vh - 16rem));
  min-height: 28rem;
}

.baneplan-times {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid var(--line);
  background: #fafafa;
}

.baneplan-times__head,
.baneplan-day__head {
  box-sizing: border-box;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  background: #fafafa;
  text-transform: capitalize;
}

.baneplan-times__head {
  visibility: hidden;
}

.baneplan-times__head::before {
  content: "Dag";
}

.baneplan-times__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.baneplan-time {
  position: absolute;
  left: 0.25rem;
  font-size: 0.65rem;
  color: #71717a;
  transform: translateY(-50%);
}

.baneplan-time.is-start {
  transform: translateY(0);
}

.baneplan-time.is-end {
  transform: translateY(-100%);
}

.baneplan-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 100%;
  min-height: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.baneplan-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  border-right: 1px solid #ececee;
}

.baneplan-day:last-child {
  border-right: none;
}

.baneplan-day.is-today .baneplan-day__head {
  color: var(--red, #b91c1c);
}

.baneplan-day.is-today .baneplan-day__grid {
  background-color: transparent;
}

.baneplan-day__grid {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.baneplan-day__lane {
  position: relative;
  height: 100%;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(100% / var(--baneplan-hours, 16) - 1px),
    #ececee calc(100% / var(--baneplan-hours, 16) - 1px),
    #ececee calc(100% / var(--baneplan-hours, 16))
  );
}

.baneplan-day.is-today .baneplan-day__lane {
  background-color: #fff8f8;
}

.baneplan-event {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 0.35rem;
  padding: 0.32rem 0.42rem 0.34rem 0.48rem;
  font-size: clamp(0.68rem, 0.8vw, 0.875rem);
  line-height: 1.2;
  color: #18181b;
  border: 1px solid transparent;
  border-left-width: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  align-items: stretch;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.baneplan-event:hover,
.baneplan-event:focus-visible {
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.baneplan-event__time {
  display: block;
  flex: 0 0 auto;
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.baneplan-event__zone {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baneplan-event__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

.baneplan-event__start {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 0.05rem;
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  opacity: 0.78;
  white-space: nowrap;
  line-height: 1.15;
}

.baneplan-event__meta {
  display: block;
  flex: 0 1 auto;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  min-height: 0;
}

.baneplan-event__match {
  display: contents;
}

.baneplan-event__title {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.baneplan-event__opponent {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  opacity: 0.95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.baneplan-event__badge {
  display: inline-flex;
  align-self: flex-start;
  flex: 0 1 auto;
  margin-top: 0.08rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  min-height: 0;
}

.baneplan-event--sm .baneplan-event__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.72rem;
}

.baneplan-event--xs {
  padding: 0.2rem 0.32rem;
  gap: 0.06rem;
}

.baneplan-event--xs .baneplan-event__meta {
  font-size: 0.52rem;
}

.baneplan-event--xs .baneplan-event__start {
  font-size: 0.54rem;
}

.baneplan-event--xs .baneplan-event__title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
  font-size: 0.66rem;
}

.baneplan-event--xs .baneplan-event__opponent {
  font-size: 0.6rem;
}

.baneplan-event--mid {
  padding: 0.28rem 0.38rem;
  gap: 0.1rem;
}

.baneplan-event--mid .baneplan-event__meta {
  font-size: 0.54rem;
}

.baneplan-event--mid .baneplan-event__start {
  font-size: 0.56rem;
}

.baneplan-event--mid .baneplan-event__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.72rem;
}

.baneplan-event--mid .baneplan-event__opponent {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.66rem;
}

.baneplan-event--rich .baneplan-event__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.82rem;
}

.baneplan-event--rich .baneplan-event__opponent {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.74rem;
}

.baneplan-event--narrow {
  padding: 0.18rem 0.3rem;
  gap: 0.06rem;
}

.baneplan-event--narrow .baneplan-event__meta {
  font-size: 0.5rem;
}

.baneplan-event--narrow .baneplan-event__start {
  font-size: 0.52rem;
}

.baneplan-event--narrow .baneplan-event__title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  font-size: 0.64rem;
  min-height: 1em;
}

.baneplan-event--narrow .baneplan-event__opponent {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  font-size: 0.58rem;
  min-height: 1em;
}

.baneplan-event--narrow .baneplan-event__badge {
  display: none;
}

.baneplan-card {
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  width: 100%;
  border-radius: 0.4rem;
  padding: 0.85rem 1rem;
  color: inherit;
}

.baneplan-detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
}

.baneplan-detail__panel {
  position: relative;
  width: min(28rem, 100%);
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.baneplan-detail__close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #52525b;
}

.baneplan-detail__kind {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.baneplan-detail h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.baneplan-detail__vs {
  margin: -0.45rem 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #52525b;
}

.baneplan-detail dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.baneplan-detail dl > div {
  display: grid;
  gap: 0.1rem;
}

.baneplan-detail dt {
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.baneplan-btn--primary {
  background: var(--red, #b91c1c);
  border-color: var(--red, #b91c1c);
  color: #fff;
}

.baneplan-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.baneplan-admin-login {
  display: none;
}

.page-admin {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(185, 28, 28, 0.08), transparent),
    linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}

.admin-top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.admin-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.admin-top__link {
  font-size: 0.9rem;
  color: #52525b;
  text-decoration: none;
}

.admin-top__link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.admin-lead {
  margin: -0.35rem 0 1.25rem;
  color: #52525b;
  max-width: 40rem;
}

.admin-login {
  max-width: 22rem;
  margin: 1rem 0 2rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-login h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.admin-login > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #71717a;
}

.admin-login__form {
  display: grid;
  gap: 0.75rem;
}

.admin-login__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.admin-login__form input {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-login__error {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 1.25rem;
}

.admin-tabs__btn {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.admin-tabs__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-tabs__logout {
  margin-left: auto;
}

.admin-flash {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
}

.admin-pane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-pane__head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #71717a;
}

.admin-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
}

@media (max-width: 800px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  max-height: 28rem;
  overflow: auto;
}

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

.admin-list li:last-child {
  border-bottom: 0;
}

.admin-list li.is-active {
  background: #fafafa;
}

.admin-list button {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-list button span {
  font-size: 0.78rem;
  color: #71717a;
}

.admin-list__empty {
  padding: 0.9rem;
  color: #71717a;
  font-size: 0.9rem;
}

.admin-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-form--inline {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  align-items: end;
  margin-bottom: 1rem;
}

.admin-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
}

.admin-form__wide {
  grid-column: 1 / -1;
}

.admin-rich__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-rich__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.admin-rich__toolbar button {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #fafafa;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.admin-rich__toolbar button:hover {
  background: #f4f4f5;
}

.admin-rich__editor {
  min-height: 200px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fff;
  font: inherit;
  font-weight: 400;
  line-height: 1.55;
  outline: none;
}

.admin-rich__editor:focus {
  border-color: var(--red, #c8102e);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.12);
}

.admin-rich__hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #71717a;
  font-weight: 400;
}

.admin-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-form__upload {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-files {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.admin-files li:last-child {
  border-bottom: 0;
}

.admin-files__dir {
  background: #fafafa;
  font-weight: 600;
}

.news-card__image--empty {
  min-height: 10rem;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
}

.news__grid--page {
  margin-top: 1rem;
}

.news-article__meta {
  margin: 0 0 0.35rem;
  color: #71717a;
  font-size: 0.9rem;
}

.news-article__meta--below {
  margin: 1.25rem 0 0;
}

.news-article__author {
  margin: 0.15rem 0 0;
  color: #52525b;
  font-size: 0.95rem;
  font-weight: 600;
}

.news-article__image {
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  border-radius: 0.4rem;
  background: #f4f4f5;
}

.news-article__image img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}

.page-prose .page-figure {
  margin: 1.5rem 0;
}

.page-prose .page-figure img {
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.admin-news-preview {
  margin-top: 0.5rem;
}

.admin-news-preview img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  width: auto;
  border-radius: 0.35rem;
  object-fit: cover;
}

.site-edit-news-tools {
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(24, 24, 27, 0.2);
  border-radius: 0.4rem;
  background: #fafafa;
}

.site-edit-news-tools__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-edit-news-tools__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.site-edit-news-tools__file {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.site-edit-news-tools__file input {
  max-width: 16rem;
  font-size: 0.8rem;
}

.site-edit-news-tools__hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-edit-news-tools__author {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-edit-news-tools__author input {
  font: inherit;
  font-weight: 400;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #fff;
  max-width: 22rem;
}

.site-edit-news-tools__status {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--red);
}

.baneplan-admin {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fafafa;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.baneplan-admin--flash {
  border-color: var(--red, #c8102e);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

.baneplan-admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.baneplan-admin__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.baneplan-admin__hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #71717a;
}

.baneplan-admin__form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.baneplan-admin__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.baneplan-admin__form input,
.baneplan-admin__form select,
.baneplan-admin__form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #fff;
}

.baneplan-admin__wide {
  grid-column: 1 / -1;
}

.baneplan-admin__check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  grid-template-columns: none !important;
}

.baneplan-admin__check input {
  margin-top: 0.2rem;
  width: auto;
  padding: 0;
}

.baneplan-admin__msg {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.3rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 400;
}

.baneplan-admin__force {
  grid-column: 1 / -1;
  font-weight: 500;
}

.baneplan-admin__force input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.baneplan-admin__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.baneplan-admin__list-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.baneplan-admin__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.baneplan-admin__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.9rem;
}

.baneplan-admin__list li span {
  display: block;
  color: #71717a;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.baneplan-admin__row-actions {
  display: flex;
  gap: 0.35rem;
}

.baneplan-admin__empty {
  color: #71717a;
  border-style: dashed !important;
}

.baneplan-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .baneplan-admin__form {
    grid-template-columns: 1fr;
  }
}

.baneplan-event--trening {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #059669;
  color: #065f46;
}

.baneplan-event--kamp {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #e11d48;
  color: #9f1239;
}

.baneplan-event--annet {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  color: #1e3a8a;
}

.baneplan-card.baneplan-event--trening,
.baneplan-card.baneplan-event--kamp,
.baneplan-card.baneplan-event--annet {
  border-left-width: 4px;
}

.baneplan-daychips {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.baneplan-daychip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  text-transform: capitalize;
  flex: 0 0 auto;
}

.baneplan-daychip em {
  font-style: normal;
  font-size: 0.7rem;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.12);
}

.baneplan-daychip.is-active em {
  background: rgba(255, 255, 255, 0.25);
}

.baneplan-dayview__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  text-transform: capitalize;
}

.baneplan-dayview__list {
  display: grid;
  gap: 0.6rem;
}

.baneplan-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.95;
}

.baneplan-card__title {
  margin: 0.35rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 650;
}

.baneplan-card__zone {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

.baneplan-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed #d4d4d8;
  border-radius: 0.4rem;
  color: #71717a;
  background: #fafafa;
}

@media (max-width: 800px) {
  .baneplan__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .baneplan__weekview {
    display: none;
  }

  .baneplan__dayview {
    display: block;
  }
}

/* —— Inline admin-redigering på nettsiden —— */
.site-edit-bar {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  background: #18181b;
  color: #fafafa;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.site-edit-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  width: min(100% - 1.5rem, 1120px);
  margin-inline: auto;
  padding: 0.55rem 0;
}

.site-edit-bar__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-edit-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.site-edit-bar__btn,
.site-edit-bar__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
  border: 0;
  background: var(--red, #c8102e);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.site-edit-bar__btn--ghost,
.site-edit-bar__link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-edit-news-tools .site-edit-bar__btn--ghost {
  border-color: rgba(24, 24, 27, 0.2);
  color: var(--ink);
}

.site-edit-bar__btn--danger,
.site-edit-news-tools .site-edit-bar__btn--danger {
  background: transparent;
  border: 1px solid rgba(185, 28, 28, 0.45);
  color: #b91c1c;
}

.site-edit-bar__btn--danger:hover,
.site-edit-news-tools .site-edit-bar__btn--danger:hover {
  background: rgba(185, 28, 28, 0.08);
}

.site-edit-bar__btn:hover,
.site-edit-bar__link:hover {
  filter: brightness(1.08);
}

body.has-site-edit-bar {
  padding-top: 3.1rem;
}

body.has-site-edit-bar .site-header {
  top: 3.1rem;
}

.site-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.site-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.55);
}

.site-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  padding: 1.25rem 1.35rem 1.35rem;
}

.site-edit-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-edit-modal__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.site-edit-modal__x {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #52525b;
}

.site-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f3f46;
}

.site-edit-field input,
.site-edit-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 400;
}

.site-edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-edit-toolbar button {
  padding: 0.35rem 0.55rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.3rem;
  background: #fafafa;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.site-edit-toolbar button:hover {
  background: #f4f4f5;
}

.site-edit-editor {
  min-height: 220px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.4rem;
  font-weight: 400;
  line-height: 1.55;
  outline: none;
}

.site-edit-editor:focus {
  border-color: var(--red, #c8102e);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

.site-edit-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #71717a;
}

.site-edit-modal__status {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.35rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
}

.site-edit-modal__status--ok {
  background: #ecfdf5;
  color: #047857;
}

.site-edit-modal__status--info {
  background: #f4f4f5;
  color: #3f3f46;
}

.site-edit-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.site-edit-modal__cancel {
  border: 1px solid #d4d4d8;
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-edit-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.site-edit-upload input[type="file"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.45rem 0;
  font: inherit;
  font-weight: 400;
  font-size: 0.85rem;
}

.site-edit-upload__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.site-edit-upload__preview img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid #e4e4e7;
}

.site-edit-upload__list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-edit-upload__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.35rem;
  background: #fafafa;
  font-weight: 400;
}

.site-edit-upload__list img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.site-edit-upload__list a {
  flex: 1 1 auto;
  color: var(--red, #c8102e);
  word-break: break-all;
}

.site-edit-upload__remove {
  border: 0;
  background: transparent;
  color: #71717a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.site-edit-upload__remove:hover {
  color: var(--red, #c8102e);
}

.site-edit-upload__preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

/* Direkte redigering på siden */
.site-edit-live {
  outline: 1px dashed transparent;
  border-radius: 0.25rem;
  transition: outline-color 0.15s ease, background 0.15s ease;
  cursor: text;
}

.site-edit-live:hover {
  outline-color: rgba(200, 16, 46, 0.35);
  background: rgba(200, 16, 46, 0.03);
}

.site-edit-live.is-editing,
.site-edit-live:focus {
  outline: 2px solid var(--red, #c8102e);
  outline-offset: 3px;
  background: rgba(200, 16, 46, 0.04);
}

.site-edit-live--empty:hover,
.site-edit-live--empty.is-editing {
  min-height: 4rem;
}

.site-edit-savebar {
  position: fixed;
  z-index: 10020;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e4e4e7;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
}

.site-edit-savebar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: min(100% - 1.5rem, 1120px);
  margin-inline: auto;
  padding: 0.85rem 0;
}

.site-edit-savebar__hint {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3f3f46;
}

.site-edit-savebar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-edit-savebar__cancel {
  border: 1px solid #d4d4d8;
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.has-site-edit-dirty {
  padding-bottom: 4.5rem;
}

.img-crop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.img-crop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, 0.72);
}

.img-crop__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.img-crop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.img-crop__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.img-crop__x,
.img-crop__cancel {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.img-crop__x {
  font-size: 1.5rem;
  line-height: 1;
}

.img-crop__hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.img-crop__stage {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: 0.4rem;
  background: #18181b;
}

.img-crop__frame {
  position: relative;
  width: min(100%, 36rem);
  overflow: hidden;
  border-radius: 0.25rem;
  background: #27272a;
  touch-action: none;
  cursor: grab;
}

.img-crop__frame:active {
  cursor: grabbing;
}

.img-crop__frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: auto;
}

.img-crop__zoom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.img-crop__zoom input {
  flex: 1;
}

.img-crop__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.img-crop__cancel {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(24, 24, 27, 0.15);
  border-radius: 0.35rem;
}



