.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 8px; }
.timeline article { padding: 0 0 28px 22px; position: relative; }
.timeline article::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--terra);
  position: absolute;
  left: -5px;
  top: 6px;
}
.timeline strong { font-family: var(--serif); font-size: 22px; font-weight: 520; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong);
  padding: 7px 10px;
  background: var(--cream);
  font-size: 14px;
}
.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.principal-desk { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 22px; align-items: start; }
.principal-desk img, .principal-photo { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.principal-photo { max-width: 280px; margin: 0 0 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filters .check { width: auto; align-items: center; }
.filters input, .filters select, .field input, .field select, .field textarea {
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: 12px 12px;
  border-radius: 0;
  width: 100%;
}
.filters input, .filters select { width: auto; min-width: 160px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; }

.ledger-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--cream); }
table.ledger { width: 100%; border-collapse: collapse; min-width: 720px; }
.ledger th, .ledger td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 560; }
.ledger tr:hover td { background: #fff; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 42px; height: 42px; object-fit: cover; background: var(--paper-2);
  display: grid; place-items: center; font-family: var(--serif); flex: none;
}
.badge-sample { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra-deep); }

.wizard { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.step-nav { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 96px; }
.step-nav button {
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--muted);
}
.step-nav button[aria-current="step"] { border-left-color: var(--terra); color: var(--ink); }
.step-nav b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 520; }
fieldset.step { border: 0; margin: 0; padding: 0; display: none; }
fieldset.step.is-on { display: block; }
.wizard-nav { display: flex; gap: 10px; margin-top: 18px; }
.form-error { color: var(--terra-deep); min-height: 1.2em; margin-top: 10px; }
.done-id {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.media-grid { display: grid; grid-template-columns: 1fr; gap: 22px; width: min(920px, 100%); margin: 32px auto 0; }
.media-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.media-grid img { width: 100%; height: auto; display: block; background: #f3eee4; }
.media-grid figcaption { padding: 12px 14px 16px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.media-grid figure:hover { box-shadow: 0 16px 36px rgba(16, 25, 22, 0.1); }
.media-grid figure:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.lite { position: relative; width: min(1080px, calc(100vw - 28px)); max-height: calc(100vh - 28px); margin: auto; padding: 48px 14px 16px; border: 0; border-radius: 16px; background: #101916; color: #f7f1e6; }
.lite img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 168px); margin: 0 auto; object-fit: contain; background: #0c1814; }
.lite p { margin: 12px 4px 0; font-size: 15px; line-height: 1.45; }
.lite-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #faf7f1; color: #141c18; font-size: 22px; line-height: 1; cursor: pointer; }
.lite::backdrop { background: rgba(8, 16, 14, 0.84); }

.member-card {
  width: min(420px, 100%);
  background: var(--river);
  color: var(--paper);
  padding: 22px;
  position: relative;
}
.member-card .nm { font-family: var(--serif); font-size: 32px; line-height: 1; margin: 18px 0 6px; }
.member-card .id { color: var(--brass-2); letter-spacing: 0.14em; }

.admin-key { max-width: 520px; }
.admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-stats strong { color: var(--ink); }
.table-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.status { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.status-pending { color: var(--terra-deep); }
.status-approved { color: #1d6b45; }
.status-rejected { color: var(--muted); text-decoration: line-through; }
.status-inactive, .status-merged { color: var(--muted); }
.rsvp-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px; }
.rsvp-box .field { flex: 1 1 140px; }
.rsvp-box .btn { margin-bottom: 2px; }

.notice {
  background: #fff7ea;
  border: 1px solid #e4d2ae;
  padding: 12px 14px;
  font-size: 14.5px;
}
.jubilee-poster { margin: 0; background: #12382e; border-radius: 16px; overflow: hidden; }
.jubilee-poster img { width: 100%; height: auto; display: block; }
.jubilee-sign { margin-top: 18px; line-height: 1.45; }
.jubilee-sign strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 520; }

@media (max-width: 900px) {
  .two, .wizard, .three, .quad, .pair, .grid-2, .grid-3, .principal-desk { grid-template-columns: 1fr; }
  .principal-desk img, .principal-photo { max-width: 320px; }
  .media-grid { width: 100%; }
  .step-nav { position: static; flex-direction: row; overflow: auto; gap: 0; }
  .step-nav button { flex: 1 1 0; min-height: 44px; min-width: 0; padding: 8px 4px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .step-nav b { font-size: 16px; }
  .wizard-nav { flex-wrap: wrap; }
  .wizard-nav .btn { flex: 1 1 140px; }
  .filters input, .filters select { width: 100%; min-width: 0; }
  .filters .check { width: 100%; align-items: center; }
  .filters .check input { width: 18px; height: 18px; min-width: 18px; flex: none; margin: 0; }
  .sheet { padding: 16px; }
  .ledger-wrap:has(#rows) { overflow: visible; border: 0; background: transparent; }
  table.ledger:has(#rows) { min-width: 0; }
  table.ledger:has(#rows) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.ledger:has(#rows),
  table.ledger:has(#rows) tbody,
  table.ledger:has(#rows) tr,
  table.ledger:has(#rows) td { display: block; width: auto; }
  table.ledger:has(#rows) tr {
    background: var(--cream);
    border: 1px solid var(--line);
    margin: 0 0 10px;
    padding: 12px 14px;
  }
  table.ledger:has(#rows) td { border: 0; padding: 4px 0; white-space: normal; }
  table.ledger:has(#rows) td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  table.ledger:has(#rows) tr:hover td { background: transparent; }
}
@media print {
  body * { visibility: hidden; }
  #card, #card * { visibility: visible; }
  #card { position: absolute; inset: 24px auto auto 24px; }
  .site-header, .site-footer { display: none; }
}
