*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --orb-gradient: radial-gradient(circle at center,
    #fff8e7 0%, #fdeea3 18%, #f9c94e 35%, #f4a026 52%,
    #e8622a 66%, #c0392b 79%, #6b1f4e 92%, #1a0533 100%
  );
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  background: linear-gradient(
    160deg,
    #1a0533 0%, #6b1f4e 15%, #c0392b 30%,
    #e8622a 45%, #f4a026 60%, #f9c94e 75%,
    #fdeea3 90%, #fff8e7 100%
  );
}

/* ── Header ── */

header { padding: 52px 24px 32px; text-align: center; }

.orb-container {
  position: relative;
  width: 21%;
  min-width: 90px;
  margin: 20px auto 16px;
  will-change: transform;
  transition: transform 0.14s ease-out;
}

.sun-orb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--orb-gradient);
  pointer-events: none;
}

.orb-container h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4B0082;
  font-size: clamp(1rem, 3vw, 2rem);
  text-shadow: none;
  white-space: nowrap;
  margin: 0;
}

header h1 {
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

header p {
  margin-top: 10px;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  color: #fdeea3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ── Tabs ── */

.tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 28px;
}

.tab-btn {
  font-family: inherit;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  font-weight: 600;
  padding: 13px 28px;
  min-height: 48px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  background: rgba(255, 248, 231, 0.18);
  color: rgba(255, 248, 231, 0.7);
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover {
  background: rgba(255, 248, 231, 0.32);
  color: #fff8e7;
}

.tab-btn.active {
  background: #1a0533;
  color: #f9c94e;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.tab-btn--start {
  background: #f9c94e;
  color: #1a0533;
  font-weight: 700;
}

.tab-btn--start:hover { background: #fbd96e; }

.tab-btn--start.active {
  background: #f9c94e;
  color: #1a0533;
}

/* ── Start Here ── */

.start-section-label {
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff8e7;
  margin-bottom: 16px;
}

.home-hero {
  background: linear-gradient(135deg, #7A3B10 0%, #B87333 45%, #C8884A 100%);
  border-radius: 18px;
  padding: 40px 36px 36px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.home-title {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  color: #fff8e7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  line-height: 1.1;
  margin: 0;
}

.home-tagline {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: rgba(255, 248, 231, 0.88);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.home-intro {
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  color: rgba(255, 248, 231, 0.8);
  line-height: 1.6;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 248, 231, 0.2);
}

.home-hero .start-section-label {
  color: rgba(255, 248, 231, 0.6);
  margin-bottom: 8px;
}

.start-bullets {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 248, 231, 0.9);
  font-size: clamp(0.9rem, 3vw, 1rem);
  line-height: 1.55;
  margin: 0;
}

.start-bullets strong { color: #fff8e7; }

.home-cta {
  align-self: flex-start;
  background: #fff8e7;
  color: #7A3B10;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.home-cta:hover {
  background: #fdeea3;
  transform: scale(1.02);
}

@media (max-width: 500px) {
  .home-hero { padding: 28px 22px 28px; }
}

/* ── Main ── */

main { max-width: 860px; margin: 0 auto; padding: 0 20px 72px; }

/* ── Shared: card ── */

.card,
.table-wrap {
  background: rgba(255, 248, 231, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
}

.card { padding: 24px 22px; }
.table-wrap { overflow-x: auto; }

/* ── Shared: gold label ── */

.label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f9c94e;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ── Shared: intro text ── */

.intro {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  color: #fff8e7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

/* ── Shared: page title ── */

.label + .page-title { margin-top: 4px; }

.page-title {
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 700;
  color: #f9c94e;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ── Events ── */

.timeline { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.timeline thead tr { background: rgba(192, 57, 43, 0.12); }

.timeline th {
  text-align: left;
  padding: 16px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c0392b;
  border-bottom: 2px solid rgba(192, 57, 43, 0.2);
}

.timeline td {
  padding: 16px 18px;
  vertical-align: top;
  color: #B87333;
  border-bottom: 1px solid rgba(192, 57, 43, 0.1);
  line-height: 1.55;
}

.timeline tbody tr:last-child td { border-bottom: none; }

.timeline td.time {
  white-space: nowrap;
  font-weight: 700;
  color: #c0392b;
  min-width: 90px;
}

/* ── Next tab button ── */

.next-tab-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 28px 24px;
  background: rgba(26, 5, 51, 0.65);
  border: 1px solid rgba(249, 201, 78, 0.25);
  border-radius: 16px;
  text-align: center;
}

.next-tab-caption {
  font-size: 1rem;
  font-weight: 700;
  color: #f9c94e;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Decree nav ring */
.tab-btn[data-tab="decree"]:not(.active) {
  box-shadow: 0 0 0 2px rgba(249, 201, 78, 0.5);
}

/* Decree count */
.decree-count {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 248, 231, 0.5);
  letter-spacing: 0.04em;
}

.event-details-block {
  background: rgba(26, 5, 51, 0.55);
  border: 1px solid rgba(249, 201, 78, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.event-details-title {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: #fff8e7;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(249, 201, 78, 0.25);
}

.event-details-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 201, 78, 0.55);
  margin-bottom: 10px;
}

.event-detail-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(249, 201, 78, 0.1);
  color: #fff8e7;
  font-size: clamp(0.9rem, 3vw, 1rem);
  line-height: 1.5;
}

.event-detail-row:last-child { border-bottom: none; }

.event-detail-label {
  font-weight: 700;
  color: #f9c94e;
  min-width: 110px;
  flex-shrink: 0;
}

.event-nav-hint {
  background: rgba(26, 5, 51, 0.55);
  border: 1px solid rgba(249, 201, 78, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  color: #fff8e7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  line-height: 1.65;
}

.inline-link {
  background: none;
  border: none;
  color: #c0392b;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}

.inline-link:hover { color: #e8622a; }

/* ── Spaces ── */

.venues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.venue-stage { grid-column: 1 / -1; }

.venue-stage .venue-desc { display: flex; gap: 28px; flex-wrap: wrap; }

.venue-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.venue-name .at { font-size: 1rem; font-weight: 400; color: #e8622a; }

.venue-desc { font-size: 0.95rem; color: #B87333; line-height: 1.6; }

.venue-desc li {
  list-style: none;
  padding: 2px 0 2px 14px;
  position: relative;
}

.venue-desc li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #e8622a;
  font-weight: 700;
}

/* ── Decree ── */

/* ── Decree document ── */

.decree-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 60px;
}

.decree-doc {
  background: linear-gradient(160deg, #1a0533 0%, #6b1f4e 45%, #c0392b 75%, #e8622a 100%);
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  max-width: 560px;
  width: 100%;
  padding: 40px 40px 48px;
}

.decree-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.decree-orb-wrap {
  position: relative;
  width: 42%;
  max-width: 180px;
  min-width: 100px;
}

.decree-orb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--orb-gradient);
}

.decree-orb-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4B0082;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.decree-orb-label {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  color: #fff8e7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  margin: 0;
}

.decree-divider {
  border-top: 1px solid rgba(255,248,231,0.2);
  margin: 28px 0;
}

.decree-lead-doc {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700;
  color: #fff8e7;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
  margin: 0;
}

.decree-body {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: rgba(255,248,231,0.85);
  line-height: 1.8;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.decree-body:last-of-type { margin-bottom: 0; }

.decree-download-btn {
  background: #f9c94e;
  border: none;
  color: #1a0533;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 32px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s, transform 0.1s;
}

.decree-download-btn:hover {
  background: #fdeea3;
  transform: scale(1.02);
}

.decree-download-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.decree-share-primary {
  font-size: 1.25rem;
  padding: 16px 48px;
  background: #1a0050;
  color: #fdeea3;
}

.decree-share-primary:hover {
  background: #2d0070;
}

.decree-top-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.decree-success-card {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  background: #f9c94e;
  border-radius: 16px;
  padding: 28px 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.decree-success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 400px;
  margin: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.decree-success-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(26, 5, 51, 0.3);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.decree-success-close:hover { color: rgba(26, 5, 51, 0.6); }

.decree-pill-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 16px;
}

.decree-pill-btn {
  background: none;
  border: 1px solid rgba(255, 248, 231, 0.3);
  color: rgba(255, 248, 231, 0.7);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.decree-pill-btn:hover {
  background: rgba(255, 248, 231, 0.12);
  color: #fff8e7;
  border-color: rgba(255, 248, 231, 0.5);
}

.decree-success-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 5, 51, 0.15);
  border: 1.5px solid rgba(26, 5, 51, 0.3);
  color: #1a0533;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.decree-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a0533;
  letter-spacing: 0.04em;
}

.decree-success-body {
  font-size: 0.95rem;
  color: rgba(26, 5, 51, 0.75);
  line-height: 1.65;
  max-width: 320px;
}

.decree-success-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.decree-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.decree-sign-form-wrap {
  max-width: 400px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(26, 5, 51, 0.55);
  border: 1px solid rgba(249, 201, 78, 0.22);
  border-radius: 14px;
  padding: 22px 24px;
}

.decree-sign-form-wrap.decree-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: calc(100% - 48px);
  background: #1a0533;
  border-color: rgba(249, 201, 78, 0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  margin: 0;
}

.decree-form-label {
  font-size: 1rem;
  font-weight: 700;
  color: #f9c94e;
  text-align: center;
  margin: 0;
}

.decree-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(249, 201, 78, 0.3);
  background: rgba(255, 248, 231, 0.08);
  color: #fff8e7;
  outline: none;
  transition: border-color 0.15s;
}

.decree-input::placeholder { color: rgba(255, 248, 231, 0.35); }
.decree-input:focus { border-color: rgba(249, 201, 78, 0.7); }

.decree-form-btns {
  display: flex;
  gap: 10px;
}

.decree-form-btns .decree-download-btn { flex: 1; }

.decree-form-error {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #e8622a;
  text-align: center;
  margin: 0;
}

.decree-cancel-btn {
  background: rgba(255, 248, 231, 0.1) !important;
  color: rgba(255, 248, 231, 0.55) !important;
}

.decree-cancel-btn:hover {
  background: rgba(255, 248, 231, 0.2) !important;
  color: #fff8e7 !important;
}

.decree-sig-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
}

.decree-sig-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.38);
  margin: 0;
}

.decree-sig-name {
  font-size: 2rem;
  font-style: italic;
  font-weight: 300;
  color: #fff8e7;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.decree-sig-line {
  width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,248,231,0.3), transparent);
}

.decree-sig-date {
  font-size: 0.68rem;
  color: rgba(255, 248, 231, 0.38);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.highlight { color: #f9c94e; font-weight: 600; }

/* ── RSVP form ── */

.rsvp-form { gap: 16px; }

.rsvp-subtitle {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 248, 231, 0.6);
  margin: -4px 0 0;
  line-height: 1.5;
}

.rsvp-name-row {
  display: flex;
  gap: 10px;
}

.rsvp-name-row .decree-input {
  flex: 1;
  min-width: 0;
}

.rsvp-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.rsvp-submit-btn {
  width: 100%;
  font-size: 1.05rem !important;
  padding: 15px 20px !important;
}

.rsvp-cancel-btn {
  width: 100%;
  font-size: 0.95rem;
  padding: 12px 20px;
}

@media (max-width: 480px) {
  .rsvp-name-row { flex-direction: column; gap: 12px; }
}

/* ── App ── */

.label-row { margin: 28px 0 12px; }

.app-flow { display: flex; flex-direction: column; gap: 10px; }

.app-step { display: flex; gap: 18px; align-items: flex-start; }

.app-step--reward {
  background: rgba(249, 201, 78, 0.22);
  border: 1px solid rgba(249, 201, 78, 0.45);
}

.app-step--reward .step-num { background: #f9c94e; color: #7A4419; }
.app-step--reward .step-body strong { color: #fff8e7; }
.app-step--reward .step-body p { color: rgba(255,248,231,0.92); }

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body { flex: 1; min-width: 0; }
.step-body strong { display: block; font-size: 1.05rem; color: #7A4419; margin-bottom: 2px; }
.step-body p { font-size: 0.95rem; color: #B87333; line-height: 1.55; }

.app-card { margin-bottom: 0; }
.app-card p { font-size: 1rem; color: #B87333; line-height: 1.6; }
.app-card p + p { margin-top: 12px; }

.app-pills { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 20px; }

.app-pill {
  background: rgba(255, 248, 231, 0.2);
  border: 1px solid rgba(255, 248, 231, 0.4);
  color: #fff8e7;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
}

/* ── SOTU ── */

.sotu-title {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 700;
  color: #fff8e7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  text-align: center;
  margin-bottom: 12px;
}

.sotu-img {
  display: block;
  width: 200px;
  border-radius: 8px;
  margin: 0 auto 12px;
  image-orientation: from-image;
}

.sotu-body { text-align: center; }

.sotu-body p {
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  color: #fff8e7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  line-height: 1.7;
  margin-bottom: 6px;
}

.sotu-body p:last-child { margin-bottom: 0; }

/* ── Extras ── */

.extra-section {
  border-bottom: 1px solid rgba(255, 248, 231, 0.15);
  margin-bottom: 4px;
}

.extra-summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700;
  color: #f9c94e;
}

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

.extra-summary::after {
  content: '▶';
  font-size: 0.6em;
  color: rgba(249, 201, 78, 0.55);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] > .extra-summary::after { transform: rotate(90deg); }

.extra-body { padding-bottom: 24px; }

/* ── Blueprint ── */

.bp-wrap { overflow-x: auto; }

.bp-room {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  border-top: 1.5px solid rgba(253, 238, 163, 0.35);
  border-left: 1.5px solid rgba(253, 238, 163, 0.35);
  border-right: 1.5px solid rgba(253, 238, 163, 0.35);
  border-bottom: none;
  background: #2d1b69;
  border-radius: 4px 4px 0 0;
  margin-bottom: 12px;
}

/* Bottom wall — left segment */
.bp-room::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 68%;
  height: 1.5px;
  background: rgba(253, 238, 163, 0.35);
}

/* Bottom wall — right stub at corner */
.bp-room::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6%;
  height: 1.5px;
  background: rgba(253, 238, 163, 0.35);
}

.bp-door {
  position: absolute;
  bottom: 6px;
  left: 69%;
  width: 24%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.bp-space {
  position: absolute;
  border: 1px solid rgba(253, 238, 163, 0.5);
  background: #fdeea3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  transition: background 0.15s, border-color 0.15s;
  overflow: hidden;
}

.bp-space:hover {
  background: #f9c94e;
  border-color: rgba(253, 238, 163, 0.8);
}

.bp-space--active {
  background: #f9c94e;
  border-color: #fff8e7;
  align-items: flex-start;
  justify-content: flex-start;
}

.bp-name {
  font-size: clamp(0.55rem, 2.2vw, 1rem);
  font-weight: 700;
  color: #1a0533;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  pointer-events: none;
}

.bp-info {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bp-info-name {
  font-size: clamp(0.55rem, 2vw, 0.85rem);
  font-weight: 700;
  color: #1a0533;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.bp-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-info-list li {
  font-size: clamp(0.5rem, 1.7vw, 0.78rem);
  color: #B87333;
  padding: 1px 0 1px 10px;
  position: relative;
  line-height: 1.35;
}

.bp-info-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(107, 31, 138, 0.6);
  font-size: 0.8em;
}

/* ── Blueprint arrows ── */

.bp-arrows {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  transition: opacity 0.2s;
}

.bp-arrows--hidden { opacity: 0; pointer-events: none !important; }
.bp-arrows--hidden * { pointer-events: none !important; }

.section-subheader {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 700;
  color: #fff8e7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  line-height: 1.4;
  margin: 8px 0 4px;
}

.bp-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.bp-toggle-btn {
  flex-shrink: 0;
  background: #f9c94e;
  border: none;
  color: #1a0533;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1.35;
  text-align: center;
}

.bp-toggle-btn:hover {
  background: #fdeea3;
  transform: scale(1.02);
}

.bp-arrow { pointer-events: all; cursor: pointer; }

.bp-arrow-line {
  stroke: #1a0533;
  stroke-width: 1;
  fill: none;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s, stroke 0.15s;
}

.bp-arrow-hit {
  stroke: transparent;
  stroke-width: 10;
  fill: none;
  pointer-events: stroke;
}

.bp-arrow:hover .bp-arrow-line { opacity: 0.85; }

.bp-arrow--active .bp-arrow-line {
  stroke: #1a0533;
  opacity: 1;
  stroke-width: 1.5;
}

/* ── Arrow card ── */

.bp-arrow-card {
  position: relative;
  background: #fdeea3;
  border-radius: 12px;
  padding: 22px 52px 22px 28px;
  margin-top: 0;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}

.bp-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(26, 5, 51, 0.3);
  cursor: pointer; font-size: 1rem;
  font-family: inherit; padding: 0; line-height: 1;
}

.bp-close:hover { color: rgba(26, 5, 51, 0.65); }

.bp-arrow-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a0533;
  border-bottom: 1px solid rgba(26, 5, 51, 0.12);
  padding-bottom: 14px;
}

.bp-arrow-chevron { color: rgba(26, 5, 51, 0.35); }

.bp-arrow-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #4a2a6e;
  line-height: 1.55;
}

.bp-arrow-row:last-child { margin-bottom: 0; }

.bp-arrow-pill {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fdeea3;
  background: #1a0533;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── Faithscape ── */


.fs-answers-list {
  list-style: none;
  counter-reset: fs-answer;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-answers-list li {
  counter-increment: fs-answer;
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: rgba(255, 248, 231, 0.9);
  line-height: 1.65;
  padding-left: 28px;
  position: relative;
}

.fs-answers-list li::before {
  content: counter(fs-answer) ".";
  position: absolute;
  left: 0;
  color: #f9c94e;
  font-weight: 700;
  font-size: 0.9em;
}

.fs-answers-list strong {
  display: block;
  color: #fff8e7;
  margin-bottom: 3px;
}

.fs-sections { display: flex; flex-direction: column; gap: 8px; }

.fs-sections .extra-section {
  background: rgba(26, 5, 51, 0.65);
  border: 1px solid rgba(249, 201, 78, 0.18);
  border-radius: 12px;
  padding: 0 20px;
  border-bottom: none;
  margin-bottom: 0;
}

.fs-sections .extra-summary {
  padding: 16px 0;
  border-bottom: none;
}

.fs-sections details[open] > .extra-summary {
  border-bottom: 1px solid rgba(249, 201, 78, 0.15);
  margin-bottom: 4px;
}

.fs-sections .extra-body {
  padding-bottom: 20px;
}

.fs-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fs-body p {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: rgba(255, 248, 231, 0.88);
  line-height: 1.75;
}

.fs-body strong { color: #fff8e7; }

.fs-questions {
  list-style: decimal;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-questions li {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: rgba(255, 248, 231, 0.88);
  line-height: 1.65;
}

.fs-table .fs-row-label {
  font-weight: 700;
  color: #c0392b;
  white-space: normal;
  min-width: 120px;
}

.fs-row-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #e8622a;
  margin-top: 2px;
}

.fs-pattern-note {
  font-style: italic;
  background: rgba(249, 201, 78, 0.1);
  border-left: 3px solid rgba(249, 201, 78, 0.45);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem !important;
  color: rgba(255, 248, 231, 0.8) !important;
}

.fs-case-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #f9c94e;
  margin-top: 6px;
  margin-bottom: -4px;
}

.fs-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.fs-bullets li {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: rgba(255, 248, 231, 0.88);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.fs-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(249, 201, 78, 0.6);
  font-size: 0.9em;
}

.fs-source-note {
  font-size: 0.82rem !important;
  color: rgba(255, 248, 231, 0.5) !important;
  line-height: 1.55 !important;
}

.fs-link {
  color: #f9c94e;
  text-decoration: underline;
  text-decoration-color: rgba(249, 201, 78, 0.4);
}

.fs-link:hover { color: #fdeea3; }

/* ── Footer ── */

footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  color: #fdeea3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .venues { grid-template-columns: 1fr; }
  .decree-doc { padding: 28px 24px 36px; }

  .event-detail-row { flex-direction: column; gap: 2px; }
  .event-detail-label { min-width: 0; }

  /* Blueprint mobile */
  .bp-wrap { overflow-x: hidden; }
  .bp-room { aspect-ratio: 4 / 3; }
  .bp-space { padding: 3px; }
  .bp-info { padding: 4px 5px; gap: 3px; }
  .bp-door { font-size: 0.6rem; bottom: 3px; }
  .bp-toggle-btn { font-size: 0.82rem; padding: 9px 16px; width: 100%; }
  .bp-controls { gap: 10px; margin-bottom: 12px; }
  .bp-arrow-card { padding: 18px 44px 18px 18px; }
  .bp-arrow-row { font-size: 0.88rem; flex-wrap: wrap; gap: 6px; }
  .bp-arrow-route { font-size: 0.85rem; }

  .timeline thead { display: none; }
  .timeline tbody tr {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(192, 57, 43, 0.15);
  }
  .timeline tbody tr:last-child { border-bottom: none; }
  .timeline td { display: block; padding: 2px 0; border: none; font-size: 0.97rem; }
  .timeline td.time { font-size: 1rem; margin-bottom: 4px; white-space: normal; }
  .timeline td:empty { display: none; }
  .timeline td[data-label="Food & Drink"]::before,
  .timeline td[data-label="Media"]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #c0392b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  header { padding: 36px 20px 24px; }
  .decree-share-primary { font-size: 1.05rem; padding: 14px 28px; }
}

/* ── CSV data loading / error states ── */

.tab-loading {
  text-align: center;
  padding: 60px 24px;
  color: #fdeea3;
  font-size: 1.1rem;
  opacity: 0.7;
}

.data-error {
  margin: 40px auto;
  max-width: 560px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 28px 32px;
  color: #fdeea3;
  line-height: 1.7;
}

.data-error code {
  background: rgba(0,0,0,0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ── Space cards: optional image ── */

.space-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.space-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.space-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.space-tag {
  background: rgba(192, 57, 43, 0.18);
  color: #c0392b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 20px;
}

.space-meta-item {
  font-size: 0.82rem;
  color: #B87333;
  padding: 3px 9px;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
}

/* ── Event row: optional image thumbnail ── */

.event-img-wrap {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.event-img-wrap img {
  width: 100%;
  max-width: 320px;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ── Content page ── */

/* ── Content grid ── */

.c-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  padding: 0 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.c-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* ── Preview area ── */

.c-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Poster placeholders ── */

.c-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
}

/* inset frame — the state fair border effect */
.c-placeholder::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(255, 220, 100, 0.28);
  border-radius: 4px;
  pointer-events: none;
}

.c-placeholder--video {
  background: linear-gradient(160deg, #1a0533 0%, #5c1145 55%, #b03a80 100%);
}

.c-placeholder--link {
  background: linear-gradient(160deg, #2a0808 0%, #8b1a1a 55%, #e04040 100%);
}

.c-placeholder--pdf {
  background: linear-gradient(160deg, #0a1f0a 0%, #1e5c1e 55%, #3a9e3a 100%);
}

/* type badge  e.g.  ★ PDF ★ */
.c-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 220, 100, 0.6);
  text-align: center;
}

/* large bold title */
.c-title {
  font-size: clamp(1rem, 2.8vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f9c94e;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  word-break: break-word;
  padding: 0 6px;
}

.c-rule {
  font-size: 0.75rem;
  color: rgba(255, 220, 100, 0.35);
  letter-spacing: 0.2em;
}

.c-icon {
  font-size: 1.4rem;
  color: rgba(255, 248, 220, 0.55);
  line-height: 1;
}

/* ── Tagline strip ── */

.c-tagline {
  padding: 11px 16px 13px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff8e7;
  line-height: 1.45;
  background: rgba(26, 5, 51, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Empty state ── */

.c-empty {
  text-align: center;
  padding: 0 24px;
}

.c-empty code {
  background: rgba(0,0,0,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

@media (max-width: 500px) {
  .c-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 40px; }
}
