/* Rain Moth Volunteer Portal — same colours and font as rainmoth.org */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --ink: #111111; --muted: #555555; --line: #dddddd; --paper: #ffffff;
  --cream: #f3eedf; --red: #8f2f22; --red-dark: #6f2219; --mustard: #e3b84a; --olive: #4f5b32;
  --grey-btn: #8a7f78; --font: 'Poppins', Arial, sans-serif; --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 600; } h2 { font-size: 21px; font-weight: 500; } h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 16px var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-dark { background: var(--ink); color: #fff; font-weight: 600; }
.btn-olive { background: var(--olive); border-color: var(--olive); color: #fff; font-weight: 600; }
.btn-mustard { background: var(--mustard); border-color: var(--mustard); font-weight: 600; }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-link { border: 0; background: none; color: var(--red); min-height: 44px; font-weight: 500; }
.btn-block { width: 100%; } .btn-big { min-height: 64px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.disabled { background: var(--grey-btn); border-color: var(--grey-btn); color: #fff; pointer-events: none; }

/* Forms */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input:not([type]), select, textarea {
  min-height: 56px; padding: 0 14px; border-radius: var(--radius); border: 1.5px solid var(--ink); font: 400 17px var(--font); color: var(--ink); background: #fff; width: 100%; }
textarea { padding: 12px 14px; min-height: 100px; line-height: 1.5; resize: vertical; }
.money { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: var(--radius); padding-left: 14px; background: #fff; }
.money input { border: 0; min-height: 54px; padding-left: 0; font-weight: 500; font-size: 20px; }
.money span { font-size: 20px; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; line-height: 1.5; }
.check input { width: 26px; height: 26px; flex: none; margin: 0; }
.hint { font-size: 13px; font-weight: 300; color: var(--muted); }

/* Choice buttons: radio inputs that look like big buttons (no JavaScript needed) */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 6px 10px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: #fff; font-weight: 500; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* Cards, panels, notices */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel { background: var(--cream); border-radius: var(--radius); padding: 16px 18px; }
.notice { border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }
.notice-ok { background: var(--olive); color: #fff; font-weight: 500; }
.notice-warn { border: 2px solid var(--red); color: var(--red-dark); font-weight: 500; }
.notice-info { background: var(--cream); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-red { background: var(--red); color: #fff; } .pill-olive { background: var(--olive); color: #fff; } .pill-mustard { background: var(--mustard); }
.pill-cream { background: var(--cream); } .pill-grey { background: var(--line); } .pill-dark { background: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }
.big-number { font-size: 44px; font-weight: 600; line-height: 1.1; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); }
table.data td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scroll-x { overflow-x: auto; }

/* Access note (demo) */
.access-note { position: fixed; top: 76px; right: 16px; z-index: 50; width: 300px; display: flex; gap: 10px; padding: 12px 8px 12px 14px; border-radius: 12px; background: var(--olive); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.access-note b { display: block; font-size: 14px; } .access-note small { display: block; font-size: 12px; font-weight: 300; line-height: 1.45; }
.access-note .tag { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); }
.access-note button { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }

/* Onboarding tip */
.tip { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px 18px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.tip .tag { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); }
.tip b { display: block; font-size: 16px; margin-top: 4px; } .tip p { font-size: 14px; margin: 4px 0 10px; }
.tip .row button { flex: 1; min-height: 44px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; }
.tip .later { background: var(--mustard); border: 0; } .tip .never { background: transparent; color: #fff; border: 1.5px solid #fff; font-weight: 500; }

/* ---------- Phone layout ---------- */
.phone { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.phone-header { display: flex; align-items: center; gap: 8px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.phone-header .back { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; font-size: 24px; }
.phone-main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.phone-footer { padding: 14px 20px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.tile { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); }
.tile b { display: block; font-size: 18px; font-weight: 600; } .tile small { display: block; font-size: 13px; font-weight: 300; }
.tile-red { background: var(--red); border-color: var(--red); color: #fff; } .tile-mustard { background: var(--mustard); border-color: var(--mustard); }
.tile-outline-red { border-color: var(--red); }
.shift { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.shift.open { background: var(--mustard); border-color: var(--mustard); }
.shift b { display: block; font-size: 16px; font-weight: 600; } .shift small { display: block; font-size: 14px; }

/* ---------- Tablet layout ---------- */
.tablet { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 64px; flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding: 0 24px; border-bottom: 1px solid var(--line); }
.topbar .title { text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.topbar .right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 15px; }
.topbar a.home { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-weight: 500; color: var(--ink); text-decoration: none; }
.topbar .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--olive); display: inline-block; }
.tablet-body { flex: 1; display: flex; min-height: 0; }
.tablet-main { flex: 1; min-width: 0; padding: 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.tablet-aside { width: 320px; flex: none; background: var(--cream); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.tablet-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tablet-center > div { width: min(560px, 100%); display: flex; flex-direction: column; gap: 16px; }
button, input, select, textarea { font: inherit; }
.big-tile { background: #fff; font: inherit; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); min-height: 150px; position: relative; }
.big-tile b { font-size: 22px; font-weight: 600; display: block; } form > .big-tile { width: 100%; height: 100%; } .big-tile small { font-size: 15px; font-weight: 300; }
.big-tile.red { background: var(--red); border-color: var(--red); color: #fff; } .big-tile.mustard { background: var(--mustard); border-color: var(--mustard); }
.big-tile.olive { background: var(--olive); border-color: var(--olive); color: #fff; } .big-tile.outline-red { border-color: var(--red); }
.big-tile .badge { position: absolute; top: 18px; right: 18px; }
.steps { display: grid; gap: 6px; } .steps span { height: 6px; border-radius: 999px; background: var(--line); } .steps span.on { background: var(--red); }
.pinpad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pinpad button { min-height: 64px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; font: 600 22px var(--font); cursor: pointer; }
.pin-dots { display: flex; justify-content: center; gap: 14px; } .pin-dots span { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--ink); }
.pin-dots span.on { background: var(--ink); }
.cart-line { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.done-icon { width: 88px; height: 88px; border-radius: 999px; background: var(--olive); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto; }

/* ---------- Committee / desktop ---------- */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .inner { max-width: 1240px; margin: 0 auto; padding: 20px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-header nav { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); text-decoration: none; }
.site-header nav a[aria-current=page] { font-weight: 500; text-decoration: underline; text-underline-offset: 8px; }
.page { max-width: 1240px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { border-radius: var(--radius); padding: 20px; background: var(--cream); }
.stat.red { background: var(--red); color: #fff; } .stat.mustard { background: var(--mustard); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; } .cols > * { flex: 1 1 420px; min-width: 0; }
section.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.roster-strip { overflow-x: auto; padding: 4px 0 12px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%); }
.roster-strip .weeks { display: flex; gap: 16px; padding: 0 120px; width: max-content; }
.roster-strip .week { width: 220px; display: flex; flex-direction: column; gap: 8px; }
.roster-strip .day { min-height: 100px; border-radius: 10px; border: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.roster-strip .day.today { border: 2px solid var(--ink); } .roster-strip .day.closed { background: #f7f7f5; }
.roster-strip .chip { display: flex; justify-content: space-between; gap: 6px; min-height: 26px; padding: 0 8px; border-radius: 6px; font-size: 12px; align-items: center; background: var(--cream); }
.roster-strip .chip.open { background: var(--red); color: #fff; } .roster-strip .chip.missed { background: var(--ink); color: #fff; }
.settings-nav { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; }
.settings-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 10px; background: var(--cream); color: var(--ink); text-decoration: none; }
.settings-nav a[aria-current=page] { background: var(--ink); color: #fff; font-weight: 600; }
.center-page { max-width: 520px; margin: 80px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; text-align: center; }

@media (max-width: 900px) {
  .tablet-body { flex-direction: column; } .tablet-aside { width: auto; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { grid-template-columns: 1fr auto; } .topbar .title { display: none; }
}
@media print { .access-note, .no-print { display: none !important; } }
input, textarea, select { scroll-margin: 120px 0 45vh; } /* keep fields above the on-screen keyboard */
