/* Task Force Adventures — site styles */
:root {
  --ink: #1d1f1b;
  --ink-2: #2b2e27;
  --olive: #3b4a2f;
  --olive-2: #4d5f3c;
  --tan: #c8b68a;
  --sand: #f1efe9;
  --paper: #ffffff;
  --gold: #d4a73a;
  --gold-dark: #b8892a;
  --text: #22251f;
  --muted: #6a6d63;
  --line: #dcd8cc;
  --red: #a23b2a;
  --green: #3f7a3a;
  --blue: #2f5f86;
  --amber: #a8741a;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
  --head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--sand); }
img { max-width: 100%; height: auto; }
a { color: var(--olive); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  background: var(--olive); color: #fff; border: 2px solid var(--olive); padding: .7em 1.4em; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--olive-2); border-color: var(--olive-2); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #862f21; border-color: #862f21; }
.btn-sm { font-size: .85rem; padding: .45em .9em; }
.btn-lg { font-size: 1.15rem; padding: .85em 1.8em; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--olive); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.link-btn.danger { color: var(--red); }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); text-transform: uppercase; font-size: 1.15rem; line-height: 1; letter-spacing: .04em; }
.brand small { font-size: .72rem; letter-spacing: .28em; color: var(--tan); }
.brand:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #e9e6dc; text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; padding: 8px 10px; border-radius: 4px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }
.site-nav .btn { margin-left: 8px; color: var(--ink); }
.site-nav .btn:hover { color: var(--ink); }
.badge { display: inline-block; background: var(--gold); color: var(--ink); border-radius: 999px; font-size: .75rem; padding: 0 7px; margin-left: 2px; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff; font-family: var(--head); text-transform: uppercase; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 3px solid var(--gold); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .btn { margin: 12px 0 0; text-align: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, #232a1c 0%, #34422a 55%, #4b5a3a 100%); overflow: hidden; }
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,18,.85) 0%, rgba(20,22,18,.55) 55%, rgba(20,22,18,.2) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(56px, 10vw, 120px) 0 clamp(90px, 14vw, 170px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 span { color: var(--gold); display: block; }
.hero p.lead { font-size: 1.25rem; color: #e7e3d6; max-width: 38ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-badge { justify-self: center; width: min(320px, 80%); filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 1; display: block; }
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; } .hero-badge { width: 180px; order: -1; } }
.page-hero { background: var(--ink); color: #fff; padding: 56px 0 44px; border-bottom: 3px solid var(--olive); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #d9d4c4; margin: .6em 0 0; max-width: 60ch; font-size: 1.12rem; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-size: .85rem; display: block; margin-bottom: 8px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--olive); color: #eee9da; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.icon-card { border-top: 4px solid var(--olive); }
.icon-card .ico { width: 44px; height: 44px; color: var(--olive); margin-bottom: 10px; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--head); font-size: 1.4rem; display: grid; place-items: center; }
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.stat { font-family: var(--head); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.quote-note { border-left: 4px solid var(--gold); padding: 8px 18px; background: var(--paper); }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin-right: 16px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #bdb8a9; border-radius: var(--radius); background: #fff; color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--olive); outline: 2px solid rgba(59,74,47,.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 620px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.req { color: var(--red); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
legend { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 0 6px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 5px solid; background: #fff; }
.alert-success { border-color: var(--green); background: #eef5ec; }
.alert-error { border-color: var(--red); background: #f9ecea; }
.alert-info { border-color: var(--blue); background: #ecf2f7; }
.alert-warning { border-color: var(--amber); background: #fbf3e4; }

/* Donate */
.donate-box { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.seg { display: inline-flex; border: 2px solid var(--olive); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 10px 22px; cursor: pointer; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; }
.seg input:checked + label { background: var(--olive); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--gold); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label { margin: 0; text-align: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 6px; font-family: var(--head); font-size: 1.3rem; cursor: pointer; background: #fff; }
.amounts input:checked + label { border-color: var(--olive); background: var(--olive); color: #fff; }
.amounts input:focus-visible + label { outline: 3px solid var(--gold); }
.impact { list-style: none; padding: 0; margin: 0; }
.impact li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.impact strong { font-family: var(--head); font-size: 1.3rem; color: var(--olive); min-width: 70px; }

/* Shop */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.product .img { aspect-ratio: 1; background: #e8e4d8; display: grid; place-items: center; overflow: hidden; }
.product .img img { width: 100%; height: 100%; object-fit: cover; }
.product .img .ph { width: 45%; opacity: .5; }
.product .body { padding: 16px; }
.product h3 { font-size: 1.1rem; margin: 0 0 4px; }
.price { font-family: var(--head); font-size: 1.25rem; color: var(--olive); }
.soldout { color: var(--red); font-weight: 600; font-size: .9rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table td.num, .cart-table th.num { text-align: right; }
.cart-table input[type=number] { width: 80px; }

/* Survey */
.survey-q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.survey-q > p { font-weight: 600; margin-bottom: 10px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label { margin: 0; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; font-family: var(--head); font-size: 1.3rem; cursor: pointer; background: #fff; }
.scale input:checked + label { background: var(--olive); color: #fff; border-color: var(--olive); }
.scale input:focus-visible + label { outline: 3px solid var(--gold); }
.scale-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); max-width: 300px; margin-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; background: #f5f3ec; color: #4a4d44; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid #ece9e0; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tfoot td { font-weight: 700; background: #f5f3ec; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pill-green { background: #e2efdf; color: #2d5a29; }
.pill-blue { background: #e0ebf4; color: #244a69; }
.pill-amber { background: #f7ebd2; color: #7d5611; }
.pill-red { background: #f5dfdb; color: #7f2a1d; }
.pill-grey { background: #eceae4; color: #57594f; }

/* Footer */
.site-footer { background: var(--ink); color: #cfcabb; padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.5fr; gap: 32px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.site-footer a { color: #cfcabb; display: block; text-decoration: none; margin-bottom: 6px; }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: #9d998c; }
.copyright { border-top: 1px solid #34372f; margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #8c887c; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- Portal ---------------- */
body.portal { background: #f4f2ec; font-size: 16px; }
.portal-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.portal-side { background: var(--ink); color: #d9d4c4; padding: 18px 0; display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.portal-side .brand { padding: 0 18px 16px; font-size: 1.1rem; }
.portal-side nav a { display: block; color: #d9d4c4; text-decoration: none; padding: 9px 20px; border-left: 3px solid transparent; }
.portal-side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.portal-side nav a[aria-current] { background: rgba(212,167,58,.12); border-left-color: var(--gold); color: #fff; }
.nav-group { font-family: var(--head); text-transform: uppercase; font-size: .75rem; letter-spacing: .15em; color: var(--tan); padding: 18px 20px 6px; }
.region-switch { padding: 10px 18px 16px; border-bottom: 1px solid #34372f; margin-bottom: 10px; }
.region-switch label, .region-switch .label { color: var(--tan); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; display: block; font-weight: 400; }
.region-switch select { padding: 6px 8px; font-size: .95rem; margin-top: 4px; }
.region-switch strong { color: #fff; font-size: 1.05rem; }
.side-foot { margin-top: auto; padding: 16px 20px 0; border-top: 1px solid #34372f; font-size: .85rem; }
.side-foot a { color: var(--tan); }
.side-foot small { color: #9d998c; }
.portal-main { min-width: 0; }
.portal-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; gap: 14px; }
.portal-top h1 { font-size: 1.6rem; margin: 0; text-transform: none; }
.portal-content { padding: 24px 28px 60px; max-width: 1280px; }
.portal-toggle { display: none; border-color: var(--line); color: var(--ink); }
@media (max-width: 900px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .portal-side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .portal-toggle { display: block; }
  .portal-content { padding: 18px 16px 50px; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .v { font-family: var(--head); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.kpi .l { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi.accent { border-top: 4px solid var(--gold); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.panel h2 { font-size: 1.2rem; text-transform: none; margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.toolbar form .field { margin: 0; }
.toolbar select, .toolbar input { width: auto; padding: 7px 10px; }
.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-inline form { display: inline; margin: 0; }
.score-bar { height: 10px; border-radius: 5px; background: #e6e2d6; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--olive); }
.rate-big { font-family: var(--head); font-size: 3rem; color: var(--olive); line-height: 1; }
.tier-table td, .tier-table th { padding: 6px 10px; }
.tier-table tr.hit td { background: #fbf1d8; font-weight: 700; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 24px; }
.login-card { background: #fff; border-radius: var(--radius); padding: 32px; width: min(420px, 100%); border-top: 5px solid var(--gold); }
.login-card img { display: block; margin: 0 auto 12px; }
.participant-add { background: #f7f5ef; border: 1px dashed #bdb8a9; border-radius: var(--radius); padding: 16px; }
.participant-add .form-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .participant-add .form-row { grid-template-columns: 1fr 1fr; } }
details.edit-row summary { cursor: pointer; color: var(--olive); }
.print-only { display: none; }
@media print {
  .portal-side, .portal-top .portal-toggle, .no-print, .site-header, .site-footer { display: none !important; }
  .portal-shell { display: block; }
  .print-only { display: block; }
  body { background: #fff; }
}
.ico { width: 44px; height: 44px; display: inline-block; }
.section.dark .ico { color: var(--gold); }
.section.dark .grid > div .ico { margin-bottom: 8px; }
