/* DETTE SKAL FJERNES FØR LAUNCH */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
body.locked .site-header {
  display: flex;
}
#password-input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.password-screen {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999;

  background:
    linear-gradient(
      180deg,
      rgba(255,253,249,0.68),
      rgba(255,253,249,0.82)
    );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.password-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-box {
  width: min(92vw, 440px);

  padding: 2rem;

  border-radius: 1.5rem;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.82),
      rgba(255,255,255,0.70)
    );

  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);

  border: 1px solid rgba(255,255,255,0.55);

  box-shadow:
    0 20px 60px rgba(31,29,26,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);

  text-align: center;
}

.password-box .password-label {
  margin: 0;
  color: rgba(168, 143, 104, 0.9);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.password-box h2 {
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.05em;
}

.password-box p {
  color: var(--muted);
  line-height: 1.7;
}

.password-box form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.password-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: center;
  outline: none;
}

.password-box input:focus {
  border-color: rgba(31, 29, 26, 0.42);
}

.password-box button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.password-error {
  display: none;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.password-error.visible {
  display: block;
}

/* SLUTT PASSORD */

:root {
  --paper: #fffdf9;
  --ink: #1f1d1a;
  --muted: #736b61;
  --line: rgba(31, 29, 26, 0.14);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 12vw, 11rem);
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  transition: color 350ms ease, background 350ms ease;
  color: white;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.25),
    0 4px 12px rgba(0,0,0,0.15);
}
.site-header.is-dark {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px);
  text-shadow: none;
}
.site-header {
  border-bottom: 1px solid transparent;
}

.site-header.section-view {
  border-bottom-color: rgba(31, 29, 26, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;

  color: inherit;
  text-decoration: none;

  font-family: Georgia, "Times New Roman", serif;
}

.brand-a,
.brand-m {
  font-size: 4rem;
  line-height: 1;
  font-weight: 400;
}

.brand-divider {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 1.8rem;
  height: 4.5rem;
}

.brand-divider::before,
.brand-divider::after {
  content: "";

  position: absolute;

  width: 1px;
  background: currentColor;
  opacity: 0.6;
}

.brand-divider::before {
  top: 0;
  height: calc(50% - 0.7rem);
}

.brand-divider::after {
  bottom: 0;
  height: calc(50% - 0.7rem);
}

.brand-divider span {
  position: relative;

  font-size: 1.2rem;
  line-height: 1;

  color: inherit;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  justify-content: flex-end;
  transform: translateX(6vw);
}

.nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.25),
    0 4px 12px rgba(0,0,0,0.15);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}
.nav a:hover::after, .nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header.is-dark .nav a,
.site-header.is-dark .brand,
.site-header.is-dark .brand * {
  text-shadow: none;
}

.panel {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
}

.hero {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(360deg, rgba(255,253,249,1) 0%, rgba(255,253,249,.96) 10%, rgba(255,253,249,.66) 20%, rgba(255,253,249,.16) 40%, rgba(255,253,249,0) 60%),
    url("/img/hero.jpg?v=2");
  background-size: cover;
  background-position: top;
  opacity: 0;
  transform: scale(1.035);
  animation: imageFade 1800ms ease 250ms forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 30% 50%, rgba(255,253,249,.9), rgba(255,253,249,.14) 38%, transparent 64%);
  pointer-events: none;
}

.hero-copy {
  width: min(88vw, 980px);
  padding-right: clamp(0rem, 32vw, 28rem);
}

.eyebrow, .date, .section-number {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
}

h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.96;
}

h1 {
  margin-top: 1.1rem;
  font-size: clamp(4.5rem, 13vw, 12.5rem);
  letter-spacing: -0.075em;
}

.date {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;

  width: fit-content;

  margin-top: 1.4rem;
  padding: 0.55rem 0;

  color: rgba(31,29,26,0.78);

  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.22em;
}

.date::before,
.date::after {
  content: "";

  width: 2.1rem;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0),
      rgba(205,179,138,0.65)
    );
}

.date::after {
  transform: scaleX(-1);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.content-section {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vw, 7rem);
	Background: white;
}

.content-section.alt { 
	background: white; 
}
.section-inner {
  width: min(84vw, 900px);
  /*border-top: 1px solid var(--line);*/
  padding-top: clamp(2rem, 5vw, 4rem);
}

h2.tittel {
  margin-top: 1rem;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.05em;
}

.section-inner > p:last-child {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes imageFade {
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 780px) {
  .site-header {
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    mix-blend-mode: normal;
    color: var(--ink);
    background: rgba(255,253,249,.72);
    backdrop-filter: blur(16px);
  }
  .nav {
    gap: .8rem;
    overflow-x: auto;
    transform: none;
    max-width: 78vw;
    padding-bottom: .25rem;
  }
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.76) 36%, rgba(255,253,249,.2) 100%),
      url("/img/hero.jpg?v=2");
    background-position: center;
  }
  .hero-copy { padding-right: 0; padding-top: 10vh; }
  h1 { font-size: clamp(4rem, 20vw, 7rem); }
}
.site-header {
  color: white;
}

.site-header.is-dark {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px);
}
.menu-section {
  min-height: auto;
  padding-top: clamp(6rem, 10vw, 9rem);
  padding-bottom: clamp(6rem, 10vw, 9rem);
}
.menu-section,
.program-section,
#praktisk {
  scroll-snap-align: none; 
}
.menu-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.course {
  padding-top: 0;
  margin-bottom: -1em;
}

.course-label {
   position: relative;

   margin-bottom: 1.4rem;
   text-transform: uppercase;
   color: rgba(31,29,26,0.52);

}

.course-label::after {
  content: "";

  display: block;

  width: 18rem;
  height: 1px;

  margin-top: 0.85rem;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0.55),
      rgba(205,179,138,0.08)
    );
}

.course h3,
.form-intro h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.course p:last-child,
.form-intro p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.allergy-form {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.2rem;
  max-width: 680px;
}

.allergy-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.allergy-form input,
.allergy-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.75);
  color: var(--ink);
  font: inherit;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  outline: none;
}

.allergy-form textarea {
  border-radius: 1.2rem;
  resize: vertical;
}

.allergy-form input:focus,
.allergy-form textarea:focus {
  border-color: rgba(31, 29, 26, 0.38);
}

.checkbox-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-group input {
  width: auto;
}

.allergy-form button {
  width: fit-content;
  margin-top: 0.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}

.allergy-form button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 780px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .allergy-form {
    max-width: none;
  }
}
.menu-layout.vertical {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 720px;
}

.menu-layout.vertical .course {
  display: block;
  grid-template-columns: 9rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.menu-layout.vertical .course-label {
  margin-top: 0.45rem;
}

@media (max-width: 780px) {
  .menu-layout.vertical .course {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.praktisk-card {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
 
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}

.praktisk-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}
.praktisk-card p{
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}
.praktisk-card p:last-child {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}
.praktisk-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(31, 29, 26, 0.8) !important;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.map-link {
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}
.praktisk-card .map-link {
  display: inline-flex;
  margin-top: 1rem;
}
.map-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

@media (max-width: 780px) {
  .location-card {
    display: grid;
    align-items: start;
  }

  .map-link {
    width: fit-content;
  }
}

.toastmaster-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  margin: 1.5rem 0;

  color: #cdb38a !important;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  -webkit-text-stroke: 0.25px rgba(120,95,60,0.25);

  text-shadow:
    0 0 6px rgba(205,179,138,0.12);

  text-align: center;
}

.toastmaster-name::before,
.toastmaster-name::after {
  content: "";

  width: 5rem;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0),
      rgba(205,179,138,0.48)
    );
}

.toastmaster-name::after {
  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0.48),
      rgba(205,179,138,0)
    );
}

.contact-details {
  margin-top: 2rem;
  padding-top: 0;
}

.contact-details summary {
  list-style: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  border: 1px solid var(--ink);
  border-radius: 999px;

  padding: 0.9rem 1.35rem;

  background: transparent;
  color: var(--ink);

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;

  transition:
    background 250ms ease,
    color 250ms ease,
    transform 250ms ease;
}

@media (hover: hover) {
  .contact-details summary:hover {
    background: var(--ink);
    color: var(--paper);
  }
}

.contact-details[open] summary {
  background: var(--ink);
  color: var(--paper);
}

.contact-details summary::-webkit-details-marker {
  display: none;
}

.contact-details summary::after {
  content: "+";

  font-size: 1rem;
  font-weight: 400;
  line-height: 1;

  transition: transform 250ms ease;
}

.contact-details[open] summary::after {
  transform: rotate(45deg);
}

.contact-details-content {
  position: relative;

  max-height: 0;
  overflow: hidden;

  opacity: 0;

  margin-top: 0;
  padding-left: 1rem;

  transition:
    max-height 520ms cubic-bezier(.22,1,.36,1),
    opacity 280ms ease,
    margin-top 280ms ease;
}

.contact-details[open] .contact-details-content {
  max-height: 8rem;

  opacity: 1;
  margin-top: 1rem;
}

.contact-details-content::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 1px;

  background:
    linear-gradient(
      180deg,
      rgba(205,179,138,0),
      rgba(205,179,138,0.38) 20%,
      rgba(205,179,138,0.38) 80%,
      rgba(205,179,138,0)
    );
}

.contact-details-content > div {
  opacity: 0;
  transform: translateY(-6px);

  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(.22,1,.36,1);
}

.contact-details[open] .contact-details-content > div {
  opacity: 1;
  transform: translateY(0);
}

.contact-details-content a {
  display: block;
  width: fit-content;

  color: rgba(31,29,26,0.72);

  text-decoration: none;

  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.02em;

  transition:
    color 220ms ease,
    transform 220ms ease;
}

.contact-details-content a:hover {
  color: var(--ink);
  text-decoration: underline;

  transform: translateX(2px);
}


.event-time {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.event-time-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.timeline {
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 720px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 1px solid var(--line);
}

.timeline-item time {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-top: 0.40rem !important;
}

h3.timeline-tittel {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.8rem)!important;
  letter-spacing: -0.03em !important;
}

.timeline-item div p {
  margin-top: 0.70rem;
  color: var(--muted);
  font-size: 1.2rem !important;
  line-height: 1.6;
}
.program-intro {
  margin-top: 1.5rem;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  
}
.hotel-item {
  position: relative;

  display: flex;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;

  padding: 1.5rem 0;
}

.hotel-item::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0),
      rgba(205,179,138,0.42) 18%,
      rgba(205,179,138,0.42) 82%,
      rgba(205,179,138,0)
    );
}
.hotel-note,
.transport-note,
.footer-note {
  margin-top: 1.5rem;

  padding: 1rem 1.1rem;

  border-left: 0;
  border-radius: 1rem;

  background: rgba(31,29,26,0.035);

  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;

  max-width: 38rem;
}

.hotel-note strong {
  color: var(--ink);
  font-style: normal;
}
.transport-list {
  margin: 2rem 0;
}

.transport-item {
  display: flex;
  justify-content: space-between;
  gap: 2rem;

  padding: 0.9rem 0;

  border-bottom: 1px solid var(--line);
}

.transport-item:first-child {
  border-top: 1px solid var(--line);
}

.transport-item span:first-child {
  color: var(--ink);
}

.transport-item span:last-child {
  color: var(--muted);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.menu-header h2 {
  margin: 0;
}

.menu-toggle {
  display: inline-flex;
  gap: 0.35rem;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  border: 1px solid var(--line);
  border-radius: 999px;

  padding: 0.25rem;
  flex-shrink: 0;
}
.menu-toggle:hover {
  border-color: rgba(31, 29, 26, 0.26);
  box-shadow: 0 8px 24px rgba(31, 29, 26, 0.06);
}

.menu-toggle-btn {
 border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 250ms ease,
    color 250ms ease,
    transform 250ms ease,
    opacity 250ms ease;
}

.menu-toggle-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.menu-toggle-btn.active {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.02);
}
.menu-toggle-btn.active:hover {
  color: var(--paper);
}

@media (max-width: 780px) {
  .menu-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    margin-top: 1rem;
  }
}
.menu-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.menu-panel.active {
  display: block;
  animation: menuFadeIn 420ms ease forwards;
}
@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.site-footer {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(31, 29, 26, 0.08);
}

.site-footer-inner {
  width: min(84vw, 900px);
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 2rem 0;

  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer-logout {
  border: 0;
  background: none;

  color: var(--muted);

  font: inherit;
  cursor: pointer;

  transition: color 250ms ease;
}

.footer-logout:hover {
  color: var(--ink);
}
.notice {
  margin-top: 1.25rem;

  padding: 1rem 1.1rem;

  border-radius: 1rem;

  background: rgba(31,29,26,0.035);

  line-height: 1.65;
}

.notice-label {
  display: block;

  margin-bottom: 0.45rem;

  color: var(--muted);

  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.notice p {
  margin: 0;
}
.allergen-note {
  margin-top: 0.85rem !important;
  margin-bottom: 0 !important;

  color: rgba(31,29,26,0.46) !important;

  font-size: 0.82rem !important;
  line-height: 1.55 !important;

  font-style: italic;
}
.notice-wide {
  width: 100%;
  max-width: 100% !important;
}
/* Notice – samme stil som RSVP context-note */

.notice.notice-wide {
  position: relative;

  width: 100%;
  max-width: none;

  margin: clamp(1.25rem, 3vw, 2rem) 0;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;

  border-radius: 1.15rem;

  background: rgba(31, 29, 26, 0.028);

  color: rgba(31, 29, 26, 0.62);

  font-size: 0.94rem;
  line-height: 1.7;

  overflow: hidden;
}

.notice.notice-wide::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;

  width: 1px;

  background:
    linear-gradient(
      180deg,
      rgba(205, 179, 138, 0),
      rgba(205, 179, 138, 0.52) 22%,
      rgba(205, 179, 138, 0.52) 78%,
      rgba(205, 179, 138, 0)
    );
}

.notice.notice-wide .notice-label {
  display: block;

  margin: 0 0 0.45rem;

  color: rgba(31, 29, 26, 0.82);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.notice.notice-wide p {
  margin: 0;
}

.notice.notice-wide .notice-footnote {
  margin-top: 0.7rem;

  color: rgba(31, 29, 26, 0.46);

  font-size: 0.82rem;
  line-height: 1.55;
  font-style: italic;
}

@media (max-width: 780px) {
  .notice.notice-wide {
    padding: 1rem 1rem 1rem 1.1rem;

    font-size: 0.88rem;
    line-height: 1.65;
  }

  .notice.notice-wide .notice-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .notice.notice-wide .notice-footnote {
    font-size: 0.8rem;
  }
}
/* Felles note-stil – inspirert av RSVP context-note */

.notice.notice-wide,
.drink-note,
.hotel-note,
.transport-note {
  position: relative;

  width: 100%;
  max-width: none;

  margin: clamp(1.15rem, 2.5vw, 1.85rem) 0;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;

  border-radius: 1.15rem;

  background: rgba(31, 29, 26, 0.028);

  color: rgba(31, 29, 26, 0.62);

  font-size: 0.94rem;
  line-height: 1.7;

  overflow: hidden;
}

.notice.notice-wide::before,
.drink-note::before,
.hotel-note::before,
.transport-note::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;

  width: 1px;

  background:
    linear-gradient(
      180deg,
      rgba(205, 179, 138, 0),
      rgba(205, 179, 138, 0.52) 22%,
      rgba(205, 179, 138, 0.52) 78%,
      rgba(205, 179, 138, 0)
    );
}

.notice-label,
.drink-note-label {
  display: block;

  margin: 0 0 0.45rem;

  color: rgba(31, 29, 26, 0.82);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.notice.notice-wide p,
.drink-note p,
.hotel-note p,
.transport-note p {
  margin: 0;
}

.notice.notice-wide p + p,
.drink-note p + p,
.hotel-note p + p,
.transport-note p + p {
  margin-top: 0.65rem;
}

.notice-footnote {
  color: rgba(31, 29, 26, 0.46);

  font-size: 0.82rem;
  line-height: 1.55;
  font-style: italic;
}

.notice.notice-wide .notice-footnote {
  margin-top: 0.7rem;
}

/* Fredag-notice med label + meta på samme linje */
.notice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;

  margin-bottom: 0.55rem;
}

.notice-header .notice-label {
  margin-bottom: 0;
}

.notice-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  color: rgba(31, 29, 26, 0.58);

  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.notice-meta span {
  color: rgba(31, 29, 26, 0.38);
  font-weight: 700;
}

/* Små justeringer for notes inni kort */
.hotel-note,
.transport-note {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

.hotel-note strong {
  color: rgba(31, 29, 26, 0.78);

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;

  font-size: 0.88em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Drink-note inne i drikkemenyen */
.drink-note {
  margin-top: 0.5rem;
}

@media (max-width: 780px) {
  .notice.notice-wide,
  .drink-note,
  .hotel-note,
  .transport-note {
    padding: 1rem 1rem 1rem 1.1rem;

    font-size: 0.88rem;
    line-height: 1.65;
  }

  .notice-label,
  .drink-note-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .notice-footnote {
    font-size: 0.8rem;
  }

  .notice-header {
    display: grid;
    gap: 0.45rem;
  }

  .notice-meta {
    width: fit-content;
    white-space: normal;
  }
}
/* Note-label – champagnefarge som RSVP */

.notice.notice-wide .notice-label,
.drink-note .notice-label,
.drink-note .drink-note-label,
.hotel-note .notice-label,
.transport-note .notice-label {
  color: rgba(205, 179, 138, 0.92);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.allergen-note::before {
  content: "Allergener · ";
  color: rgba(31,29,26,0.72);
  font-style: normal;
}
@media (min-width: 781px) {
  .timeline {
    position: relative;
    max-width: 760px;
    margin-top: clamp(3rem, 6vw, 5rem);
  }

  .timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);

    padding: 1.65rem 0 1.65rem 1.35rem;

    border-bottom: 0;
  }

  .timeline-item:first-child {
    border-top: 0;
  }

  .timeline-item::before {
    content: "";
    position: absolute;

    left: 0;
    top: 1.90rem;
    bottom: -1.9rem;

    width: 1px;
    background: var(--line);
  }

  .timeline-item::after {
    content: "";
    position: absolute;

    left: -4px;
    top: 1.85rem;

    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #cdb38a;
    box-shadow: 0 0 0 4px rgba(205,179,138,0.14); 
  }

  .timeline-item:last-child::before {
    display: none;
  }

  .timeline-item time {
    display: inline-block;
    width: fit-content;

    padding-top: 0 !important;

    color: rgba(31,29,26,0.92);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1;
  }

  .timeline-item time::after {
    content: "";
    display: block;

    width: 100%;
    height: 1px;

    margin-top: 0.55rem;
    margin-bottom: 0.25rem;

    background:
	  linear-gradient(
		90deg,
		rgba(205,179,138,0),
		rgba(205,179,138,0.55) 18%,
		rgba(205,179,138,0.55) 82%,
		rgba(205,179,138,0)
	  );
  }

  h3.timeline-tittel {
    margin: 0 !important;
    font-size: clamp(1.45rem, 2vw, 1.9rem) !important;
    line-height: 1.08 !important;
    color: var(--ink) !important;
  }

  .timeline-item div p {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;

    color: rgba(31,29,26,0.56);
    font-size: 1.05rem !important;
    line-height: 1.65;
  }
}
@media (min-width: 781px) {
  .notice {
    max-width: 42rem;
    margin-top: 1.6rem;
    padding: 1.15rem 1.35rem;
  }
}
@media (min-width: 781px) {
  .praktisk-card {
    padding-top: 2.6rem;
    margin-top: 3.2rem;
  }

  .praktisk-card h3 {
    line-height: 1.02;
  }

  .praktisk-card p {
    color: rgba(31,29,26,0.62);
  }
}
@media (min-width: 781px) {
  .hotel-item {
    padding: 1.35rem 0;
  }

  .hotel-item h4 {
    margin: 0 0 0.35rem;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.35rem;
  }

  .hotel-item p {
    margin: 0;
    color: rgba(31,29,26,0.58);
  }
}
@media (min-width: 781px) {
  .menu-layout.vertical {
    max-width: 760px;
  }

  .course {
    padding-bottom: 2.35rem;
  }

  .allergen-note {
    margin-top: 0.75rem !important;
  }
}
@media (min-width: 781px) {
  .site-header.is-dark {
  background: rgba(255,253,249,0.58);

  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

  .nav a {
    font-size: 0.88rem;
  }
}
@media (min-width: 781px) and (max-width: 1280px) {
  .site-header {
    padding: 1.35rem 2.5rem;
    gap: clamp(1.5rem, 6vw, 5rem);
  }

  .brand-a,
  .brand-m {
    font-size: 3.1rem;
  }

  .brand-divider {
    height: 3.5rem;
  }

  .nav {
    gap: 1.15rem;
    transform: translateX(2vw);
  }

  .nav a {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(5rem, 10vw, 8.8rem);
  }

  h2.tittel {
    font-size: clamp(3rem, 6.5vw, 5.4rem);
  }

  .content-section {
    padding: clamp(4rem, 6vw, 5.5rem);
  }

  .section-inner {
    width: min(82vw, 760px);
    padding-top: 2.6rem;
  }

  .praktisk-card h3,
  .course h3 {
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  }

  .event-time-value {
    font-size: clamp(3.4rem, 6vw, 4.8rem);
  }
}
@media (min-width: 781px) {
  .hero::before {
    background-position: 42% top;
  }

  .hero-copy {
    padding-right: clamp(0rem, 30vw, 26rem);
  }
}
.drink-course {
  position: relative;
  padding-left: 0;
  border-bottom: 0;

  margin-bottom: 0;
  padding-bottom: 0;
}

.drink-course .course-label {
  color: rgba(31,29,26,0.52);
}

.drink-entry {
  position: relative;
  margin-top: 1.55rem;
}
.drink-entry p {
  position: relative;

  max-width: 34rem;

  margin: 0.75rem 0 0;
  padding-left: 1rem;

  color: rgba(31,29,26,0.56);
  font-size: 1rem;
  line-height: 1.65;
}
#drink-menu .drink-entry p {
  max-width: 34rem;

  margin-top: 0.65rem;

  color: rgba(31,29,26,0.56);

  font-size: 1rem;
  line-height: 1.65;
}
.drink-entry p::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 1px;

  background:
    linear-gradient(
      180deg,
      rgba(205,179,138,0),
      rgba(205,179,138,0.45) 20%,
      rgba(205,179,138,0.45) 80%,
      rgba(205,179,138,0)
    );
}

@media (min-width: 781px) {
  .drink-entry::before {
	 transform: translateY(3px);
  }
}

.drink-entry + .drink-entry {
  margin-top: 1.65rem;
}

.drink-entry h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
   font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.drink-entry p {
  max-width: 34rem;
  margin: 0.55rem 0 0;
  color: rgba(31,29,26,0.56);
  font-size: 1rem;
  line-height: 1.65;
}

.drink-type {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
  color: rgba(168,143,104,.85);
  letter-spacing: .22em;
  margin-left: 0.5em;
  font-size: 0.68rem;
  font-weight: 600;
  
  text-transform: uppercase;
}
.drink-note {
  margin-top: 3rem;

  padding: 1rem 1.1rem;

  border-radius: 1rem;

  background: rgba(31,29,26,0.035);

  max-width: 36rem;
}

.drink-note-label {
  display: block;

  margin-bottom: 0.45rem;

  color: var(--muted);

  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drink-note p {
  margin: 0;

  color: rgba(31,29,26,0.62);

  line-height: 1.65;
}
/* Matmeny mer i stil med drikkemeny */
#food-menu .course h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

#food-menu .course p:not(.course-label):not(.allergen-note) {
  max-width: 34rem;

  margin-top: 0.65rem;

  color: rgba(31,29,26,0.56);

  font-size: 1rem;
  line-height: 1.65;
}

.course-label {
  margin-bottom: 0.85rem;

  color: rgba(31,29,26,0.52);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

#food-menu .allergen-note {
  max-width: 34rem;

  margin-top: 0.75rem !important;

  color: rgba(31,29,26,0.46) !important;

  font-size: 0.82rem !important;
  line-height: 1.55 !important;
}
/* SAVE THE DATE MODE */
.save-the-date {
  display: none;
}

body.save-date-mode {
  overflow: hidden;
}

body.save-date-mode .site-header {
  justify-content: center;
}

body.save-date-mode .site-header .nav,
body.save-date-mode .mobile-scroll-nav,
body.save-date-mode .mobile-scroll-label,
body.save-date-mode .site-footer,
body.save-date-mode main section:not(#home) {
  display: none !important;
}

body.save-date-mode .site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   SAVE THE DATE – transparent invitasjonsark
   ========================================================================== */

body.save-date-mode .save-the-date {
  position: relative;
  isolation: isolate;

  display: block !important;

  width: min(100%, 32rem);
  max-width: 32rem;

  margin: 2.5rem auto 0;
  padding: 1.75rem 1.9rem 1.65rem;

  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 0.35rem;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.84),
      rgba(255,253,249,0.68)
    );

  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);

  box-shadow:
    0 20px 48px rgba(31,29,26,0.11),
    inset 0 1px 0 rgba(255,255,255,0.9);

  text-align: left;
}

/* Et svakt ark bak hovedarket */
body.save-date-mode .save-the-date::before {
  content: "";

  position: absolute;
  z-index: -1;

  inset: 0.45rem -0.45rem -0.45rem 0.45rem;

  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 0.3rem;

  background: rgba(255,253,249,0.28);

  transform: rotate(-0.7deg);

  box-shadow:
    0 12px 32px rgba(31,29,26,0.055);
}

/* Diskré innerkant */
body.save-date-mode .save-the-date::after {
  content: "";

  position: absolute;
  inset: 0.55rem;

  border: 1px solid rgba(205,179,138,0.17);
  border-radius: 0.12rem;

  pointer-events: none;
}

body.save-date-mode .save-the-date-label {
  position: relative;

  width: fit-content;
  max-width: 100%;

  margin: 0 0 1.15rem;
  padding-bottom: 0.85rem;

  color: rgba(31,29,26,0.68);

  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.save-date-mode .save-the-date-label::after {
  content: "";

  display: block;

  width: 4.5rem;
  height: 1px;

  margin-top: 0.85rem;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0.78),
      rgba(205,179,138,0.08)
    );
}

body.save-date-mode .save-the-date p {
  max-width: 27rem;

  margin: 0;

  color: rgba(31,29,26,0.68);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  font-style: normal;
  letter-spacing: 0.015em;
  line-height: 1.7;
}

body.save-date-mode .save-the-date p:first-of-type {
  color: rgba(31,29,26,0.8);

  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.6;
}

body.save-date-mode .save-the-date p + p {
  margin-top: 0.8rem;

  color: rgba(31,29,26,0.48);

  font-size: 0.92rem;
  font-style: italic;
}
.hero-location {
  width: fit-content;
  margin: 0.8rem auto 0;

  color: rgba(31,29,26,0.54);

  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-location::before {
  display: none;
}
.hero-copy .date {
  display: flex;
  justify-content: center;

  width: 100%;

  margin-top: 1.4rem;
}

.hero-location {
  display: block;

  width: 100%;

  margin-top: 0.85rem;

  text-align: center;

  color: rgba(31,29,26,0.54);

  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
body.locked {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.password-screen {
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(.22,1,.36,1),
    visibility 650ms ease;
}

body.unlocking .password-screen {
   opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

body.unlocking .password-box {
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
}

.password-box {
  transition:
    opacity 450ms ease,
    transform 450ms cubic-bezier(.22,1,.36,1);
}
@media (min-width: 781px) {
  .hero .hero-copy.reveal.in-view {
    transform: translateY(60px);
  }
}
@media (max-width: 1250px) {
  .hero-copy {
    padding-right: 0;
    width: min(88vw, 760px);
  }

  .hero-stack {
    width: 100%;
  }

  .hero-stack h1 {
    text-align: center;
  }

  .save-the-date,
  .save-the-date p,
  .save-the-date-label {
    text-align: left;
  }
}

.program-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  
}


.program-panel.active {
  display: block;
  animation: menuFadeIn 420ms ease forwards;
}

.program-day {
  display: flex;
  align-items: center;
  gap: 1rem;

  margin-top: 2.5rem;
  margin-bottom: 1.5rem;

  color: rgba(168,143,104,.85);

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.program-day-divider {
  flex: 1;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0.55),
      rgba(205,179,138,0.08)
    );
}
.program-panel .timeline {
  margin-top: 1rem;
}

@media (min-width: 781px) {
  .program-panel .timeline {
    margin-top: 1.4rem;
  }
}
#program .program-toggle {
  margin-top: 1rem;
}
.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;

  margin-bottom: 0.55rem;
}

.notice-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;

  color: rgba(31,29,26,0.58);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  white-space: nowrap;
}

.notice-meta span {
  color: rgba(31,29,26,0.36);
  font-weight: 500;
}
.notice-footnote {
  padding-top: 0.5rem;

  color: rgba(31,29,26,0.42);

  font-size: 0.8rem;
  line-height: 1.75;

  font-style: italic;
}

.notice-footnote::before {
  content: "";

  display: block;

  width: 100%;
  height: 1px;

  margin-bottom: 0.85rem;

  background:
    linear-gradient(
      90deg,
      rgba(205,179,138,0),
      rgba(205,179,138,0.42) 18%,
      rgba(205,179,138,0.42) 82%,
      rgba(205,179,138,0)
    );
}
.timeline-map-link {
  display: inline-flex;
  margin-top: 1rem !important;
}
@media (min-width: 781px) {
  .site-header {
    position: fixed;
    top: 0;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
.praktisk-card .course-label,
#onskeliste .course-label,
.course .course-label {
  margin: 0 0 0.85rem !important;

  color: rgba(31,29,26,0.52) !important;

  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   SAVE THE DATE – nettbrett og lave skjermer
   Hindrer at invitasjonskortet blir klippet nederst på iPad/tablet.
   ========================================================================== */

@media
  (min-width: 781px) and (max-width: 1280px),
  (min-width: 781px) and (max-height: 900px) {

  body.save-date-mode {
    min-height: 100svh;

    overflow-x: hidden;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
  }

  body.save-date-mode #home.hero {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;

    padding:
      clamp(7rem, 13vh, 8.5rem)
      clamp(1.5rem, 4vw, 3rem)
      clamp(2rem, 5vh, 3.5rem);

    overflow-x: hidden;
    overflow-y: visible;
  }

  /*
    Desktop-versjonen flytter innholdet 60 px ned.
    På lave nettbrettskjermer er dette det som presser kortet
    utenfor hero-seksjonen.
  */
  body.save-date-mode .hero .hero-copy.reveal.in-view {
    transform: translateY(0);
  }

  body.save-date-mode .hero-copy {
    width: min(88vw, 760px);
  }

  body.save-date-mode h1 {
    font-size: clamp(4.75rem, 9vw, 7rem);
  }

  body.save-date-mode .save-the-date {
    margin-top: clamp(1.4rem, 3vh, 2rem);

    padding:
      clamp(1.4rem, 2.4vh, 1.65rem)
      1.75rem
      clamp(1.35rem, 2.2vh, 1.55rem);
  }
}

/* ==========================================================================
   SAVE THE DATE – kompakt overgang mellom mobil og desktop
   Gjelder smale nettbrettvinduer og lave liggende skjermer.
   ========================================================================== */

@media
  (min-width: 781px) and (max-width: 1024px),
  (min-width: 781px) and (max-height: 760px) {

  /*
    Ikke sentrer en innholdsblokk som kan være høyere enn ledig skjermplass.
    Start heller under headeren og la siden kunne rulle ved behov.
  */
  body.save-date-mode #home.hero {
    place-items: start center;

    padding-top: clamp(6.25rem, 12vh, 7.25rem);
    padding-right: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: 2rem;
    padding-left: clamp(1.25rem, 3vw, 2rem);
  }

  body.save-date-mode .hero-copy,
  body.save-date-mode .hero .hero-copy.reveal.in-view {
    width: min(90vw, 660px);

    padding-top: 0;
    padding-right: 0;

    transform: none !important;
  }

  body.save-date-mode h1 {
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 0.92;
  }

  body.save-date-mode .hero-copy .date {
    margin-top: 1rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  body.save-date-mode .hero-location {
    margin-top: 0.55rem;
  }

  body.save-date-mode .save-the-date {
    width: min(86vw, 28rem);

    margin-top: 1.1rem;
    padding: 1.2rem 1.35rem 1.15rem;
  }

  body.save-date-mode .save-the-date-label {
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
  }

  body.save-date-mode .save-the-date-label::after {
    margin-top: 0.65rem;
  }

  body.save-date-mode .save-the-date p {
    line-height: 1.55;
  }

  body.save-date-mode .save-the-date p + p {
    margin-top: 0.55rem;
  }
}

/* ==========================================================================
   Felles gjesteinnlogging og adminforhåndsvisning
   ========================================================================== */

.site-admin-preview-bar {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  right: 0;

  color: #fffdf9;
  background:
    linear-gradient(180deg, rgba(38, 35, 31, 0.975), rgba(27, 25, 22, 0.98));
  border-bottom: 1px solid rgba(214, 188, 148, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 32px rgba(20, 18, 16, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.site-admin-preview-inner {
  min-height: 40px;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0.22rem clamp(1.1rem, 3.4vw, 3rem);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-admin-preview-copy {
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.22rem 0.72rem 0.22rem 0.22rem;
  border: 1px solid rgba(214, 188, 148, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 5px 16px rgba(0, 0, 0, 0.08);
}

.site-admin-preview-copy strong {
  flex: 0 0 auto;
  min-height: 23px;
  padding: 0 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(231, 210, 178, 0.92);
  background: rgba(205, 179, 138, 0.11);
  border: 1px solid rgba(214, 188, 148, 0.18);
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.site-admin-preview-copy span {
  min-width: 0;
  color: rgba(255, 253, 249, 0.94);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-admin-preview-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.038);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 5px 18px rgba(0, 0, 0, 0.08);
}

.site-admin-preview-actions a {
  min-height: 28px;
  padding: 0.35rem 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 253, 249, 0.66);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.site-admin-preview-actions a:hover {
  color: #fffdf9;
  background: rgba(255, 255, 255, 0.07);
}

.site-admin-preview-actions a.is-active {
  color: #2b2824;
  background: linear-gradient(180deg, #fffdf9, #f2ebe1);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 13px rgba(0, 0, 0, 0.18);
}

.site-admin-preview-actions a:active {
  transform: translateY(1px);
}

.site-admin-preview-actions a:focus-visible {
  outline: 2px solid rgba(231, 210, 178, 0.9);
  outline-offset: 2px;
}

.site-admin-preview-actions .site-admin-show-published {
  margin-left: 0.16rem;
  color: rgba(255, 253, 249, 0.9);
  border-color: rgba(214, 188, 148, 0.24);
  background: rgba(205, 179, 138, 0.065);
}

.site-admin-preview-actions .site-admin-show-published:hover {
  color: #fffdf9;
  background: rgba(205, 179, 138, 0.12);
  border-color: rgba(214, 188, 148, 0.34);
}

body.has-admin-preview .site-header {
  top: 40px;
}

.guest-access-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(205, 179, 138, 0.18), transparent 34%),
    #fffdf9;
}

.guest-access-screen {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  padding: 1.25rem;
}

.guest-access-box h1 {
  margin: 0.9rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.guest-access-message {
  margin-top: 1.1rem;
  padding: 0.78rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.guest-access-message.is-error {
  color: #773f38;
  background: rgba(162, 80, 69, 0.08);
  border: 1px solid rgba(162, 80, 69, 0.2);
}

.guest-access-field {
  display: grid;
  gap: 0.45rem;
}

.guest-access-field > span {
  color: rgba(31, 29, 26, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-access-cookie-note {
  margin: 1.15rem auto 0 !important;
  max-width: 32rem;
  color: rgba(31, 29, 26, 0.46) !important;
  font-size: 0.72rem !important;
  line-height: 1.55 !important;
}

.footer-guest-logout-form {
  margin: 0;
}

.footer-guest-logout-form .footer-logout {
  font: inherit;
}

@media (max-width: 850px) {
  .site-admin-preview-inner {
    min-height: 40px;
    padding: 0.22rem 0.72rem;
    gap: 0.5rem;
  }

  .site-admin-preview-copy {
    flex: 0 1 auto;
    max-width: 42%;
  }

  .site-admin-preview-actions {
    min-width: 0;
    max-width: 58%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .site-admin-preview-actions::-webkit-scrollbar {
    display: none;
  }

  body.has-admin-preview .site-header {
    top: 40px;
  }
}

@media (max-width: 560px) {
  /* Mobil: én lav, stabil rad. Ingen horisontal scrolling. */
  .site-admin-preview-inner {
    min-height: 46px;
    padding: 0.22rem 0.42rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.38rem;
  }

  .site-admin-preview-copy {
    justify-self: start;
    min-width: 0;
    min-height: 28px;
    max-width: none;
    padding: 0;
    gap: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-admin-preview-copy strong {
    min-height: 28px;
    padding: 0 0.5rem;
    font-size: 0.47rem;
    letter-spacing: 0.13em;
  }

  .site-admin-preview-copy span {
    display: none;
  }

  .site-admin-preview-actions {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 34px;
    padding: 0.1rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.05rem;
    overflow: visible;
  }

  .site-admin-preview-actions a {
    min-width: 0;
    min-height: 32px;
    padding: 0.32rem 0.14rem;
    font-size: clamp(0.45rem, 2vw, 0.55rem);
    letter-spacing: 0.002em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-admin-preview-actions .site-admin-show-published {
    margin-left: 0;
  }

  body.has-admin-preview .site-header {
    top: 46px;
  }
}


/* ========================================================================== 
   Offentlig footer · admininnlogging før admin-session
   ========================================================================== */

.site-footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.footer-admin-link {
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-admin-link:hover {
  color: var(--ink);
}

body.save-date-mode .site-footer.save-date-footer {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: block !important;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0), rgba(255, 253, 249, 0.88));
  border-top: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.save-date-mode .save-date-footer .site-footer-inner {
  width: min(88vw, 1100px);
  padding: 1rem 0 1.15rem;
  font-size: 0.72rem;
}

body.guest-access-page {
  padding-bottom: 4.25rem;
}

body.guest-access-page .guest-access-footer {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.guest-access-page .guest-access-footer .site-footer-inner {
  width: min(88vw, 900px);
  padding: 0.85rem 0;
  font-size: 0.72rem;
}

@media (max-width: 700px) {
  .site-footer-inner,
  .site-footer-actions {
    flex-wrap: wrap;
  }

  body.save-date-mode .save-date-footer .site-footer-inner,
  body.guest-access-page .guest-access-footer .site-footer-inner {
    justify-content: center;
    gap: 0.45rem 1rem;
    text-align: center;
  }
}


/* Gjesteinnlogging: tydelig sentrering på nettbrett og skjult visuell etikett. */
.guest-access-box h1 {
  width: 100%;
  text-align: center;
  text-wrap: balance;
}

.guest-access-field > .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hold av datoen: litt bredere invitasjonsark på laptop og nettbrett. */
body.save-date-mode .save-the-date {
  width: min(100%, 36rem);
  max-width: 36rem;
}

@media
  (min-width: 781px) and (max-width: 1024px),
  (min-width: 781px) and (max-height: 760px) {
  body.save-date-mode .save-the-date {
    width: min(90vw, 32rem);
    max-width: 32rem;
  }
}


/* ========================================================================== 
   Save the Date · bredere laptopkort og trygg tablet-avstand
   ========================================================================== */

/*
 * På større PC-/laptopskjermer var kortet begrenset av høyre padding på
 * .hero-copy. Derfor hadde større width på selve kortet ingen synlig effekt.
 */
@media (min-width: 1181px) and (hover: hover) and (pointer: fine) {
  body.save-date-mode .hero-copy,
  body.save-date-mode .hero .hero-copy.reveal.in-view {
    width: min(90vw, 1100px);
    padding-right: 0;
  }

  body.save-date-mode .hero-stack {
    width: 100%;
  }

  body.save-date-mode .hero-stack h1 {
    text-align: center;
  }

  body.save-date-mode .save-the-date {
    width: min(100%, 40rem);
    max-width: 40rem;
  }

  body.save-date-mode .save-the-date p {
    max-width: none;
  }
}

/*
 * Nettbrett fra 781 px og opp: behold kortbredden, men gi tittelen mer luft
 * under den faste A & M-logoen.
 */
@media (min-width: 781px) and (max-width: 1280px) {
  body.save-date-mode #home.hero {
    place-items: start center;
    padding-top: clamp(9rem, 17vh, 10.5rem);
  }

  body.save-date-mode .hero-copy,
  body.save-date-mode .hero .hero-copy.reveal.in-view {
    padding-top: 0;
    transform: none !important;
  }
}


/* ==========================================================================
   Hovedmeny · diskret destinasjonsikon for RSVP
   ========================================================================== */

@media (min-width: 781px) {
  .site-header .nav .guest-nav-destination {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
  }

  .site-header .guest-nav-destination-icon {
    width: 0.72rem;
    height: 0.72rem;
    flex: 0 0 auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.2;
    opacity: 0.62;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header .guest-nav-destination:hover .guest-nav-destination-icon {
    opacity: 0.9;
    transform: translate(1px, -1px);
  }
}


/* ==========================================================================
   Gjesteinnlogging · samme input-komponent som admin-auth v15 · v17
   ========================================================================== */
body.guest-access-page .guest-access-field input {
  width: 100%;
  min-height: 3.55rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(31,29,26,.11);
  border-radius: .92rem;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  text-align: center;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.guest-access-page .guest-access-field input:hover {
  border-color: rgba(31,29,26,.18);
}

body.guest-access-page .guest-access-field input:focus {
  border-color: rgba(181,143,94,.68);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(205,179,138,.09), inset 0 1px 0 rgba(255,255,255,.92);
}

body.guest-access-page .guest-access-field input:-webkit-autofill,
body.guest-access-page .guest-access-field input:-webkit-autofill:hover,
body.guest-access-page .guest-access-field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.98) inset !important;
  box-shadow: 0 0 0 1000px rgba(255,255,255,.98) inset !important;
  border-color: rgba(31,29,26,.11) !important;
  transition: background-color 9999s ease-out 0s;
}

body.guest-access-page .guest-access-field input:-webkit-autofill:focus {
  border-color: rgba(181,143,94,.68) !important;
  -webkit-box-shadow: 0 0 0 4px rgba(205,179,138,.09), 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 4px rgba(205,179,138,.09), 0 0 0 1000px #fff inset !important;
}
