/* Troop Tracker — Scouts BSA palette matching the "My Path to Eagle" worksheet:
   forest green, scout red, khaki and navy. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
:root {
  --forest: #2F4B2F;
  --forest-2: #3F6340;
  --forest-ink: #22381F;
  --red: #9E1B32;
  --red-2: #7F1427;
  --khaki: #E9E1CC;
  --khaki-2: #F3EEDF;
  --khaki-d: #C9BD98;
  --navy: #1C2B3A;
  --paper: #F7F3E8;
  --white: #FFFFFF;
  --muted: #5E6A5E;
  --line: #D9CFB2;
  --gold: #C9A227;
  --ok: #2E7D32;
  --warn: #B26A00;
  --radius: 6px;
  --shadow: 4px 4px 0 var(--khaki-d);
  --font: "Source Sans 3", Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  --head: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 16px/1.5 var(--font); }
a { color: var(--forest-2); }
a:hover { color: var(--red); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--forest); letter-spacing: .02em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; text-transform: uppercase; }
h2 { font-size: 1.35rem; text-transform: uppercase; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
pre.code { background: var(--navy); color: #fff; padding: 12px; border-radius: var(--radius); overflow-x: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.wrap.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar { background: var(--forest); color: var(--khaki); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--khaki); text-decoration: none; }
.brand:hover { color: #fff; }
.brand strong { display: block; font-family: var(--head); font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; opacity: .85; }
.stripe { height: 6px; background: linear-gradient(var(--red) 0 4px, var(--khaki-d) 4px 6px); }
.mainnav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.mainnav a { color: var(--khaki); text-decoration: none; padding: 8px 10px; border-radius: 4px; font-weight: 600; font-size: .95rem; }
.mainnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.mainnav a.on { background: var(--khaki); color: var(--forest); }
.nav-user { display: flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(233,225,204,.3); }
.nav-user a { font-weight: 400; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--khaki); border: 1px solid var(--khaki); border-radius: 4px; padding: 6px 10px; font: 600 .95rem var(--font); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--forest); color: #fff; border: 2px solid var(--forest); border-radius: var(--radius);
  padding: 8px 14px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--forest-ink); border-color: var(--forest-ink); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn-khaki { background: var(--khaki); color: var(--forest); border-color: var(--khaki); }
.btn-khaki:hover { background: #fff; color: var(--forest); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-sm { padding: 4px 9px; font-size: .85rem; border-width: 1px; }
.btn-lg { padding: 12px 22px; font-size: 1.05rem; }
.btn-danger-ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger-ghost:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ---------- cards & sections ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 22px; }
.card.khaki { background: var(--khaki-2); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--red); padding-bottom: 6px; margin: 4px 0 14px; }
.section-title h2 { margin: 0; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--forest); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat.red { border-top-color: var(--red); }
.stat.gold { border-top-color: var(--gold); }
.stat.navy { border-top-color: var(--navy); }
.stat .n { font-family: var(--head); font-size: 2rem; color: var(--forest); line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat .s { font-size: .82rem; color: var(--muted); }

/* ---------- tables (header style from the worksheet tables) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
table.t th { background: var(--forest); color: var(--khaki); text-align: left; font: 600 .82rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tbody tr:nth-child(even) td { background: #FBF9F2; }
table.t tbody tr:hover td { background: var(--khaki-2); }
table.t tr.group td { background: var(--khaki) !important; font-family: var(--head); color: var(--forest); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; padding: 6px 10px; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
table.t.compact td { padding: 5px 8px; }
table.matrix td, table.matrix th { text-align: center; }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; position: sticky; left: 0; background: inherit; }
table.matrix tbody td:first-child { background: var(--white); }

/* ---------- chips, badges, bars ---------- */
.chip { --c: var(--forest); display: inline-block; background: var(--c); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.chip-muted { background: var(--khaki); color: var(--forest); }
.chip-outline { background: transparent; color: var(--c); border: 1px solid var(--c); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--khaki); color: var(--forest); white-space: nowrap; }
.pill.red { background: #F6DDE1; color: var(--red); }
.pill.warn { background: #FCEBCF; color: #8A5200; }
.pill.ok { background: #DDEFDD; color: #1E5E22; }
.pill.navy { background: #DCE3EA; color: var(--navy); }
.eagle { color: var(--red); font-weight: 700; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--forest)); vertical-align: middle; margin-right: 6px; }
.bar { height: 10px; background: var(--khaki); border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--forest-2)); border-radius: 999px; }
.bar-label { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stamp { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
span.stamp[title] { display: inline; cursor: help; margin: 0 0 0 4px; }

/* ---------- forms ---------- */
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; color: var(--forest-ink); }
.form label.check, label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 8px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: 400 1rem var(--font); color: var(--navy);
  background: #fff; border: 1px solid var(--khaki-d); border-radius: var(--radius); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(158,27,50,.35); outline-offset: 1px; border-color: var(--red); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--forest); flex: none; margin: 0; }
input[type=color] { width: 60px; height: 38px; padding: 2px; border: 1px solid var(--khaki-d); border-radius: var(--radius); display: block; margin-top: 4px; }
textarea { min-height: 80px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 4px; margin: 0 0 16px; background: #FDFCF8; }
legend { font-family: var(--head); color: var(--forest); text-transform: uppercase; letter-spacing: .05em; padding: 0 6px; }
.help { font-size: .86rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters label { margin: 0; font-size: .85rem; font-weight: 600; }
.filters input, .filters select { min-width: 150px; }
.inline-inputs { display: flex; gap: 6px; align-items: center; }
.inline-inputs input { margin-top: 0; }
input.tiny { width: 76px; padding: 5px 6px; display: inline-block; margin: 0; }
input.date-sm { width: 150px; padding: 5px 6px; display: inline-block; margin: 0; }
input.text-sm { padding: 5px 6px; display: inline-block; margin: 0; }
.checks { list-style: none; padding: 0; }
.checks li.ok { color: var(--ok); }
.checks li.bad { color: var(--red); font-weight: 700; }

/* ---------- flash ---------- */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; border-left: 5px solid var(--forest); background: #E7F0E4; }
.flash-error { border-left-color: var(--red); background: #F8E3E6; }
.flash-info { border-left-color: var(--navy); background: #E4EAF0; }
.flash-warn { border-left-color: var(--warn); background: #FCF0DA; }
.empty { padding: 20px; text-align: center; color: var(--muted); background: var(--khaki-2); border: 1px dashed var(--khaki-d); border-radius: var(--radius); }
.empty div { margin-top: 10px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 3px solid var(--forest); margin-bottom: 18px; }
.tabs a { padding: 8px 14px; text-decoration: none; font-weight: 700; color: var(--forest); background: var(--khaki); border-radius: var(--radius) var(--radius) 0 0; font-size: .95rem; }
.tabs a:hover { background: var(--khaki-d); color: var(--forest-ink); }
.tabs a.on { background: var(--forest); color: #fff; }
.tabs a .pill { margin-left: 4px; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.alert-list li { display: block; }
.alert-list li .pill { margin-right: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.kv dt { font-weight: 700; color: var(--forest); font-size: .9rem; }
.kv dd { margin: 0; }

/* ---------- scout header ---------- */
.scout-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--khaki); display: grid; place-items: center; font: 600 1.5rem var(--head); border: 3px solid var(--khaki-d); flex: none; }
.scout-head h1 { margin: 0; }
.scout-head .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* ---------- rank trail (path to eagle) ---------- */
.trail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 6px 0 4px; }
.trail .step { text-align: center; padding: 10px 4px; border-radius: var(--radius); background: var(--khaki-2); border: 2px solid var(--line); position: relative; text-decoration: none; color: var(--navy); }
.trail .step.done { background: var(--c); border-color: var(--c); color: #fff; }
.trail .step.next { border-color: var(--red); border-style: dashed; background: #fff; }
.trail .step b { display: block; font: 600 .9rem var(--head); text-transform: uppercase; letter-spacing: .03em; }
.trail .step small { display: block; font-size: .74rem; opacity: .9; }
.trail .step .bar { margin-top: 6px; height: 6px; min-width: 0; }

/* requirements checklist */
.req-table td.code { font-weight: 700; color: var(--forest); width: 48px; }
.req-table tr.done td { background: #EEF5EC !important; }
.req-table tr.done td.desc { color: #3b4b3b; }
.req-table .signed { font-size: .8rem; color: var(--muted); }

/* checklist items */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--khaki); color: var(--muted); }
.checklist li.met .mark { background: var(--forest); color: #fff; }
.checklist .hint { display: block; font-size: .78rem; color: var(--muted); }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head h1 { margin: 0 8px 0 0; min-width: 220px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.cal .dow { background: var(--forest); color: var(--khaki); font: 600 .8rem var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 6px; text-align: center; border-right: 1px solid var(--forest-2); }
.cal .day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px 6px; position: relative; cursor: pointer; transition: background .1s; }
.cal .day:hover { background: var(--khaki-2); }
.cal .day.other { background: #FAF8F2; color: #9a9a8a; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--red); }
.cal .day .dn { font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; }
.cal .day .add { opacity: 0; color: var(--red); font-weight: 700; }
.cal .day:hover .add { opacity: 1; }
.cal .ev { display: block; font-size: .78rem; line-height: 1.25; background: var(--c); color: #fff; border-radius: 4px; padding: 2px 5px; margin-top: 3px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev:hover { filter: brightness(1.15); color: #fff; }
.cal .ev.faded { opacity: .35; }
.cal .ev.mine { outline: 2px solid var(--gold); outline-offset: -1px; font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: .85rem; }
.readonly .cal .day { cursor: default; }

/* ---------- modal ---------- */
dialog.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(760px, 96vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--navy); }
dialog.modal::backdrop { background: rgba(28,43,58,.55); }
.modal-head { background: var(--forest); color: var(--khaki); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 2; }
.modal-head h2 { color: var(--khaki); margin: 0; font-size: 1.2rem; }
.modal-close { background: none; border: 0; color: var(--khaki); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 16px 18px; }
.modal-foot { padding: 12px 18px; background: var(--khaki-2); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; }
.day-events { margin-bottom: 14px; }
.day-events .list li { padding: 6px 0; }

/* scout picker */
.picker { border: 1px solid var(--line); border-radius: var(--radius); max-height: 300px; overflow: auto; background: #fff; }
.picker .pgroup { background: var(--khaki); padding: 4px 10px; font: 600 .82rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--forest); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; }
.picker .pgroup button { background: none; border: 0; color: var(--forest-2); font: 600 .78rem var(--font); cursor: pointer; text-decoration: underline; }
.picker label.check { padding: 6px 10px; margin: 0; border-bottom: 1px solid #F0EBDD; cursor: pointer; }
.picker label.check:hover { background: var(--khaki-2); }
.picker-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.picker-tools input { flex: 1; min-width: 160px; margin: 0; }

/* roster */
.roster td { vertical-align: middle; }
.roster tr.present td { background: #EEF5EC !important; }
.roster label.check { margin: 0; font-weight: 600; }
.sticky-save { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0; border-top: 2px solid var(--khaki-d); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; z-index: 5; }

/* ---------- public home ---------- */
body.home { background: var(--paper); }
.hero { background: radial-gradient(ellipse at 20% 0%, #4d7a4d 0%, var(--forest) 55%, #1f341f 100%); color: var(--khaki); position: relative; overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 16px 90px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 6px; letter-spacing: .04em; }
.hero .kicker { font: 600 .95rem var(--head); color: var(--khaki-d); text-transform: uppercase; letter-spacing: .2em; }
.hero p.lead { font-size: 1.2rem; color: var(--khaki); max-width: 34em; }
.hero .patch { justify-self: center; width: min(300px, 70vw); filter: drop-shadow(6px 8px 0 rgba(0,0,0,.25)); }
.hero .ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.home-band { max-width: 1200px; margin: -40px auto 0; padding: 0 16px; position: relative; z-index: 2; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-cards .card { margin: 0; border-top: 5px solid var(--red); }
.info-cards h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: .06em; }
.ideals { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.ideal { background: var(--white); border: 2px solid var(--forest); border-radius: var(--radius); padding: 16px 18px; box-shadow: 5px 5px 0 var(--forest); }
.ideal h3 { color: var(--red); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; margin-bottom: 6px; }
.ideal p { margin: 0; }
.ideal.wide { grid-column: 1 / -1; }
.law { columns: 2; margin: 0; padding-left: 1.2em; }
.upcoming .list li { align-items: center; }
.date-block { display: inline-grid; place-items: center; width: 54px; min-width: 54px; height: 54px; background: var(--forest); color: var(--khaki); border-radius: var(--radius); line-height: 1; margin-right: 10px; }
.date-block b { font: 700 1.3rem var(--head); color: #fff; }
.date-block small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.foot { background: var(--forest); color: var(--khaki); margin-top: 30px; border-top: 5px solid var(--red); }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; font-size: .9rem; }
.foot-motto { font-family: var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--khaki-d); }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; }
.login-card { width: min(420px, 100%); text-align: left; }
.login-card .patch { width: 90px; display: block; margin: -60px auto 8px; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.2)); }
.login-card h1 { text-align: center; }

/* ---------- misc ---------- */
.kbd { font-family: ui-monospace, monospace; background: var(--khaki); padding: 1px 5px; border-radius: 3px; font-size: .85em; }
details.more { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
details.more > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--forest); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more > summary::after { content: "＋"; color: var(--red); font-weight: 700; }
details.more[open] > summary::after { content: "－"; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > .inner { padding: 0 14px 14px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--khaki-d); }
.timeline li { position: relative; padding: 4px 0 12px 16px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--forest)); border: 2px solid #fff; }
.timeline .when { font-size: .8rem; color: var(--muted); font-weight: 600; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--c); vertical-align: middle; border: 1px solid rgba(0,0,0,.15); }
.color-row { display: flex; gap: 10px; align-items: end; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cols, .cols-2 { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .patch { width: 170px; grid-row: 1; }
  .trail { grid-template-columns: repeat(4, 1fr); }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .mainnav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .mainnav.show { display: flex; width: auto; flex-direction: row; margin-left: auto; }
  body.nav-open .mainnav { display: flex; }
  .nav-user { margin: 6px 0 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid rgba(233,225,204,.3); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ideals { grid-template-columns: 1fr; }
  .law { columns: 1; }
  .cal .day { min-height: 70px; padding: 2px 3px; }
  .cal .ev { font-size: .68rem; padding: 1px 3px; }
  .cal .ev-time { display: none; }
  .cal .dow { font-size: .68rem; padding: 4px 2px; }
  .trail { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.5rem; }
  .card { padding: 14px; }
  table.t { font-size: .88rem; }
  .hide-sm { display: none; }
}

/* ---------- print (scout record for boards of review) ---------- */
@media print {
  .topbar, .foot, .tabs, .btn, .no-print, .flash, form.inline, .sticky-save, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .wrap { padding: 0; max-width: none; }
  .tab-panel { display: block !important; }
  a { color: inherit; text-decoration: none; }
  table.t th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chip, .trail .step.done, .bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
