:root {
  --ink: #141933;
  --muted: #626b86;
  --line: #d9ddef;
  --paper: #f7f8ff;
  --panel: #ffffff;
  --green: #161d3f;
  --green-2: #232d5d;
  --gold: #f6b91a;
  --red: #9f2d2d;
  --blue: #283263;
  --shadow: 0 18px 50px rgba(22, 29, 63, 0.13);
  --radius: 14px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark,
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  object-fit: cover;
  background: white;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--green);
}

.nav a {
  text-decoration: none;
}

.hero,
.section,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: 54px 0 44px;
}

.kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-lede {
  max-width: 58ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions,
.admin-toolbar,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: white;
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-2);
}

.button-secondary {
  color: var(--green);
  background: white;
  border-color: var(--line);
}

.button-light {
  color: var(--green);
  background: white;
}

.text-link {
  color: var(--green);
  font-weight: 900;
}

.hero-panel,
.notice-card,
.form-card,
.pay-card,
.state-box,
.shift-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(22px, 4vw, 34px);
  border-top: 6px solid var(--gold);
}

.hero-badge {
  width: fit-content;
  margin-bottom: 22px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff4cf;
  color: #5f4200;
  font-weight: 900;
}

.quick-facts {
  display: grid;
  gap: 18px;
  margin: 0;
}

.quick-facts div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.section {
  padding: clamp(38px, 7vw, 74px) 0;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-strip article {
  min-height: 190px;
  padding: 28px;
  background: white;
}

.info-strip p,
.section-heading p,
.compact-hero p,
.volunteer-callout p,
.admin-toolbar p,
.notice-card p {
  color: var(--muted);
}

.split-section,
.signup-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: white;
  border-radius: var(--radius-sm);
}

.notice-card {
  padding: 24px;
}

.photo-section {
  display: grid;
  gap: 22px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.photo-card {
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(74px, auto);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.map-section {
  display: grid;
  gap: 22px;
}

.section-heading {
  max-width: 680px;
}

.map-frame {
  height: min(62dvh, 520px);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.volunteer-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
  padding: 30px;
  color: white;
  background: var(--green);
  border-radius: var(--radius);
}

.volunteer-callout p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-shell {
  padding-bottom: 56px;
}

.compact-hero {
  padding-top: 44px;
  padding-bottom: 14px;
}

.compact-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.signup-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.45;
}

.section-note {
  margin-top: -4px;
  color: var(--muted);
  font-weight: 750;
}

.shift-list {
  display: grid;
  gap: 12px;
}

.shift-calendar {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shift-calendar-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.shift-calendar-header h3,
.shift-calendar-header p {
  margin: 0;
}

.shift-calendar-header p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.shift-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: #f1f3fb;
  font-weight: 900;
}

.calendar-day span {
  font-size: 0.82rem;
}

button.calendar-day {
  cursor: pointer;
}

.calendar-day.has-shifts {
  color: var(--green);
  background: #fff4cf;
  border-color: rgba(246, 185, 26, 0.75);
}

.calendar-day.has-shifts:hover {
  background: #ffe99d;
}

.calendar-day.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.calendar-day.full {
  color: #8a8f9f;
  background: #e5e8f1;
  border-color: #d0d5e2;
  cursor: not-allowed;
}

.shift-day {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shift-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 18px;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}

.shift-day-summary::-webkit-details-marker {
  display: none;
}

.shift-day-summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1ff;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.shift-day[open] .shift-day-summary::after {
  content: "-";
}

.shift-day-summary span:first-child {
  display: grid;
  gap: 2px;
}

.shift-day-summary strong {
  font-size: 1.12rem;
}

.shift-day-summary small {
  color: var(--muted);
  font-weight: 800;
}

.shift-day-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.shift-card {
  padding: 14px;
  box-shadow: none;
}

.shift-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.shift-card .button {
  margin-top: 12px;
  min-height: 40px;
  padding: 9px 14px;
}

.shift-meta {
  color: var(--muted);
  font-size: 0.93rem;
}

.capacity-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.capacity-pill.full {
  background: #f8e4e4;
  color: var(--red);
}

.shift-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(246, 185, 26, 0.28);
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.compact-form {
  max-width: 420px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b9bfd6;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(246, 185, 26, 0.28);
}

textarea {
  resize: vertical;
}

.selected-shift,
.form-status,
.state-box {
  color: var(--muted);
}

.selected-shift {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #eef1ff;
  font-weight: 800;
}

.selected-shift ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.selected-shift li {
  color: var(--ink);
  font-weight: 700;
}

.form-status {
  min-height: 24px;
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.state-box {
  padding: 18px;
}

.signup-help {
  padding-top: 8px;
}

.signup-help summary {
  width: fit-content;
  margin-bottom: 14px;
  color: var(--green);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.admin-gate {
  padding-top: 54px;
}

.admin-content {
  padding-top: 42px;
}

.admin-toolbar {
  justify-content: space-between;
  margin-bottom: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.checkbox-row input {
  width: auto;
}

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

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

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

th {
  color: white;
  background: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pay-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pay-card {
  width: min(460px, 100%);
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 34px;
}

.pay-card h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
}

@media (max-width: 820px) {
  .site-header,
  .footer,
  .volunteer-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .info-strip,
  .photo-grid,
  .split-section,
  .signup-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .info-strip article {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
