/* ==========================================================
   UL Stølen – stilark
   Rolig og moderne: varm hvit, dyp sjøblå og et snev av naustrødt
   ========================================================== */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
}
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --sand: #efe9df;
  --ink: #15202a;
  --ink-2: #4b5761;
  --ink-3: #596873;
  --line: #e4ded3;
  --sea: #1f4e5f;
  --sea-dark: #143642;
  --sea-tint: #e3ecee;
  --accent: #b4432d;
  --accent-dark: #93341f;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(21, 32, 42, .05), 0 6px 20px rgba(21, 32, 42, .06);
}
*, *::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.65; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sea); color: #fff; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 3rem); }
@media (max-width: 560px) { .wrap, .wrap.narrow { width: calc(100% - 2rem); } }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.small { font-size: .875rem; color: var(--ink-3); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-2); }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sea); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-stack { display: grid; gap: .6rem; margin-top: 1.5rem; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.link-arrow::after { content: '→'; display: inline-block; margin-left: .4rem; transition: transform .15s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Topp ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 241, .88); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em; line-height: 1.1; display: block; }
.brand-sub { font-size: .78rem; color: var(--ink-3); display: block; line-height: 1.2; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .4rem 0; position: relative; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.main-nav a.nav-cta { background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: var(--radius-sm); }
.main-nav a.nav-cta:hover { background: var(--sea); }
.main-nav a.nav-cta::after { display: none; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { content: ''; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
  .nav-toggle span:first-child::before { position: absolute; top: -6px; }
  .nav-toggle span:first-child::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: .5rem 1rem 1.25rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a.nav-cta { margin-top: 1rem; text-align: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; background: var(--sea-dark); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 28, .15) 0%, rgba(10, 20, 28, .1) 35%, rgba(10, 20, 28, .78) 100%),
              linear-gradient(90deg, rgba(10, 20, 28, .45) 0%, rgba(10, 20, 28, 0) 60%); }
.hero-content { position: relative; z-index: 2; padding: 8rem 0 4rem; }
.hero h1 { color: #fff; max-width: 12em; text-wrap: balance; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 34em; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.22); font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-meta strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- Sideoverskrift ---------- */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16em; text-wrap: balance; }
.page-head .lead { margin-bottom: 0; }
.page-head.with-photo { border: 0; padding-bottom: 0; }
.page-photo { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; background: var(--sand); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Seksjoner ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.section.alt + .section { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.top { align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 880px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.card h2 { font-size: 1.5rem; }
.card h3 { margin-bottom: .75rem; }

/* Fakta */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 1.75rem 1.5rem 1.75rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
.fact span { color: var(--ink-3); font-size: .9rem; }
@media (max-width: 560px) { .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .fact { padding: 1.1rem 0; } }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .1rem; }
.check-list li { padding: .7rem 0 .7rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 1.05rem; width: 1rem; height: .55rem; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 1.5rem; margin: 0; }
.info-list dt { color: var(--ink-3); font-size: .9rem; padding-top: .1rem; }
.info-list dd { margin: 0; font-weight: 500; }

/* ---------- Arrangementer ---------- */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row a { display: grid; grid-template-columns: 72px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.3rem .5rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background .15s, padding .15s; }
.event-row a:hover { background: var(--surface); padding-inline: 1rem; }
.event-row a:hover h3 { color: var(--accent); }
.event-date { text-align: center; line-height: 1; }
.event-date .d { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; letter-spacing: -.03em; }
.event-date .m { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: .35rem; }
.event-info h3 { margin: 0 0 .2rem; font-size: 1.15rem; transition: color .15s; }
.event-info .meta { color: var(--ink-3); font-size: .9rem; margin: 0; }
.event-info .summary { color: var(--ink-2); margin: .35rem 0 0; font-size: .95rem; }
.event-arrow { color: var(--ink-3); font-size: 1.2rem; transition: transform .15s; }
.event-row a:hover .event-arrow { transform: translateX(4px); color: var(--accent); }
.event-row.past a { opacity: .65; }
.event-list { border-top: 0; display: grid; gap: 1rem; }
.event-row a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.event-row a:hover { padding-inline: 1.4rem; border-color: var(--sea); }
.event-row.has-image a { grid-template-columns: 72px 132px 1fr auto; }
.event-thumb { width: 132px; height: 112px; object-fit: cover; border-radius: var(--radius-sm); }
.event-date { background: var(--sea-tint); border-radius: var(--radius-sm); padding: 1rem .4rem; color: var(--sea-dark); }
.event-arrow { font-size: .9rem; color: var(--sea); font-weight: 600; }
.event-invitation h3 { margin-top: 1.5rem; }
.event-participation { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: .25rem; }
.event-participation button { width: 100%; }
.event-participation .check { display:flex; align-items:flex-start; gap:.65rem; min-height:44px; }
.event-participation .check input { width:1.2rem; height:1.2rem; flex:0 0 auto; margin-top:.2rem; padding:0; }
.event-interest { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
.event-participation .small { line-height: 1.5; }
.event-invitation.sticky { position: static; }
.event-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.5rem; }
.event-stats strong, .event-stats span, .event-stats small { display: block; }
.event-stats strong { font-size: 2.4rem; color: var(--sea); }
.event-stats small { color: var(--ink-3); margin-top: .5rem; }
.event-table-scroll { overflow-x: auto; }
@media (min-width: 801px) {
  .event-row.compact a { grid-template-columns: 72px 1fr; }
  .event-row.compact.has-image a { grid-template-columns: 72px 132px 1fr; }
}
@media (max-width: 800px) {
  .event-row a, .event-row.has-image a { grid-template-columns: 60px 1fr; gap: 1rem; }
  .event-thumb { width: 100%; height: 180px; grid-column: 1 / -1; grid-row: 1; }
  .event-arrow { grid-column: 2; }
  .event-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .event-row a { grid-template-columns: 56px 1fr; gap: 1rem; } .event-arrow { display: none; } }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sea); margin-bottom: .3rem; }
.month-heading { font-family: var(--font); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 3rem 0 .75rem; }
.month-heading:first-of-type { margin-top: 1.5rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .875rem; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
details.past { margin-top: 3.5rem; }
details.past summary { cursor: pointer; font-weight: 600; color: var(--ink-2); margin-bottom: 1rem; }
.event-detail .rounded, .prose .rounded { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.sticky { position: sticky; top: 96px; }

/* ---------- Nyheter ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.5rem; }
.news-card a { display: block; text-decoration: none; color: inherit; }
.news-img { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); background: var(--sand); margin-bottom: 1.1rem; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.news-card a:hover .news-img img { transform: scale(1.03); }
.news-card a:hover h3 { color: var(--accent); }
.news-card .meta { color: var(--ink-3); font-size: .85rem; margin-bottom: .35rem; }
.news-card h3 { font-size: 1.25rem; transition: color .15s; }
.news-card p:last-child { color: var(--ink-2); margin: 0; font-size: .95rem; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pager a { min-width: 2.5rem; text-align: center; padding: .45rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.prose { max-width: 68ch; }
.article-gallery { margin-top: 2.5rem; }
.article-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.article-gallery-grid figure { margin: 0; min-width: 0; }
.article-gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.article-gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-gallery-grid figcaption { margin-top: .5rem; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 560px) { .article-gallery-grid { grid-template-columns: 1fr; } }
.legal-content .prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--accent); color: var(--ink-2); font-style: italic; }
.event-detail .event-extra { margin-top: 2rem; }
.event-detail .event-extra > h2 { margin-top: 0; margin-bottom: 1.25rem; }
.event-detail .event-extra > :last-child { margin-bottom: 0; }
.event-practical dl { margin: 0; }
.event-practical dt:not(:first-child) { margin-top: 1.5rem; }
.event-practical dd { margin: .4rem 0 0; overflow-wrap: anywhere; }

/* ---------- Bilder ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; aspect-ratio: 4/3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-row: span 2; }
.gallery { columns: 3 260px; column-gap: .9rem; }
.gallery figure { margin: 0 0 .9rem; break-inside: avoid; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(10, 20, 28, .7)); opacity: 0; transition: opacity .2s; }
.gallery figure:hover figcaption { opacity: 1; }
@media (hover: none) { .gallery figcaption { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 22, .94); display: grid; place-items: center; padding: 2rem; }
.lightbox img { max-height: 84vh; max-width: 92vw; width: auto; border-radius: 6px; }
.lightbox p { color: rgba(255,255,255,.85); text-align: center; margin-top: 1rem; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* ---------- Bånd ---------- */
.band { position: relative; overflow: hidden; background: var(--sea-dark); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(2.5rem, 6vw, 4.5rem); }
.band-media, .band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 38, 47, .94) 0%, rgba(14, 38, 47, .8) 45%, rgba(14, 38, 47, .35) 100%); }
.band-inner { position: relative; max-width: 34rem; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.85); }
.band .eyebrow { color: rgba(255,255,255,.65); }

/* Priser */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { font-weight: 650; white-space: nowrap; }
.pay-info { display: grid; gap: .3rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.pay-info b { color: var(--ink); font-weight: 600; }

/* ---------- Medlem ---------- */
.iframe-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; margin: 1.25rem 0 .75rem; }
.iframe-wrap iframe { width: 100%; height: 1000px; border: 0; display: block; }

/* ---------- Skjema ---------- */
.admission-ticket { margin:1.5rem 0; text-align:center; break-inside:avoid; }
.ticket-qr { display:block; width:min(260px,100%); height:auto; margin:1rem auto; image-rendering:pixelated; background:#fff; }
.ticket-code { font-family:monospace; font-size:1rem; overflow-wrap:anywhere; letter-spacing:.04em; }
.ticket-access-form { margin-top:2rem; }
.ticket-access-form summary { cursor:pointer; }
@media print {
  body:has(.ticket-page) .site-header, body:has(.ticket-page) .site-footer,
  .ticket-intro, .ticket-access-form, .ticket-single-link, .ticket-share { display:none!important; }
  body:has(.ticket-page) .section { padding:0; }
  body:has(.ticket-page) .page-head { display:none; }
  .admission-ticket { border:1px solid #555; padding:1rem; color:#000; background:#fff; }
  .ticket-qr { width:55mm; }
}
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span, legend { font-weight: 550; font-size: .9rem; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1px solid #d8d1c4; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31, 78, 95, .15); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem 1.2rem; margin: 0; display: grid; gap: 1rem; background: var(--bg); }
fieldset[hidden] { display: none; }
.participant-question { min-width: 0; overflow-wrap: anywhere; }
.participant-question input[type="checkbox"], .event-form-editor input[type="checkbox"] { width: auto; }
.participant-question select { max-width: 100%; }
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 1rem; font-size: .95rem; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-ok { background: #e2f0eb; color: #1d5546; }
.flash-error { background: #f8e1db; color: var(--accent-dark); }
.success { text-align: center; padding: 3rem 2rem; }

/* ---------- Bunn ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 4.5rem 0 1.5rem; font-size: .95rem; margin-top: clamp(3rem, 8vw, 6rem); }
.site-footer h2 { font-family: var(--font); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-brand img { width: 64px; height: 44px; object-fit: contain; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom { align-items: center; }
.footer-bottom-links { display: flex; align-items: center; gap: 1.25rem; }
.footer-provider { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; opacity: .5; transition: opacity .15s ease; }
.footer-provider img { display: block; width: 30px; height: 24px; }
.footer-provider:hover, .footer-provider:focus-visible { opacity: .9; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 700px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 20, 28, .35) 0%, rgba(10, 20, 28, .6) 40%, rgba(10, 20, 28, .88) 100%); }
  .hero-content { padding-top: 6rem; }
}

/* Små skjermer og tastaturbruk. */
html { scroll-padding-top: 90px; }
.split > *, .field-row > * { min-width: 0; }
.info-list dd { overflow-wrap: anywhere; }
.gallery a:focus-visible + figcaption { opacity: 1; }
.hero .btn:focus-visible, .band .btn:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero { min-height: 680px; }
  .hero-content { padding-bottom: 2.5rem; }
  .hero-meta { gap: 1.25rem; margin-top: 2rem; }
  .hero-meta > div { flex: 1 1 40%; }
  .info-list { grid-template-columns: 1fr; gap: .2rem; }
  .info-list dd { margin-bottom: .9rem; }
  .sticky { position: static; }
}
.calendar-heading { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin:2rem 0 1rem; }
.calendar-heading h2 { margin:0; }
.calendar-today { margin-left:auto; }
.calendar-scroll { overflow-x:auto; border:1px solid var(--line, #ded8ce); border-radius:14px; background:#fff; }
.month-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); min-width:640px; }
.calendar-weekday { padding:.8rem; text-align:center; font-weight:700; background:#e9f0f2; }
.calendar-day { min-height:130px; padding:.55rem; border-top:1px solid #e7e2da; border-right:1px solid #e7e2da; min-width:0; }
.calendar-day:nth-child(7n) { border-right:0; }
.calendar-day time { display:inline-block; padding:.15rem .4rem; margin-bottom:.35rem; font-weight:700; }
.calendar-outside { background:#f7f6f3; color:#7c858a; }
.calendar-current time { border-radius:50%; background:#1e4d5d; color:#fff; }
.calendar-event { display:block; padding:.45rem; margin-bottom:.35rem; border-radius:6px; background:#e4eef1; color:#183f4c; font-size:.85rem; line-height:1.4; overflow-wrap:anywhere; text-decoration:none; }
.calendar-event:hover { background:#d1e4e9; }
.calendar-event span { display:block; font-size:.75rem; font-weight:700; }
.calendar-rental { background:#f2e9db; color:#624b2b; }
.calendar-mobile-tip { display:none; }
.payment-wait { display:flex; align-items:center; gap:1rem; margin:1.5rem 0; }
.payment-wait p { margin:0; }
.payment-spinner { flex:0 0 1.5rem; height:1.5rem; border:3px solid #dce5e8; border-top-color:#245568; border-radius:50%; animation:payment-spin .9s linear infinite; }
.payment-wait.is-paused .payment-spinner { animation:none; opacity:.5; }
@keyframes payment-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .payment-spinner { animation:none; } }
@media(max-width:700px) { .calendar-mobile-tip { display:block; } .calendar-heading { gap:.6rem; } .calendar-heading h2 { font-size:1.25rem; } }
