@font-face{font-family:Anton;src:url("./assets/anton-400.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"PT Sans";src:url("./assets/pt-sans-400.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"PT Sans";src:url("./assets/pt-sans-700.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}
:root{--green:#004614;--bright:#00aa0f;--blue:#14508c;--pale:#ebfaeb;--sky:#e6f5ff;--sand:#faf0dc;--ink:#1c3123;--muted:#4d6456;--line:#d7e4d9;--paper:#fff;--error:#9d2525;--radius:18px}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:#f8fbf8;font:1rem/1.5 "PT Sans",Arial,sans-serif}
a{color:var(--blue);text-underline-offset:3px}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
button,select,summary{cursor:pointer}
button{color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
h1,h2,h3,p{margin:0}
h1{font:400 clamp(2.85rem,6vw,5.7rem)/1.02 Anton,"Arial Narrow",Arial,sans-serif;letter-spacing:-.01em;color:var(--green);text-transform:uppercase}
h2{font-size:clamp(1.35rem,2.4vw,1.8rem);line-height:1.2;color:var(--green)}
h3{font-size:1.14rem;line-height:1.35}
small,.muted{color:var(--muted)}
.shell{width:min(1152px,calc(100% - 64px));margin-inline:auto}
.skip{position:fixed;inset:8px auto auto 12px;z-index:3;padding:10px 14px;background:white;transform:translateY(-200%)}
.skip:focus{transform:none}
.site-head{background:var(--paper);border-bottom:1px solid var(--line)}
.head-inner{min-height:79px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.brand{display:flex;gap:12px;align-items:center;color:var(--green);text-decoration:none;font-weight:700;font-size:1.16rem;line-height:1.05}
.brand img{object-fit:contain}
.brand-sub{display:block;color:var(--muted);font-size:.83rem;font-weight:400;margin-top:4px}
nav{display:flex;gap:clamp(5px,2.4vw,28px);align-items:center}
nav a{color:var(--ink);font-weight:700;text-decoration:none;padding:10px 2px;border-bottom:3px solid transparent}
nav a[aria-current=page],nav a:hover{color:var(--green);border-color:var(--bright)}
.account-link{display:flex;align-items:center;gap:.65rem;line-height:1.15;white-space:nowrap}
.account-link small{display:block;margin-top:.18rem;font-weight:400}
.account-icon{position:relative;display:block;flex:none;width:2rem;height:2rem;border:1px solid var(--line);border-radius:50%;background:var(--pale);color:var(--green)}
.account-icon::before,.account-icon::after{content:"";position:absolute;left:50%;transform:translateX(-50%);background:currentColor}
.account-icon::before{top:.3rem;width:.52rem;height:.52rem;border-radius:50%}
.account-icon::after{top:.93rem;width:.92rem;height:.55rem;border-radius:.6rem .6rem .2rem .2rem}
.account-icon [data-account-badge]{position:absolute;z-index:1;right:-.25rem;bottom:-.25rem;display:grid;place-items:center;width:.95rem;height:.95rem;border:1px solid white;border-radius:50%;background:var(--muted);color:white;font-size:.74rem;font-weight:700}
[data-account-status=signed-in] [data-account-badge]{background:var(--green)}
[data-account-status=unconfirmed] [data-account-badge]{background:var(--error)}
.gift-lookup{margin-block:1rem;padding:1rem;border:1px solid var(--line);border-radius:.5rem}
.gift-lookup legend{font-size:1.05rem;padding-inline:.25rem}
.demo-notice{background:var(--sand);font-size:.9rem}
.demo-notice .shell,.site-foot .shell{display:flex;align-items:baseline;gap:12px;padding-block:9px}
.demo-notice strong{white-space:nowrap}
.site-foot{border-top:1px solid var(--line);margin-top:48px;color:var(--muted)}
.site-foot .shell{justify-content:space-between;padding-block:18px}
main{min-height:64vh;padding-top:32px}
.hero{background:var(--pale);border-radius:27px;padding:clamp(32px,6vw,70px);display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:32px;align-items:center}
.eyebrow{color:var(--green);font-size:.86rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:14px}
.lead{font-size:1.15rem;color:var(--muted);max-width:49ch;margin-top:18px}
.hero-actions,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:18px}
.hero-actions{margin-top:26px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:9px 16px;border-radius:8px;text-decoration:none;font-weight:700;border:1px solid var(--green);background:var(--green);color:white;line-height:1.25}
.btn:hover{background:#096329;border-color:#096329;color:white}
.btn.alt{background:white;color:var(--green);border-color:var(--line)}
.btn.alt:hover{background:var(--pale);border-color:var(--green)}
.btn.warm{background:var(--sand);color:var(--ink);border-color:#dbcba9}
.btn.warm:hover{filter:brightness(.96)}
.btn.link{background:none;border-color:transparent;color:var(--blue);padding-inline:5px}
.btn:disabled{opacity:.55;cursor:default}
.hero-card{background:white;border-radius:17px;padding:24px;border:1px solid #cee6d3;box-shadow:0 14px 28px rgba(0,70,20,.07)}
.hero-card h2{font-size:1.2rem}
.hero-card p{margin-top:7px;color:var(--muted)}
.hero-card ul{margin:18px 0 0;padding:0;list-style:none}
.hero-card li{display:flex;align-items:baseline;gap:10px;padding-block:10px;border-top:1px solid var(--line)}
.hero-card li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--bright);flex:none}
.tiles,.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}
.tile,.metric,.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.tile{display:block;text-decoration:none;color:var(--ink);padding:20px;min-width:0}
.tile:hover{border-color:var(--bright);background:var(--pale)}
.tile h2{font-size:1.28rem}
.tile p{color:var(--muted);margin-top:5px}
.metric{padding:16px 18px}
.metric strong{display:block;color:var(--green);font-size:1.55rem;font-variant-numeric:tabular-nums}
.metric small{display:block}
.panel{padding:clamp(17px,3vw,27px);margin-top:16px;min-width:0}
.panel > p,.panel > h3 + p{margin-top:9px}
.page-head{padding:9px 0 13px}
.page-head h1{font-size:clamp(2.25rem,4.5vw,4.25rem)}
.page-head p:last-child{margin-top:10px;color:var(--muted)}
.content-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:15px;align-items:start}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:12px 0 0}
.field-grid .full{grid-column:1/-1}
label.field{display:flex;min-width:0;gap:4px;flex-direction:column;font-weight:700}
label.field small{font-weight:400}
input:not([type=checkbox],[type=radio]),select,textarea{width:100%;color:var(--ink);background:white;border:1px solid #b7cbbd;border-radius:7px;min-height:42px;padding:8px 10px}
input[readonly]{background:#f1f5f1;color:var(--muted)}
textarea{min-height:75px;resize:vertical}
fieldset{margin:0;padding:0;min-width:0;border:0}
legend{font-size:1.21rem;color:var(--green);font-weight:700;margin-bottom:7px}
.choices{display:flex;gap:10px;flex-wrap:wrap;padding-top:8px}
.choice{display:flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:white;font-weight:700}
.choice:has(input:checked){background:var(--pale);border-color:var(--green)}
input[type=checkbox],input[type=radio]{accent-color:var(--green)}
.row-top,.split{display:flex;align-items:start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.line{padding:15px 0;border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line details{margin-top:8px}
summary{font-weight:700;color:var(--blue)}
details > div,details > p{margin-top:9px}
.side-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.side-nav a{background:white;color:var(--ink);border:1px solid var(--line);padding:6px 11px;border-radius:7px;text-decoration:none}
.side-nav a[aria-current=page]{color:var(--green);background:var(--pale);border-color:var(--green)}
.table-wrap{overflow-x:auto;margin-top:14px}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.96rem}
caption{text-align:left;font-weight:700;color:var(--green);padding-bottom:6px}
th,td{padding:9px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-weight:700}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.status{display:inline-block;font-size:.83rem;font-weight:700;border-radius:999px;padding:3px 8px;color:var(--blue);background:var(--sky)}
.status.paid,.status.approved{background:var(--pale);color:var(--green)}
.status.chair,.status.questions{background:var(--sand);color:#694c0d}
.status.rejected{background:#f9e7e7;color:var(--error)}
.notice,.feedback:not(:empty){padding:10px 13px;border-radius:7px;background:var(--sky);margin-top:12px}
.feedback.error:not(:empty){color:var(--error);background:#f9e7e7}
.hr-list{margin:13px 0 0;padding:0;list-style:none}
.hr-list li{padding:8px 0;border-bottom:1px solid var(--line)}
.hr-list li:last-child{border-bottom:0}
.detail-data{display:grid;grid-template-columns:auto 1fr;gap:5px 16px;margin:12px 0 0}
dt{color:var(--muted)}
dd{margin:0;font-weight:700}
[hidden]{display:none!important}
@media(max-width:760px){.shell{width:calc(100% - 32px)}.hero{grid-template-columns:1fr;padding:27px}.hero-card{padding:17px}.content-grid{grid-template-columns:1fr}.metrics{gap:7px}.metric{padding:10px}.metric strong{font-size:1.15rem}.head-inner{min-height:68px}.brand img{width:52px;height:40px}.brand span{display:none}nav{gap:10px}.demo-notice .shell{gap:7px}.tiles{grid-template-columns:1fr}.tile{padding:15px}}
@media(max-width:430px){nav a{font-size:.9rem}.head-inner{gap:5px}.demo-notice .shell{display:block}.demo-notice span{display:block}.field-grid{grid-template-columns:1fr}.head-inner nav{gap:8px}.metric small{font-size:.8rem}}

.line details p{white-space:pre-wrap;overflow-wrap:anywhere}.line details summary{overflow-wrap:anywhere}

.intake{max-width:760px}
.intake .panel{margin-top:16px}
.choice-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.choice-actions .entry-tile{
  display:grid;grid-template-rows:auto 1fr auto;justify-items:start;gap:10px;
  font-size:1.12rem;
}
.choice-actions .entry-tile p{margin:0 0 8px}
.choice-actions .entry-tile > .btn{align-self:end;min-height:44px}
.field-help-heading{display:flex;align-items:center;gap:0;margin-bottom:4px}
.field-help-heading .hint-button{
  display:inline-grid;place-items:center;position:relative;flex:none;
  width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;
  color:var(--blue);font-size:12px;font-weight:700;line-height:1;
}
.field-help-heading .hint-button::before{
  content:"";position:absolute;inset:14px;border:1px solid currentColor;
  border-radius:50%;pointer-events:none;
}
.field-hint{font-size:.97rem;color:var(--muted);margin:0}
.dashboard-filters{max-width:220px}
.dashboard-queue{margin-top:24px}
.dashboard-queue .tiles{margin-top:0}
.dashboard-queue .hr-list a{overflow-wrap:anywhere}
.dashboard-queue > .split { align-items:center; gap:12px; }
label.field,legend{overflow-wrap:anywhere}
.site-head nav{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.choice-actions{grid-template-columns:1fr}.dashboard-queue .tiles{gap:0}.site-head nav{column-gap:10px;row-gap:0}.site-head nav a{padding-block:6px}}

.content-grid > * { min-width:0; }
.content-grid > .panel, .content-grid > .panel form { min-width:0; }
.panel .split > div, .panel .split > span, .panel .split > strong { min-width:0; overflow-wrap:anywhere; }
.detail-data { grid-template-columns:minmax(0, .95fr) minmax(0, 1.25fr); gap:7px 15px; }
.detail-data dt, .detail-data dd { min-width:0; overflow-wrap:anywhere; }
td, th { overflow-wrap:anywhere; }
.audit-filter { width:min(100%, 225px); }
.audit-list { margin:15px 0 0; padding:0; list-style:none; }
.audit-list li { padding:13px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.audit-list time, .audit-list li p { color:var(--muted); }
.audit-list .audit-detail { margin-top:5px; color:var(--ink); }
.receipt-summary { max-width:760px; }
.budget-row { padding-block:15px; border-bottom:1px solid var(--line); }
.budget-row:last-child { border-bottom:0; }
@media(max-width:500px) {
  .detail-data { grid-template-columns:minmax(0, 1fr); gap:2px; }
  .detail-data dd { margin-bottom:8px; }
  .site-head nav a { padding-inline:4px; }
}

.dossier-editor > summary {
  width:fit-content; min-height:44px; padding:9px 14px; border:1px solid var(--line);
  border-radius:8px; background:var(--pale); color:var(--green);
}
.dossier-editor > summary:hover { border-color:var(--green); }
.dossier-editor[open] > summary { margin-bottom:12px; }

.finance-kpis {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  gap:12px;
  margin-block:14px 0;
}
.finance-kpi {
  min-width:0;
  padding:14px 16px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
}
.finance-kpi > :first-child { color:var(--muted); font-weight:700; }
.finance-kpi-value {
  display:block;
  margin-block:3px 1px;
  color:var(--green);
  font-size:clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight:700;
  line-height:1.15;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.finance-kpi-note { color:var(--muted); font-size:.88rem; font-weight:400; line-height:1.3; }
.finance-kpi-primary { background:var(--pale); border-color:#9abda0; }
.finance-kpi-negative .finance-kpi-value,.financial-result-negative { color:var(--error); }
.financial-table .financial-result { font-weight:700; }
.financial-table .financial-total { background:var(--pale); font-weight:700; }
.financial-table .financial-total > * { border-top:2px solid #9abda0; }
.realisation-link { font-variant-numeric:tabular-nums; text-decoration:underline; white-space:nowrap; }

.work-list > .split { align-items:center; gap:12px; }
.work-list-table table { min-width:570px; }
.work-list-table a { display:inline-block; padding-block:5px; }
.work-list-table th[scope=row] { white-space:nowrap; }
.work-navigation { justify-content:flex-start; gap:10px; margin-block:10px 18px; }
.work-navigation a:first-child { margin-inline-end:6px; }

.budget-plan-controls {
  display:grid;
  grid-template-columns:repeat(2,minmax(0, 12rem));
  align-items:end;
  gap:12px;
  margin-block:12px 16px;
}
.check-line { display:flex; align-items:baseline; gap:.6rem; }
.check-line input { flex:none; }
.budget-scroll { overflow-x:auto; margin-block:10px; }
.budget-matrix { width:max-content; min-width:100%; }
.budget-matrix thead th:first-child,
.budget-matrix th[scope=row] {
  position:sticky;
  inset-inline-start:0;
  z-index:1;
  max-width:17rem;
  background:var(--paper);
  overflow-wrap:normal;
}
.budget-matrix th,.budget-matrix td { padding:6px 9px; vertical-align:middle; }
.budget-matrix thead th.num,
.budget-matrix td:has(> .budget-money) { text-align:center; }
.budget-matrix .budget-money {
  width:7rem;
  min-height:37px;
  text-align:right;
  padding:5px 8px;
  font-variant-numeric:tabular-nums;
}
.budget-group > * { background:var(--pale); color:var(--green); }
.budget-static,.budget-calculation { font-variant-numeric:tabular-nums; }
.budget-calculation { font-weight:700; }
.budget-reserves { margin-block:14px 6px; }
.budget-reserves > summary { width:fit-content; min-height:42px; padding:9px 12px; }
.bank-summary .bank-mismatch {
  background:#fff1e7;
  border-color:#ce9077;
}
.bank-summary .bank-mismatch strong { color:var(--error); }
.bank-reconciliation-warning { color:#742922; background:#fff1e7; border:1px solid #ce9077; }
.bank-reconciliation-warning:not(.bank-mismatch) { border-radius:8px; padding:.8rem 1rem; }
.bank-reconciliation-warning p { margin:.25rem 0; }
.gift-follow-up { margin:1rem 0; }
.gift-follow-up a { display:inline-block; margin-left:.25rem; }
.bank-balance-fields { max-width:41rem; }

@media (max-width:490px) {
  .finance-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .finance-kpi { padding:11px 12px; }
  .finance-kpi-primary { grid-column:1/-1; }
  .work-navigation a:first-child { flex-basis:100%; }
}
