/* DecodeCipher — Interactive Cryptography Museum brand components */

/* ── Breadcrumbs ── */
.museum-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cipher-seo .museum-breadcrumb {
  margin-bottom: 0.75rem;
}

.edu-shell .museum-breadcrumb {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.museum-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.museum-breadcrumb a:hover {
  text-decoration: underline;
}

.museum-breadcrumb .sep {
  color: var(--text-dim);
  opacity: 0.4;
  font-size: 0.72rem;
}

.museum-breadcrumb .current {
  color: #9aa4b2;
  white-space: nowrap;
}

/* ── Exhibit Badges ── */
.exhibit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.edu-hero .exhibit-badge {
  margin-bottom: 0.5rem;
}

.cipher-seo .exhibit-badge {
  margin-bottom: 0.6rem;
}

.exhibit-badge--exhibit {
  color: #9bc7ff;
  border-color: rgba(79, 142, 247, 0.35);
  background: rgba(79, 142, 247, 0.1);
}

.exhibit-badge--laboratory {
  color: #b8ffd6;
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
}

.exhibit-badge--machine {
  color: #e8d48a;
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.1);
}

.exhibit-badge--collection {
  color: #b8cae8;
  border-color: rgba(82, 212, 255, 0.35);
  background: rgba(82, 212, 255, 0.1);
}

.exhibit-badge--hall {
  color: #f7b84f;
  border-color: rgba(247, 184, 79, 0.35);
  background: rgba(247, 184, 79, 0.1);
}

.exhibit-badge--learning {
  color: #c0a8e8;
  border-color: rgba(160, 120, 220, 0.35);
  background: rgba(160, 120, 220, 0.1);
}

.exhibit-badge--about {
  color: #b8d4e8;
  border-color: rgba(82, 180, 255, 0.3);
  background: rgba(82, 180, 255, 0.08);
}

/* ── Exhibit Cards (Continue Exploring) ── */
.exhibit-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.section-shell .exhibit-card-grid {
  margin-top: 0;
}

.exhibit-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(65, 80, 108, 0.5);
  background: rgba(14, 20, 31, 0.82);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.exhibit-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(79, 142, 247, 0.5);
  box-shadow: 0 12px 28px rgba(7, 16, 30, 0.3);
}

.exhibit-card-title {
  display: block;
  color: #eef5ff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.exhibit-card-desc {
  display: block;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.55;
  flex: 1;
}

/* ── Museum Collection component ── */
.museum-collection {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(65, 80, 108, 0.48);
  border-radius: 16px;
  background: rgba(12, 18, 28, 0.82);
  margin-bottom: 1rem;
}

.collection-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.museum-collection h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #eef5ff;
}

.collection-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.collection-items a {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(65, 80, 108, 0.42);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.collection-items a:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ── Footer group labels ── */
.site-footer-nav .footer-group-label {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0 0.2rem;
}

.site-footer-nav .footer-group-label::after {
  content: "·";
  margin-left: 0.4rem;
  color: rgba(65, 80, 108, 0.5);
  font-weight: 400;
}

/* ── Homepage Museum Highlights ── */
.museum-highlights {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.museum-highlights h2 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(65, 80, 108, 0.5);
  background: rgba(22, 27, 37, 0.85);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.18s ease;
}

.highlight-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(79, 142, 247, 0.45);
}

.highlight-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #eef5ff;
}

.highlight-card p {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

/* ── Homepage hero additions ── */
.matrix-hero .hero-description {
  max-width: 52ch;
  margin: 0.5rem auto 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.matrix-hero .hero-actions {
  margin-top: 1.25rem;
}

.matrix-hero .hero-actions .btn-primary,
.matrix-hero .hero-actions .btn-secondary {
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
}

/* ── Collection Hero ── */
.collection-hero {
  width: 100%;
  margin-bottom: 2.5rem;
}

.collection-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.65rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #eef5ff 0%, #9bc7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collection-hero .collection-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

/* ── Collection Stats Bar ── */
.collection-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.collection-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(65, 80, 108, 0.4);
  background: rgba(12, 18, 28, 0.6);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.collection-stat strong {
  color: #eef5ff;
  font-weight: 600;
}

.stat-icon {
  font-size: 0.9rem;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.difficulty-badge--beginner {
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
}

.difficulty-badge--intermediate {
  background: rgba(247, 184, 79, 0.15);
  color: #f7b84f;
}

.difficulty-badge--advanced {
  background: rgba(247, 95, 95, 0.15);
  color: #f75f5f;
}

/* ── Collection Exhibit Cards (large, museum-style) ── */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.collection-exhibit-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(65, 80, 108, 0.45);
  background: rgba(10, 15, 24, 0.85);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.collection-exhibit-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(79, 142, 247, 0.5);
  box-shadow: 0 14px 30px rgba(7, 16, 30, 0.35);
}

.collection-exhibit-card .exhibit-illustration {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(65, 80, 108, 0.3);
}

.collection-exhibit-card .exhibit-illustration svg {
  width: 80%;
  height: 80%;
  opacity: 0.7;
}

.collection-exhibit-card .exhibit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.collection-exhibit-card .exhibit-meta-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(65, 80, 108, 0.4);
  color: var(--text-dim);
  background: rgba(65, 80, 108, 0.15);
}

.collection-exhibit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #eef5ff;
}

.collection-exhibit-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.collection-exhibit-card .exhibit-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.15s;
}

.collection-exhibit-card:hover .exhibit-cta {
  gap: 0.6rem;
}

/* ── Collection Directory Cards (for collections hub) ── */
.collection-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.collection-dir-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(65, 80, 108, 0.4);
  background: rgba(10, 15, 24, 0.8);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.collection-dir-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(79, 142, 247, 0.45);
  box-shadow: 0 12px 28px rgba(7, 16, 30, 0.3);
}

.collection-dir-card .dir-icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
}

.collection-dir-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #eef5ff;
}

.collection-dir-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 0.65rem;
  flex: 1;
}

.collection-dir-card .dir-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.collection-dir-card .dir-stat {
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(65, 80, 108, 0.15);
  border: 1px solid rgba(65, 80, 108, 0.3);
}

.collection-dir-card .dir-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.15s;
}

.collection-dir-card:hover .dir-cta {
  gap: 0.55rem;
}

/* ── Tour Route Cards ── */
.tour-section {
  margin-bottom: 2.5rem;
}

.tour-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: #eef5ff;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.tour-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(65, 80, 108, 0.4);
  background: rgba(12, 18, 28, 0.75);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.18s ease;
}

.tour-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(79, 142, 247, 0.4);
}

.tour-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: #eef5ff;
}

.tour-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

.tour-card .tour-time {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: rgba(65, 80, 108, 0.2);
}

/* ── Timeline Styles ── */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--accent), var(--green));
  opacity: 0.3;
}

.timeline-era {
  position: relative;
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
}

.timeline-era::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(79, 142, 247, 0.3);
}

.timeline-era h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #eef5ff;
}

.timeline-era .era-period {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-era p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.timeline-era .era-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-era .era-events li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.timeline-era .era-events li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.timeline-era .era-events a {
  color: var(--accent);
  text-decoration: none;
}

.timeline-era .era-events a:hover {
  text-decoration: underline;
}

/* ── Section content blocks for collection pages ── */
.collection-section {
  margin-bottom: 2.25rem;
}

.collection-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #eef5ff;
  letter-spacing: -0.02em;
}

.collection-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
  color: #e2e8f0;
}

.collection-section p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 0.85rem;
}

.collection-section a {
  color: var(--accent);
  text-decoration: none;
}

.collection-section a:hover {
  text-decoration: underline;
}

.collection-section ul {
  margin: 0 0 0.85rem 1.25rem;
  padding: 0;
}

.collection-section li {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.collection-section .info-panel {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(65, 80, 108, 0.35);
  background: rgba(79, 142, 247, 0.05);
  margin-bottom: 1rem;
}

.collection-section .info-panel p {
  margin: 0;
  font-size: 0.85rem;
}

.collection-section .info-panel strong {
  color: #eef5ff;
}

/* ── Exhibit Detail Cards (for historical machines without simulators) ── */
.exhibit-detail-card {
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(65, 80, 108, 0.4);
  background: rgba(10, 15, 24, 0.78);
  margin-bottom: 1.25rem;
}

.exhibit-detail-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #eef5ff;
}

.exhibit-detail-card .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.exhibit-detail-card .detail-item {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.exhibit-detail-card .detail-item strong {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa4b2;
  margin-bottom: 0.15rem;
}

.exhibit-detail-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 0.65rem;
}

.exhibit-detail-card .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(65, 80, 108, 0.25);
}

.exhibit-detail-card .related-links a {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(79, 142, 247, 0.25);
}

.exhibit-detail-card .related-links a:hover {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.4);
}

/* ── Collections Promo (Homepage) ── */
.collections-promo {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.collections-promo-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(79, 142, 247, 0.25);
  background: linear-gradient(135deg, rgba(10, 18, 48, 0.85) 0%, rgba(14, 20, 31, 0.92) 100%);
}

.collections-promo-copy {
  flex: 1;
}

.collections-promo-copy h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #eef5ff;
  letter-spacing: -0.02em;
}

.collections-promo-copy p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.collections-promo-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-collections-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s;
}

.btn-collections-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-collections-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(65, 80, 108, 0.5);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}

.btn-collections-secondary:hover {
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.collections-promo-preview {
  flex-shrink: 0;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-collection-items {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-collection-item {
  font-size: 1.6rem;
  animation: promo-bounce 2s ease-in-out infinite;
  animation-delay: var(--item-delay, 0s);
}

@keyframes promo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 540px) {
  .collections-promo-inner {
    flex-direction: column;
    text-align: center;
  }
  .collections-promo-actions {
    justify-content: center;
  }
  .collections-promo-preview {
    width: 100%;
    height: auto;
  }
}

/* ── Museum Layout: content + sidebar ── */
.museum-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.5rem;
  align-items: start;
}

.museum-layout-main {
  min-width: 0;
}

.museum-layout-sidebar {
  position: sticky;
  top: 1.5rem;
}

/* ── Museum Sidebar ── */
.museum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(65, 80, 108, 0.35);
  background: rgba(10, 15, 24, 0.7);
}

.sidebar-card h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 0.5rem;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0.2rem 0;
}

.sidebar-card li a {
  color: var(--accent);
  text-decoration: none;
}

.sidebar-card li a:hover {
  text-decoration: underline;
}

.sidebar-card li.current {
  color: #eef5ff;
  font-weight: 600;
}

.sidebar-card li.current::before {
  content: "→ ";
  color: var(--accent);
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(65, 80, 108, 0.15);
}

.sidebar-stat:last-child {
  border-bottom: none;
}

.sidebar-stat strong {
  color: #eef5ff;
  font-weight: 500;
}

/* ── Museum Progress Bar ── */
.museum-progress {
  margin-bottom: 1rem;
}

.progress-collection {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.progress-label {
  font-size: 0.82rem;
  color: #eef5ff;
  margin-bottom: 0.35rem;
}

.progress-bar-track {
  height: 6px;
  background: rgba(65, 80, 108, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.4s ease;
}

.progress-dots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.progress-dot {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(65, 80, 108, 0.3);
}

.progress-dot.filled {
  background: var(--accent);
}

/* ── Museum Metadata Bar ── */
.museum-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.museum-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(65, 80, 108, 0.3);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(65, 80, 108, 0.08);
}

.museum-meta-item .meta-icon {
  font-size: 0.75rem;
}

/* ── Visitor Stamp ── */
.museum-stamp {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(65, 80, 108, 0.4);
  background: rgba(10, 15, 24, 0.5);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
}

.museum-stamp:hover {
  border-color: rgba(79, 142, 247, 0.4);
  background: rgba(79, 142, 247, 0.05);
}

.museum-stamp.stamped {
  border-style: solid;
  border-color: rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.08);
}

.stamp-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.25rem;
}

.stamp-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stamp-date {
  font-size: 0.65rem;
  color: var(--green);
  display: none;
  margin-top: 0.2rem;
}

.museum-stamp.stamped .stamp-date {
  display: block;
}

/* ── Previous / Next Exhibit Navigation ── */
.exhibit-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.exhibit-nav-link {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(65, 80, 108, 0.35);
  background: rgba(10, 15, 24, 0.6);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s;
}

.exhibit-nav-link:hover {
  border-color: rgba(79, 142, 247, 0.4);
  background: rgba(79, 142, 247, 0.05);
  text-decoration: none;
}

.exhibit-nav-link--prev {
  text-align: left;
}

.exhibit-nav-link--next {
  text-align: right;
}

.exhibit-nav-direction {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.exhibit-nav-title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.exhibit-nav-link:hover .exhibit-nav-title {
  text-decoration: underline;
}

.exhibit-nav-spacer {
  visibility: hidden;
}

/* ── You May Also Like ── */
.museum-recommendations {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.museum-recommendations h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #eef5ff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(65, 80, 108, 0.3);
  background: rgba(10, 15, 24, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s;
}

.recommendation-card:hover {
  border-color: rgba(79, 142, 247, 0.35);
  background: rgba(79, 142, 247, 0.04);
  text-decoration: none;
}

.recommendation-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.recommendation-title {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.recommendation-card:hover .recommendation-title {
  text-decoration: underline;
}

/* ── Responsive overrides ── */
@media (max-width: 900px) {
  .museum-layout {
    grid-template-columns: 1fr;
  }
  .museum-layout-sidebar {
    position: static;
    order: -1;
  }
  .museum-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibit-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .museum-breadcrumb {
    font-size: 0.75rem;
  }

  .museum-sidebar {
    grid-template-columns: 1fr;
  }

  .exhibit-nav {
    grid-template-columns: 1fr;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }
}
