/* Ayden Budget — University of Wyoming branding.
   UW Brown #492F24 + UW Gold #FFC72C on warm paper. Phone-first,
   big touch targets, plain language, high contrast. */
:root {
  --brown: #492F24;        /* UW Brown — primary */
  --brown-dark: #332016;   /* pressed / deep brown */
  --gold: #FFC72C;         /* UW Gold — accent only, never body text on white */
  --gold-deep: #9A7B00;    /* readable gold for fine print on cream */
  --ok: #166534;           /* status green (confirmed / covered) */
  --bg: #FAF5EA;           /* warm paper */
  --card: #FFFDF7;         /* warm white */
  --ink: #2A1D13;          /* warm near-black */
  --muted: #7C6A58;        /* warm gray-brown */
  --line: #E8DCC4;         /* warm hairline */
  --red: #b91c1c;
  --amber: #b45309;
  --blue: #1d4ed8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.45;
}
.hidden { display: none !important; }
.screen { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }

/* ---- UW header band ---- */
.uw-header {
  background: var(--brown); border-bottom: 5px solid var(--gold);
  border-radius: 16px; padding: 18px; margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(73, 47, 36, .25);
}
.uw-kicker {
  margin: 0; color: var(--gold); font-size: 14px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.uw-header h1 {
  margin: 4px 0 2px; font-size: 28px; color: #FFF7E6;
  font-family: Georgia, "Times New Roman", serif; letter-spacing: .3px;
}
.uw-sub { margin: 2px 0 0; color: #EFDDBE; font-size: 16px; }
header h1 { margin: 8px 0 0; font-size: 26px; }
header .muted, .muted { color: var(--muted); margin: 2px 0 12px; }
.muted-sm { color: var(--muted); font-size: 14px; font-weight: 400; }
h2 { font-size: 21px; margin: 22px 0 10px; color: var(--brown); }
h3 { font-size: 18px; margin: 0 0 8px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 10px 0; box-shadow: 0 1px 2px rgba(73,47,36,.05);
}
.hint { font-size: 16px; background: #FFF6DB; border-color: #F0D488; }

label { display: block; margin: 10px 0; font-weight: 600; font-size: 16px; }
input, select {
  display: block; width: 100%; font-size: 18px; padding: 14px; margin-top: 6px;
  border: 1px solid #D8CBAE; border-radius: 12px; background: #fff; min-height: 52px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(255, 199, 44, .55); border-color: var(--brown);
}
button {
  font-size: 18px; border-radius: 12px; border: 1px solid var(--line);
  padding: 14px 18px; min-height: 52px; background: #fff; cursor: pointer;
  font-weight: 600; color: var(--ink);
}
button.primary { background: var(--brown); color: #FFF7E6; border: none; }
button.primary:active { background: var(--brown-dark); }
button.secondary { background: #fff; width: 100%; margin-top: 10px; color: var(--brown); border-color: #D8C49A; }
button.big { width: 100%; margin-top: 12px; }
button.danger { color: var(--red); border-color: #fca5a5; }
.row { display: flex; gap: 10px; }
.row button { flex: 1; }

.error { background: #fef2f2; color: var(--red); border: 1px solid #fca5a5;
  border-radius: 10px; padding: 12px; margin: 10px 0; font-size: 16px; }
.ok { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 12px; margin: 10px 0; font-size: 16px; }

/* scenario cards */
.scenario { border: 2px solid var(--line); }
.scenario.winner { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(255,199,44,.35); }
.scenario h3 { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag.best { background: var(--gold); color: var(--brown); }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.totals .t { background: var(--bg); border-radius: 10px; padding: 10px; }
.totals .t .k { font-size: 13px; color: var(--muted); }
.totals .t .v { font-size: 20px; font-weight: 700; }
.gap { margin-top: 10px; border-radius: 10px; padding: 12px; font-size: 19px; font-weight: 700; }
.gap.owed { background: #fef2f2; color: var(--red); }
.gap.covered { background: #f0fdf4; color: var(--ok); }
.year-note { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* cost rows */
.cost-row { display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: none; }
.cost-row .name { flex: 1; }
.cost-row .name .sub { font-size: 13px; color: var(--muted); }
.cost-row input { width: 130px; margin: 0; text-align: right; font-weight: 700; }
.cost-row .covered-note { font-size: 13px; color: var(--ok); font-weight: 700; }

/* aid cards */
.aid-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aid-card .src { font-weight: 700; font-size: 19px; }
.pill { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pill.confirmed { background: #dcfce7; color: var(--ok); }
.pill.applied { background: #dbeafe; color: var(--blue); }
.pill.pending { background: #fef9c3; color: #854d0e; }
.pill.action-needed { background: #ffedd5; color: var(--amber); }
.aid-card .amt { font-size: 26px; font-weight: 800; margin: 6px 0; }
.aid-card .notes { font-size: 15px; color: var(--muted); }
.aid-card .renew { font-size: 15px; margin-top: 6px; }
.aid-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.aid-actions button { min-height: 48px; font-size: 16px; padding: 10px 14px; }

/* todo */
.todo-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line); }
.todo-row:last-child { border-bottom: none; }
.todo-check {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  border: 2px solid #9ca3af; background: #fff; font-size: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.todo-check.done { background: var(--brown); border-color: var(--brown); color: #fff; }
.todo-row .txt { flex: 1; }
.todo-row .txt.done { text-decoration: line-through; color: var(--muted); }
.todo-row .detail { font-size: 15px; color: var(--muted); }
.todo-del { border: none; color: var(--muted); font-size: 22px; min-height: 40px; padding: 4px 10px; }

/* bottom tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #FFFDF7;
  border-top: 2px solid var(--brown); display: flex; z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbtn {
  flex: 1; border: none; border-radius: 0; background: none; font-size: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 0 12px; min-height: 64px; color: var(--muted);
}
.tabbtn span { font-size: 13px; font-weight: 600; }
.tabbtn.active { color: var(--brown); box-shadow: inset 0 3px 0 var(--gold); }

.login-card { margin-top: 60px; border-top: 10px solid var(--brown);
  box-shadow: 0 1px 2px rgba(73,47,36,.05), inset 0 4px 0 var(--gold); }
.login-card h1 { font-size: 24px; color: var(--brown);
  font-family: Georgia, "Times New Roman", serif; }

/* deadline badges */
.due { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; margin-top: 6px; }
.due.overdue { background: #fef2f2; color: var(--red); border: 1px solid #fca5a5; }
.due.soon { background: #ffedd5; color: var(--amber); border: 1px solid #fed7aa; }
.due.later { background: #f3f4f6; color: var(--muted); border: 1px solid var(--line); }
.due-input { margin-top: 8px; font-size: 15px; padding: 10px 12px; min-height: 48px; max-width: 220px; }

/* spending */
.spend-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spend-card.over { border-color: #fca5a5; }
.bar { height: 12px; background: var(--line); border-radius: 999px; margin: 10px 0 6px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, #E8A90C, var(--gold)); border-radius: 999px; }
.spend-card.over .bar .fill { background: var(--red); }
.expense-row .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* aid documents */
.aid-docs { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.doc-guardian { display: flex; align-items: center; gap: 10px; background: #FFF6DB;
  border: 1px solid #F0D488; border-radius: 10px; padding: 10px 12px;
  font-size: 15px; font-weight: 600; color: var(--brown); margin-bottom: 10px; }
.doc-guardian svg { flex: none; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-of-type { border-bottom: none; }
.doc-link { flex: 1; font-weight: 600; color: var(--brown); text-decoration: underline; word-break: break-all; }
button.small { min-height: 44px; padding: 8px 14px; font-size: 16px; }
.upload-label { display: block; margin-top: 10px; font-weight: 600; color: var(--brown);
  border: 2px dashed #C99A06; background: #FFF8E1; border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; }

/* lifelines */
.life-card p { margin: 6px 0; }
.life-row { font-size: 15px; color: var(--muted); margin: 4px 0; }
.life-actions { display: flex; gap: 10px; margin-top: 12px; }
a.callbtn { display: inline-block; font-size: 18px; font-weight: 700; color: #FFF7E6;
  background: var(--brown); border-radius: 12px; padding: 14px 20px; min-height: 52px;
  text-decoration: none; text-align: center; }
a.callbtn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* paperwork tracking + Muse handoff */
textarea {
  display: block; width: 100%; font-size: 16px; padding: 12px; margin: 10px 0;
  border: 1px solid #D8CBAE; border-radius: 12px; background: #fff;
  font-family: ui-monospace, monospace;
}
.track { margin-top: 10px; }
.status-select { font-size: 16px; padding: 10px 12px; min-height: 48px; margin-top: 0; }
.ref-input { font-size: 16px; padding: 10px 12px; min-height: 48px; margin-top: 8px; }
.track button[data-kit-toggle] { margin-top: 10px; }
.kit-panel { margin-top: 10px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; }
.kit-panel ul { margin: 6px 0 12px; padding-left: 22px; }
.kit-panel li { margin: 4px 0; font-size: 16px; }
.kit-panel .callbtn { width: 100%; margin-bottom: 10px; }
.progress-card .bar { margin: 10px 0; }
.import-change { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 12px; margin: 10px 0; }
.import-change ul { margin: 6px 0 0; padding-left: 22px; }
.import-change li { font-size: 16px; }

/* Sigma Nu — black & gold treatment for the fraternity launch kit */
.sn-badge { display: inline-block; background: #171310; color: var(--gold);
  font-size: 13px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px;
  border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.kit-panel.kit-sigma { background: #171310; border: 2px solid var(--gold); color: #F5EDD8; }
.kit-sigma .sigma-crest { display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #4a3d1e; padding-bottom: 12px; margin-bottom: 12px; }
.kit-sigma .sigma-crest svg { flex: none; }
.kit-sigma .sigma-name { font-size: 19px; font-weight: 800; color: var(--gold);
  font-family: Georgia, "Times New Roman", serif; letter-spacing: .5px; }
.kit-sigma .sigma-legacy { font-size: 15px; color: #E9DCB8; margin-top: 2px; }
.kit-sigma .sigma-legacy b { color: var(--gold); }
.kit-sigma .muted-sm { color: #C9B98D; }
.kit-sigma a.callbtn { background: var(--gold); color: #241A10; }
.kit-sigma button.secondary { background: transparent; color: var(--gold); border-color: var(--gold); }
.kit-sigma li { color: #F5EDD8; }

/* footer monogram */
.app-footer { text-align: center; margin-top: 30px; padding-top: 16px;
  border-top: 1px solid var(--line); }
.app-footer .sn-mono { display: block; font-size: 22px; font-weight: 800;
  letter-spacing: 4px; color: var(--brown);
  font-family: Georgia, "Times New Roman", serif; }
.app-footer .muted-sm { display: block; margin-top: 4px; }
