:root {
  color-scheme: light;
  --bg: #fffbea;
  --bg-strong: #fffbea;
  --surface: rgba(255, 251, 234, 0.88);
  --surface-strong: #ffffff;
  --text: #1f2041;
  --muted: #3a3d73;
  --accent: #ffe548;
  --accent-strong: #ffb300;
  --accent-soft: rgba(255, 229, 72, 0.14);
  --line: rgba(31, 32, 65, 0.14);
  --shadow: 0 24px 70px rgba(31, 32, 65, 0.14);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 229, 72, 0.24), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(193, 18, 107, 0.08), transparent 22%),
    linear-gradient(180deg, #fffef6 0%, #fffbea 62%, #fff3c8 100%);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto;
  border: 1px solid rgba(31, 32, 65, 0.1);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 251, 234, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  padding: 28px 28px 48px;
  background:
    linear-gradient(135deg, rgba(255, 251, 234, 0.98), rgba(255, 229, 72, 0.42)),
    linear-gradient(180deg, rgba(31, 32, 65, 0.08), transparent);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  width: min(360px, 48vw);
  height: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--text);
}

.lang-switch-current {
  color: var(--text);
  font-weight: 700;
}

.lang-switch-separator {
  color: var(--line-strong);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px);
}

.theme-toggle-sun,
.theme-toggle-moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text);
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: block;
}

html[data-theme="light"] .theme-toggle-sun,
html:not([data-theme]) .theme-toggle-sun,
html[data-theme="dark"] .theme-toggle-moon {
  background: var(--accent-soft);
}

.hero-layout {
  position: relative;
  padding-top: 8px;
  overflow: hidden;
}

.hero-layout::before,
.hero-layout::after {
  content: none;
}

.eyebrow,
.section-kicker,
.event-date {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-copy h1,
.section-heading h2,
.feature-band-copy h2 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 7vw, 6rem);
  max-width: none;
}

.lead,
.section-note,
.card p,
.partner-card p,
.event-card p,
.footer p,
.feature-points p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.66);
}

.hero-highlights {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("Star_blue.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero-copy-full {
  width: 100%;
  position: relative;
  z-index: 2;
  padding-left: clamp(110px, 15vw, 180px);
}

.hero-stars,
.hero-cat-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  display: block;
  background-image: url("Star_blue.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 18px rgba(31, 32, 65, 0.12));
}

.star-xl {
  width: 90px;
  height: 90px;
}

.star-md {
  width: 54px;
  height: 54px;
}

.star-sm {
  width: 28px;
  height: 28px;
}

.star-a {
  right: 7%;
  top: 2%;
/*   transform: rotate(12deg); */
}

.star-b {
  right: 16%;
  top: 23%;
  opacity: 0.85;
}

.star-c {
  right: 9%;
  top: 47%;
  opacity: 0.7;
}

.star-d {
  left: 1%;
  bottom: 6%;
  opacity: 0.75;
}

.hero-cat-mark {
  left: -6px;
  top: 42px;
  right: auto;
  bottom: auto;
  width: clamp(118px, 14vw, 176px);
  height: clamp(206px, 22vw, 278px);
  opacity: 0.13;
  background-image: url("ERNEST_cat_blue.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.section {
  padding: 72px 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.feature-band-copy h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.section-note {
  margin-top: 12px;
}

.section-cta {
  margin: 24px 0 0;
}

.section-links {
  padding-top: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}

.card,
.partner-card,
.event-card,
.gallery-card,
.feature-points article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.card,
.partner-card,
.event-card {
  padding: 24px;
}

.card-large {
  grid-row: span 2;
}

.card h3,
.partner-card h3,
.event-card h3,
.feature-points h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(31, 32, 65, 0.98), rgba(58, 61, 115, 0.94)),
    radial-gradient(circle at top right, rgba(193, 18, 107, 0.18), transparent 30%);
  color: #fff;
}

.feature-band .section-kicker,
.feature-band p {
  color: rgba(255, 251, 234, 0.82);
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-points article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.feature-number {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: rgba(255, 229, 72, 0.78);
}

.partners-grid,
.events-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-section {
  padding-bottom: 82px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
  gap: 18px;
  grid-auto-flow: dense;
}

.gallery-card {
  overflow: hidden;
  position: relative;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card-xl {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card-portrait {
  grid-row: span 2;
}

.gallery-card-landscape {
  grid-column: span 2;
}

.gallery-media {
  min-height: 230px;
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}
.gallery-card-xl .gallery-media,
.gallery-card-portrait .gallery-media,
.gallery-card-square .gallery-media,
.gallery-card-wide .gallery-media,
.gallery-card-landscape .gallery-media {
  height: 100%;
}



.gallery-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 32, 65, 0.02), rgba(31, 32, 65, 0.3)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 16px,
      rgba(255, 255, 255, 0.06) 16px,
      rgba(255, 255, 255, 0.06) 32px
    );
  z-index: -1;
}

.gallery-tone-1 {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 229, 72, 0.8), transparent 24%),
    linear-gradient(135deg, rgba(255, 229, 72, 0.9), rgba(58, 61, 115, 0.62));
}

.gallery-tone-2 {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 251, 234, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(255, 229, 72, 0.78), rgba(193, 18, 107, 0.76));
}

.gallery-tone-3 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(135deg, rgba(255, 229, 72, 0.9), rgba(31, 32, 65, 0.72));
}

.gallery-tone-4 {
  background:
    radial-gradient(circle at 85% 26%, rgba(255, 251, 234, 0.52), transparent 24%),
    linear-gradient(135deg, rgba(31, 32, 65, 0.8), rgba(193, 18, 107, 0.76));
}

.gallery-tone-5 {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 229, 72, 0.82), transparent 25%),
    linear-gradient(180deg, rgba(255, 229, 72, 0.86), rgba(58, 61, 115, 0.68));
}

.gallery-tone-6 {
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 251, 234, 0.58), transparent 22%),
    linear-gradient(135deg, rgba(193, 18, 107, 0.76), rgba(31, 32, 65, 0.72));
}

.gallery-tone-7 {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 251, 234, 0.64), transparent 20%),
    linear-gradient(180deg, rgba(255, 229, 72, 0.88), rgba(193, 18, 107, 0.72));
}

.gallery-media span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 32, 65, 0.14);
  background: rgba(255, 251, 234, 0.94);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card figcaption {
  padding: 16px 18px 20px;
  color: var(--muted);
}

.page-hero {
  padding-bottom: 34px;
}

.page-hero-layout {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  padding: 24px 0 10px clamp(110px, 15vw, 180px);
  max-width: 820px;
}

.story-links,
.detail-grid,
.template-grid,
.institutions-grid,
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-links {
  grid-template-columns: repeat(3, 1fr);
}

.story-link-card,
.detail-card,
.room-card,
.member-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.story-link-card,
.detail-card,
.room-card,
.member-card {
  padding: 24px;
}

.story-link-card h3,
.detail-card h3,
.room-card h3,
.member-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.story-link-card p,
.detail-card p,
.room-card p,
.member-card p,
.filter-summary,
.filter-field label,
.room-meta strong,
.room-meta span,
.member-institution {
  color: var(--muted);
  line-height: 1.7;
}

.story-link-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--text);
}

.text-link::after {
  content: "→";
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.filters-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font: inherit;
}

.filter-summary {
  margin: 0 0 20px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.room-card {
  display: grid;
  gap: 20px;
}

.room-card-head p:last-child {
  margin-bottom: 0;
}

.room-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.room-meta p {
  margin: 0;
}

.room-meta strong,
.room-meta span {
  display: block;
}

.room-meta strong {
  color: var(--text);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.room-card-empty {
  grid-column: 1 / -1;
}

.member-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
}

.member-photo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 229, 72, 0.85), transparent 30%),
    linear-gradient(135deg, rgba(255, 229, 72, 0.7), rgba(193, 18, 107, 0.78));
  display: grid;
  place-items: center;
}

.member-photo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2041;
  letter-spacing: 0.08em;
}

.member-copy p {
  margin-top: 0;
}

.member-institution {
  margin: -4px 0 10px;
  font-weight: 700;
  color: var(--text);
}

.footer {
  padding: 24px 28px 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 234, 0.94);
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 8px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 251, 234, 0.96);
  box-shadow: 0 18px 50px rgba(31, 32, 65, 0.16);
  backdrop-filter: blur(18px);
}

.cookie-banner-copy {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
}

.cookie-banner-title,
.cookie-option h3 {
  margin: 0;
  font-size: 1rem;
}

.cookie-banner-text,
.cookie-panel-text,
.cookie-option p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-banner-text {
  font-size: 0.94rem;
}

.cookie-banner-text a,
.cookie-policy-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cookie-banner-actions,
.cookie-panel-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner-actions {
  flex: 0 0 auto;
}

.cookie-btn,
.cookie-panel-close {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible,
.cookie-panel-close:hover,
.cookie-panel-close:focus-visible {
  transform: translateY(-1px);
}

.cookie-btn-primary {
  background: var(--text);
  color: #fff;
}

.cookie-btn-secondary,
.cookie-panel-close {
  background: rgba(255, 255, 255, 0.66);
}

.cookie-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(31, 32, 65, 0.32);
  backdrop-filter: blur(4px);
}

.cookie-panel {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 1210;
  width: min(680px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 234, 0.98);
  box-shadow: 0 24px 70px rgba(31, 32, 65, 0.22);
  transform: translateX(-50%);
}

.cookie-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-panel-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cookie-option-lock {
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.cookie-option-toggle {
  cursor: pointer;
}

.cookie-option-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(31, 32, 65, 0.16);
  flex-shrink: 0;
  transition: background-color 160ms ease;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 32, 65, 0.18);
  transition: transform 160ms ease;
}

.cookie-option-toggle input:checked + .cookie-switch {
  background: var(--accent-strong);
}

.cookie-option-toggle input:checked + .cookie-switch::after {
  transform: translateX(24px);
}

html[data-theme="dark"] {
  --bg: #1f2041;
  --bg-strong: #1f2041;
  --surface: rgba(31, 32, 65, 0.82);
  --surface-strong: rgba(31, 32, 65, 0.94);
  --text: #ffe548;
  --muted: #fffbea;
  --accent: #ffe548;
  --accent-strong: #ffb300;
  --accent-soft: rgba(255, 229, 72, 0.18);
  --line: rgba(255, 229, 72, 0.18);
  --shadow: 0 24px 80px rgba(8, 8, 18, 0.52);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 229, 72, 0.08), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(193, 18, 107, 0.16), transparent 22%),
    linear-gradient(180deg, #181936 0%, #1f2041 50%, #262852 100%);
}

html[data-theme="dark"] .page-shell {
  background: rgba(26, 27, 54, 0.86);
  border-color: rgba(255, 229, 72, 0.12);
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(24, 25, 54, 0.98), rgba(31, 32, 65, 0.94)),
    linear-gradient(180deg, rgba(255, 229, 72, 0.08), transparent);
}

html[data-theme="dark"] .button-primary {
  background: #ffe548;
  color: #1f2041;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 229, 72, 0.1);
}

html[data-theme="dark"] .hero-highlights li::before {
  background-image: url("Star_yellow.svg");
}

html[data-theme="dark"] .hero-cat-mark {
  opacity: 0.1;
  background-image: url("ERNEST_cat_yellow.svg");
}

html[data-theme="dark"] .star {
  background-image: url("Star_yellow.svg");
  filter: drop-shadow(0 0 18px rgba(255, 229, 72, 0.28));
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .feature-points article {
  background: rgba(35, 36, 73, 0.72);
  border-color: rgba(255, 229, 72, 0.14);
}

html[data-theme="dark"] .feature-band {
  background:
    linear-gradient(135deg, rgba(25, 26, 55, 0.98), rgba(58, 61, 115, 0.94)),
    radial-gradient(circle at top right, rgba(193, 18, 107, 0.18), transparent 30%);
}

html[data-theme="dark"] .feature-band .section-kicker,
html[data-theme="dark"] .feature-band p,
html[data-theme="dark"] .feature-number {
  color: rgba(255, 251, 234, 0.84);
}

html[data-theme="dark"] .gallery-media::before {
  background:
    linear-gradient(180deg, rgba(2, 6, 18, 0.06), rgba(2, 6, 18, 0.4)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 16px,
      rgba(255, 255, 255, 0.02) 16px,
      rgba(255, 255, 255, 0.02) 32px
    );
}

html[data-theme="dark"] .gallery-media span {
  background: rgba(31, 32, 65, 0.78);
  border-color: rgba(255, 229, 72, 0.18);
  color: #ffe548;
}

html[data-theme="dark"] .story-link-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .room-card,
html[data-theme="dark"] .people-card,
html[data-theme="dark"] .member-card {
  background: rgba(35, 36, 73, 0.72);
  border-color: rgba(255, 229, 72, 0.14);
}

html[data-theme="dark"] .filter-field select {
  background: rgba(255, 229, 72, 0.08);
  border-color: rgba(255, 229, 72, 0.18);
}

html[data-theme="dark"] .member-photo span {
  color: #1f2041;
}

html[data-theme="dark"] .footer {
  background: rgba(24, 25, 54, 0.92);
  border-top-color: rgba(255, 229, 72, 0.14);
}

html[data-theme="dark"] .cookie-banner,
html[data-theme="dark"] .cookie-panel {
  background: rgba(24, 25, 54, 0.96);
  box-shadow: 0 24px 70px rgba(8, 8, 18, 0.4);
}

html[data-theme="dark"] .cookie-btn,
html[data-theme="dark"] .cookie-panel-close {
  background: rgba(255, 229, 72, 0.08);
}

html[data-theme="dark"] .cookie-btn-primary {
  background: #ffe548;
  color: #1f2041;
}

html[data-theme="dark"] .cookie-panel-backdrop {
  background: rgba(8, 8, 18, 0.52);
}

html[data-theme="dark"] .cookie-switch {
  background: rgba(255, 229, 72, 0.18);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
  }
}

@media (max-width: 980px) {
  .intro-grid,
  .content-grid,
  .feature-band,
  .feature-points,
  .partners-grid,
  .events-list,
  .gallery-grid,
  .story-links,
  .detail-grid,
  .template-grid,
  .institutions-grid,
  .members-grid,
  .rooms-grid,
  .people-grid,
  .filters-panel {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide,
  .gallery-card-xl,
  .gallery-card-portrait,
  .gallery-card-landscape,
  .card-large {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-cat-mark {
    left: 6px;
    width: 140px;
    height: 220px;
    top: 60px;
    opacity: 0.12;
  }

  .page-hero-copy {
    padding-left: 120px;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    margin: 8px auto;
    border-radius: 20px;
  }

  .hero,
  .section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo img {
    width: min(300px, 72vw);
  }

  .nav-links {
    gap: 12px;
  }

  .hero-copy-full {
    padding-left: 86px;
  }

  .page-hero-copy {
    padding-left: 86px;
    position: relative;
    z-index: 2;
  }

  .hero-stars {
    opacity: 0.72;
  }

  .star-xl {
    width: 64px;
    height: 64px;
  }

  .star-md {
    width: 42px;
    height: 42px;
  }

  .star-a {
    right: 2%;
    top: 1%;
  }

  .star-b {
    right: 1%;
    top: 56%;
  }

  .star-c {
    display: none;
  }

  .star-d {
    display: none;
  }

  .hero-cat-mark {
    left: 2px;
    width: 92px;
    height: 146px;
    top: 82px;
    opacity: 0.1;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .member-card {
    grid-template-columns: 1fr;
  }

  .room-meta {
    grid-template-columns: 1fr;
  }

}
/* below are added by LS */
.room-website {
   font-weight: bold;
  display: inline-block;
  margin-top: 0.8rem;
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 1.5rem; /* space between cards */
}
.detail-card {
  width: 100%;
  box-sizing: border-box;
}
.institution-card {
  text-align: center;
  padding: 1.5rem;
}
.institution-card h3 {
  line-height: 1.3;
  min-height: 2.6em; /* 2 lines */
}
.institution-logo {
  width: 240px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.people-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}



.people-card-head p:last-child {
  margin-bottom: 0;
}
.people-card-empty {
  grid-column: 1 / -1;
}
.people-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.people-meta p {
  margin: 0;
}

.people-meta strong,
.peoplemeta span {
  display: block;
}

.people-meta strong {
  color: var(--text);
  font-size: 0.92rem;
}
 .people-meta {
    grid-template-columns: 1fr;
  }


.people-card-content {
  display: grid;
  grid-template-columns: 1fr auto;  
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 2rem;   
}

.people-text {
  text-align: left;
}

.people-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.people-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}



@media (max-width: 768px) {
  .people-card-content {
    grid-template-columns: 1fr;
  }

  .people-text {
    text-align: center;
  }

  .people-image {
    order: -1;
    display: flex;
  flex-direction: column;
  align-items: flex-start;
  }
}
.people-website {
  display: inline-block;
  margin-top: 0.8rem;
}

.people-card .people-image {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.people-card .people-photo {
  display: block !important;
  width: 100%;
}

.people-card .people-website {
  font-weight: bold;
  display: block !important;
  margin-top: 0.75rem;
  width: fit-content;
}


.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 2rem;
}
ul,
ol,
li {
  all: unset;
  display: revert;
  list-style: revert;
  font: inherit;
  color: inherit;
}

.logo-box {
  background: #FFFBEA;
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* what follows is for the escape-room-templ page by LS */
.detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-list li + li {
  margin-top: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.feature-points-full {
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.mission-triad {
  grid-template-columns: 1fr;
}

.two-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-stack strong {
  color: var(--text);
}

.info-card {
  min-height: 100%;
}

.info-card p {
  margin-bottom: 0;
}

.gallery-grid-photos .gallery-image-card {
  overflow: hidden;
}

.institution-feature {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 24px;
  align-items: center;
}

.institution-feature-logo-wrap {
  background: #fffbea;
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.institution-feature-logo {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.institution-feature-copy h3 {
  margin-top: 0;
}

.institution-feature-copy p:last-child {
  margin-bottom: 0;
}

.gallery-image-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 229, 72, 0.42), rgba(31, 32, 65, 0.16));
}

.gallery-card-xl.gallery-image-card img {
  min-height: 520px;
}

.gallery-card-landscape.gallery-image-card img {
  min-height: 280px;
}

.gallery-card-square.gallery-image-card img {
  min-height: 250px;
}

.policy-list {
  margin: 0;
  padding-left: 1.4rem;
}

.policy-list li + li {
  margin-top: 1.5rem;
}

.policy-list h3 {
  margin: 0 0 0.5rem;
}

.policy-list p {
  margin-top: 0;
}

@media (max-width: 980px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .two-card-grid {
    grid-template-columns: 1fr;
  }

  .institution-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cookie-banner,
  .cookie-panel {
    width: calc(100vw - 16px);
    left: 8px;
    right: 8px;
  }

  .cookie-banner {
    bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-panel {
    bottom: 96px;
    transform: none;
  }

  .cookie-banner-copy {
    max-width: none;
  }

  .cookie-banner-actions,
  .cookie-panel-footer {
    width: 100%;
  }

  .cookie-btn,
  .cookie-panel-close {
    flex: 1 1 auto;
    justify-content: center;
  }
}


/* LS adding footer with EU logo*/

.footer {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 251, 234, 0.96), rgba(255, 229, 72, 0.22)),
    rgba(255, 251, 234, 0.94);
}

.eu-funding-mark {
  display: inline-grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
}


.funding-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  white-space: nowrap;
}

.footer-policy-links p {
  margin: 0;
  color: var(--muted);
}

.footer-policy-links a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.footer {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 251, 234, 0.96), rgba(255, 229, 72, 0.22)),
    rgba(255, 251, 234, 0.94);
}

.eu-funding-mark {
  display: flex;
  align-items: center;
}

.eu-logo-full {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}
.eu-logo-box {
  background: #fffbea;
  border-radius: 12px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eu-logo {
  width: 72px;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-policy-links {
    justify-content: flex-start;
    white-space: normal;
  }
}
