/* The Elkridge Assembly Rooms board portal — Tufte aesthetic */

:root {
  --cream:    #fffff8;
  --ink:      #1a1a1a;
  --muted:    #6b6258;
  --rule:     #bfb8ad;
  --gold:     #c9a227;
  --burgundy: #7d2a3d;
  --sage:     #5b6e51;
  --slate:    #3f4a4f;
  --error:    #b03c2d;
}

* { box-sizing: border-box; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: "EB Garamond", "Garamond", "Adobe Garamond Pro", Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

a       { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- layout --- */
.shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 24px;
}
nav.top .brand {
  font-size: 19px;
  font-weight: 600;
}
nav.top .brand a { color: var(--ink); }
nav.top .brand .sub {
  font-style: italic;
  color: var(--muted);
  font-weight: normal;
  margin-left: 6px;
  font-size: 14px;
}
nav.top ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.top ul a {
  color: var(--ink);
  font-size: 15px;
}
nav.top ul a.active { font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
nav.top .who {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
nav.top .who a { color: var(--muted); margin-left: 8px; }

/* --- typography --- */
h1, h2, h3, h4 {
  font-weight: normal;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: 36px; letter-spacing: -0.01em; margin-bottom: 6px; }
h2 { font-size: 13px; font-variant: small-caps; letter-spacing: 0.08em; color: var(--ink);
     border-bottom: 0.5px solid var(--rule); padding-bottom: 4px; margin: 28px 0 12px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
h4 { font-size: 14px; font-variant: small-caps; letter-spacing: 0.06em; color: var(--muted); margin: 14px 0 4px; }

p { margin: 0 0 12px; }
.deck { font-style: italic; color: var(--slate); font-size: 17px; line-height: 1.35; margin: 0 0 14px; }
.eyebrow { font-variant: small-caps; letter-spacing: 0.08em; font-size: 11px; color: var(--muted); }

/* --- cards / rows --- */
.card {
  border-top: 0.5px solid var(--rule);
  padding: 14px 0;
}
.card:last-child { border-bottom: 0.5px solid var(--rule); }
.card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.card .name { font-size: 18px; font-weight: 600; }
.card .meta { font-size: 12px; color: var(--muted); font-style: italic; white-space: nowrap; }
.card .role { color: var(--burgundy); font-style: italic; font-size: 14px; margin-top: 1px; }
.card .body { color: var(--slate); font-size: 14px; line-height: 1.4; margin-top: 3px; }
.card .actions { font-size: 12px; margin-top: 6px; color: var(--muted); }
.card .actions a { color: var(--muted); margin-right: 10px; }

/* --- tables --- */
table.tufte {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 6px 0 16px;
}
table.tufte th {
  text-align: left;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: normal;
  font-size: 11px;
  padding: 4px 8px 4px 0;
  border-bottom: 0.5px solid var(--rule);
}
table.tufte th.r { text-align: right; }
table.tufte td {
  padding: 6px 8px 6px 0;
  border-bottom: 0.25px dotted var(--rule);
  vertical-align: top;
}
table.tufte tr:last-child td { border-bottom: 0; }
table.tufte td.num { text-align: right; font-feature-settings: "tnum" 1, "lnum" 1; }
table.tufte td.muted { color: var(--muted); }
table.tufte td.actions { white-space: nowrap; }
table.tufte td.actions a { color: var(--muted); margin-right: 8px; }

/* --- forms --- */
form.stack { display: grid; gap: 12px; max-width: 540px; }
form.stack.wide { max-width: none; }
form.stack .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.stack label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
form.stack input[type=text],
form.stack input[type=email],
form.stack input[type=tel],
form.stack input[type=date],
form.stack input[type=datetime-local],
form.stack select,
form.stack textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 6px 8px;
  border: 0.5px solid var(--rule);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
}
form.stack textarea { min-height: 90px; line-height: 1.45; }
form.stack input:focus,
form.stack textarea:focus,
form.stack select:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
form.stack .help { font-size: 12px; color: var(--muted); margin-top: 4px; font-style: italic; }

button, input[type=submit], .btn {
  font: inherit;
  font-size: 15px;
  padding: 6px 16px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
button:hover, input[type=submit]:hover, .btn:hover { background: var(--burgundy); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border: 0.5px solid var(--ink); }
button.ghost:hover, .btn.ghost:hover { background: var(--ink); color: var(--cream); }
button.danger, .btn.danger { background: var(--error); }
.actions-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }

/* --- flash / banner --- */
.flash {
  padding: 10px 14px;
  margin: 10px 0;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  font-size: 14px;
}
.flash.error  { border-left-color: var(--error); background: rgba(176, 60, 45, 0.08); }
.flash.info   { border-left-color: var(--sage);  background: rgba(91, 110, 81, 0.08); }

/* --- footer --- */
footer.colophon {
  margin-top: 48px;
  padding-top: 12px;
  border-top: 0.5px solid var(--rule);
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  display: flex;
  justify-content: space-between;
}

/* --- specific --- */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  padding: 12px 0;
  margin: 18px 0 24px;
}
.kpi dt { font-variant: small-caps; letter-spacing: 0.06em; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.kpi dd { margin: 0; font-size: 22px; font-feature-settings: "tnum" 1, "lnum" 1; line-height: 1.1; }
.kpi dd small { display: block; font-size: 10px; color: var(--muted); font-style: italic; margin-top: 2px; font-feature-settings: normal; }

.agenda-item {
  border-top: 0.5px dotted var(--rule);
  padding: 10px 0;
  display: grid;
  grid-template-columns: 36px 1fr 110px;
  gap: 12px;
  align-items: baseline;
}
.agenda-item:first-child { border-top: 0.5px solid var(--rule); }
.agenda-item .pos { color: var(--muted); font-size: 13px; }
.agenda-item .title { font-weight: 600; }
.agenda-item .desc  { color: var(--slate); font-size: 14px; margin-top: 2px; }
.agenda-item .right { text-align: right; color: var(--muted); font-size: 12px; font-style: italic; }

.tag {
  display: inline-block;
  font-size: 10px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border: 0.5px solid var(--rule);
  color: var(--muted);
  margin-right: 4px;
}
.tag.admin { color: var(--burgundy); border-color: var(--burgundy); }
.tag.draft { color: var(--gold); border-color: var(--gold); }
.tag.approved { color: var(--sage); border-color: var(--sage); }

.empty {
  font-style: italic;
  color: var(--muted);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

/* tabular doc list */
.doclist .row {
  display: grid;
  grid-template-columns: 1fr 110px 110px 90px;
  gap: 12px;
  align-items: baseline;
  border-top: 0.5px dotted var(--rule);
  padding: 8px 0;
  font-size: 14px;
}
.doclist .row:first-child { border-top: 0.5px solid var(--rule); }
.doclist .row .name { font-weight: 500; color: var(--ink); }
.doclist .row .folder, .doclist .row .when, .doclist .row .size {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}
.doclist .row .size { text-align: right; font-feature-settings: "tnum" 1, "lnum" 1; }

@media (max-width: 700px) {
  .kpi { grid-template-columns: repeat(2, 1fr); }
  nav.top { flex-direction: column; align-items: flex-start; gap: 8px; }
  nav.top ul { flex-wrap: wrap; }
  .agenda-item { grid-template-columns: 1fr; }
  .doclist .row { grid-template-columns: 1fr 90px; }
  .doclist .row .folder, .doclist .row .when { display: none; }
}
