/* ==========================================================================
   Strindheim Skoles Musikkorps – new design
   No framework. Colours and sizes are controlled by the variables below.
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-dark: #9b0c23;
  --red-soft: #fbe9ec;
  --brass: #c99a2e;
  --ink: #1d1a1a;
  --text: #2b2727;
  --muted: #6b6461;
  --paper: #fbf8f4;
  --card: #ffffff;
  --line: #ebe3da;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red: #e23a52;
    --red-dark: #c8102e;
    --red-soft: #3a1a20;
    --ink: #f4efea;
    --text: #e6e0da;
    --muted: #a59d97;
    --paper: #161414;
    --card: #272322;
    --line: #4a4340;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 32px, 880px); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .5em; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 38px; height: 58px; object-fit: contain; }
.brand span { font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: 0; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  display: block; padding: .5em .8em; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: .98rem;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--red); }
.nav a[aria-current="page"], .has-sub.active > button { color: var(--red); font-weight: 800; }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
/* Invisible bridge over the gap between the menu item and its dropdown, so the dropdown stays open while the pointer moves down to it */
@media (min-width: 961px) {
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
.nav .cta { margin-left: 8px; }
.nav .cta a { background: var(--red); color: #fff; border-radius: 999px; padding: .55em 1.2em; }
.nav .cta a:hover, .nav .cta a[aria-current="page"] { background: var(--red-dark); color: #fff; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 72px); background: var(--card); border-top: 1px solid var(--line); padding: 16px; overflow-y: auto; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button { width: 100%; text-align: left; padding: .9em 1em; font-size: 1.1rem; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .nav .cta { margin: 12px 0 0; }
  .nav .cta a { text-align: center; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 680px); display: grid; align-items: end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .05) 20%, rgb(20 4 8 / .78) 100%), linear-gradient(90deg, rgb(20 4 8 / .55), transparent 70%); }
.hero-content { padding: 120px 0 clamp(48px, 8vw, 96px); max-width: 680px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #ffd9de; }
.hero p { font-size: 1.2rem; max-width: 34em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Upcoming events ---------- */
.events { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.event {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.datestamp { text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); line-height: 1; }
.datestamp .m { display: block; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; padding: 5px 0; text-transform: uppercase; }
.datestamp .d { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); padding: 8px 0 4px; }
.datestamp .w { display: block; font-size: .7rem; color: var(--muted); padding-bottom: 6px; text-transform: uppercase; }
.event h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.event .meta { font-size: .9rem; color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); margin-top: 8px; }
.source-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- News ---------- */
.news { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 16px 36px rgb(0 0 0 / .1); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.card h3 { margin: 6px 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Join section ---------- */
.join { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.join::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgb(255 255 255 / .06); }
.join h2, .join h3 { color: #fff; }
.join .eyebrow { color: #ffd9de; }
.join-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1.3fr; align-items: center; position: relative; z-index: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: rgb(255 255 255 / .1); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--red-dark); font-weight: 800; font-size: 1.1rem; }
.steps h3 { margin: 0 0 2px; font-size: 1.05rem; }
.steps p { margin: 0; opacity: .9; font-size: .95rem; }
@media (max-width: 820px) { .join-grid { grid-template-columns: 1fr; } }

/* ---------- Practical info tiles ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--red); transform: translateY(-2px); color: var(--text); }
.tile svg { width: 36px; height: 36px; color: var(--red); margin-bottom: 12px; }
.tile h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Gallery teaser ---------- */
.strip { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
.strip a { border-radius: var(--radius-sm); overflow: hidden; }
.strip a:first-child { grid-row: span 2; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.strip a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; } .strip a:first-child { grid-column: span 2; grid-row: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: #4a4543; color: #e6e0da; padding: 56px 0 28px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 12px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand img { width: 44px; margin-bottom: 12px; filter: drop-shadow(0 0 1px rgb(255 255 255 / .9)) drop-shadow(0 0 1px rgb(255 255 255 / .6)); }
.footer-bottom { border-top: 1px solid #615b58; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #c2bab4; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--red-soft); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; max-width: 22ch; overflow-wrap: anywhere; }
.page-hero .lead { margin: 14px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44em; color: var(--text); }
.page-hero.has-image { min-height: clamp(260px, 34vw, 380px); display: grid; align-items: end; color: #fff; background: #2a0a10; border-bottom: 0; }
.page-hero.has-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 4 8 / .1) 0%, rgb(20 4 8 / .78) 100%), linear-gradient(90deg, rgb(20 4 8 / .5), transparent 75%); }
.page-hero.has-image h1, .page-hero.has-image .lead { color: #fff; }
.page-hero.has-image .eyebrow { color: #ffd9de; }

.page { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.notice p { margin: 0; }

/* Typography for page content written as plain HTML */
.prose { font-size: 1.075rem; }
.prose p { line-height: 1.75; margin: 0 0 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.2em 0 .7em; padding-top: 18px; position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--red); }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; line-height: 1.6; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { color: var(--red); font-weight: 800; }
.prose a:not(.button):not(.btn) { font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.2em; border-left: 4px solid var(--red); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose b, .prose strong { color: var(--ink); }

/* Legacy layout classes from the old template, kept so existing page content keeps working */
.prose header.major { margin: 2em 0 1em; }
.prose header.major h2, .prose header.major h3 { font-size: 1.5rem; margin: 0; padding-bottom: .4em; border-bottom: 3px solid var(--red); display: inline-block; }
.row { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.row > * { min-width: 0; }
.row.gtr-50 { gap: 12px; }
.col-4 { flex: 1 1 calc(33.333% - 24px); }
.col-6 { flex: 1 1 calc(50% - 24px); }
.col-8 { flex: 1 1 calc(66.666% - 24px); }
.col-12 { flex: 1 1 100%; }
@media (max-width: 980px) { .col-12-medium { flex-basis: 100%; } }
@media (max-width: 600px) { .row:not(.gtr-uniform) > [class*="col-"] { flex-basis: 100%; } }
.image { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1em; }
.image img { width: 100%; }
.image.fit img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.row.gtr-uniform .image { margin: 0; }
.image.instrument {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; margin: 4px 0 16px;
  background: radial-gradient(circle at 50% 40%, var(--card) 0%, var(--paper) 100%); border: 1px solid var(--line);
}
/* Absolutely positioned so the whole instrument always fits inside the panel */
.image.instrument img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; transition: transform .3s; }
.image.instrument:hover img { transform: scale(1.04); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box h3 { color: var(--red-dark); font-size: 1.2rem; }
.box h3 + h3 { margin-top: .2em; }
.prose .row { margin: 0 0 32px; }
.image.uniform { max-width: 240px; margin: 16px 0 0; }
.button {
  display: inline-flex; align-items: center; padding: .65em 1.3em; border-radius: 999px;
  border: 2px solid var(--red); color: var(--red); background: transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.button:hover { background: var(--red); color: #fff; }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.small { padding: .45em 1em; font-size: .85rem; }
ul.actions { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.table-wrapper { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--card); }
.prose th, .prose td { text-align: left; padding: .7em .9em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--red-soft); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }
.calendar-embed { width: 100%; height: 720px; border: 1px solid var(--line) !important; filter: hue-rotate(135deg); background: #fff; }
@media (max-width: 600px) { .calendar-embed { height: 560px; } }

/* ---------- Story page building blocks (used on "Om korpset") ---------- */
.journey-wrap { margin: 0 0 clamp(48px, 7vw, 88px); }
.journey { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.journey::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--line); z-index: 0; }
.journey li { counter-increment: step; position: relative; z-index: 1; margin: 0; padding: 0; }
.prose .journey { padding: 0; margin: 12px 0 0; }
.prose .journey li { margin: 0; padding: 0; }
.journey li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--paper);
}
.prose .journey h3 { margin: 0 0 6px; font-size: 1.15rem; }
.prose .journey p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.journey-more { margin: 20px 0 0; }
.journey-more a::after { content: " →"; }
@media (max-width: 820px) {
  .journey { grid-template-columns: 1fr; gap: 20px; }
  .journey::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .journey li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .journey li::before { margin: 0; grid-row: span 2; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin: 0 0 clamp(48px, 7vw, 88px); }
.split.reverse .split-media { order: 2; }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin-top: 0; padding-top: 0; }
.split-text h2::before { display: none; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature svg { width: 32px; height: 32px; color: var(--red); margin-bottom: 10px; }
.prose .feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.prose .feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.narrow-text { max-width: 68ch; margin: 0 auto clamp(48px, 7vw, 80px); font-size: 1.15rem; text-align: center; color: var(--muted); }

.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--red); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 48px);
  margin: 0 0 clamp(48px, 7vw, 80px);
}
.callout > div:first-child { flex: 1 1 420px; }
.prose .callout h2 { color: #fff; margin: 0 0 .4em; padding: 0; }
.prose .callout h2::before { display: none; }
.prose .callout p { margin: 0; opacity: .95; }
.callout-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.prose .cards-2 h2 { font-size: 1.4rem; margin-top: 0; }

/* ---------- Chips and prices (used on "Ny i korpset") ---------- */
.prose .chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .chips li { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .88rem; font-weight: 600; line-height: 1.3; }
.prose .journey h3 a { color: inherit; text-decoration: none; }
.prose .journey h3 a:hover { color: var(--red); }
.split[id] { scroll-margin-top: 96px; }

.prices-section { margin: 0 0 clamp(48px, 7vw, 80px); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.prose .price h3 { margin: 0 0 10px; font-size: 1rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.prose .price-amount { margin: 0; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.prose .price-year { margin: 4px 0 14px; color: var(--muted); font-size: .95rem; }
.prose .price-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.5; }
.prose .price-footnote { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Lists, notes and steps used on the info pages ---------- */
.prose .checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose .checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.prose .checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prose .checklist.own li::before { background: var(--red-soft); border: 2px solid var(--red); }
.box.note { border-left: 4px solid var(--red); }
.prose .box.note h3 { color: var(--ink); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(36px, 5vw, 56px); }
.jump a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; text-decoration: none; font-size: .95rem; }
.prose .jump a { font-weight: 600; }
.jump a:hover { border-color: var(--red); color: var(--red); }
section[id] { scroll-margin-top: 96px; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.prose .kit h3 { margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose .kit-who { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.prose .kit .checklist { font-size: .97rem; }
@media (max-width: 560px) { .kit { grid-template-columns: 1fr; } }

.care-section { margin: 0 0 clamp(32px, 5vw, 56px); }
.prose .care-intro { max-width: 68ch; margin-bottom: 24px; }
.care-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.care { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.care-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.prose .care h3 { margin: 0; font-size: 1.1rem; }
.care-label { padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.prose .care p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.6; }

.prose .timeline { list-style: none; padding: 0; margin: 0 0 40px; position: relative; }
.prose .timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.prose .timeline > li { position: relative; padding: 0 0 8px 44px; margin: 0; }
.prose .timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 4px solid var(--red); }
.prose .timeline h2 { margin: 0 0 12px; padding: 0; font-size: 1.3rem; }
.prose .timeline h2::before { display: none; }

.prose .howto { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: how; display: grid; gap: 14px; }
.prose .howto li { counter-increment: how; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; margin: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .howto li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.prose .howto h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.prose .howto p { margin: 0; color: var(--muted); font-size: .97rem; }

.volunteer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.prose .volunteer h2 { margin-top: 0; }
.volunteer-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .volunteer { grid-template-columns: 1fr; } .volunteer-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Formal document (årsmøte) ---------- */
.formal {
  background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--red);
  border-radius: 4px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
  font-family: Georgia, "Times New Roman", serif;
}
.formal p, .formal li { font-size: 1.05rem; }
.formal-head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.formal-head img { width: 48px; }
.prose .formal-org { margin: 0; font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.prose .formal-head h2 { margin: 4px 0 0; padding: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 0; }
.prose .formal-head h2::before { display: none; }
.prose .formal h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.formal-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; border: 1px solid var(--line); border-radius: 4px; }
.formal-meta > div { padding: 14px 18px; }
.formal-meta > div + div { border-left: 1px solid var(--line); }
.formal-meta dt { font-family: var(--font); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.formal-meta dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
@media (max-width: 640px) { .formal-meta { grid-template-columns: 1fr; } .formal-meta > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.prose .agenda { list-style: none; padding: 0; margin: 0; }
.prose .agenda > li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; margin: 0; border-bottom: 1px dotted var(--line); }
.agenda-no { font-family: var(--font); font-weight: 700; color: var(--red); font-size: .95rem; padding-top: 2px; }
.prose .agenda-sub { margin: 6px 0 0; padding-left: 1.3em; }
.prose .agenda-sub li { margin: 2px 0; font-size: 1rem; color: var(--muted); }
.prose .agenda-sub li::marker { color: var(--muted); font-weight: 400; }
.prose .formal .doc-list { max-width: none; padding: 0; font-family: var(--font); }
.formal-sign { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose .formal-after { margin-top: 24px; color: var(--muted); font-size: .97rem; }

/* ---------- Calendar and yearly overview ---------- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 28px; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-filters button {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); display: inline-flex; align-items: center; gap: 7px;
}
.cal-filters button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.cal-filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.cal-filters button[aria-pressed="true"]::before { background: currentColor; }
.cal-filters button[data-filter="event"][aria-pressed="true"]::before { background: var(--red); border-color: var(--red); }
.cal-filters button[data-filter="school"][aria-pressed="true"]::before { background: var(--brass); border-color: var(--brass); }
.cal-filters button[data-filter="holiday"][aria-pressed="true"]::before { background: #7d8a99; border-color: #7d8a99; }

.regular-box { margin: 0 0 32px; }
.prose .regular-box h3 { margin: 0 0 10px; color: var(--ink); }
.prose .regular { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.prose .regular li { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.regular strong { color: var(--red-dark); min-width: 12.5em; }
.regular small { color: var(--muted); }
.prose .small-note { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

.cal-month { margin: 0 0 28px; }
.prose .cal-month h2 { font-size: 1.25rem; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--line); text-transform: none; }
.prose .cal-month h2::before { display: none; }
.prose .cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prose .cal-row {
  margin: 0; padding: 14px 16px; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-left: 4px solid var(--red);
}
.cal-row .datestamp .d { font-size: 1.4rem; padding: 6px 0 2px; }
.prose .cal-body h3 { margin: 2px 0 2px; font-size: 1.05rem; }
.prose .cal-row .meta { margin: 0; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.prose .cal-desc { margin: 6px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.cal-type { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.prose .cal-row.type-rehearsal { border-left-color: var(--line); }
.prose .cal-row.type-school { border-left-color: var(--brass); background: color-mix(in srgb, var(--brass) 8%, var(--card)); }
.prose .cal-row.type-holiday { border-left-color: #7d8a99; background: color-mix(in srgb, #7d8a99 8%, var(--card)); }
.type-school .datestamp .m { background: var(--brass); }
.type-holiday .datestamp .m { background: #7d8a99; }
.type-rehearsal .datestamp .m { background: var(--muted); }
.cal-row[hidden], .cal-month[hidden] { display: none; }
.is-cancelled .cal-title, .is-cancelled .meta { text-decoration: line-through; opacity: .7; }
.cancelled-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red-dark); border-radius: 4px; padding: 2px 6px; vertical-align: 2px; text-decoration: none; }
/* Holidays take less space than the band's own events */
.prose .cal-row.type-school, .prose .cal-row.type-holiday { padding-top: 10px; padding-bottom: 10px; align-items: center; }
.type-school .datestamp .w, .type-holiday .datestamp .w { display: none; }
.type-school .datestamp .d, .type-holiday .datestamp .d { font-size: 1.15rem; padding: 4px 0; }
.prose .type-school .cal-body h3, .prose .type-holiday .cal-body h3 { font-size: .98rem; font-weight: 600; }
@media (max-width: 560px) {
  .prose .cal-row { grid-template-columns: 52px 1fr; }
  .cal-row .cal-type { grid-column: 2; padding: 0; }
  .cal-row .cal-type { display: none; }
}

.year-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 28px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .year-nav a { font-weight: 600; text-decoration: none; }
.term { margin: 0 0 40px; }
.prose .term h2 { margin-top: 0; }
.prose .wheel { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.prose .wheel-row { margin: 0; display: grid; grid-template-columns: 11.5em 1fr auto; gap: 4px 18px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: baseline; position: relative; }
.prose .wheel-row:first-child { border-top: 0; }
.wheel-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.wheel-row.type-school::before { background: var(--brass); }
.wheel-row.type-holiday::before { background: #7d8a99; }
.wheel-date { font-weight: 700; color: var(--ink); }
.wheel-title { font-weight: 600; }
.wheel-info { grid-column: 2; color: var(--muted); font-size: .92rem; }
.wheel-info:empty { display: none; }
.wheel-row .cal-type { grid-column: 3; grid-row: 1; }
.wheel-row.type-school .wheel-title, .wheel-row.type-holiday .wheel-title { font-weight: 500; color: var(--muted); }
.is-past { opacity: .55; }
@media (max-width: 640px) {
  .prose .wheel-row { grid-template-columns: 1fr auto; }
  .wheel-date { grid-column: 1; }
  .wheel-title, .wheel-info { grid-column: 1 / -1; }
  .wheel-row .cal-type { grid-column: 2; grid-row: 1; }
}

/* ---------- People (board and conductors) ---------- */
.people-section { margin: 0 0 clamp(40px, 6vw, 72px); }
.prose .section-head h2 { margin: 0; padding: 0; }
.prose .section-head h2::before { display: none; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .people { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.prose .person-role { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.prose .person h3 { margin: 2px 0 8px; font-size: 1.1rem; }
.prose .person-contact { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.prose .person-contact li { margin: 0 0 2px; padding: 0; }
.prose .person-contact a { font-weight: 500; color: var(--muted); text-decoration: none; overflow-wrap: break-word; }
.prose .person-contact a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Committees (expandable) ---------- */
.committees details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; }
.committees summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.committees summary::-webkit-details-marker { display: none; }
.committees summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
}
.committees details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.committees summary:hover { color: var(--red); }
.details-body { padding: 0 24px 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.details-body > :last-child { margin-bottom: 0; }
.prose .details-body h3 { margin-top: 0; font-size: 1.02rem; color: var(--red-dark); }
.cols-2, .cols-3 { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ---------- Embedded video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.6em; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe, .prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }

/* ---------- "Bli med" page ---------- */
.video-section { margin: 0 0 clamp(48px, 7vw, 80px); }
.prose .howto .when { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .78rem; font-weight: 700; vertical-align: 2px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 clamp(48px, 7vw, 80px); }
.photo-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .photo-pair { grid-template-columns: 1fr; } }
.faq { margin: 0 0 clamp(48px, 7vw, 80px); }
.prose .faq .details-body p { margin: 0; }
.callout .btn-light { box-shadow: 0 4px 14px rgb(0 0 0 / .18); }
.callout .btn-light:hover { transform: translateY(-2px) scale(1.03); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-item { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
#load-more { margin-top: 28px; }

/* ---------- Document list ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 760px; }
.doc-list a {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; transition: border-color .15s;
}
.doc-list a:hover { border-color: var(--red); }
.doc-list svg { width: 28px; height: 28px; color: var(--red); }
.doc-list small { color: var(--muted); white-space: nowrap; }

/* ---------- Mockup banner (to be removed) ---------- */
.mock-banner { background: var(--brass); color: #1d1a1a; text-align: center; font-size: .85rem; font-weight: 700; padding: 6px 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Dark mode overrides (must stay last) ---------- */
@media (prefers-color-scheme: dark) {
  .brand img { filter: drop-shadow(0 0 1px rgb(255 255 255 / .9)) drop-shadow(0 0 1px rgb(255 255 255 / .6)); }
  .event, .card, .tile { border-color: #5f5652; box-shadow: 0 0 0 1px rgb(255 255 255 / .03), 0 8px 24px rgb(0 0 0 / .35); }
  .event { background: #2a2625; }
  .event .datestamp { border-color: #6a615c; background: #1d1a19; }
  .event .meta { color: #bdb4ae; }
  .tag { background: #4a1f27; color: #ffc2cc; }
  .nav a:hover, .nav button:hover, .nav a[aria-current="page"], .has-sub.active > button { color: #ff8a9c; }
  .page-hero:not(.has-image) { background: #2a1519; }
  .prose th { background: #3a1a20; }
  .box h3, .prose .details-body h3 { color: #ff8a9c; }
  .image.instrument { background: radial-gradient(circle at 50% 40%, #d8d1ca 0%, #aaa19a 100%); border-color: #5f5652; }
  /* Multiply blends the white parts of the photos (drum heads, highlights, edges) into the tinted panel */
  .image.instrument img { mix-blend-mode: multiply; }
  .care-label { background: #3a1a20; color: #ffc2cc; }
  .prose .howto .when { background: #3a1a20; color: #ffc2cc; }
  .avatar, .prose .chips li { background: #3a1a20; color: #ffc2cc; }
  .join, .callout { background: #b00d28; }
}
