/* Malemoro – felles sidestil for de offentlige sidene (bygger på /style.css).
   Sidehode, to-kolonne-oppsett, skjemakort, datokort, galleri, gavekort og småtillegg for mobil. */

/* ---------- Tilgjengelighet ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Sidehode ---------- */
.page-head { padding: 40px var(--gutter) 32px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 4.2vw, 46px); }
.page-head .lead { max-width: 640px; font-size: 17px; }
.h-sub { font-family: var(--title); font-size: 26px; font-weight: 600; }

/* ---------- Bølger: bølgen arver bakgrunnen, banen har båndets farge ---------- */
.wave path.pink { fill: var(--pink); }
.wave path.orange { fill: var(--orange); }

/* ---------- To kolonner: skjema + sidekolonne ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding: 0 var(--gutter) 64px; }
.split-aside-left { grid-template-columns: 400px minmax(0, 1fr); }
.aside { display: flex; flex-direction: column; gap: 24px; }
.form-card { background: var(--paper); border: 2px solid var(--line-soft); border-radius: 24px; padding: 40px; }
.form-card .form { gap: 22px; }
.form-card .field-row { gap: 22px; }
.form-title { font-family: var(--title); font-size: 24px; font-weight: 600; }
.field label .opt { font-weight: 600; color: var(--faint); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.actions .btn { min-height: 52px; padding-left: 32px; padding-right: 32px; font-size: 16px; }
.total-inline { font-size: 17px; font-weight: 800; color: var(--pink-ink); }
.form-note { font-size: 13px; color: var(--faint); line-height: 1.5; }
.form-note a, .check a { text-decoration: underline; }
.choice button { min-height: 44px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.code-row input::placeholder { text-transform: none; }
.code-row .btn { flex: none; min-height: 48px; padding: 10px 22px; }
.code-status { font-size: 14px; min-height: 0; }

/* Oppsummering (rosa boks) og infokort i sidekolonnen */
.summary { background: var(--pink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.summary-title { font-family: var(--title); font-size: 22px; font-weight: 600; color: var(--pink-ink); }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.summary-row > span:first-child { color: var(--muted); flex: none; }
.summary-row > span:last-child { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.summary-total { border-top: 2px solid #EFB9CC; padding-top: 14px; font-size: 17px; }
.summary-total > span:first-child { color: var(--ink); font-weight: 800; }
.summary-total > span:last-child { color: var(--pink-ink); }
.info-card { background: var(--paper); border: 2px solid var(--line-soft); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.info-card .head { font-size: 15px; font-weight: 800; }
.info-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--muted); }
.steps-list .n { width: 28px; height: 28px; flex: none; border-radius: 999px; background: var(--pink-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }

/* Ferdigmelding etter innsending */
.done-card { background: var(--paper); border: 2px solid var(--line-soft); border-radius: 24px; padding: 40px; }
.done p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.done .row { margin-top: 4px; }
/* Bekreftelsessiden: hva som bekreftes, frist og veien videre */
.confirm-sum { align-self: stretch; padding: 26px 28px; gap: 12px; margin-bottom: 6px; }
.confirm-hold { font-weight: 700; color: var(--ink) !important; }
.next-steps { align-self: stretch; margin-top: 14px; padding-top: 22px; border-top: 2px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.next-steps .head { font-size: 15px; font-weight: 800; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.next-steps li { counter-increment: step; display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--muted); }
.next-steps li::before { content: counter(step); width: 26px; height: 26px; flex: none; border-radius: 999px; background: var(--pink); color: var(--pink-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.next-steps li:first-child::before { background: var(--orange); color: #fff; }

/* ---------- Datoer ---------- */
.sessions { display: flex; flex-direction: column; gap: 20px; }
.sessions-msg { color: var(--faint); font-size: 15px; }
.session { display: flex; align-items: center; gap: 28px; background: var(--paper); border: 2px solid var(--line-soft); border-radius: 20px; padding: 24px 32px; }
.session.is-full { opacity: .65; }
.date-badge { width: 84px; flex: none; display: flex; flex-direction: column; align-items: center; background: var(--pink); color: var(--pink-ink); border-radius: 16px; padding: 12px 0; }
.date-badge .d { font-family: var(--title); font-size: 26px; font-weight: 600; line-height: 1.15; }
.date-badge .w { font-size: 13px; font-weight: 800; }
.is-full .date-badge { background: #EFE7DE; color: var(--faint); }
.session-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.session-title { font-size: 18px; font-weight: 800; }
.session-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.session-meta svg { width: 15px; height: 15px; flex: none; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--line); }
.dot.on { background: var(--orange); border-color: var(--orange); }
.seats { font-size: 14px; color: var(--muted); }
.session-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.session-actions .btn { min-width: 112px; }
.help-band { background: var(--pink); border-radius: 20px; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.help-band p { font-size: 16px; font-weight: 700; color: var(--muted); }
.help-band .btn { flex: none; }

/* ---------- Galleri (plassholdere til ekte bilder kommer) ---------- */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.art { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.art-frame { background: var(--paper); border: 2px solid var(--line-soft); border-radius: 20px; padding: 20px; display: flex; align-items: center; justify-content: center; transform: rotate(-1.5deg); }
.art:nth-child(6n+2) .art-frame { transform: rotate(1deg); }
.art:nth-child(6n+3) .art-frame { transform: rotate(-1deg); }
.art:nth-child(6n+4) .art-frame { transform: rotate(1.5deg); }
.art:nth-child(6n+5) .art-frame { transform: rotate(-1deg); }
.art:nth-child(6n+6) .art-frame { transform: rotate(1deg); }
.art-frame svg { display: block; width: 100%; max-width: 300px; height: auto; }
.art figcaption { font-size: 15px; font-weight: 700; text-align: center; color: var(--muted); }
.wish-card { margin: 0 var(--gutter) 64px; background: var(--orange); border-radius: 28px; padding: 40px 48px; display: flex; align-items: center; gap: 40px; color: #fff; }
.wish-text { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; align-items: flex-start; }
.wish-text h2 { color: #fff; font-size: clamp(26px, 3vw, 30px); }
.wish-text p { font-size: 15px; line-height: 1.6; color: #FFE8D6; max-width: 520px; }
.wish-art { width: 190px; height: 190px; flex: none; background: #fff; border-radius: 22px; display: flex; align-items: center; justify-content: center; transform: rotate(2deg); }
.wish-art svg { width: 140px; height: 140px; }

/* ---------- Gavekort ---------- */
.gc-visual { margin: 0 var(--gutter) 48px; background: #FFE8C7; border-radius: 28px; padding: 48px 56px; position: relative; overflow: hidden; }
.gc-blob { position: absolute; right: -30px; bottom: -40px; width: 360px; height: auto; }
.gc-inner { position: relative; display: flex; flex-direction: column; gap: 10px; }
.gc-hurra { font-size: 18px; font-weight: 800; color: var(--muted); }
.gc-brand { font-family: var(--title); font-size: clamp(40px, 6vw, 54px); font-weight: 600; color: var(--orange); line-height: 1; }
.gc-valid { font-size: 17px; font-weight: 700; color: var(--muted); }
.gc-tag { width: 100%; max-width: 340px; height: auto; margin-top: 14px; }
.gc-foot { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-card { background: var(--paper); border: 2px solid var(--line-soft); border-radius: 20px; padding: 24px 28px; display: flex; align-items: center; gap: 18px; }
.contact-card svg { width: 28px; height: 28px; flex: none; }
.contact-card div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card .head { font-size: 14px; font-weight: 800; }
.contact-card .val { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.place-box { background: var(--pink); border-radius: 20px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--pink-ink); padding: 24px; text-align: center; }
.place-box:hover { color: var(--rose); }
.place-box svg { width: 40px; height: 40px; }

/* ---------- Tekstsider og 404 ---------- */
.prose-section { padding: 8px var(--gutter) 72px; }
.prose .updated { color: var(--faint); font-size: 14px; margin-top: 18px; }
.prose a { text-decoration: underline; }
.nf { padding: 48px var(--gutter) 80px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.nf svg { width: 100%; max-width: 300px; height: auto; }
.nf .lead { max-width: 520px; }

/* ---------- Mobil og nettbrett ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .split-aside-left { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .split, .split-aside-left { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 48px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .wish-card { flex-direction: column; align-items: flex-start; padding: 32px; gap: 28px; }
  .wish-art { align-self: center; }
  .place-box { display: none; }
  /* Større trykkflate på språkvelgeren */
  .lang a, .lang span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; }
}
@media (max-width: 700px) {
  .session { flex-wrap: wrap; gap: 14px 18px; padding: 20px; }
  .date-badge { width: 68px; padding: 10px 0; }
  .session-info { flex-basis: calc(100% - 86px); }
  .session-actions { width: 100%; justify-content: space-between; }
  .help-band { flex-direction: column; align-items: flex-start; padding: 22px; }
}
@media (max-width: 560px) {
  .page-head { padding: 28px var(--gutter) 24px; }
  .page-head .lead { font-size: 16px; }
  .form-card, .done-card { padding: 24px 18px; border-radius: 20px; }
  .form-card .form, .form-card .field-row { gap: 18px; }
  .actions .btn { width: 100%; }
  .summary { padding: 24px 20px; }
  .info-card { padding: 22px 20px; }
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-frame { padding: 14px; }
  .wish-card { padding: 26px 20px; border-radius: 22px; }
  .gc-visual { padding: 28px 22px 32px; border-radius: 22px; margin-bottom: 32px; }
  .gc-blob { width: 190px; right: -50px; bottom: -40px; opacity: .55; }
  .gc-hurra { font-size: 16px; }
  .gc-valid { font-size: 15px; }
  .contact-card { padding: 18px 20px; }
  .lang a, .lang span { padding: 6px 11px; }
  .nf { padding-top: 32px; }
}

/* ---------- Småting for booking/bekreftelse ---------- */
.mobile-only { display: none; }
.narrow { padding: 0 var(--gutter) 64px; max-width: calc(760px + 2 * var(--gutter)); }
.done .title.title-warn { color: var(--warn); }
@media (max-width: 900px) { .mobile-only { display: inline; } }
.form .status:empty { display: none; }
.datoer-list { padding-top: 0; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.datoer-help { padding-top: 0; padding-bottom: 64px; }
.gallery-sec { padding-top: 0; padding-bottom: 56px; }
.prose-head { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; width: 100%; }
.brand { min-height: 44px; }
/* Vilkår for kurset – vises over avkrysningen i bookingskjemaet. */
.rules { background: var(--pink); border-radius: 16px; padding: 14px 20px; }
.rules-head { font-weight: 800; color: var(--pink-ink); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 28px; }
.rules-head::-webkit-details-marker { display: none; }
.rules-head::before { content: ''; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.rules[open] .rules-head::before { transform: rotate(45deg); }
.rules-hint { font-weight: 700; font-size: 13px; color: var(--pink-ink); opacity: .75; }
.rules[open] .rules-hint { display: none; }
.rules ul { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.rules li + li { margin-top: 4px; }
/* Bilder i galleriet: første bilde stort, resten to og to. */
.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-sec .photo-grid .photo:first-child { grid-column: 1 / -1; }
.photo-frame { border-radius: 20px; overflow: hidden; background: var(--sand); box-shadow: 0 10px 28px rgba(58, 46, 42, .10); aspect-ratio: 4 / 3; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: 1fr; } }
