/* Content panels (the drawer that opens when you enter a building) and the shared
   content components that the classic view and widgets also use. */

.panel {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- typography ---------- */
.kicker {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.panel h2,
.classic h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}
.panel .section-title,
.classic .section-title,
.section-title {
  font-family: var(--font-ui);
  line-height: 1.3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 28px 0 10px;
}
.panel h3,
.classic h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}
:where(.panel, .classic) p {
  margin: 0 0 10px;
}
.muted {
  color: var(--ink-2);
}
.lede {
  font-size: 16.5px;
  color: var(--ink-2);
}
.panel a,
.classic a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.panel a.btn,
.classic a.btn {
  color: var(--ink);
  text-decoration: none;
}
.panel a.btn--primary,
.classic a.btn--primary {
  color: var(--surface);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card + .card {
  margin-top: 12px;
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card__meta {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.card__sub {
  font-size: 14px;
  color: var(--ink-2);
  margin: 2px 0 10px;
}
.card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.card li {
  margin: 4px 0;
}
.card li::marker {
  color: var(--accent);
}

/* ---------- chips, tags, badges ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-deep);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 14px/1 var(--font-ui);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn--primary:hover {
  border-color: var(--ink);
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--small {
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- stat tiles ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.stat__value {
  font-family: var(--font-pixel);
  font-size: 22px;
  line-height: 1.1;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.3;
}

/* ---------- widget frame ---------- */
.widget {
  margin: 14px 0 4px;
}
.widget-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.widget-caption {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 8px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
