/* =============================================
   Kresinet — shared chrome for in-universe websites
   (/web/<slug>/, plus the /web/ directory).
   Structure and neutral defaults only; each brand
   themes itself in web-<brand>.css via the --web-*
   tokens below.
   ============================================= */

#content.web-page {
  --web-accent: #2f6f4f;
  --web-accent-ink: #ffffff;
  --web-bg: var(--content-bg);
  --web-surface: var(--content-bg);
  --web-ink: var(--text-color);
  --web-muted: #5a6570;
  --web-line: var(--border-color-light);
  --web-heading: var(--font-heading);
  --web-body: var(--font-body);
  --web-meta: var(--font-meta);
  --web-radius: 3px;
  --web-max: 74rem;

  padding: 0;
  border: none;
  background: var(--web-bg);
  color: var(--web-ink);
  font-family: var(--web-body);
}

.web-wrap {
  max-width: var(--web-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ---- Masthead + navigation ---- */

.web-masthead {
  border-bottom: 1px solid var(--web-line);
  background: var(--web-surface);
}

.web-masthead .web-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.web-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: var(--web-meta);
}

.web-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.4rem 0 0.35rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--web-ink);
  cursor: pointer;
}

.web-tab:hover {
  color: var(--web-accent);
}

.web-tab.is-active {
  border-bottom-color: var(--web-accent);
  font-weight: 700;
}

/* ---- Panels ---- */

.web-panel[hidden] {
  display: none;
}

.web-panel > .web-wrap {
  padding-top: 2rem;
}

.web-section {
  margin: 2.5rem 0;
}

.web-section:first-child {
  margin-top: 0;
}

.web-btn {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--web-accent);
  border-radius: var(--web-radius);
  background: var(--web-accent);
  color: var(--web-accent-ink);
  font-family: var(--web-meta);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.web-btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.web-btn--ghost {
  background: transparent;
  color: var(--web-accent);
  margin-left: 0.6rem;
}

.web-btn--ghost:hover {
  background: var(--web-accent);
  color: var(--web-accent-ink);
}

/* ---- Status rows ---- */

.web-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--web-meta);
  font-size: 0.85rem;
}

.web-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #2f9e5b;
  flex: 0 0 auto;
}

.web-dot--warn {
  background: #d9a021;
}

/* ---- Day picker (schedules) ---- */

.web-days {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.web-day {
  appearance: none;
  border: 1px solid var(--web-line);
  border-radius: var(--web-radius);
  background: var(--web-surface);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-family: var(--web-meta);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--web-ink);
  cursor: pointer;
}

.web-day.is-active {
  background: var(--web-accent);
  border-color: var(--web-accent);
  color: var(--web-accent-ink);
}

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

.web-footer {
  border-top: 1px solid var(--web-line);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-family: var(--web-meta);
  font-size: 0.78rem;
  color: var(--web-muted);
}

.web-footer a {
  color: inherit;
}

.web-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .web-masthead .web-wrap {
    gap: 0.75rem;
  }
}
