/* Exhibition page (loaded after summit.css, uses its tokens) */

.exhibition { padding-bottom: 96px; }

.exh-hero p { max-width: none; }

/* ---------- Plan image (full width) ---------- */
.exh-plan { margin: 32px 0 0; }
.exh-plan img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------- Explore: search + space blocks ---------- */
.exh-explore { margin-top: 56px; }
.exh-explore__sub { margin: 0 0 20px; color: var(--muted); }

.exh-search {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}
.exh-search::placeholder { color: var(--muted); }
.exh-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.exh-spaces { margin-top: 28px; scroll-margin-top: 96px; }

/* Tabbed layout (enabled by summit-exhibition.js): space list on the left, active space on the right */
.exh-spaces.is-tabbed {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  border: 2px solid #2f7f9f;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #12202e, #0a1020);
}
.exh-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid rgba(47, 127, 159, 0.4);
  background: rgba(10, 18, 32, 0.4);
}
.exh-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.exh-tab::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--zc, var(--accent));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
/* White zone (AI Area): ring so the dot stays visible on dark UI */
.exh-tab--light::before {
  box-shadow: 0 0 0 2px rgba(70, 211, 255, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.exh-tab:hover { background: rgba(255, 255, 255, 0.06); }
.exh-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.11); border-color: #5bbde0; }
.exh-tab--light[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.exh-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.exh-tab[hidden] { display: none; }

.exh-space {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  scroll-margin-top: 96px;
}
.exh-spaces:not(.is-tabbed) .exh-space + .exh-space { margin-top: 24px; }
.is-tabbed .exh-space { border: 0; border-radius: 0; background: transparent; min-width: 0; }
.exh-space[hidden] { display: none; }
.exh-space h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
/* AI Area: white title (official zone colour) with glow so it stays readable */
#ai-area h3 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(70, 211, 255, 0.55), 0 1px 0 rgba(0, 0, 0, 0.45);
  letter-spacing: 0.04em;
}
.exh-space h4 {
  margin: 22px 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.exh-space__desc { margin: 0; max-width: none; color: var(--text); }

#ai-area .exh-space__desc { color: #f2f6fc; }
#ai-area h4 { color: #c5d2e8; }
#ai-area .exh-chips li {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.exh-list { margin: 0; padding-left: 20px; }
.exh-list li { margin: 2px 0; }

.exh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.exh-chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  background: var(--bg-card-hover);
  font-size: 0.95rem;
}
.exh-chips li[hidden] { display: none; }

.exh-empty { margin: 24px 0 0; color: var(--muted); }

/* ---------- Partners (logos) ---------- */
.exhibition .sponsors { margin-top: 72px; }

@media (max-width: 760px) {
  .exh-spaces.is-tabbed { grid-template-columns: 1fr; }
  /* Two rows of compact tabs: Foyer / Enterprise / Digital Natives, then SMBs / AI Area */
  .exh-tabs {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    align-content: start;
    overflow-x: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(47, 127, 159, 0.4);
    padding: 12px;
    gap: 8px;
  }
  .exh-tab {
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }
  #ai-area h3 { font-size: 1.65rem; }
  #ai-area .exh-chips {
    flex-direction: column;
    align-items: stretch;
  }
  #ai-area .exh-chips li {
    text-align: center;
    padding: 12px 14px;
    font-size: 1rem;
    border-width: 1.5px;
  }
}
@media (max-width: 560px) {
  .exh-space { padding: 20px; }
}
