/* ÅOCK – stilark etter «AOC Nettside.dc.html» */

:root {
  --green: #0daa4f;
  --green-hover: #12c258;
  --green-text: #2f7a47;
  --green-mid: #16482a;
  --dark: #0c1f13;
  --dark-2: #0e2616;
  --dark-3: #08160d;
  --dark-hover: #1a3a25;
  --ink: #11261a;
  --ink-body: #16271c;
  --muted: #41544a;
  --muted-2: #52655a;
  --muted-3: #85968b;
  --on-dark: #c4d4c8;
  --on-dark-2: #9fb3a4;
  --yellow: #feea01;
  --bg: #f4f6f1;
  --line: #e2e7dd;
  --line-input: #d6ddd0;
  --font: 'Saira', system-ui, sans-serif;
  --font-cond: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --container: 1180px;
  --nav-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
input, select, textarea { outline: none; }
::placeholder { color: #7c9384; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- Typografi ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 14px;
  color: var(--green-text);
  margin-bottom: 16px;
}
.on-dark .eyebrow, .eyebrow--green { color: var(--green); }
.eyebrow--yellow { color: var(--yellow); letter-spacing: .22em; margin-bottom: 22px; }

.h-display, .h-section, .h-card {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}
.h-display { line-height: .92; font-size: clamp(46px, 6vw, 86px); }
.h-section { line-height: .94; letter-spacing: -.005em; font-size: clamp(36px, 4.5vw, 62px); color: var(--ink); }
.on-dark .h-section { color: #fff; }
.h-card { font-size: 27px; letter-spacing: -.005em; color: var(--ink); margin-bottom: 10px; }

.lead { font-size: 20px; line-height: 1.6; color: var(--muted); margin: 0; }
.on-dark .lead { color: #bccfc1; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 16px;
  padding: 12px 22px;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--lg { font-size: 19px; padding: 18px 34px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: var(--dark); }
.btn--primary:hover { background: var(--green-hover); }
.btn--outline { background: transparent; color: #eaf2ec; border: 2px solid rgba(255,255,255,.35); }
.btn--lg.btn--outline { padding: 16px 32px; }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-hover); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo img { height: 46px; display: block; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav form { margin: 0; }
.nav-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #dce8e0;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 16px;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--green); }
.btn--nav-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 15px;
  padding: 10px 20px;
}
.btn--nav-outline:hover { border-color: var(--green); color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 3px;
  color: #fff;
  width: 44px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* ---------- Hero (variant A, fullbredde) ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,31,19,0) 26%, rgba(12,31,19,.5) 58%, rgba(12,31,19,.94) 100%);
}
.hero__content { position: relative; z-index: 3; width: 100%; padding-bottom: 88px; }
.hero__text { max-width: 780px; }
.hero h1 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  font-size: clamp(54px, 7.4vw, 108px);
  color: #fff;
  margin: 0;
}
.hero__bar { width: 120px; height: 8px; background: var(--green); margin: 26px 0 30px; }
.hero p { font-size: 22px; line-height: 1.5; color: var(--on-dark); max-width: 600px; margin: 0 0 38px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Onsdagstur-bånd ---------- */
.band-yellow { background: var(--yellow); color: var(--dark); }
.band-yellow__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 18px;
  font-weight: 600;
}
.band-yellow strong { font-weight: 800; }
/* Tegnes med CSS (ikke ●-tegnet) så den sentreres med teksten uansett font */
.band-yellow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 0; background: currentColor; opacity: .5;
  font-size: 0; flex: none;
}

/* ---------- Seksjoner ---------- */
.section { padding: 104px 0; }
.section--light { background: var(--bg); }
.section--dark { background: var(--dark); color: #eaf2ec; }
.section__intro { max-width: 760px; margin-bottom: 56px; }
.section__intro .h-section { margin-bottom: 22px; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 50px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 32px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: #c6d8c0; box-shadow: 0 14px 30px rgba(20,48,25,.08); }
.card p { font-size: 17px; line-height: 1.55; color: var(--muted-2); margin: 0; }
.tag {
  display: inline-block;
  background: var(--dark);
  color: var(--green);
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 3px;
  margin-bottom: 18px;
}

/* Arrangement-kort (mørk) */
.event-card {
  display: block;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s, border-color .18s;
}
.event-card:hover { border-color: var(--green); transform: translateY(-4px); }
.event-card__img {
  position: relative;
  height: 240px;
  background: repeating-linear-gradient(135deg, #1c4029 0 16px, #173621 16px 32px);
}
.event-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__body { padding: 28px 30px 32px; }
.event-card__tagline {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--green);
}
.event-card h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: -.01em;
  margin: 8px 0 12px;
  color: #fff;
}
.event-card p { font-size: 17px; line-height: 1.55; color: #a9bcae; margin: 0 0 16px; }
.event-card__date {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 15px;
  color: #fff;
}

/* Bli med-bånd */
.band-join { position: relative; background: var(--green-mid); color: #fff; overflow: hidden; }
.band-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 22px, transparent 22px 44px);
}
.band-join__inner {
  position: relative;
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.band-join h2 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .94;
  font-size: clamp(36px, 4.4vw, 60px);
  margin: 0 0 16px;
}
.band-join p { font-size: 20px; line-height: 1.5; color: #d6e6d9; margin: 0; }
.band-join__actions { display: flex; flex-direction: column; gap: 14px; min-width: 260px; }
.band-join__social { display: flex; gap: 12px; }
.btn-ghost {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 15px;
  padding: 13px;
  border-radius: 3px;
}
.btn-ghost:hover { border-color: var(--green); }

/* ---------- Undersider: mørk toppseksjon ---------- */
.page-hero { background: var(--dark); color: #fff; padding: 96px 0 72px; }
.page-hero .eyebrow { color: var(--green); }
.page-hero p { font-size: 20px; line-height: 1.55; color: #bccfc1; max-width: 680px; margin: 22px 0 0; }
.page-body { background: var(--bg); padding: 72px 0 100px; }

/* ---------- Arrangementer ---------- */
.arr-list { display: flex; flex-direction: column; gap: 40px; }
.arr-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.arr-card:hover { border-color: #c6d8c0; box-shadow: 0 14px 30px rgba(20,48,25,.08); }
.arr-card__img { min-height: 340px; background: repeating-linear-gradient(135deg, #1c4029 0 16px, #173621 16px 32px); }
.arr-card__body { padding: 48px 46px; }
.arr-card__tagline {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--green-text);
}
.arr-card h2 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: -.01em;
  margin: 8px 0 18px;
  color: var(--ink);
}
.arr-card p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.arr-card__more {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 16px;
  color: var(--green-text);
}
.facts { display: flex; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.facts__label {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  color: var(--muted-3);
}
.facts__value { font-family: var(--font-cond); font-weight: 800; font-size: 20px; color: var(--ink); }
.arr-band {
  background: var(--green-mid);
  color: #fff;
  border-radius: 10px;
  padding: 44px 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.arr-band h3 { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 32px; margin: 0 0 8px; }
.arr-band p { font-size: 18px; color: #d6e6d9; margin: 0; }

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  color: var(--on-dark-2);
}
.back-link:hover { color: var(--green); }
.arr-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.arr-detail__facts { display: flex; flex-direction: column; gap: 20px; }
.panel .arr-detail__note { margin: 0; font-size: 15px; color: var(--muted-3); }
.arr-detail__body p { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.arr-detail__body p:last-child { margin-bottom: 0; }

/* ---------- Kalender (offentlig) ---------- */
.kal { max-width: 920px; display: flex; flex-direction: column; gap: 16px; }
.kal__month {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 22px;
  color: var(--green-text);
  margin: 24px 0 2px;
}
.kal__month:first-child { margin-top: 0; }
.kal-item {
  display: flex;
  gap: 26px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.kal-item--link:hover { border-color: #c6d8c0; box-shadow: 0 10px 24px rgba(20,48,25,.07); }
.kal-item__date {
  flex: none;
  width: 104px;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}
.kal-item--recurring .kal-item__date { background: var(--green-mid); }
.kal-item__day { font-family: var(--font-cond); font-weight: 800; font-size: 42px; line-height: 1; }
.kal-item__mon {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px;
  color: var(--green);
}
.kal-item__body { flex: 1; padding: 22px 0; display: flex; flex-direction: column; justify-content: center; }
.kal-item__type {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--green-text);
}
.kal-item h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: -.005em;
  margin: 4px 0 6px;
  color: var(--ink);
}
.kal-item p { font-size: 16px; color: var(--muted-2); margin: 0; }
.kal-item .kal-item__range { font-size: 14px; color: var(--muted-3); margin-top: 4px; }
.kal-item__place {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 15px;
  color: var(--muted-3);
  text-align: right;
}

/* ---------- Bli medlem ---------- */
.join { max-width: 1080px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.join__aside { display: flex; flex-direction: column; gap: 14px; }
.join__type { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 18px 22px; }
.join__type-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.join__type-price { font-family: var(--font-cond); font-weight: 800; font-size: 21px; color: var(--green); white-space: nowrap; }
.join__type-name { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 21px; color: var(--ink); }
.join__type-info { font-size: 15px; color: var(--muted-2); }
.join__note { font-size: 14px; color: var(--muted-3); margin: 6px 0 0; }
.join__main { padding: 40px 42px; }
.join__main h2 { font-size: 30px; margin-bottom: 24px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 20px;
}
.steps b { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 19px; color: var(--ink); }
.steps span { font-size: 16px; line-height: 1.55; color: var(--muted-2); }
.panel .join__small { font-size: 14px; color: var(--muted-3); margin: 18px 0 0; }
.join__pending { background: #fdf6d0; border-radius: 6px; padding: 14px 18px; }

/* ---------- Skjema ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 17px;
  padding: 13px 15px;
  border: 1.5px solid var(--line-input);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field-validation-error, .validation-summary-errors {
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
  color: #e4572e;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- Innlogging (mørk) ---------- */
.auth {
  background: var(--dark);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #143019 0 18px, #102714 18px 36px);
  opacity: .5;
}
.auth__wrap { position: relative; max-width: 440px; width: 100%; margin: 0 auto; padding: 48px 32px; }
.auth__card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 44px 40px;
}
.auth__card .eyebrow { color: var(--green); letter-spacing: .18em; font-size: 13px; margin-bottom: 12px; }
.auth__card h1 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 42px;
  line-height: .95;
  margin: 0 0 8px;
  color: #fff;
}
.auth__card > p { font-size: 16px; color: var(--on-dark-2); margin: 0 0 28px; }
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.auth .field { color: var(--on-dark-2); }
.auth .field input {
  padding: 14px 15px;
  border-color: rgba(255,255,255,.18);
  background: var(--dark);
  color: #fff;
}
.auth .checkbox { color: var(--on-dark-2); }
.auth__foot { font-size: 15px; color: #7c9384; margin: 22px 0 0; text-align: center; }
.auth__foot a { color: var(--green); font-weight: 600; text-decoration: underline; }

/* ---------- Hvitt panel ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
}
.panel h2 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.panel p { font-size: 16px; line-height: 1.55; color: var(--muted-2); }

.panel__eyebrow {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--green-text);
  margin-bottom: 8px;
}

.alert { border-radius: 6px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.alert--error { background: #fdecea; border: 1px solid #f3c2b8; color: #8a2a17; }
.alert.validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }

.field--sm { font-size: 12px; color: var(--muted-3); gap: 6px; }
.field--sm input, .field--sm textarea { font-size: 16px; padding: 11px 13px; }
.field textarea { resize: vertical; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--green-text);
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.link-btn:hover { color: #b3341c; }

.badge {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 3px;
  white-space: nowrap;
  background: #e8ece4;
  color: var(--muted);
}
.badge--free { background: var(--green); color: var(--dark); }

/* ---------- Min side ---------- */
.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 32px; }
.dash-grid .panel { padding: 36px 36px 40px; }

/* Kalender */
.cal { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin: 4px 0 20px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__title {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--ink);
}
.cal__nav {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-input);
  border-radius: 5px;
  font-size: 22px;
  color: var(--ink);
}
.cal__nav:hover { border-color: var(--green); color: var(--green-text); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__wd {
  text-align: center;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--muted-3);
  padding-bottom: 4px;
}
.cal__day {
  aspect-ratio: 1 / 1;
  min-height: 36px;
  border: 1.5px solid transparent;
  border-radius: 5px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.cal__day--free { background: #dcf3e5; }
.cal__day--some { background: #fff6b3; }
.cal__day--none { background: #f8d9d2; color: #7a2b1c; }
.cal__day--other { opacity: .45; }
.cal__day:hover:not([disabled]) { border-color: var(--green); }
.cal__day--today { border-color: var(--ink); }
.cal__day--past, .cal__day[disabled] { background: #f1f3ee; color: #b5bfb7; cursor: default; }
.cal__day.is-selected { background: var(--dark); color: #fff; border-color: var(--dark); opacity: 1; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted-2); }
.cal__legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.dot--free { background: #dcf3e5; border: 1px solid #9fd6b4; }
.dot--some { background: #fff6b3; border: 1px solid #e6d65c; }
.dot--none { background: #f8d9d2; border: 1px solid #e5a596; }

/* Periodevalg + ledige kofferter */
.period {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: var(--bg);
  border-radius: 8px;
  padding: 18px;
}
.period .btn { padding: 13px 18px; }
.avail { margin-top: 20px; }
.avail__title, .booked__title {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.avail__empty { background: #fdf6d0; border-radius: 6px; padding: 12px 16px; margin: 0; }
.case-list { display: flex; flex-direction: column; gap: 12px; }
.case-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid rgba(255,255,255,.12);
  background: var(--dark-2);
  color: #fff;
  border-radius: 6px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.case-option input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.case-option:has(input:checked) { border-color: var(--green); background: #11331f; }
.case-option__body { flex: 1; display: flex; flex-direction: column; }
.case-option__name { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 21px; }
.case-option__desc { font-size: 14px; color: var(--on-dark-2); }

.booked { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.booked ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.booked li { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; font-size: 14px; color: var(--muted-2); }
.booked li.is-mine { color: var(--ink); font-weight: 600; }
.booked__who { text-align: right; color: var(--muted-3); }

.my-bookings { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.my-bookings li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 16px;
}
.my-bookings form { margin: 0; }
.my-bookings__case { font-weight: 600; font-size: 16px; color: var(--ink); }
.my-bookings__period { font-size: 14px; color: var(--muted-2); }
.my-bookings__notes { font-size: 13px; color: var(--muted-3); margin-top: 2px; }

/* ---------- Admin: medlemsimport ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.stat {
  background: var(--bg);
  border-left: 4px solid #c9d2c4;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted-2);
}
.stat b {
  display: block;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat--new { border-left-color: var(--green); }
.stat--changed { border-left-color: var(--yellow); }
.stat--removed { border-left-color: #e08a6d; }
.stat--conflict { border-left-color: #b3341c; }
.imp-h {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 6px;
}
.panel .imp-note { margin: 0 0 12px; font-size: 15px; }
.imp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.imp-table th {
  text-align: left;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  color: var(--muted-3);
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--line);
}
.imp-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-body); }
.imp-muted { color: var(--muted-3); font-size: 13px; }
.imp-details { margin-top: 28px; }
.imp-details summary { cursor: pointer; font-weight: 600; color: var(--green-text); margin-bottom: 10px; }
.imp-confirm { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) {
  .imp-table { font-size: 13px; }
  .imp-table th, .imp-table td { padding: 7px 5px; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--dark);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 14px 24px;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transition: opacity .4s;
}
.toast.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-3);
  color: #a9bcae;
  padding: 64px 0 36px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__logo { height: 58px; display: block; margin-bottom: 18px; }
.site-footer__about { font-size: 15px; line-height: 1.6; color: #7c9384; margin: 0; max-width: 280px; }
.site-footer h4 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li { font-size: 15px; }
.site-footer a:hover { color: var(--green); }
.site-footer__muted { color: #7c9384; }
.site-footer__copy {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: #56695d;
  font-family: var(--font-cond);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Responsivt ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 32px 32px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav.is-open { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .arr-card { grid-template-columns: 1fr; }
  .arr-card__img { min-height: 200px; }
  .arr-detail, .join { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .page-hero { padding: 64px 0 48px; }
  .hero p { font-size: 19px; }
  .hero__content { padding-bottom: 56px; }
  .auth__card { padding: 32px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .band-join__actions { min-width: 0; width: 100%; }
  .dash-grid .panel { padding: 24px 18px 28px; }
  .band-yellow .dot { display: none; }
  .band-yellow__inner { gap: 4px 16px; font-size: 16px; }
  .arr-card__body { padding: 28px 22px; }
  .arr-band { padding: 28px 22px; }
  .join__main { padding: 28px 22px; }
  .kal-item { gap: 16px; }
  .kal-item__date { width: 76px; }
  .kal-item__day { font-size: 32px; }
  .kal-item h3 { font-size: 21px; }
  .kal-item__body { padding: 16px 16px 16px 0; }
  .kal-item__place { display: none; }
  .cal { padding: 12px; }
  .cal__grid { gap: 3px; }
  .cal__day { font-size: 15px; min-height: 0; }
  .period { grid-template-columns: 1fr 1fr; }
  .period .btn { grid-column: 1 / -1; }
  .booked li { grid-template-columns: 1fr 1fr; }
  .booked__who { grid-column: 1 / -1; text-align: left; margin-top: -4px; }
}

/* ---------- Bilder på arrangementer ---------- */
.event-card__img, .arr-card__img { background-size: cover; background-position: center; }
.arr-detail__img { width: 100%; border-radius: 6px; margin: 0 0 24px; display: block; }

/* ---------- Egne sider (admin → Sider) ---------- */
.site-page { max-width: 820px; min-width: 0; overflow-wrap: anywhere; }
.site-page .site-page__img { width: 100%; border-radius: 6px; margin: 0 0 28px; display: block; }
.site-page p, .site-page li { font-size: 18px; line-height: 1.7; color: var(--muted); }
.site-page p { margin: 0 0 18px; }
.site-page ul, .site-page ol { margin: 0 0 18px; padding-left: 22px; }
.site-page li { margin-bottom: 6px; }
.site-page blockquote {
  margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 4px solid var(--green);
  font-size: 19px; line-height: 1.6; font-style: italic; color: var(--ink);
}
.site-page strong { color: var(--ink); }
/* Bilder i teksten: bredde i % av tekstbredden og plassering (klassene settes av editoren, se PageHtml.ImageClasses). */
.site-page img { display: block; max-width: 100%; height: auto; margin: 8px auto 18px; border-radius: 6px; }
.site-page img.img--w15 { width: 15%; }
.site-page img.img--w20 { width: 20%; }
.site-page img.img--w25 { width: 25%; }
.site-page img.img--w30 { width: 30%; }
.site-page img.img--w35 { width: 35%; }
.site-page img.img--w40 { width: 40%; }
.site-page img.img--w45 { width: 45%; }
.site-page img.img--w50 { width: 50%; }
.site-page img.img--w55 { width: 55%; }
.site-page img.img--w60 { width: 60%; }
.site-page img.img--w65 { width: 65%; }
.site-page img.img--w70 { width: 70%; }
.site-page img.img--w75 { width: 75%; }
.site-page img.img--w80 { width: 80%; }
.site-page img.img--w85 { width: 85%; }
.site-page img.img--w90 { width: 90%; }
.site-page img.img--w95 { width: 95%; }
.site-page img.img--w100 { width: 100%; }
/* Plassering uten tekst rundt: bildet står alene på linja, inntil venstre eller høyre kant. */
.site-page img.img--left { margin-left: 0; margin-right: auto; }
.site-page img.img--right { margin-left: auto; margin-right: 0; }
/* Tekst rundt bildet (img--wrap). */
.site-page img.img--wrap.img--left { float: left; margin: 6px 28px 14px 0; max-width: 70%; }
.site-page img.img--wrap.img--right { float: right; margin: 6px 0 14px 28px; max-width: 70%; }
.site-page h2, .site-page h3, .site-page blockquote, .site-page::after { clear: both; }
.site-page::after { content: ""; display: table; }
/* Mobil: ingen tekst ved siden av bilder. Smale bilder blir halv bredde, resten full bredde. */
@media (max-width: 640px) {
  .site-page img.img--left, .site-page img.img--right, .site-page img.img--wrap.img--left, .site-page img.img--wrap.img--right { float: none; margin: 8px auto 18px; max-width: 100%; }
  .site-page img.img--w15, .site-page img.img--w20, .site-page img.img--w25, .site-page img.img--w30, .site-page img.img--w35, .site-page img.img--w40, .site-page img.img--w45 { width: 50%; }
  .site-page img.img--w50, .site-page img.img--w55, .site-page img.img--w60, .site-page img.img--w65, .site-page img.img--w70, .site-page img.img--w75, .site-page img.img--w80, .site-page img.img--w85, .site-page img.img--w90, .site-page img.img--w95, .site-page img.img--w100 { width: 100%; }
}
.site-page h2, .site-page h3 {
  font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; color: var(--ink);
  letter-spacing: .02em; line-height: 1.15; margin: 32px 0 12px;
}
.site-page h2 { font-size: 30px; }
.site-page h3 { font-size: 22px; }
.site-page > :first-child { margin-top: 0; }
.site-page > :last-child { margin-bottom: 0; }
.site-page a { color: #0a8a40; font-weight: 600; }
.format-help { font-size: 14px; color: var(--muted-2); margin: -8px 0 4px; }
.format-help summary { cursor: pointer; font-weight: 600; }
.format-help ul { margin: 8px 0 0; padding-left: 20px; }
.format-help code { background: #eef1ea; padding: 1px 5px; border-radius: 3px; font-size: 13px; }

/* ---------- Dokumenter (Min side) ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.doc-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.doc-list li:last-child a { border-bottom: none; }
.doc-list a:hover .doc-list__title { color: var(--green-text); }
.doc-list__type {
  grid-row: span 2; font-family: var(--font-cond); font-weight: 800; font-size: 12px; letter-spacing: .06em;
  background: var(--dark); color: var(--yellow); border-radius: 4px; padding: 8px 6px; min-width: 46px; text-align: center;
}
.doc-list__title { font-weight: 600; font-size: 16px; }
.doc-list__meta { font-size: 13px; color: var(--muted-3); }

/* ---------- Admin ---------- */
.admin-hero { padding: 56px 0 0; }
.admin-hero .h-display { font-size: clamp(40px, 6vw, 64px); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 36px; }
.admin-tabs a {
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px;
  color: var(--on-dark-2); padding: 12px 16px; border-radius: 6px 6px 0 0;
}
.admin-tabs a:hover { color: #fff; }
.admin-tabs a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.admin-body { padding-top: 40px; }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1.5px solid var(--line); }
.admin-subnav a {
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 15px;
  color: var(--muted); padding: 4px 0 10px; margin-bottom: -1.5px; border-bottom: 3px solid transparent;
}
.admin-subnav a:hover { color: var(--ink); }
.admin-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.admin-stack { display: flex; flex-direction: column; gap: 28px; }
.admin-stack .alert { margin: 0; }
.alert--ok { background: #e3f5e9; border: 1px solid #b5e2c3; color: #1d5b33; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; background: #e8ece4; border-radius: 6px; padding: 4px; }
.seg a {
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px;
  padding: 8px 14px; border-radius: 4px; color: var(--muted);
}
.seg a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.admin-search { display: flex; gap: 8px; }
.admin-search input {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line-input); border-radius: 5px; min-width: 240px;
}
.admin-search .btn { padding: 10px 18px; font-size: 15px; }
.admin-table td.right, .admin-table th.right { text-align: right; }
.admin-table .nowrap, .nowrap { white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.admin-table .page-row--sub td:first-child { padding-left: 28px; }
.admin-link { color: var(--green-text); font-weight: 600; }
.admin-link:hover { text-decoration: underline; }
.inline-form { display: inline; margin-left: 14px; }
.inline-form:first-child { margin-left: 0; }
.link-btn--danger { color: #b3341c; }
.btn--danger { background: #b3341c; color: #fff; }
.btn--danger:hover { background: #962a15; }
.badge--warn { background: var(--yellow); color: var(--ink); }
.badge--admin { background: var(--dark); color: var(--yellow); margin-left: 6px; }
.admin-form { display: flex; flex-direction: column; gap: 18px; }
.admin-form h2 { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.admin-fieldset { border: 1.5px solid var(--line); border-radius: 6px; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.has-page-fields { display: flex; flex-direction: column; gap: 18px; }
.has-page-fields[hidden] { display: none; }
.admin-thumb { max-width: 320px; border-radius: 6px; display: block; }
.back-link--dark { color: var(--muted-2); margin-bottom: 0; }
.admin-danger { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1.5px solid #f3c2b8; }
.admin-danger p { margin: 0; color: var(--muted-2); }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.admin-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px;
  color: var(--ink); transition: border-color .15s;
}
.admin-card:hover { border-color: var(--green); }
.admin-card b { font-family: var(--font-cond); font-weight: 800; font-size: 44px; line-height: 1; }
.admin-card span { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--muted); }
.admin-card em { font-style: normal; font-size: 13px; color: #8a6a00; }
.case-admin { display: flex; flex-direction: column; gap: 16px; }
.case-admin__item { border: 1.5px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.case-admin__item.is-inactive { background: #f7f8f5; }
.case-admin__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.case-admin__form { display: flex; flex-direction: column; gap: 14px; }
.case-admin__foot .imp-muted { margin-left: auto; }
.admin-savebar { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
  .admin-search input { min-width: 0; flex: 1; }
  .admin-search { width: 100%; }
  .admin-danger { flex-direction: column; align-items: flex-start; }
  .admin-hero { padding-top: 36px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 24px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .admin-tabs a { font-size: 13px; padding: 10px 10px; white-space: nowrap; }
  .admin-subnav { flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: none; }
  .admin-subnav a { font-size: 13px; white-space: nowrap; }
}

/* ---------- Undersider (liste nederst på hovedside) ---------- */
.subpages { max-width: 820px; margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.subpages__item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 18px 22px;
  font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 19px; color: var(--ink);
}
.subpages__item:hover { border-color: var(--green); color: var(--green-text); }
.subpages__item span:last-child { color: var(--green); }

/* ---------- Rullegardin i toppmenyen (sider med undersider) ---------- */
.nav-group { position: relative; }
.nav-group__menu {
  display: none; position: absolute; top: 100%; left: -18px; z-index: 20; min-width: 220px;
  padding: 10px 0; margin-top: 12px; background: var(--dark); border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
/* Usynlig bro over mellomrommet, så menyen ikke lukkes når musa flyttes ned. */
.nav-group__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-group:hover .nav-group__menu, .nav-group:focus-within .nav-group__menu { display: block; }
.nav-group__menu .nav-link { display: block; padding: 9px 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 960px) {
  .nav-group__menu {
    display: block; position: static; margin: 12px 0 0; padding: 0 0 0 16px; min-width: 0;
    background: none; border: none; border-left: 2px solid rgba(255,255,255,.12); border-radius: 0; box-shadow: none;
  }
  .nav-group__menu::before { content: none; }
  .nav-group__menu .nav-link { padding: 6px 0; font-size: 14px; color: var(--on-dark-2); }
}

/* ---------- Visuell editor (admin → sider) ---------- */
.page-editor { position: relative; text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 400; }
.page-editor .ql-toolbar.ql-snow {
  position: sticky; top: var(--nav-h); z-index: 5; /* under den faste toppmenyen */ background: #fff;
  border: 1.5px solid var(--line-input); border-radius: 6px 6px 0 0; padding: 6px 8px;
}
.page-editor .ql-container.ql-snow { border: 1.5px solid var(--line-input); border-top: none; border-radius: 0 0 6px 6px; background: #fff; }

/* Samme tekstbredde som på den publiserte siden (.panel.site-page: 820 − 2×36 padding − 2 ramme = 746 px), så bildebredder og linjeskift blir like. */
.page-editor .ql-editor { min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 22px 26px; font-family: var(--font); max-width: calc(746px + 52px); margin: 0 auto; }
.page-editor .ql-editor.ql-blank::before { font-style: normal; color: var(--muted-3); left: 26px; }
.page-editor .ql-editor.site-page p { margin: 0 0 18px; font-size: 18px; }
.page-editor .ql-editor.site-page h2 { font-size: 30px; margin: 32px 0 12px; }
.page-editor .ql-editor.site-page h3 { font-size: 22px; margin: 32px 0 12px; }
.page-editor .ql-editor.site-page > :first-child { margin-top: 0; }
.page-editor .ql-editor.site-page blockquote { border-left: 4px solid var(--green); padding-left: 20px; margin: 0 0 18px; }
.page-editor .ql-editor img { cursor: grab; min-width: 48px; min-height: 48px; background: #eef1ea; } /* også når bildet ikke laster */
.page-editor .ql-editor img[data-selected] { outline: 3px solid var(--green); outline-offset: 2px; }
.page-editor .ql-snow .ql-header[value="2"]::after, .page-editor .ql-snow .ql-header[value="3"]::after { content: none; }
.page-editor.is-busy .ql-container { opacity: .6; }

.page-editor__menu {
  position: absolute; z-index: 10; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-input); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 220px;
}
.page-editor__menu[hidden] { display: none; }
.page-editor .ql-toolbar .page-editor__menu button {
  width: auto; height: auto; float: none; text-align: left; padding: 8px 10px; border-radius: 4px; font-size: 15px; color: var(--ink);
}
.page-editor .ql-toolbar .page-editor__menu button:hover { background: #eef1ea; }
.page-editor .ql-toolbar { position: relative; }

.page-editor__image-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px;
  background: #f4f6f1; border: 1.5px solid var(--line-input); border-top: none; font-size: 14px;
}
.page-editor__image-tools[hidden] { display: none; }
.page-editor__image-tools span { font-weight: 600; color: var(--muted); margin: 0 2px 0 8px; }
.page-editor__image-tools span:first-child { margin-left: 0; }
.page-editor__image-tools button {
  font: inherit; background: #fff; border: 1px solid var(--line-input); border-radius: 4px; padding: 4px 10px; cursor: pointer; color: var(--ink);
}
.page-editor__image-tools button:hover { border-color: var(--green); }
.page-editor__image-tools button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-editor__image-tools .is-danger { margin-left: auto; color: #b3341c; }
.page-editor__status { margin: 8px 0 0; font-size: 14px; color: var(--muted-2); min-height: 1em; }
.page-editor__status.is-error { color: #b3341c; }

/* Quill sine engelske tekster i lenkeboksen. */
.page-editor .ql-snow .ql-tooltip::before { content: "Lenke:"; }
.page-editor .ql-snow .ql-tooltip[data-mode=link]::before { content: "Skriv inn lenke:"; }
.page-editor .ql-snow .ql-tooltip a.ql-action::after { content: "Endre"; }
.page-editor .ql-snow .ql-tooltip a.ql-remove::before { content: "Fjern"; }
.page-editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Lagre"; }
.page-editor .ql-snow .ql-tooltip { z-index: 6; }
/* Dra-håndtak for bildebredde og strek som viser hvor et bilde slippes. */
.page-editor__handle {
  position: absolute; z-index: 4; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: var(--green); border: 2px solid #fff; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.3);
  cursor: nwse-resize; touch-action: none;
}
.page-editor__handle.is-left { cursor: nesw-resize; }
.page-editor__handle[hidden], .page-editor__drop[hidden] { display: none; }
.page-editor__handle-label {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 3px;
}
.page-editor__drop { position: absolute; z-index: 4; width: 3px; margin-left: -1px; background: var(--green); border-radius: 2px; pointer-events: none; }
.page-editor__image-tools input[type=range] { width: 160px; accent-color: var(--green); vertical-align: middle; }
.page-editor__image-tools output { min-width: 3.2em; font-variant-numeric: tabular-nums; color: var(--ink); }
/* Flytting av bilder i editoren. */
.page-editor .ql-editor img { -webkit-user-drag: none; user-select: none; }
.page-editor .ql-editor img[data-selected] { touch-action: none; } /* valgt bilde kan dras med fingeren */
.page-editor .ql-editor img[data-dragging] { opacity: .35; }
.page-editor.is-dragging, .page-editor.is-dragging .ql-editor, .page-editor.is-dragging .ql-editor * { cursor: grabbing; }
.page-editor__ghost {
  position: fixed; z-index: 1000; width: 140px; height: auto; pointer-events: none; opacity: .85;
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.page-editor__image-tools button:disabled { opacity: .45; cursor: not-allowed; }
/* Bildeverktøyet ligger som en ekstra rad nederst i den faste verktøylinja. Quill sine knappestiler overstyres. */
.page-editor .ql-toolbar .page-editor__image-tools {
  margin: 6px -8px -6px; border: none; border-top: 1.5px solid var(--line-input); border-radius: 0;
}
.page-editor .ql-toolbar.ql-snow .page-editor__image-tools button {
  float: none; width: auto; height: auto; padding: 4px 10px; font: inherit; font-size: 14px; line-height: 1.3; color: var(--ink);
  background: #fff; border: 1px solid var(--line-input); border-radius: 4px;
}
.page-editor .ql-toolbar.ql-snow .page-editor__image-tools button:hover { color: var(--ink); border-color: var(--green); }
.page-editor .ql-toolbar.ql-snow .page-editor__image-tools button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-editor .ql-toolbar.ql-snow .page-editor__image-tools .is-danger { color: #b3341c; }
.page-editor .ql-toolbar.ql-snow .page-editor__image-tools button:disabled:hover { border-color: var(--line-input); }
