/* LEVEL-ONE shared components */
:where(h1, .page-title, .admin-page-title) {
  font-size: var(--lo-text-h1);
  line-height: 1.08;
}

:where(h2, .section-title, .admin-section-title) {
  font-size: var(--lo-text-h2);
  line-height: 1.14;
}

:where(h3, .card-title, .admin-card-title) {
  font-size: var(--lo-text-h3);
  line-height: 1.18;
}

:where(.primary-button, .secondary-button, .ghost-button, .danger-button, .warning-button, .important-button, .admin-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-compact);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: var(--type-button-size);
  line-height: var(--type-button-line);
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: center;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

:where(.primary-button, .secondary-button, .ghost-button, .danger-button, .warning-button, .important-button, .admin-button):hover {
  transform: translateY(-1px);
}

.primary-button {
  color: var(--theme-button-text);
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  box-shadow: 0 10px 24px var(--theme-primary-soft-strong);
}

.primary-button:hover {
  box-shadow: 0 14px 30px var(--theme-primary-soft-strong);
  filter: brightness(1.03);
}

.secondary-button,
.ghost-button,
.admin-button {
  color: var(--theme-text);
  background: var(--theme-surface);
  border-color: var(--theme-border);
}

.secondary-button:hover,
.ghost-button:hover,
.admin-button:hover {
  color: var(--theme-text);
  background: var(--theme-primary-soft);
  border-color: var(--theme-focus-ring);
}

.important-button {
  color: var(--theme-button-text);
  background: linear-gradient(180deg, var(--theme-primary), var(--theme-secondary));
  border-color: var(--theme-focus-ring);
  box-shadow: 0 12px 28px var(--theme-primary-soft-strong);
  font-weight: 850;
}

.important-button:hover {
  box-shadow: 0 16px 34px var(--theme-primary-soft-strong);
  filter: brightness(1.04);
}

.danger-button {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.warning-button {
  color: var(--theme-button-text);
  background: var(--warning);
  border-color: var(--warning);
}

.important-button--compact {
  min-height: var(--control-height-compact);
  width: auto;
  padding: 0.48rem 0.88rem;
  font-size: var(--type-button-size);
}

:where(input, select, textarea) {
  border-radius: var(--lo-radius-sm);
}

:where(.card, .admin-card, .member-card, .panel, .form-panel, .admin-panel, .member-summary-box) {
  padding: var(--lo-card-padding);
  border-radius: var(--lo-radius-lg);
}

:where(.admin-grid, .member-grid, .card-grid, .dashboard-grid) {
  gap: var(--lo-grid-gap);
}

/* Extracted global focus/link polish block from legacy site.css. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

.section-heading a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}


/* LEVEL-ONE unified badge system. */
:where(.status-badge, .member-status-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.6rem;
  padding: 0.16rem 0.56rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

:where(.status-badge--open, .member-status-badge--open) {
  color: var(--theme-text);
  background: var(--theme-primary-soft);
  border-color: var(--theme-focus-ring);
}

:where(.status-badge--reported, .member-status-badge--reported) {
  color: #ffe6b8;
  background: rgba(214, 146, 37, 0.22);
  border-color: rgba(214, 146, 37, 0.6);
}

:where(.status-badge--confirmed, .member-status-badge--confirmed) {
  color: #d2ffd9;
  background: rgba(63, 165, 92, 0.22);
  border-color: rgba(63, 165, 92, 0.6);
}

:where(.status-badge--suspended, .member-status-badge--suspended) {
  color: #ffb7b2;
  background: rgba(255, 108, 98, 0.12);
  border-color: rgba(255, 108, 98, 0.52);
}

/* LEVEL-ONE unified card system. */
:where(
  .spotlight-panel,
  .section-card,
  .form-card,
  .hours-card,
  .table-card,
  .news-entry,
  .admin-note,
  .page-surface,
  .admin-card,
  .member-card,
  .club-card,
  .contact-card,
  .news-card
) {
  min-width: 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 var(--theme-primary-soft);
}

:where(
  .spotlight-panel,
  .section-card,
  .form-card,
  .hours-card,
  .table-card,
  .news-entry,
  .admin-note,
  .page-surface,
  .admin-card,
  .member-card,
  .club-card,
  .contact-card,
  .news-card
) {
  padding: var(--card-padding);
}

:where(
  .spotlight-panel,
  .section-card,
  .form-card,
  .hours-card,
  .table-card,
  .news-entry,
  .admin-note,
  .page-surface,
  .admin-card,
  .member-card,
  .club-card,
  .contact-card,
  .news-card
) > :first-child {
  margin-top: 0;
}

:where(
  .spotlight-panel,
  .section-card,
  .form-card,
  .hours-card,
  .table-card,
  .news-entry,
  .admin-note,
  .page-surface,
  .admin-card,
  .member-card,
  .club-card,
  .contact-card,
  .news-card
) > :last-child {
  margin-bottom: 0;
}
