/* 360° religiøse rom – tillegg til style.css */

:root { --sol: #ffd84a; }

/* ---------- Landingsside ---------- */

.phases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.phase {
  border: var(--border); background: var(--paper-solid);
  display: flex; flex-direction: column;
}
.phase img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: var(--border); }
.phase .phase-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.phase h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.phase p { margin: 0; }
.phase .who {
  display: inline-flex; align-self: flex-start; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 0.76rem; padding: 3px 10px; border: var(--border); border-radius: 999px;
}
.phase .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sol); border: 1px solid #0e1a16; }
.phase .buttons { margin: auto 0 0; padding-top: 12px; }

.findings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: var(--border); border-left: var(--border); }
.findings li { padding: 20px; border-right: var(--border); border-bottom: var(--border); background: var(--paper-solid); }
.findings b { display: block; font-size: 1.15rem; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.findings span { color: var(--muted); font-size: 0.97rem; }

.embed-slot {
  border: 2px dashed var(--line); padding: clamp(24px, 5vw, 48px); text-align: center;
  background: var(--paper-solid);
}
.embed-slot p { margin: 0 auto; max-width: 34em; color: var(--muted); }
.embed-frame { border: var(--border); width: 100%; aspect-ratio: 16 / 10; display: block; background: #000; }

.ref { border-left: 6px solid var(--sol); padding: 4px 0 4px 18px; margin: 0; }
.ref p { margin: 0 0 6px; }

.big-link {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); text-decoration: none;
  border: var(--border); background: #0e1a16; color: #e6eee8;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.big-link:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--sol); }
.big-link img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.big-link .txt { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.big-link .txt .label { color: #9aa8a1; }
.big-link h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; }
.big-link p { margin: 0; color: #c9d4ce; }
.big-link .go { font-family: var(--mono); font-size: 0.9rem; color: var(--sol); }

/* ---------- Erfaringsmappe ---------- */

.folder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 20px; font-family: var(--mono); font-size: 0.8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: var(--border); counter-reset: toc; }
.toc li { border-bottom: 1px dashed var(--line); counter-increment: toc; }
.toc a { display: block; padding: 8px 0; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--muted); }
.toc a:hover { text-decoration: underline; }

.doc { max-width: 46rem; }
.doc section { scroll-margin-top: 20px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: var(--border); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; }
.doc h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; letter-spacing: -0.01em; }
.doc p, .doc li { line-height: 1.6; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .kicker { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; margin: 0 0 6px; }

.tldr { counter-reset: tl; list-style: none; padding: 0 !important; }
.tldr li { counter-increment: tl; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.tldr li::before {
  content: counter(tl); font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  background: var(--sol); color: #0e1a16; height: 26px; display: grid; place-items: center; border: 1.5px solid #0e1a16;
}

.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.78rem; font-weight: 500; }
.compare tbody th { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--muted); width: 26%; }
.table-scroll { overflow-x: auto; }

.note {
  background: var(--paper-solid); border: var(--border); padding: 16px 18px; margin: 18px 0;
}
.note p:last-child { margin-bottom: 0; }
.note .label { display: block; margin-bottom: 6px; }

.template {
  position: relative; background: #0e1a16; color: #e6eee8; padding: 18px 20px; margin: 16px 0;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; border: var(--border);
}
.copy {
  position: absolute; top: 10px; right: 10px;
  font: inherit; font-size: 0.75rem; background: var(--sol); color: #0e1a16; border: 1.5px solid #0e1a16; padding: 4px 10px; cursor: pointer;
}

.quote-list { list-style: none; padding: 0 !important; }
.quote-list li { border-left: 4px solid var(--sol); padding: 2px 0 2px 14px; margin: 0 0 14px; }
.quote-list small { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

/* ---------- Vandring (fullskjerm) ---------- */

body.tour {
  height: 100vh; height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0b100e; color: #e6eee8;
  --ink: #e6eee8; --paper: #0b100e; --paper-solid: #141c19; --muted: #9aa8a1; --line: rgba(230, 238, 232, 0.18);
  --border: 1.5px solid rgba(230, 238, 232, 0.85);
  background-image: none;
}

.tour-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.tour-bar .back { font-family: var(--mono); font-size: 0.8rem; text-decoration: none; color: var(--muted); }
.tour-bar .back:hover { color: var(--ink); }
.tour-title { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; flex: 1; }

.mode { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.mode button {
  font: inherit; font-family: var(--mono); font-size: 0.78rem; padding: 6px 14px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink);
}
.mode button[aria-pressed="true"] { background: var(--sol); color: #0e1a16; }

.tour-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.pano-wrap { position: relative; min-height: 0; }
#pano { position: absolute; inset: 0; }

.panel {
  overflow-y: auto; padding: 18px 20px 24px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; background: #0f1513;
}
.panel h2 { margin: -10px 0 0; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.05; }
.panel section { display: flex; flex-direction: column; gap: 8px; }
.panel .label { margin: 0; }
.hint { margin: 0; color: var(--muted); font-size: 0.92rem; }

body[data-mode="elev"] .only-laerer, body[data-mode="laerer"] .only-elev { display: none; }

.listen {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center;
  font: inherit; text-align: left; cursor: pointer;
  background: var(--sol); color: #0e1a16; border: 1.5px solid #0e1a16; padding: 12px 14px;
}
.listen .icon { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; background: #0e1a16; color: var(--sol); border-radius: 50%; font-size: 0.95rem; }
.listen .txt { font-weight: 650; }
.listen .bar { height: 4px; background: rgba(14, 26, 22, 0.2); }
.listen .bar span { display: block; height: 100%; width: 0; background: #0e1a16; }

.script {
  font-size: 1.12rem; line-height: 1.55; background: #141c19; border: 1px solid var(--line); padding: 14px 16px;
}
.script.empty { color: var(--muted); font-size: 0.95rem; }

.poi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.poi-list button {
  width: 100%; display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center;
  font: inherit; text-align: left; color: var(--ink); background: #141c19; border: 1px solid var(--line);
  padding: 10px 12px; cursor: pointer;
}
.poi-list button:hover { border-color: var(--sol); }
.poi-list .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sol); }
.poi-list .go { font-size: 0.72rem; color: var(--sol); }

.step { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.btn.small { padding: 8px 14px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.35; pointer-events: none; }
body.tour .btn { background: var(--ink); color: #0b100e; }
body.tour .btn.ghost { background: transparent; color: var(--ink); }
.credits { margin: 0; font-size: 0.7rem; color: var(--muted); line-height: 1.6; }

.scenes { border-top: 1px solid var(--line); background: #0f1513; }
.scenes ol { list-style: none; margin: 0; padding: 10px 16px; display: flex; gap: 10px; overflow-x: auto; }
.scenes button {
  display: flex; flex-direction: column; gap: 6px; width: 150px; padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer;
}
.scenes img { width: 150px; height: 64px; object-fit: cover; border: 2px solid transparent; opacity: 0.7; }
.scenes button:hover img { opacity: 1; }
.scenes button[aria-current="true"] { color: var(--ink); }
.scenes button[aria-current="true"] img { border-color: var(--sol); opacity: 1; }
.scenes b { font-family: var(--mono); color: var(--sol); font-weight: 500; }

/* Punkter i bildet */
.pnlm-hotspot-base.hs-poi {
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; cursor: pointer;
  background: var(--sol); border: 2px solid #0e1a16; box-shadow: 0 0 0 4px rgba(255, 216, 74, 0.35);
}
.pnlm-hotspot-base.hs-poi::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--sol);
  animation: ring 2.4s ease-out infinite;
}
.pnlm-hotspot-base.hs-poi.pulse::after { animation: ring 0.7s ease-out 4; border-width: 3px; }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hs-label {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 0.72rem; background: #0e1a16; color: #e6eee8; padding: 3px 8px;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.hs-poi:hover .hs-label, .hs-poi:focus .hs-label, body[data-mode="laerer"] .hs-poi .hs-label { opacity: 1; }

.pnlm-hotspot-base.hs-next {
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; cursor: pointer;
  background: rgba(14, 26, 22, 0.65); border: 2px solid #e6eee8;
}
.pnlm-hotspot-base.hs-next::before {
  content: "↑"; position: absolute; inset: 0; display: grid; place-items: center; color: #e6eee8; font-size: 1.5rem;
}
.hs-next .hs-label { opacity: 1; }

.poi-card {
  position: absolute; left: 16px; bottom: 16px; z-index: 5; width: min(380px, calc(100% - 32px));
  max-height: calc(100% - 32px); overflow-y: auto;
  background: #f8faf6; color: #0e1a16; border: 1.5px solid #0e1a16; box-shadow: 6px 6px 0 var(--sol);
  padding: 16px 18px;
}
.poi-card h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.01em; padding-right: 28px; }
.poi-card p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.poi-card img { max-height: 200px; width: auto; margin: 0 0 12px; border: 1.5px solid #0e1a16; }
.poi-card .close {
  position: absolute; top: 8px; right: 10px; font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #0e1a16;
}


.debug {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5;
  font-family: var(--mono); font-size: 0.8rem; background: #0e1a16; color: var(--sol); padding: 4px 10px;
}

/* Pannellum-kontroller i samme stil */
.pnlm-controls { border-radius: 0; border: 1.5px solid #0e1a16; }
.pnlm-load-box { border-radius: 0; background: rgba(14, 26, 22, 0.85); }

@media (max-width: 860px) {
  body.tour { height: auto; overflow: auto; grid-template-rows: auto auto auto; }
  .tour-main { grid-template-columns: minmax(0, 1fr); }
  .pano-wrap { height: 62vh; height: 62dvh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .scenes { position: sticky; bottom: 0; }
  .scenes button { width: 110px; }
  .scenes img { width: 110px; height: 48px; }
  .phases, .big-link, .folder { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

[hidden] { display: none !important; }

.ref.spaced { margin-top: 32px; }
.photo-credit { margin-top: 10px; color: var(--muted); }
.phase svg.loop { width: 100%; height: auto; display: block; border-bottom: var(--border); }

.focus-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: inherit; font-weight: 650; text-align: left; cursor: pointer;
  background: var(--sol); color: #0e1a16; border: 1.5px solid #0e1a16; padding: 12px 14px;
}
.focus-btn span { font-size: 1.3rem; line-height: 1; }
.focus-btn kbd { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; border: 1px solid #0e1a16; padding: 1px 6px; }

.wide-timeline { columns: 2 320px; column-gap: 48px; border-left: 0; }
.wide-timeline li { break-inside: avoid; border-left: 2px solid var(--ink); }
.birk { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.birk figure { margin: 0; }
.birk figure img { border: var(--border); width: 100%; }
.birk figcaption { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-top: 8px; }
.birk ul { padding-left: 1.1em; }
.birk li { margin-bottom: 8px; }
.band-sub { font-size: 1.15rem; margin: 28px 0 12px; letter-spacing: -0.01em; }
@media (max-width: 860px) { .birk { grid-template-columns: minmax(0, 1fr); } .birk figure { max-width: 420px; } }

.lead-p { max-width: 46rem; margin: 0 0 24px; }
.tours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-bottom: 48px; }
.tour-card { border: var(--border); background: var(--paper-solid); display: flex; flex-direction: column; }
.tour-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-bottom: var(--border); }
.tour-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-body h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.tour-body p { margin: 0; }
.tour-body .buttons { margin: auto 0 0; padding-top: 10px; }
.birk h3 { margin: 0 0 10px; font-size: 1.3rem; }

.duo-wrap { padding-top: clamp(28px, 4vw, 44px); }
.duo-wrap .duo { margin: 0; }
