:root {
  --bg: #f5efe4;
  --surface: #fffaf2;
  --surface-strong: #fff;
  --border: #d8ccb8;
  --text: #2a241d;
  --muted: #6b6256;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(64, 46, 22, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f3eadc 100%);
  color: var(--text);
}

a {
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(216, 204, 184, 0.75);
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--surface-strong);
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

form {
  display: grid;
  gap: 1rem;
}

input[type="checkbox"] {
  width: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(247, 241, 232, 0.8);
  border-bottom: 1px solid rgba(216, 204, 184, 0.8);
}

.site-header .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 1rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
}

.hero,
.page-head {
  padding: 3rem 0 1.5rem;
}

.hero h1,
.page-head h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.card-grid,
.stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.card,
.table-card,
.form-card {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(216, 204, 184, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.table-card,
.form-card {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

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

.button-muted {
  background: #d8ccb8;
  color: var(--text);
}

.button-danger {
  background: var(--danger);
}

.button-small {
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
}

.actions,
.inline-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-actions form {
  display: block;
}

.flash-stack {
  padding-top: 1rem;
}

.flash {
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

.flash-success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-dark);
}

.flash-error {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.open-badge {
  color: var(--accent-dark);
  font-weight: 700;
}

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

@media (max-width: 700px) {
  .site-header .shell,
  .top-nav,
  .actions,
  .inline-actions,
  .day-card-header,
  .day-slot {
    flex-direction: column;
    align-items: stretch;
  }

  .day-slot {
    grid-template-columns: 1fr;
  }

  .day-slot-meta {
    justify-items: stretch;
    text-align: left;
  }

  .slot-info {
    display: block;
  }

  .slot-info summary {
    width: 100%;
    justify-content: center;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(216, 204, 184, 0.75);
  }

  .responsive-table td {
    min-width: 0;
    border: none;
    padding: 0.45rem 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
  }
}

.slot-details {
  color: var(--muted);
  line-height: 1.55;
}

.slot-details-hero {
  max-width: 50rem;
}

.slot-info {
  position: relative;
  display: inline-block;
  margin: 0.55rem 0 0;
}

.slot-info summary {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.slot-info summary::-webkit-details-marker {
  display: none;
}

.slot-info[open] summary {
  background: rgba(15, 118, 110, 0.14);
}



.day-card .slot-info {
  display: block;
}

.day-card .slot-info .slot-details {
  position: static;
  width: 100%;
  margin-top: 0.55rem;
  box-shadow: none;
}

.request-card {
  max-width: 42rem;
}

.error-hero {
  max-width: 48rem;
}

.error-hero .actions {
  margin-top: 1.5rem;
}


.admin-inline-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.checkbox-row {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  font-weight: 400;
}

.link-card h2 {
  margin-top: 0;
}

.link-stack {
  display: grid;
  gap: 0.5rem;
}

.link-card input[readonly] {
  background: #f8f3ea;
  color: var(--muted);
}


.day-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.day-card {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(216, 204, 184, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 250, 242, 0.9));
  border-bottom: 1px solid rgba(216, 204, 184, 0.75);
}

.day-card-header h2,
.day-slot h3 {
  margin: 0;
}

.day-card-date {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.day-slot-list {
  display: grid;
}

.day-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(216, 204, 184, 0.65);
}

.day-slot:first-child {
  border-top: none;
}

.day-slot-main {
  min-width: 0;
}

.day-slot-when {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.day-slot-meta {
  display: grid;
  gap: 0.6rem;
  justify-items: end;
  align-content: start;
  text-align: right;
}


