:root {
  --ink: #171717;
  --muted: #656565;
  --line: #d9d9d9;
  --paper: #ffffff;
  --soft: #f4f4f2;
  --charcoal: #252525;
  --red: #ED2126;
  --red-dark: #c91419;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 16px;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 38px;
  width: auto;
}

.brand span {
  border-left: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  padding-left: 16px;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header nav a {
  text-decoration: none;
}

.registration-page {
  gap: clamp(22px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 560px);
  margin: 0 auto;
  max-width: 1480px;
  min-height: calc(100vh - 72px);
  padding: clamp(22px, 3.5vw, 52px);
}

.event-hero {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12)),
    url("https://treadcorp.com/wp-content/uploads/2026/05/DSC05689-v2.png") center / cover;
  color: #fff;
  display: flex;
  border-radius: 8px;
  min-height: 460px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
}

.event-copy {
  max-width: 620px;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.event-hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.28rem);
  max-width: 560px;
}

.event-facts,
.metric-grid,
.detail-grid {
  display: grid;
  gap: 1px;
  margin-top: 28px;
}

.event-facts {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 145px));
  max-width: 470px;
}

.event-facts div,
.metric-grid div,
.detail-grid div,
.checkout-summary,
.status-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.event-facts div {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 13px 14px;
}

.metric-grid strong,
.detail-grid strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
}

.metric-grid span,
.detail-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-facts strong {
  display: block;
  font-size: 1.26rem;
  font-weight: 900;
}

.event-facts span {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.registration-shell {
  background: var(--paper);
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
}

.registration-shell h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.form-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.form-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 620px;
}

.registration-form {
  display: grid;
  gap: 28px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-bar,
.attendee-heading,
.admin-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.section-bar {
  margin-bottom: 16px;
}

/* Inline action buttons (e.g. Edit / Delete in admin tables) */
.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.field-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

input,
select {
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--red);
  outline: 3px solid rgba(183, 25, 36, 0.16);
}

.attendee-list {
  display: grid;
  gap: 14px;
}

.attendee-entry {
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 18px;
}

/* "Add participant" button uses the Tread red accent. The combined selector
   outranks the later .secondary-button border/color shorthand. */
.secondary-button[data-add-attendee] {
  border-color: var(--red);
  color: var(--red);
}

.attendee-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.primary-button,
.secondary-button,
.icon-button {
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-button {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}

.primary-button:hover {
  background: var(--red-dark);
}

.secondary-button,
.icon-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.icon-button {
  color: var(--red);
  min-height: 36px;
  padding: 6px 10px;
}

.icon-button:disabled {
  color: #999;
  cursor: not-allowed;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.checkout-summary div {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.checkout-summary span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-summary p {
  color: var(--muted);
  margin: 0;
}

.error-summary,
.flash {
  border-radius: 8px;
  padding: 14px 18px;
}

.error-summary,
.flash.alert {
  background: #fff0f1;
  border: 1px solid #e3a7ad;
}

.flash.notice {
  background: #eff8f0;
  border: 1px solid #a7d6ad;
}

.flash {
  margin: 16px clamp(18px, 4vw, 56px);
}

.admin-page,
.status-page {
  padding: clamp(24px, 5vw, 56px);
}

.admin-heading {
  margin-bottom: 28px;
}

.admin-heading h1 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.admin-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
}

.admin-tabs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tabs-links a {
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-tabs-links a.active,
.admin-tabs-links a:hover {
  background: var(--soft);
  color: var(--ink);
}

.admin-tabs-account {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 12px;
}

.admin-tabs-account form {
  margin: 0;
}

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 640px;
  padding: clamp(20px, 4vw, 36px);
}

.field-checkbox {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.field-checkbox input {
  height: 18px;
  min-height: 0;
  width: auto;
}

.field-checkbox label {
  margin-bottom: 0;
}

.field-hint {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  margin-top: 6px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.metric-grid div,
.detail-grid div {
  padding: 18px;
}

.detail-grid p {
  color: var(--muted);
  margin: 8px 0 0;
}

.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 840px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7f7f7;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

td span {
  color: var(--muted);
  display: block;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 4px 9px;
  text-transform: uppercase;
}

.status.paid {
  background: #e8f6ec;
  color: #12632a;
}

.status.pending {
  background: #fff5dc;
  color: #795000;
}

.status-page {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
}

.status-panel {
  max-width: 680px;
  padding: clamp(24px, 5vw, 48px);
}

.status-panel h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.status-panel dl {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
}

.status-panel dl div {
  background: var(--soft);
  padding: 14px;
}

.status-panel dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-panel dd {
  font-weight: 800;
  margin: 4px 0 0;
}

@media (max-width: 980px) {
  .registration-page {
    grid-template-columns: 1fr;
  }

  .event-hero {
    min-height: 420px;
  }

  .metric-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .admin-heading,
  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
  }

  .field-grid.two,
  .event-facts,
  .metric-grid,
  .detail-grid,
  .status-panel dl {
    grid-template-columns: 1fr;
  }

  .registration-shell,
  .admin-page,
  .status-page {
    padding: 20px;
  }

  .registration-page {
    padding: 18px;
  }
}
