/* Lancom staff calendar. The shared summer campaign uses the brand navy and teal with warm paper surfaces. */

:root {
  --navy: #000D38;
  --teal: #3CBCAD;
  --teal-400: #63C9BD;
  --teal-300: #8AD7CE;
  --teal-200: #B1E3DE;
  --teal-50: #EBF8F6;
  --cyan: #0FB3D0;
  --link: #50C3B5;
  --white: #FFFFFF;

  --text: #132c36;
  --text-muted: #405c61;
  --text-faint: #506966;
  --line: #c9c7ae;
  --panel: #fffdf7;
  --panel-strong: #ebeeda;
  --summer-paper: #fffaf0;
  --summer-sand: #f6e8c6;
  --summer-sea: #0a625c;
  --teal-glow: rgba(60, 188, 173, 0.35);

  --radius: 16px;
  --font-display: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--summer-paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--summer-paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--summer-sea); }
a:hover { color: #114740; }

img, svg { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.preview-banner {
  position: relative;
  z-index: 5;
  background: var(--cyan);
  color: var(--navy);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px;
}

.wrap {
  width: min(1120px, 100% - clamp(36px, 8vw, 112px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
}
.site-masthead { color: #fff; background: var(--navy); border-top: 3px solid #439e91; }
.logo img { width: 108px; height: auto; }
.logo:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; border-radius: 6px; }

.progress-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid #375369;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  color: #eef9f4;
  backdrop-filter: blur(6px);
}
.progress-bar {
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: inherit;
  transition: width 0.6s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--summer-paper);
  color: var(--navy);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 0;
  margin-top: clamp(14px,1.8vw,24px);
  overflow: hidden;
  background: var(--summer-sand);
  border: 1px solid #c6c2a4;
  border-radius: 3px;
}
.hero-copy { padding: clamp(20px,3.2vw,44px); }

.eyebrow {
  margin: 0 0 17px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow span { margin: 0 0.3em; }

h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.8rem, 7.9vw, 7.2rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
}
h1 .ai {
  color: #087269;
}
.hero h1 { font-size: clamp(3.1rem,5.7vw,5.8rem); line-height: .95; }

.lede {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.45;
}
.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 11px 20px;
  border-radius: 5px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
}
.calendar-link:hover { background: var(--summer-sea); color: var(--white); }
.calendar-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.summer-print {
  position: relative;
  align-self: stretch;
  min-height: 210px;
  background: #9ddacb;
}
.summer-print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 20%; }
.illustrated-link { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0 0 10px; color: var(--summer-sea); font-weight: 650; text-underline-offset: .2em; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.95rem;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ---------- Progress tree ---------- */

.tree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  margin-block: 40px 0;
  padding: 20px;
  border-block: 1px solid var(--line);
}
.tree svg { width: clamp(76px, 9vw, 125px); height: auto; overflow: visible; flex: none; }
.tree figcaption {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.tree figcaption strong { display: block; font-size: 1.25rem; color: var(--white); }

.tree .edge {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
  transition: stroke 0.8s ease, stroke-width 0.8s ease;
}
.tree .edge.is-lit { stroke: rgba(60, 188, 173, 0.75); stroke-width: 1.5; }
.tree .edge.to-star { stroke-dasharray: 3 4; }

.tree .node {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.2;
  transition: fill 0.6s ease, stroke 0.6s ease;
}
.tree .node.is-open {
  fill: var(--navy);
  stroke: var(--cyan);
  stroke-width: 2;
  animation: node-pulse 2.4s ease-in-out infinite;
}
.tree .node.is-opened { fill: var(--teal); stroke: var(--teal-200); filter: url(#glow); }
@keyframes node-pulse { 50% { stroke-opacity: 0.35; } }

.tree .star {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 1s ease, stroke 1s ease;
}
.tree.is-complete .star {
  fill: var(--white);
  stroke: var(--teal-200);
  filter: url(#glow);
  animation: star-glow 2.6s ease-in-out infinite;
}
@keyframes star-glow { 50% { opacity: 0.78; } }

/* ---------- Doors ---------- */

.doors-section { padding-top: clamp(28px, 4vw, 54px); }
.doors-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 24px;
}
.doors-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 650;
  scroll-margin-top: 20px;
}
.doors-head h2:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.doors-head h2 + p { margin: 6px 0 0; color: var(--text-muted); font-size: 0.95rem; }

.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.door {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.4;
  min-height: 144px;
  border-radius: var(--radius);
  perspective: 1100px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.door:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.door.is-locked { cursor: not-allowed; }

/* What's behind the door. */
.door-inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(12px, 1.8vw, 18px);
  border-radius: var(--radius);
  border: 1px solid rgba(60, 188, 173, 0.5);
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(60, 188, 173, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--navy);
  box-shadow: inset 0 0 42px rgba(60, 188, 173, 0.14);
  text-align: left;
  overflow: hidden;
}
.door-inside::before {
  content: attr(data-n);
  position: absolute;
  top: -0.12em;
  right: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 1;
  color: rgba(60, 188, 173, 0.14);
}
.door-inside-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-200);
}
.door-inside-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.22;
  color: var(--text);
}
.door-inside-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--teal-300);
}
.door-inside-state svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* The door itself, hinged on the left. */
.door-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.8vw, 18px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(105deg, var(--navy) 15%, transparent 85%),
    repeating-radial-gradient(ellipse at 100% 105%, transparent 0 11px, rgba(138, 215, 206, 0.24) 12px 13px, transparent 14px 26px),
    linear-gradient(120deg, var(--navy), rgba(60, 188, 173, 0.28)), var(--navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform-origin: 0% 50%;
  backface-visibility: hidden;
  transition: transform 0.85s cubic-bezier(0.22, 0.8, 0.24, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.doors li:nth-child(even) .door-panel {
  background:
    linear-gradient(105deg, var(--navy) 15%, transparent 85%),
    repeating-linear-gradient(145deg, transparent 0 13px, rgba(138, 215, 206, 0.22) 14px 15px, transparent 16px 29px),
    linear-gradient(120deg, var(--navy), rgba(15, 179, 208, 0.24)), var(--navy);
}
.door-panel::after {
  /* The handle. */
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.door-date {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.door-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.door-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
}
.door-state svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Locked */
.door.is-locked .door-panel { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.door.is-locked .door-num { color: var(--teal-200); }
.door.is-locked .door-state { color: var(--text-muted); font-weight: 500; }
.door.is-locked.is-shaking .door-panel { animation: shake 0.42s ease; }
@keyframes shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* Open, not yet opened */
.door.is-open .door-panel { border-color: rgba(60, 188, 173, 0.7); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 26px rgba(60, 188, 173, 0.18); }
.door.is-open .door-panel::after { background: var(--teal-300); box-shadow: 0 0 10px var(--teal); }
.door.is-open .door-state { color: var(--teal-300); }
.door.is-open:hover .door-panel,
.door.is-open:focus-visible .door-panel { transform: rotateY(-24deg); }

/* Opened, or opening right now */
.door.is-opened .door-panel,
.door.is-opening .door-panel { transform: rotateY(-106deg); border-color: rgba(60, 188, 173, 0.5); }

/* Staff preview: doors with no content yet */
.door.is-unbuilt .door-panel { border-style: dashed; border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
.door.is-unbuilt .door-state { color: var(--text-faint); }

/* Today */
.door.is-today::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: calc(var(--radius) + 6px);
  border: 2px solid var(--cyan);
  animation: halo 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo { 50% { opacity: 0.35; } }
.today-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.load-error {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 0;
  padding: 26px 0 44px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer p { margin: 0; max-width: 62ch; }

.noscript {
  position: relative;
  z-index: 4;
  max-width: 640px;
  margin: 24px auto;
  padding: 16px;
  text-align: center;
}

/* ---------- Buttons and badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  font: 600 0.95rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.btn:hover { border-color: var(--teal); background: rgba(60, 188, 173, 0.16); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { border-color: var(--line); background: var(--panel-strong); }
.btn--primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn--primary:hover { background: var(--teal-400); border-color: var(--teal-400); color: var(--navy); }
.btn--primary:disabled:hover { background: var(--teal); border-color: var(--teal); }
.btn--small { padding: 7px 12px; font-size: 0.85rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--teal); }
.icon-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.badges:empty { display: none; }
.badge {
  padding: 4px 11px;
  border: 1px solid rgba(60, 188, 173, 0.55);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--teal-200);
}
.badge--licence { border-color: var(--cyan); color: var(--white); }

/* ---------- Routed staff door ---------- */
.door-page { max-width: 1100px; padding-block: 24px 32px; }
.door-page .calendar-link { margin: 0 0 20px; }
.sheet-head { padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.sheet-meta {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.sheet-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.sheet-teaser { margin: 10px 0 0; color: var(--text-muted); font-size: 1.05rem; }
.sheet-teaser:empty { display: none; }
.sheet-body { padding: 24px 0 30px; }

.sheet-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
#door-next { margin-left: auto; }
.sheet-title:focus { outline: none; }

.sheet-loading { display: grid; gap: 12px; padding: 8px 0; }
.sheet-loading span {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.sheet-loading span:nth-child(2) { width: 85%; }
.sheet-loading span:nth-child(3) { width: 65%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.sheet-empty { text-align: center; padding: 18px 0 6px; }
.sheet-empty .big { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }

/* ---------- Door content building blocks (used by doors/NN/content.html) ---------- */

.door-content { color: var(--text-muted); font-size: 1.02rem; }
.door-content > :first-child { margin-top: 0; }
.door-content h3 {
  margin: 1.7em 0 0.55em;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.18rem;
  color: var(--text);
}
.door-content p { margin: 0 0 1em; }
.door-content ul, .door-content ol { margin: 0 0 1em; padding-left: 1.3em; }
.door-content li { margin: 0.25em 0; }
.door-content strong { color: var(--text); }
.door-content .lead { font-size: 1.16rem; color: var(--text); }
.door-content img, .door-content video { border-radius: 12px; height: auto; }
.door-content .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }

/* A prompt people can copy. Write it with real line breaks; they are kept. */
.prompt {
  position: relative;
  margin: 0 0 1.2em;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.prompt.has-copy { padding-bottom: 60px; }
.prompt .copy-btn { position: absolute; right: 12px; bottom: 12px; white-space: normal; }
.prompt--weak { border-left-color: rgba(255, 255, 255, 0.3); color: var(--text-muted); font-style: italic; }
.prompt mark {
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(60, 188, 173, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prompt mark[data-part]::after {
  content: attr(data-part);
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* Numbered cards, e.g. the five parts of a prompt. */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin: 18px 0 8px !important;
  padding: 0 !important;
}
.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 !important;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 0.92rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}
.steps strong { font-family: var(--font-display); font-size: 1.02rem; }

.callout {
  margin: 1.6em 0 0.4em;
  padding: 18px 20px;
  border: 1px solid rgba(60, 188, 173, 0.45);
  border-radius: 14px;
  background: rgba(60, 188, 173, 0.08);
}
.callout > :last-child { margin-bottom: 0; }

/* Forms inside doors. */
.form { display: grid; gap: 12px; margin: 8px 0 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.field label small { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(60, 188, 173, 0.25);
}
.label {
  margin: 6px 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-300);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(60, 188, 173, 0.5);
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* The staff calendar shares the illustrated campaign's paper, ink and sea colours. */
.door .door-panel, .doors li:nth-child(even) .door-panel {
  color: var(--navy); border: 1px solid #bbc3ad;
  background: linear-gradient(130deg,#fffbef 62%,#eee2bb 100%);
}
.doors li:nth-child(even) .door-panel { background: linear-gradient(130deg,#f3faee 62%,#cbe8dc); }
.door.is-locked .door-panel, .door.is-unbuilt .door-panel { border-color: #a5b8a6; }
.door .door-num, .door.is-locked .door-num { color: var(--summer-sea); }
.door-panel::after { background: #8c9077; }
.door-inside { --text: #fff; color: #fff; }
.tree { border-radius: 4px; background: #103b43; color: white; }
.tree figcaption { color: #e2eee5; }
.door-page .sheet-head { background: var(--summer-sand); padding: clamp(15px,2.4vw,30px); border: 1px solid #d5c9a6; border-radius: 4px; }
.door-page .sheet-title { color: var(--navy); font-size: clamp(1.9rem,4.2vw,4rem); }
.door-page .sheet-meta, .door-page .badge, .door-page .label { color: var(--summer-sea); }
.door-page .badge { border-color: #76a89c; }
.sheet-nav { padding-inline: 0; }
.toast { color: white; }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .logo img { width: 83px; }
  .site-header { min-height: 52px; }
  .progress-bar { display: none; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 10.8vw, 3.7rem); line-height: 0.95; margin-bottom: 9px; }
  .hero-copy { padding: 17px 16px 15px; }
  .hero-copy .eyebrow { margin-bottom: 8px; }
  .hero-copy .lede { font-size: .96rem; }
  .hero-copy .calendar-link { margin-top: 12px; padding: 8px 14px; }
  .illustrated-link { margin-left: 0; }
  .summer-print { min-height: 0; height: clamp(76px,22vw,124px); }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sheet-head { padding-block: 14px; }
  .sheet-body { padding-block: 18px 24px; }
  .sheet-nav { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
