/* Troop directory, volunteering and account controls */
.sr-wrap,.sr-form { --sr-ink:#243e35;--sr-muted:#586a5f;--sr-rule:#d8dfd5;--sr-paper:#fffef9;--sr-tint:#eef3ec;--sr-warm:#fff1dc;color:var(--sr-ink) }
.sr-wrap { max-width:1180px;margin:0 auto;padding-bottom:36px }
.sr-top { display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:4px 0 27px }
.sr-top h1 { margin:0 0 7px;font-family:'DM Serif Text','Georgia',serif;font-weight:500;font-size:clamp(37px,4.5vw,62px);line-height:1.04;letter-spacing:-.045em;color:#233f34 }
.sr-top p,.sr-panel > p,.sr-form p { margin:0;color:var(--sr-muted);font-size:14px;line-height:1.55 }
#sr-app-list:not(:last-child) { margin-bottom:22px }
.sr-tools { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin:0 0 20px;padding-bottom:15px;border-bottom:1px solid var(--sr-rule) }
.sr-tabs { display:flex;align-items:center;flex-wrap:wrap;gap:6px }
.sr-tabs button { font:inherit;font-size:12px;font-weight:620;padding:7px 12px;border-radius:99px;border:1px solid var(--sr-rule);background:transparent;color:var(--sr-ink);cursor:pointer }
.sr-tabs button[aria-pressed=true] { color:white;background:#284f3d;border-color:#284f3d }
.sr-check { display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.5;color:var(--sr-muted);cursor:pointer }
.sr-check input { accent-color:#284f3d;width:16px;height:16px;flex:none }
.sr-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(246px,100%),1fr));gap:15px }
.sr-role,.sr-panel { background:var(--sr-paper);border:1px solid var(--sr-rule);border-radius:13px }
.sr-role { padding:21px;display:flex;flex-direction:column;align-items:stretch;min-width:0 }
.sr-role-top,.sr-actions,.sr-line-actions,.sr-assignee,.sr-id-card,.sr-form-actions { display:flex;align-items:center;gap:10px }
.sr-role-top { min-height:20px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px }
.sr-unit { font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#5a705f }
.sr-role h3,.sr-panel h2,.sr-line h3,.sr-id-card strong { color:var(--sr-ink) }
.sr-role h3,.sr-panel h2 { font-family:'DM Serif Text','Georgia',serif;font-weight:500;line-height:1.13;letter-spacing:-.025em }
.sr-role h3 { font-size:24px;margin:0 0 8px }
.sr-description,.sr-reports,.sr-line p,.sr-id-card p,.sr-helper { color:var(--sr-muted);font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere }
.sr-description { margin:0 0 16px;flex:1 }
.sr-reports,.sr-form .sr-helper { font-size:12px }
.sr-reports { margin-top:8px }
.sr-assignee { gap:8px;font-size:13px;font-weight:600 }
.sr-badge { display:inline-flex;padding:3px 8px;border-radius:99px;background:var(--sr-tint);color:#355342;font-size:11px;line-height:1.4;font-weight:650;white-space:nowrap }
.sr-open { background:var(--sr-warm);color:#845119 }
.sr-avatar,.sr-vacant-icon { display:inline-grid;flex:none;place-items:center;width:30px;height:30px;border-radius:50%;background:#dfebe0;color:#335941;font:650 10px/1.2 system-ui }
.sr-vacant-icon { border:1px dashed #b88b52;background:#fff9ed;color:#93612d;font-size:16px }
.sr-large { width:48px;height:48px;font-size:14px }
.sr-actions { margin-top:16px;padding-top:14px;border-top:1px solid var(--sr-rule);justify-content:space-between }
.sr-button { font:inherit;font-weight:600;font-size:13px;line-height:1.3;min-height:36px;padding:8px 14px;border-radius:7px;border:1px solid #b9c8bb;background:#fffef9;color:var(--sr-ink);cursor:pointer }
.sr-button:hover,.sr-tabs button:hover:not([aria-pressed=true]) { background:#eef3ec }
.sr-button.sr-primary { background:#284f3d;color:#fff;border-color:#284f3d }
.sr-button.sr-small { min-height:31px;padding:6px 11px;font-size:12px }
.sr-button.sr-text { min-height:30px;padding:3px 0;color:#46624b;font-weight:600;border:0;background:transparent }
.sr-button:disabled { opacity:.56;cursor:wait }
.sr-panel { margin-top:17px;padding:21px 24px }
.sr-panel > h2 { font-size:24px;margin:0 0 14px }
.sr-panel > p + p { margin-top:9px }
.sr-panel > .sr-external { display:inline-block;margin-top:12px }
.sr-external { font-size:13px;font-weight:600;color:#305641;text-underline-offset:3px;text-decoration:underline }
.sr-line { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-top:1px solid var(--sr-rule) }
.sr-line > div:first-child { min-width:0 }
.sr-line:first-child,.sr-panel h2+.sr-line { border-top:0;padding-top:2px }
.sr-line:last-child { padding-bottom:2px }
.sr-line h3,.sr-line strong,.sr-id-card strong { font:650 14px/1.45 inherit;font-family:inherit;font-size:14px;font-weight:650;line-height:1.45;margin:0 }
.sr-line p { margin:3px 0 0;font-size:12.5px }
.sr-line-actions { max-width:100%;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;gap:7px }
.sr-id-card { margin-bottom:14px }
.sr-id-card strong { font-size:16px }
.sr-empty { padding:15px 0;color:var(--sr-muted);font-size:14px }
.sr-grid > .sr-empty { grid-column:1/-1 }
.sr-panel > .sr-empty { padding:4px 0 }
.sr-form { display:grid;gap:15px }
.sr-form .sr-form-intro { margin:0 }
.sr-field { display:grid;gap:6px;font:inherit;font-size:13px;font-weight:620;color:var(--sr-ink);min-width:0 }
.sr-field input,.sr-field select,.sr-field textarea { width:100%;box-sizing:border-box;font:inherit;font-weight:400;font-size:14px;line-height:1.4;color:#253d32;background:#fffefb;border:1px solid #bdcabe;border-radius:7px;padding:9px 11px;min-height:40px }
.sr-field textarea { resize:vertical }
.sr-field input:focus-visible,.sr-field select:focus-visible,.sr-field textarea:focus-visible,.sr-wrap button:focus-visible,.sr-form button:focus-visible { outline:2px solid #476e48;outline-offset:2px }
.sr-form-actions { flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:2px }
.sr-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:10px }
.sr-form .sr-error { color:#8c3326;background:#fff0e8;border-radius:6px;padding:8px 10px;font-size:13px }
.sr-form [hidden],.sr-wrap [hidden] { display:none!important }
.sr-form .sr-line { margin:0;padding:8px 0 }
.sr-form .sr-line p { font-size:12px }
.sr-note,.sr-quote { white-space:pre-wrap;overflow-wrap:anywhere }
.sr-quote { margin:0;padding:11px 14px;border-left:3px solid #bc8547;background:#f8f5eb;font-size:14px;line-height:1.5 }
@media(max-width:650px){
.sr-top { margin:0 0 21px }
.sr-grid { grid-template-columns:1fr }
.sr-tools { align-items:flex-start }
.sr-panel { padding:18px }
.sr-role { padding:18px }
.sr-line { align-items:flex-start;gap:10px;flex-wrap:wrap }
.sr-line-actions { justify-content:flex-start }
.sr-form-grid { grid-template-columns:1fr }
}
.rr-tabs {display:flex;flex-wrap:wrap;gap:5px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.rr-tabs a {padding:10px 13px;border-bottom:3px solid transparent;font-size:14px;font-weight:650;color:var(--muted)}
.rr-tabs a[aria-current=page] {color:var(--forest);border-color:var(--forest)}
.rr-row {display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 19px}
.rr-row .rr-icon {width:43px;height:43px;font-size:15px}.rr-badges {display:flex;flex-wrap:wrap;gap:5px;margin:3px 0}
.rr-badge {font-size:11px;font-weight:650;background:#e6eddf;color:#365036;padding:3px 8px;border-radius:5px}
.rr-badges small {color:var(--muted)}.rr-status {color:#76541d!important}
.rr-profile-link {color:var(--sr-ink);text-decoration:underline;text-decoration-color:#819783;text-underline-offset:.2em}
.rr-profile-link:hover,.rr-profile-link:focus-visible {text-decoration-color:currentColor}
.sr-wrap.mp-wrap {max-width:54rem}
.mp-wrap>.sr-external {font-size:.875rem}
.mp-identity {display:flex;align-items:center;gap:1rem;margin:1.5rem 0 .75rem}
.mp-identity .sr-avatar {width:3.5rem;height:3.5rem;font-size:1.125rem;overflow:hidden}
.mp-identity h1 {margin:0;font:500 clamp(2rem,4vw,3rem)/1.1 'DM Serif Text',Georgia,serif;letter-spacing:-.035em;overflow-wrap:anywhere}
.mp-identity p,.mp-intro {color:var(--sr-muted);line-height:1.5;margin:.3rem 0 0}
.mp-intro {font-size:1rem;margin:0 0 1.35rem;max-width:65ch}
.mp-panel-head,.mp-entry-head {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1rem}
.mp-panel-head {align-items:center;margin-bottom:.8rem}
.mp-panel-head h2 {margin:0;font-size:1.5rem}
.mp-panel .mp-prose,.mp-panel .mp-hint {margin:0;font-size:1rem;line-height:1.6}
.mp-panel .mp-prose {white-space:pre-wrap;overflow-wrap:anywhere;color:var(--sr-ink)}
.mp-entries {padding:0;margin:0;list-style:none}
.mp-entries li+li {margin-top:1rem;border-top:1px solid var(--sr-rule);padding-top:1rem}
.mp-entry-head>div:first-child {min-width:0;flex:1 1 14rem}
.mp-entry-head h3 {font-family:inherit;font-size:1.06rem;font-weight:650;line-height:1.4;margin:0;overflow-wrap:anywhere}
.mp-entry-meta {font-size:.9rem;color:var(--sr-muted);margin:.2rem 0 0;overflow-wrap:anywhere}
.mp-entry-actions {display:flex;gap:1rem;align-items:center}
.mp-panel .mp-entry-head+.mp-prose {margin-top:.45rem}
.mp-wrap .sr-button {font-size:.9rem}
.mp-wrap a:focus-visible {outline:2px solid #476e48;outline-offset:3px}
.rr-list>.sr-empty {list-style:none;padding:18px}.rr-wrap .ev-tools {margin-top:16px}
[data-training] {display:grid;gap:12px}.lr-dates input[type=date] {width:100%;max-width:20em}
@media(max-width:600px){.rr-row{gap:9px;padding:12px;grid-template-columns:34px minmax(0,1fr) auto}.rr-row .rr-icon{width:32px;height:32px}.rr-tabs a{padding:8px;font-size:13px}}

.rr-access {margin-bottom:20px}
.rr-access>p,.rr-access details>p {color:var(--muted);margin:6px 0 12px}
.rr-access details {border-top:1px solid var(--line);padding-top:10px;margin-top:12px}
.rr-access summary {cursor:pointer;font-weight:650}
/* A shared set of content tracks aligns neighboring role cards even when text wraps. */
@media(min-width:651px){
  .sr-role{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:8px;align-items:start}
  .sr-role-top{grid-row:1;align-items:baseline;margin:0}
  .sr-role h3{grid-row:2;margin:0;overflow-wrap:anywhere}
  .sr-description{grid-row:3;margin:0;padding-bottom:6px}
  .sr-assignee{grid-row:4}
  .sr-reports{grid-row:5;margin:0}
  .sr-actions{grid-row:6;margin:4px 0 0;padding-top:12px;flex-wrap:wrap}
}
@media(max-width:650px){.sr-description{flex:initial}.sr-role-top{align-items:baseline}}
.notice-pref{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;cursor:pointer}
.notice-pref+.notice-pref{border-top:1px solid var(--sr-rule)}
.notice-pref span{display:grid;gap:4px}.notice-pref strong{font-size:14px}.notice-pref small,.sr-panel .notice-help{color:var(--sr-muted);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.notice-pref input{appearance:none;flex:none;width:38px;height:22px;border:1px solid #819085;border-radius:12px;background:#eef1eb;position:relative;cursor:pointer}
.notice-pref input::after{content:"";position:absolute;left:3px;top:3px;height:14px;width:14px;border-radius:50%;background:#68766c}
.notice-pref input:checked{background:#315b45;border-color:#315b45}.notice-pref input:checked::after{left:19px;background:#fff}
.notice-pref input:focus-visible{outline:2px solid #b68242;outline-offset:3px}.notice-pref input:disabled{opacity:.55}
