:root {
  --primary: #5c2c70;
  --secondary: #eb532b;
  --rest: #ffffff;
  --text: #1f1724;
  --muted: #5d5563;
  --border: #e6e0ea;
  --bg: #f7f4f8;
  --danger: #9b1c1c;
  --ok: #166534;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(36, 16, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--rest);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--rest);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  position: relative;
}

.brand {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--border);
  background: var(--rest);
  color: var(--primary);
  border-radius: 8px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--rest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.site-nav.is-open,
.site-nav:focus-within {
  display: flex;
}

.site-nav a,
.site-nav button {
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  min-height: 44px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 6.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--rest);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav .nav-btn {
  background: var(--rest);
  color: var(--primary);
  border: 1px solid var(--primary);
  text-align: center;
  width: 100%;
}

.nav-btn:hover,
.nav-btn:focus-visible,
.site-nav .nav-btn:hover,
.site-nav .nav-btn:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--rest);
  box-shadow: 0 6px 16px rgba(92, 44, 112, 0.22);
}

.nav-btn-cta,
.site-nav .nav-btn-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--rest);
}

.nav-btn-cta:hover,
.nav-btn-cta:focus-visible,
.site-nav .nav-btn-cta:hover,
.site-nav .nav-btn-cta:focus-visible {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--rest);
  box-shadow: 0 6px 16px rgba(235, 83, 43, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--rest);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--primary);
  color: var(--rest);
}

.btn-danger {
  background: var(--danger);
  color: var(--rest);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #7f1d1d;
  color: var(--rest);
}

.nav-form {
  margin: 0;
}

.site-main {
  padding: 2rem 0 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}

.hero h1,
.auth-card h1,
.account-panel h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--primary);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.lead,
.muted {
  color: var(--muted);
}

.review-notes {
  margin: 0.45rem 0 0.85rem;
  padding: 0.7rem 0.85rem;
  background: var(--rest);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.review-notes p {
  margin: 0.35rem 0 0;
}

.actions,
.auth-card form {
  display: grid;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--rest);
}

.btn-secondary {
  background: var(--rest);
  color: var(--primary);
  border-color: var(--primary);
}

.auth-card,
.account-panel,
.panel,
.stat-card,
.event-card {
  background: var(--rest);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.auth-card,
.account-panel {
  max-width: 32rem;
}

.auth-card {
  margin-left: auto;
  margin-right: auto;
}

.dashboard-welcome {
  margin: 0 0 1.35rem;
  color: #eb532b;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Didot, "Bodoni MT", Georgia, serif;
  font-size: clamp(1.9rem, 4.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}

.admin-page h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--primary);
}

.stat-grid,
.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-value {
  margin: 0.35rem 0 0;
  font-size: 2rem;
  color: var(--primary);
}

.stat-value.small {
  font-size: 1.1rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.stack-form .action-row {
  margin: 0;
}

.stack-form .action-row .btn {
  flex: 1 1 10rem;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.report-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--rest);
}

.report-tabs a.is-active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.filter-bar,
.stack-form {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.topic-choices {
  margin: 0;
  padding: 0;
  border: 0;
}

.topic-choices legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.topic-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--rest);
  font-weight: 400;
  line-height: 1.5;
}

.topic-choice input[type="radio"] {
  width: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.topic-choice-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: justify;
  hyphens: auto;
}

.topic-choice-index {
  font-weight: 700;
}

.participation-choice .topic-choice-text {
  text-align: left;
}

.participation-choice-title {
  display: block;
  font-weight: 700;
  color: var(--primary);
}

.participation-choice .fee-type-subtitle {
  display: block;
  margin: 0.2rem 0 0.45rem;
  color: var(--muted);
  font-weight: 400;
}

.participation-choice .fee-package-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.participation-choice .fee-package-or {
  margin: 0.4rem 0;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.participation-choice .fee-check {
  margin-right: 0.35rem;
  color: var(--secondary);
  font-weight: 700;
}

.participation-choice .fee-card-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.participation-choice .fee-price-heading {
  margin: 0 0 0.35rem;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.participation-choice .fee-price-stack {
  display: grid;
  gap: 0.45rem;
}

.participation-choice .fee-price-amount {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.participation-choice .fee-price-amount.is-free {
  color: var(--secondary);
}

.participation-choice .fee-price-audience {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.participation-type-card {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--rest);
}

.participation-type-card > .participation-choice-title {
  margin: 0 0 0.35rem;
}

.participation-option-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.participation-option {
  align-items: flex-start;
}

.participation-option .topic-choice-text {
  display: grid;
  gap: 0.15rem;
}

.participation-option-label {
  font-weight: 700;
}

.participation-option.is-disabled {
  opacity: 0.55;
}

.participation-option:has(input:checked) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 12px;
}

.participation-summary p {
  margin: 0.25rem 0;
}

.filter-bar select,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  background: var(--rest);
}

.table-wrap {
  overflow-x: auto;
  background: var(--rest);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.inline-form {
  display: inline;
  margin: 0;
}

.cms-speaker-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.cms-speaker-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.data-table .btn {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.badge-ok {
  background: #e8f6ed;
  color: var(--ok);
}

.badge-muted {
  background: #f3eef6;
  color: var(--muted);
}

.event-card h2 {
  margin: 0.35rem 0;
  font-size: 1.25rem;
}

.event-card a {
  color: var(--primary);
  text-decoration: none;
}

.event-card a.btn-primary {
  color: #fff;
}

.event-card a.btn-primary:hover,
.event-card a.btn-primary:focus-visible {
  color: #fff;
}

.event-spotlight {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.event-card-full {
  width: 100%;
  max-width: none;
}

.event-card-full h2 {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.3;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.event-card-actions .btn {
  min-height: 44px;
}

@media (max-width: 767px) {
  .event-card-actions .btn {
    width: 100%;
  }
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font: inherit;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 5.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  min-width: 44px;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--bg);
}

.alert {
  background: #fde8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.notice {
  background: #e8f6ed;
  color: var(--ok);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.success-dialog {
  width: min(28rem, calc(100% - 2rem));
  padding: 1.6rem 1.5rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(36, 16, 48, 0.18);
  color: var(--text);
  text-align: center;
}

.success-dialog::backdrop {
  background: rgba(31, 23, 36, 0.45);
}

.success-dialog h2 {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-size: 1.35rem;
}

.success-dialog p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.success-dialog .btn {
  min-width: 8rem;
}

.verify-card,
.verify-result {
  max-width: 40rem;
}

.verify-stamp {
  display: inline-block;
  border: 3px solid var(--ok);
  color: var(--ok);
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.45rem 0.9rem;
  transform: rotate(-8deg);
  margin: 0 0 1rem;
}

.verify-meta {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.verify-meta div {
  display: grid;
  gap: 0.15rem;
}

.verify-meta dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.verify-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-foot {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open,
  .site-nav:focus-within {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    gap: 0.65rem;
  }

  .site-nav .nav-btn {
    width: auto;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

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

@media (min-width: 1024px) {
  .site-main {
    padding-top: 3rem;
  }

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

  .filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }
}
