/* Bilby Bunch — clean, dependency-free stylesheet. */
:root {
  /* Bilby Bunch brand tokens (assets/brand.css is the source of truth) */
  --ink: #21332e;
  --ink-soft: #4f5e58;
  --paper: #faf7f1;
  --card: #ffffff;
  --line: #e7e2d5;
  --brand: #2e6e5e;      /* eucalyptus */
  --brand-dark: #235247;
  --accent: #e3a24a;     /* wattle/ochre */
  --ok: #2e6e5e;
  --bad: #b85c39;        /* red earth */
  --warn: #a86c22;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(33,51,46,.06), 0 6px 18px rgba(33,51,46,.05);
  --font-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--font-body);
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-size: 1.9rem; margin: .2em 0 .4em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
a { color: var(--brand); }
.meta { color: var(--ink-soft); font-size: .9rem; }
.muted { color: var(--ink-soft); }

/* Header / footer */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand .mark { width: 30px; height: 30px; color: var(--brand); display: inline-flex; }
.brand .mark svg { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 16px; }
.navlink { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.navlink:hover, .navlink.active { color: var(--brand); }
.site-footer { margin-top: 56px; padding: 26px 0; border-top: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600;
  font-size: .95rem; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #cfcabd; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 11px; font-size: .85rem; }
.btn-danger { color: var(--bad); border-color: #e7c4b8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Cards / layout */
main { padding: 30px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); margin: 16px 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.stat { font-size: 1.8rem; font-weight: 700; color: var(--brand); }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 5px; }
input[type=text], input[type=email], input[type=number], input[type=datetime-local],
select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field-hint { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }

/* Alerts */
.alert { padding: 12px 15px; border-radius: 8px; margin: 14px 0; font-size: .92rem; }
.alert-error { background: #fbeae3; border: 1px solid #e7c4b8; color: #7a2d12; }
.alert-info { background: #eaf2ef; border: 1px solid #c8ded6; color: var(--brand-dark); }
.alert-warn { background: #f4ecd5; border: 1px solid #e3d6a8; color: #6b561a; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* Profile: preference checkboxes + email address list */
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.check:last-of-type { border-bottom: 0; }
.check input { width: auto; margin: 3px 0 0; }
.email-list { list-style: none; margin: 8px 0 0; padding: 0; }
.email-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.email-row:last-child { border-bottom: 0; }
.email-addr { font-weight: 600; }
.email-actions { margin-left: auto; display: flex; gap: 6px; }
form.inline { display: inline; margin: 0; }
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
/* Administration dropdown in the top bar */
details.nav-admin { position: relative; display: inline-block; }
details.nav-admin > summary { list-style: none; cursor: pointer; user-select: none; }
details.nav-admin > summary::-webkit-details-marker { display: none; }
.nav-admin-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10); }
.nav-admin-menu .navlink { display: block; padding: 7px 10px; }

/* Attachment download chips */
.attachments { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.attach { display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: .82rem; text-decoration: none; color: var(--ink); }
.attach:hover { border-color: var(--brand); color: var(--brand-dark); }
.attach-icon { font-size: .9em; }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.attach-size { color: var(--ink-soft); font-size: .92em; }

/* Tables / lists */
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
th { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.itemlist { list-style: none; margin: 0; padding: 0; }
.itemlist li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.itemlist li:last-child { border-bottom: 0; }

/* Pills / badges */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: #eef0ee; color: var(--ink-soft); }
.pill-ok { background: #dbeee7; color: var(--ok); }
.pill-bad { background: #f4ddd2; color: var(--bad); }
.pill-warn { background: #f9ead0; color: var(--warn); }
.pill-draft { background: #eceaf3; color: #5a4f7a; }

/* Hero (home) */
.hero { padding: 56px 0 20px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.display { font-size: 2.5rem; line-height: 1.08; margin: 0 0 .35em; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 40ch; }
.flow { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); margin: 30px 0; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } .display { font-size: 2rem; } }
.flow .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; font-size: .9rem; }
.flow .step b { display: block; color: var(--brand); margin-bottom: 4px; }

.agenda-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; background: var(--card); }
.agenda-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.outcome-form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr; margin-top: 10px; }
@media (max-width: 600px) { .outcome-form { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }
.tally { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
