/*
 * Scouts 320 portal skin for Filament.
 * Mirrors the public site (assets/site.css in graphicmes/scout320): same palette,
 * DM Sans body, Fraunces headings, squared corners, forest header.
 * Hand-written on purpose: no npm / Vite build. If a Filament upgrade renames a
 * class, only cosmetics change — nothing here affects behaviour.
 */
:root {
    --navy: #222a1f;   /* forest: header, login backdrop */
    --paper: #f6f0e1;  /* page background */
    --card: #fbf7ec;   /* panels, tables */
    --cream: #ece2cb;
    --line: #d8ccb0;
    --ink: #2a251d;
    --muted: #6b6455;
    --bark: #5b4330;
    --gold: #d99a2b;
    --green: #3b6b44;
    --clay: #a8491f;
    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---- Page & text ------------------------------------------------------- */
body.fi-body,
.fi-body {
    background: var(--paper);
    color: var(--ink);
}

.fi-header-heading,
.fi-section-header-heading,
.fi-simple-header-heading,
.fi-modal-heading,
.fi-wi-stats-overview-stat-value,
.fi-ta-header-heading {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
}

/* ---- Brand lockup (same shape as the public site's header) -------------- */
.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.portal-brand-mark {
    width: 44px;
    height: 52px;
    flex: none;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    padding-bottom: 6px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%);
}
.portal-brand-copy strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--cream);
}
.portal-brand-copy .portal-brand-sub {
    display: block;
    margin-top: 0.1rem;
    color: #f0c46a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- Top bar & sidebar: forest, like the site's dark sections ----------- */
.fi-topbar {
    background: var(--chrome, var(--navy));
    border-bottom: 3px solid var(--chrome-line, var(--bark));
    box-shadow: none;
    --tw-ring-color: transparent;
}
.fi-topbar .fi-icon-btn,
.fi-topbar .fi-topbar-item-btn,
.fi-topbar .fi-user-menu-trigger,
.fi-topbar button {
    color: var(--cream);
}
.fi-topbar .fi-topbar-item-label,
.fi-topbar .fi-topbar-item-icon {
    color: var(--cream);
}
.fi-topbar .fi-topbar-item.fi-active .fi-topbar-item-btn {
    background: rgba(255, 255, 255, 0.1);
}

.fi-sidebar,
.fi-sidebar-header {
    background: var(--chrome-deep, var(--navy));
    --tw-ring-color: transparent;
}
.fi-sidebar-header {
    border-bottom: 3px solid var(--chrome-line, var(--bark));
}
.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item-icon,
.fi-sidebar .fi-sidebar-group-label,
.fi-sidebar .fi-sidebar-group-collapse-button {
    color: var(--cream);
}
.fi-sidebar .fi-sidebar-group-label {
    color: #bdb39a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}
.fi-sidebar-item-btn {
    border-radius: 4px;
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: rgba(217, 154, 43, 0.18);
    box-shadow: inset 3px 0 0 var(--gold);
}
.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #f0c46a;
}

/* ---- Cards, tables, widgets: parchment cards with a tan border ---------- */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-fo-field-wrp-has-card,
.fi-in-ctn {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(43, 32, 18, 0.08);
    --tw-ring-color: transparent;
}
.fi-ta-header-cell,
.fi-ta-table thead tr {
    background: var(--cream);
}
.fi-ta-header-cell-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bark);
}

/* Stats cards sit on the page directly; drop the extra frame Filament wraps around them. */
.fi-wi-stats-overview .fi-section {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.fi-wi-stats-overview .fi-section-content-ctn {
    padding: 0;
}

/* ---- Buttons: squared, slight bottom edge (like the site's .btn) -------- */
.fi-btn {
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.fi-btn.fi-color-primary:not(.fi-outlined) {
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
.fi-input-wrp,
.fi-fo-select,
.fi-badge {
    border-radius: 4px;
}

/* ---- Login / simple layout: forest backdrop, parchment card ------------- */
.fi-simple-layout {
    background: var(--navy);
}
.fi-simple-main {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    --tw-ring-color: transparent;
}
.fi-simple-layout .portal-brand-copy strong {
    color: var(--ink);
}
.fi-simple-layout .portal-brand-copy .portal-brand-sub {
    color: var(--clay);
}
.fi-simple-header-heading {
    font-size: 1.5rem;
}

/* ---- Phone width ------------------------------------------------------- */
@media (max-width: 640px) {
    .portal-brand-copy strong {
        font-size: 1.1rem;
    }
    .portal-brand-copy .portal-brand-sub {
        font-size: 0.7rem;
    }
    .fi-header-heading {
        font-size: 1.5rem;
    }
}

/* Keep line breaks in plain-text values (event descriptions, member details). */
.portal-prewrap {
    white-space: pre-line;
}

/* A cancelled event or meeting: still listed, clearly struck through. */
.portal-cancelled {
    text-decoration: line-through;
    opacity: 0.65;
}

/* ---- Family dashboard: "Your leaders" cards ---- */
.portal-leaders-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.portal-leaders-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.portal-leaders-card--pack { border-top-color: var(--gold); }
.portal-leaders-card--troop { border-top-color: var(--green); }
.portal-leaders-person { display: flex; flex-direction: column; margin-top: 0.5rem; }
.portal-leaders-person span { font-size: 0.8rem; color: var(--muted); }
.portal-leaders-empty { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }

/* ---- Event form: public vs members-only sides, equally prominent ---- */
.portal-audience {
    background: var(--cream);
    border: 1px solid var(--line);
    border-top-width: 5px;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.75rem;
    align-content: start;
}
.portal-audience--public { border-top-color: var(--green); }
.portal-audience--members { border-top-color: var(--clay); }
.portal-audience .fi-badge { font-weight: 800; letter-spacing: 0.08em; }

/* ---- RSVP summary on the leader's event page: big numbers first, detail on request ---- */
.portal-rsvp-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.portal-rsvp-grid--big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-rsvp-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-rsvp-box {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.portal-rsvp-box--yes { border-top: 4px solid var(--green); }
.portal-rsvp-box--short { padding: 0.5rem 1rem; display: flex; align-items: baseline; justify-content: space-between; }
.portal-rsvp-box--short .portal-rsvp-number { font-size: 1.5rem; }
.portal-rsvp-box--na { border-style: dashed; background: transparent; }
.portal-rsvp-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bark);
    font-weight: 700;
}
.portal-rsvp-number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--ink);
}
.portal-rsvp-note { font-size: 0.75rem; color: var(--muted); }
.portal-rsvp-details {
    margin-top: 0.25rem;
    border-top: 1px solid var(--line);
    padding-top: 0.6rem;
}
.portal-rsvp-details summary { cursor: pointer; font-weight: 700; color: var(--green); }
.portal-rsvp-details dl { margin-top: 0.6rem; }
.portal-rsvp-details dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bark); font-weight: 700; margin-top: 0.6rem; }
.portal-rsvp-details dd { margin: 0.1rem 0 0; }
@media (max-width: 520px) {
    .portal-rsvp-number { font-size: 2rem; }
    .portal-rsvp-box { padding: 0.6rem 0.7rem; }
}

/* ---- June rollover preview ---- */
.portal-rollover-list { margin: 0.5rem 0 0.75rem 1.1rem; list-style: disc; }
.portal-rollover-note { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }

/* ---- Leader dashboard: purge-date warning ---- */
.portal-purge-warning {
    background: #fbefd5;
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    color: var(--ink);
}
.portal-purge-warning p { margin: 0.3rem 0 0.5rem; font-size: 0.9rem; }
.portal-purge-warning ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.portal-purge-warning a { font-weight: 700; text-decoration: underline; color: var(--clay); }
.portal-purge-overdue { color: var(--clay); font-weight: 700; }

/* ---- Family "Links & documents": three sections of cards ---- */
.portal-lib-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.portal-lib-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-top: 5px solid var(--navy);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.portal-lib-card--bsa { border-top-color: var(--gold); }
.portal-lib-card--general { border-top-color: var(--bark); }
.portal-lib-card--documents { border-top-color: var(--green); }
.portal-lib-head { display: flex; gap: 0.6rem; align-items: flex-start; }
.portal-lib-icon { color: var(--bark); flex: none; padding-top: 0.1rem; }
.portal-lib-desc { font-size: 0.85rem; color: var(--muted); margin: 0; }
.portal-lib-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); }
.portal-lib-tag { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.45rem; }
.portal-lib-button {
    margin-top: auto;
    align-self: flex-start;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
.portal-lib-button:hover { filter: brightness(1.1); }

/* ---- Family calendar subscription ---- */
.portal-subscribe p { margin-bottom: 0.6rem; }
.portal-subscribe-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0; }
.portal-subscribe-copy { display: flex; gap: 0.5rem; align-items: center; margin: 0.4rem 0 0.8rem; }
.portal-subscribe-copy input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    background: #fff;
    font-size: 0.8rem;
}
.portal-subscribe-copy .portal-lib-button { margin-top: 0; }

/* ---- Family photos ---- */
.portal-album-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.portal-album-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 8px 20px rgba(43, 32, 18, 0.08);
}
.portal-album-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.portal-album-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; padding: 0.7rem 0.9rem 0; }
.portal-album-meta { color: var(--muted); font-size: 0.8rem; padding: 0.1rem 0.9rem 0.8rem; }
.portal-photo-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); margin-top: 0.75rem; }
.portal-photo-thumb { padding: 0; border: 0; background: var(--cream); border-radius: 6px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.portal-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 10, 0.92); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.portal-lightbox-inner { max-width: min(96vw, 1200px); max-height: 96vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.portal-lightbox-inner img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 4px; }
.portal-lightbox-caption { color: var(--cream); margin: 0; text-align: center; }
.portal-lightbox-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; color: var(--cream); font-size: 0.85rem; }
.portal-lightbox-bar .portal-lib-button { margin-top: 0; }
.portal-lightbox-link { background: none; border: 0; color: var(--cream); text-decoration: underline; cursor: pointer; font-size: 0.85rem; }

/* ---- Family "Den roster" ---- */
.portal-roster-leaders { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; margin-bottom: 1rem; }
.portal-roster-leader span { font-size: 0.8rem; color: var(--muted); margin-left: 0.25rem; }
/* One block per family: the scouts on the left, then one line per parent with THEIR phone beside them. */
.portal-roster-list { display: grid; }
.portal-roster-family { display: grid; grid-template-columns: minmax(11rem, 1fr) 2fr; gap: 0.4rem 1.5rem; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); }
.portal-roster-family--mine { background: #fbf2dc; border-radius: 8px; }
.portal-roster-parent { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 1rem; padding: 0.2rem 0; }
.portal-roster-parent + .portal-roster-parent { border-top: 1px dotted var(--line); }
.portal-roster-parent-name { font-weight: 600; }
.portal-roster-list a { color: var(--green); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) {
    .portal-roster-family { grid-template-columns: 1fr; }
}

.portal-login-join { margin: 1.25rem 0 0; padding: 1rem 1.1rem; border: 2px solid var(--green, #3b6b44); border-radius: 10px; background: #fff; color: var(--ink, #222a1f); text-align: center; }
.portal-login-join strong { display: block; font-size: 1.05rem; }
.portal-login-join p { margin: 0.35rem 0 0.8rem; font-size: 0.92rem; }
.portal-login-join-button { display: inline-block; padding: 0.6rem 1.2rem; border-radius: 8px; background: var(--green, #3b6b44); color: #fff; font-weight: 700; text-decoration: none; }
.portal-login-join-button:hover { background: #305738; }

/* User menu: extra room above Sign out (the last list) so a quick tap on Switch or Profile cannot land on it. */
.fi-dropdown-panel .fi-dropdown-list + .fi-dropdown-list { margin-top: 0.6rem; padding-top: 0.5rem; }

/* Family dashboard: dues reminder banner. Amber when dues run out within 90 days, red within 45 days or expired. */
.portal-dues-notice { padding: 1rem 1.2rem; border: 2px solid #c98a1b; border-radius: 10px; background: #fff8e8; color: var(--ink, #222a1f); }
.portal-dues-notice.is-urgent { border-color: #b3261e; background: #fff; }
.portal-dues-notice strong { display: block; font-size: 1.1rem; }
.portal-dues-notice ul { margin: 0.5rem 0 0.4rem 1.2rem; list-style: disc; }
.portal-dues-who { font-weight: 700; }
.portal-dues-notice p { margin: 0; font-size: 0.9rem; }
.portal-dues-notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.portal-dues-line { margin: 0 0 0.6rem; }
.portal-dues-line b { display: block; font-size: 0.78rem; margin-bottom: 0.15rem; }
.portal-dues-line small { display: block; margin-top: 0.15rem; color: var(--muted, #6b6455); }
.portal-dues-pill { display: inline-block; white-space: normal; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: #ece2cb; color: #41382c; }
.portal-dues-pill.is-success { background: #d8e8db; color: #1f3825; }
.portal-dues-pill.is-warning { background: #f7e3b3; color: #6b4a00; }
.portal-dues-pill.is-danger { background: #f6d4d1; color: #7a1a14; }

/* Event fees (leader summary and family notice). */
.portal-fee-grid { margin-top: 0.75rem; }
.portal-rsvp-box--owed { border-color: #c98a1b; background: #fff8e8; }
.portal-fee-refund { margin: 0.5rem 0 0; color: #7a1a14; font-weight: 600; }
.portal-fee-grid .portal-rsvp-box { gap: 0.75rem; }
.portal-fee-grid .portal-rsvp-number { font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.portal-fee-grid .portal-rsvp-box { min-width: 0; height: auto; }

/* Event status: three big buttons at the top and bottom of the event page and edit form. */
.portal-status-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; padding: 0.75rem 1rem; border: 2px solid var(--line, #d8ccb0); border-radius: 12px; background: #fff; }
.portal-status-bar-title { flex: 0 0 100%; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #6b6455); }
.portal-status-btn { flex: 1 1 9rem; display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.9rem; border: 2px solid var(--line, #d8ccb0); border-radius: 10px; background: #faf6ec; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.portal-status-btn strong { font-size: 1.05rem; }
.portal-status-btn small { font-size: 0.78rem; opacity: 0.8; }
button.portal-status-btn:hover { border-color: #5b4330; background: #f6f0e1; }
.portal-status-btn.is-current { cursor: default; color: #fff; }
.portal-status-btn.is-current.is-draft { background: #b8860b; border-color: #b8860b; }
.portal-status-btn.is-current.is-live { background: #3b6b44; border-color: #3b6b44; }
.portal-status-btn.is-current.is-cancelled { background: #b3261e; border-color: #b3261e; }

/* Event form: let the left card stretch to the height of the right-hand stack (Where + flyer upload). */
.portal-fill-height { height: 100%; }
.portal-fill-height > .fi-grid, .portal-fill-height .fi-grid-col, .portal-fill-height .fi-sc-component, .portal-fill-height .fi-sc-section, .portal-fill-height .fi-section { height: 100%; }

/* Event fee callout (family RSVP pop-up and event page): the total, big, with its state. */
.portal-fee-callout { padding: 1rem 1.2rem; border: 2px solid #d99a2b; border-radius: 12px; background: #fff; color: var(--ink, #222a1f); }
.portal-fee-callout.is-paid, .portal-fee-callout.is-waived { border-color: #3b6b44; background: #fff; }
.portal-fee-callout.is-none { border-color: #a89c84; background: #fff; }
.portal-fee-callout.is-refund { border-color: #b3261e; background: #fff; }
.portal-fee-callout-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.portal-fee-callout-amount { font-family: 'Fraunces', Georgia, serif; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.portal-fee-callout-sub { margin-top: 0.15rem; font-weight: 600; }
.portal-fee-callout-lines { margin-top: 0.5rem; font-size: 0.95rem; }
.portal-fee-callout-how { margin-top: 0.5rem; font-size: 0.9rem; }
.portal-fee-callout-how em { display: block; opacity: 0.8; }

/* Payment history list (leader side). */
.portal-pay-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.portal-pay-table th, .portal-pay-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line, #d8ccb0); text-align: left; vertical-align: top; }
.portal-pay-table .portal-pay-amt { text-align: right; font-weight: 700; white-space: nowrap; }
.portal-pay-table tr.is-voided td { text-decoration: line-through; opacity: 0.6; }
.portal-pay-table tr.is-voided em { text-decoration: none; display: inline-block; }
.portal-pay-table tfoot td { font-weight: 700; border-bottom: 0; }
.portal-pay-empty { color: var(--muted, #6b6455); }

.portal-pay-table .portal-pay-amt.is-refund { color: #b3261e; }


/* ==========================================================================
   Design polish (2026-11): the public site's type system, accents and texture, in the portal.
   Labels are small uppercase, values bold, headlines Fraunces, cards carry the program color, banners get the
   topographic texture. Hand-written like everything else here: no build step.
   ========================================================================== */
:root { --portal-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' fill='none' stroke='white' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M110.9,105.0 L110.6,108.3 L110.3,111.8 L109.9,115.9 L108.6,120.1 L105.6,123.4 L101.4,124.8 L97.0,124.3 L93.1,122.9 L89.7,121.5 L86.4,119.9 L83.5,117.7 L81.4,114.9 L80.0,111.7 L78.8,108.4 L77.6,105.0 L77.0,101.2 L77.8,97.4 L80.1,94.2 L83.1,91.8 L86.2,89.7 L89.3,87.5 L93.0,85.5 L97.1,84.9 L101.1,86.2 L104.3,88.9 L106.6,92.1 L108.5,95.2 L110.0,98.3 L110.9,101.6Z'/%3E%3Cpath d='M129.2,105.0 L130.9,112.6 L131.1,121.1 L128.0,129.0 L121.5,134.4 L113.3,136.7 L105.4,137.0 L98.3,136.8 L91.7,136.2 L85.4,134.6 L79.6,131.7 L74.1,128.2 L68.3,124.4 L62.0,119.7 L56.7,113.1 L54.5,105.0 L56.6,96.8 L61.5,90.1 L67.0,84.6 L72.2,79.6 L77.6,74.9 L84.2,71.7 L91.4,70.8 L98.5,72.0 L105.1,74.0 L111.6,76.3 L117.9,79.6 L122.9,84.7 L126.0,91.2 L127.7,98.1Z'/%3E%3Cpath d='M145.4,105.0 L149.4,116.6 L148.3,128.7 L142.1,139.3 L133.2,147.4 L123.1,153.7 L112.1,157.8 L100.6,158.5 L89.7,155.3 L80.4,149.8 L72.2,144.6 L63.4,140.1 L54.1,134.7 L46.6,126.5 L43.3,116.0 L44.0,105.0 L46.4,94.7 L48.7,84.4 L51.7,73.6 L57.5,63.3 L66.6,55.8 L77.7,51.9 L89.3,50.7 L100.7,51.2 L111.6,54.0 L120.9,60.1 L127.2,69.3 L130.7,79.1 L133.9,87.7 L139.1,95.6Z'/%3E%3Cpath d='M171.1,105.0 L164.4,119.8 L155.9,132.1 L148.3,143.7 L140.5,155.6 L130.0,165.7 L116.5,171.1 L102.0,171.2 L88.3,168.3 L75.5,165.0 L62.5,161.3 L50.0,155.0 L39.7,145.2 L32.2,133.0 L26.1,119.6 L20.7,105.0 L18.0,88.6 L21.7,72.3 L32.9,59.8 L48.4,53.3 L63.7,50.8 L76.8,48.9 L88.8,45.8 L101.5,43.3 L114.9,43.8 L128.0,47.8 L140.8,54.1 L153.7,62.3 L165.2,73.7 L171.8,88.7Z'/%3E%3Cpath d='M193.9,105.0 L189.8,125.2 L180.1,142.9 L167.7,157.8 L153.3,169.7 L136.5,176.9 L118.9,178.5 L102.6,177.0 L87.5,176.6 L71.1,178.6 L52.0,179.5 L32.9,174.0 L18.4,160.7 L10.7,142.5 L7.7,123.6 L6.5,105.0 L7.3,86.4 L12.6,68.3 L23.7,53.2 L38.4,42.1 L53.8,33.6 L69.3,26.1 L86.1,20.7 L103.9,20.8 L120.1,27.6 L133.6,38.2 L146.0,48.4 L160.3,57.5 L176.3,68.8 L189.2,85.0Z'/%3E%3Cpath d='M181.4,105.0 L181.3,123.3 L181.3,143.4 L176.1,163.9 L163.8,181.4 L146.8,194.8 L127.6,205.4 L106.4,213.6 L83.3,216.5 L60.6,210.8 L41.6,197.5 L26.7,180.9 L13.2,164.5 L-0.2,147.4 L-10.2,127.4 L-11.7,105.0 L-3.4,84.1 L10.0,67.2 L22.9,52.6 L33.9,37.2 L46.4,20.8 L63.1,7.0 L83.8,-1.1 L106.4,-3.7 L129.9,-2.4 L153.6,3.5 L174.3,17.0 L186.8,38.3 L189.1,63.1 L185.0,85.9Z'/%3E%3Cpath d='M198.6,105.0 L197.1,126.7 L197.1,150.5 L195.4,177.9 L185.3,205.3 L164.3,225.0 L136.4,232.4 L108.2,230.2 L82.4,224.6 L58.2,218.4 L34.9,209.0 L15.2,193.6 L1.6,172.9 L-7.3,150.5 L-14.6,128.3 L-20.6,105.0 L-21.4,80.3 L-13.3,56.8 L2.0,37.4 L19.4,21.1 L36.6,3.8 L56.0,-15.1 L80.8,-29.9 L109.5,-33.2 L136.5,-22.7 L157.6,-3.5 L173.5,17.9 L186.1,38.8 L195.3,60.3 L199.3,82.8Z'/%3E%3Cpath d='M245.3,105.0 L239.8,135.8 L228.7,164.5 L210.0,188.5 L183.9,203.7 L155.3,209.4 L129.7,211.7 L106.9,217.8 L82.0,228.6 L52.3,236.6 L21.0,233.1 L-5.4,216.5 L-24.6,191.9 L-38.4,164.4 L-48.0,135.4 L-50.8,105.0 L-43.5,75.6 L-27.6,50.4 L-8.7,29.6 L9.4,9.9 L28.6,-10.0 L52.5,-25.8 L80.7,-30.9 L108.6,-24.7 L133.4,-13.2 L157.3,-2.9 L183.7,6.5 L211.1,20.7 L232.9,43.6 L244.1,73.3Z'/%3E%3Cpath d='M264.9,105.0 L267.9,141.8 L254.0,175.8 L228.5,202.0 L199.2,220.7 L169.8,234.5 L139.8,242.9 L109.5,243.3 L81.2,236.8 L54.7,228.9 L26.4,223.9 L-7.0,218.3 L-41.4,204.1 L-66.5,176.9 L-75.5,141.2 L-70.5,105.0 L-59.5,72.2 L-46.9,41.8 L-30.7,13.7 L-7.7,-9.1 L20.9,-23.4 L50.7,-31.2 L80.1,-37.1 L110.5,-42.0 L142.3,-40.7 L171.8,-28.0 L194.4,-5.4 L211.5,20.3 L228.8,45.4 L248.7,72.3Z'/%3E%3Cpath d='M279.4,255.0 L278.3,257.8 L277.0,260.3 L275.4,262.6 L273.4,264.3 L271.1,265.5 L268.8,266.6 L266.4,267.9 L263.5,269.4 L260.1,270.1 L256.8,269.2 L254.3,266.9 L252.9,263.8 L252.1,260.7 L251.6,257.8 L251.4,255.0 L251.9,252.2 L253.1,249.7 L254.7,247.5 L256.3,245.4 L258.2,243.2 L260.6,241.4 L263.5,240.7 L266.5,241.1 L269.2,242.1 L271.9,243.1 L274.7,244.2 L277.5,245.9 L279.5,248.6 L280.0,251.8Z'/%3E%3Cpath d='M299.8,255.0 L297.8,262.0 L293.5,267.7 L288.6,272.1 L284.2,276.3 L279.8,280.7 L274.6,284.5 L268.3,286.0 L261.9,284.9 L256.1,282.3 L250.8,279.6 L245.3,276.9 L239.9,273.2 L235.7,268.1 L233.2,261.7 L232.2,255.0 L232.1,248.0 L233.3,240.9 L236.9,234.6 L242.9,230.5 L250.1,229.3 L256.8,229.7 L262.3,229.7 L267.8,228.7 L273.9,227.7 L280.3,228.5 L286.2,231.4 L291.3,235.9 L295.6,241.4 L298.8,247.8Z'/%3E%3Cpath d='M311.5,255.0 L314.3,265.5 L314.7,277.1 L310.4,288.0 L301.4,295.4 L290.2,298.6 L279.4,299.4 L269.7,300.1 L260.2,300.9 L250.5,299.8 L241.6,295.5 L234.6,288.8 L228.8,281.3 L223.4,273.5 L218.8,264.8 L216.7,255.0 L218.0,245.0 L221.9,235.8 L226.4,227.0 L231.3,217.6 L238.2,208.5 L247.9,202.4 L259.4,201.7 L270.2,206.0 L278.9,212.3 L286.2,218.3 L293.2,223.7 L299.6,229.9 L304.6,237.4 L308.2,245.8Z'/%3E%3Cpath d='M324.3,255.0 L321.3,267.0 L318.6,278.9 L315.6,291.8 L309.6,304.6 L299.1,314.1 L285.6,318.3 L271.7,318.7 L258.4,318.2 L244.5,318.0 L230.0,315.7 L216.8,308.5 L207.8,296.6 L203.4,282.4 L202.0,268.4 L202.1,255.0 L204.6,242.2 L210.6,230.8 L219.1,221.6 L227.9,213.8 L235.9,204.6 L245.0,193.5 L257.5,183.6 L272.9,179.5 L288.2,183.5 L300.7,193.2 L310.1,204.9 L317.7,216.7 L323.3,229.1 L325.6,242.1Z'/%3E%3Cpath d='M345.8,255.0 L345.9,272.2 L343.8,290.1 L337.7,307.8 L325.7,322.4 L308.9,331.0 L290.6,333.7 L273.3,334.2 L256.6,335.0 L239.1,334.6 L222.3,329.0 L209.4,316.8 L202.0,300.8 L197.9,284.9 L193.9,270.1 L189.4,255.0 L187.3,238.5 L190.1,221.6 L197.2,205.7 L207.1,190.7 L219.5,176.2 L235.7,164.8 L255.1,161.0 L274.2,167.1 L289.4,179.8 L300.7,193.1 L311.2,203.6 L323.0,212.8 L334.5,224.0 L342.5,238.5Z'/%3E%3Cpath d='M370.2,255.0 L374.4,278.3 L368.2,301.0 L354.3,319.9 L336.7,334.6 L317.3,345.5 L296.2,351.0 L274.9,349.2 L255.9,341.8 L239.4,333.7 L222.7,328.3 L203.1,323.7 L183.0,314.6 L168.0,298.2 L161.8,276.9 L162.6,255.0 L166.2,234.0 L171.3,213.3 L180.1,193.3 L194.9,177.1 L214.2,166.9 L234.7,161.6 L254.9,158.5 L275.3,157.3 L295.5,161.1 L312.8,172.3 L325.0,188.4 L334.0,204.8 L344.5,219.6 L358.0,235.2Z'/%3E%3Cpath d='M377.0,255.0 L371.3,277.6 L366.2,300.1 L361.2,324.9 L350.8,350.3 L331.4,370.0 L305.3,379.1 L277.9,378.0 L252.8,371.5 L230.1,362.3 L210.3,349.7 L195.0,332.7 L184.6,313.4 L175.5,294.8 L163.6,276.6 L149.5,255.0 L140.3,228.5 L143.2,200.8 L158.9,177.9 L181.7,162.4 L205.5,151.9 L228.8,143.6 L252.8,138.7 L277.0,140.6 L299.3,149.6 L318.6,162.1 L337.0,175.0 L355.4,189.3 L370.9,207.9 L378.4,230.9Z'/%3E%3C/svg%3E"); --portal-topo-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' fill='none' stroke='%232a251d' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M110.9,105.0 L110.6,108.3 L110.3,111.8 L109.9,115.9 L108.6,120.1 L105.6,123.4 L101.4,124.8 L97.0,124.3 L93.1,122.9 L89.7,121.5 L86.4,119.9 L83.5,117.7 L81.4,114.9 L80.0,111.7 L78.8,108.4 L77.6,105.0 L77.0,101.2 L77.8,97.4 L80.1,94.2 L83.1,91.8 L86.2,89.7 L89.3,87.5 L93.0,85.5 L97.1,84.9 L101.1,86.2 L104.3,88.9 L106.6,92.1 L108.5,95.2 L110.0,98.3 L110.9,101.6Z'/%3E%3Cpath d='M129.2,105.0 L130.9,112.6 L131.1,121.1 L128.0,129.0 L121.5,134.4 L113.3,136.7 L105.4,137.0 L98.3,136.8 L91.7,136.2 L85.4,134.6 L79.6,131.7 L74.1,128.2 L68.3,124.4 L62.0,119.7 L56.7,113.1 L54.5,105.0 L56.6,96.8 L61.5,90.1 L67.0,84.6 L72.2,79.6 L77.6,74.9 L84.2,71.7 L91.4,70.8 L98.5,72.0 L105.1,74.0 L111.6,76.3 L117.9,79.6 L122.9,84.7 L126.0,91.2 L127.7,98.1Z'/%3E%3Cpath d='M145.4,105.0 L149.4,116.6 L148.3,128.7 L142.1,139.3 L133.2,147.4 L123.1,153.7 L112.1,157.8 L100.6,158.5 L89.7,155.3 L80.4,149.8 L72.2,144.6 L63.4,140.1 L54.1,134.7 L46.6,126.5 L43.3,116.0 L44.0,105.0 L46.4,94.7 L48.7,84.4 L51.7,73.6 L57.5,63.3 L66.6,55.8 L77.7,51.9 L89.3,50.7 L100.7,51.2 L111.6,54.0 L120.9,60.1 L127.2,69.3 L130.7,79.1 L133.9,87.7 L139.1,95.6Z'/%3E%3Cpath d='M171.1,105.0 L164.4,119.8 L155.9,132.1 L148.3,143.7 L140.5,155.6 L130.0,165.7 L116.5,171.1 L102.0,171.2 L88.3,168.3 L75.5,165.0 L62.5,161.3 L50.0,155.0 L39.7,145.2 L32.2,133.0 L26.1,119.6 L20.7,105.0 L18.0,88.6 L21.7,72.3 L32.9,59.8 L48.4,53.3 L63.7,50.8 L76.8,48.9 L88.8,45.8 L101.5,43.3 L114.9,43.8 L128.0,47.8 L140.8,54.1 L153.7,62.3 L165.2,73.7 L171.8,88.7Z'/%3E%3Cpath d='M193.9,105.0 L189.8,125.2 L180.1,142.9 L167.7,157.8 L153.3,169.7 L136.5,176.9 L118.9,178.5 L102.6,177.0 L87.5,176.6 L71.1,178.6 L52.0,179.5 L32.9,174.0 L18.4,160.7 L10.7,142.5 L7.7,123.6 L6.5,105.0 L7.3,86.4 L12.6,68.3 L23.7,53.2 L38.4,42.1 L53.8,33.6 L69.3,26.1 L86.1,20.7 L103.9,20.8 L120.1,27.6 L133.6,38.2 L146.0,48.4 L160.3,57.5 L176.3,68.8 L189.2,85.0Z'/%3E%3Cpath d='M181.4,105.0 L181.3,123.3 L181.3,143.4 L176.1,163.9 L163.8,181.4 L146.8,194.8 L127.6,205.4 L106.4,213.6 L83.3,216.5 L60.6,210.8 L41.6,197.5 L26.7,180.9 L13.2,164.5 L-0.2,147.4 L-10.2,127.4 L-11.7,105.0 L-3.4,84.1 L10.0,67.2 L22.9,52.6 L33.9,37.2 L46.4,20.8 L63.1,7.0 L83.8,-1.1 L106.4,-3.7 L129.9,-2.4 L153.6,3.5 L174.3,17.0 L186.8,38.3 L189.1,63.1 L185.0,85.9Z'/%3E%3Cpath d='M198.6,105.0 L197.1,126.7 L197.1,150.5 L195.4,177.9 L185.3,205.3 L164.3,225.0 L136.4,232.4 L108.2,230.2 L82.4,224.6 L58.2,218.4 L34.9,209.0 L15.2,193.6 L1.6,172.9 L-7.3,150.5 L-14.6,128.3 L-20.6,105.0 L-21.4,80.3 L-13.3,56.8 L2.0,37.4 L19.4,21.1 L36.6,3.8 L56.0,-15.1 L80.8,-29.9 L109.5,-33.2 L136.5,-22.7 L157.6,-3.5 L173.5,17.9 L186.1,38.8 L195.3,60.3 L199.3,82.8Z'/%3E%3Cpath d='M245.3,105.0 L239.8,135.8 L228.7,164.5 L210.0,188.5 L183.9,203.7 L155.3,209.4 L129.7,211.7 L106.9,217.8 L82.0,228.6 L52.3,236.6 L21.0,233.1 L-5.4,216.5 L-24.6,191.9 L-38.4,164.4 L-48.0,135.4 L-50.8,105.0 L-43.5,75.6 L-27.6,50.4 L-8.7,29.6 L9.4,9.9 L28.6,-10.0 L52.5,-25.8 L80.7,-30.9 L108.6,-24.7 L133.4,-13.2 L157.3,-2.9 L183.7,6.5 L211.1,20.7 L232.9,43.6 L244.1,73.3Z'/%3E%3Cpath d='M264.9,105.0 L267.9,141.8 L254.0,175.8 L228.5,202.0 L199.2,220.7 L169.8,234.5 L139.8,242.9 L109.5,243.3 L81.2,236.8 L54.7,228.9 L26.4,223.9 L-7.0,218.3 L-41.4,204.1 L-66.5,176.9 L-75.5,141.2 L-70.5,105.0 L-59.5,72.2 L-46.9,41.8 L-30.7,13.7 L-7.7,-9.1 L20.9,-23.4 L50.7,-31.2 L80.1,-37.1 L110.5,-42.0 L142.3,-40.7 L171.8,-28.0 L194.4,-5.4 L211.5,20.3 L228.8,45.4 L248.7,72.3Z'/%3E%3Cpath d='M279.4,255.0 L278.3,257.8 L277.0,260.3 L275.4,262.6 L273.4,264.3 L271.1,265.5 L268.8,266.6 L266.4,267.9 L263.5,269.4 L260.1,270.1 L256.8,269.2 L254.3,266.9 L252.9,263.8 L252.1,260.7 L251.6,257.8 L251.4,255.0 L251.9,252.2 L253.1,249.7 L254.7,247.5 L256.3,245.4 L258.2,243.2 L260.6,241.4 L263.5,240.7 L266.5,241.1 L269.2,242.1 L271.9,243.1 L274.7,244.2 L277.5,245.9 L279.5,248.6 L280.0,251.8Z'/%3E%3Cpath d='M299.8,255.0 L297.8,262.0 L293.5,267.7 L288.6,272.1 L284.2,276.3 L279.8,280.7 L274.6,284.5 L268.3,286.0 L261.9,284.9 L256.1,282.3 L250.8,279.6 L245.3,276.9 L239.9,273.2 L235.7,268.1 L233.2,261.7 L232.2,255.0 L232.1,248.0 L233.3,240.9 L236.9,234.6 L242.9,230.5 L250.1,229.3 L256.8,229.7 L262.3,229.7 L267.8,228.7 L273.9,227.7 L280.3,228.5 L286.2,231.4 L291.3,235.9 L295.6,241.4 L298.8,247.8Z'/%3E%3Cpath d='M311.5,255.0 L314.3,265.5 L314.7,277.1 L310.4,288.0 L301.4,295.4 L290.2,298.6 L279.4,299.4 L269.7,300.1 L260.2,300.9 L250.5,299.8 L241.6,295.5 L234.6,288.8 L228.8,281.3 L223.4,273.5 L218.8,264.8 L216.7,255.0 L218.0,245.0 L221.9,235.8 L226.4,227.0 L231.3,217.6 L238.2,208.5 L247.9,202.4 L259.4,201.7 L270.2,206.0 L278.9,212.3 L286.2,218.3 L293.2,223.7 L299.6,229.9 L304.6,237.4 L308.2,245.8Z'/%3E%3Cpath d='M324.3,255.0 L321.3,267.0 L318.6,278.9 L315.6,291.8 L309.6,304.6 L299.1,314.1 L285.6,318.3 L271.7,318.7 L258.4,318.2 L244.5,318.0 L230.0,315.7 L216.8,308.5 L207.8,296.6 L203.4,282.4 L202.0,268.4 L202.1,255.0 L204.6,242.2 L210.6,230.8 L219.1,221.6 L227.9,213.8 L235.9,204.6 L245.0,193.5 L257.5,183.6 L272.9,179.5 L288.2,183.5 L300.7,193.2 L310.1,204.9 L317.7,216.7 L323.3,229.1 L325.6,242.1Z'/%3E%3Cpath d='M345.8,255.0 L345.9,272.2 L343.8,290.1 L337.7,307.8 L325.7,322.4 L308.9,331.0 L290.6,333.7 L273.3,334.2 L256.6,335.0 L239.1,334.6 L222.3,329.0 L209.4,316.8 L202.0,300.8 L197.9,284.9 L193.9,270.1 L189.4,255.0 L187.3,238.5 L190.1,221.6 L197.2,205.7 L207.1,190.7 L219.5,176.2 L235.7,164.8 L255.1,161.0 L274.2,167.1 L289.4,179.8 L300.7,193.1 L311.2,203.6 L323.0,212.8 L334.5,224.0 L342.5,238.5Z'/%3E%3Cpath d='M370.2,255.0 L374.4,278.3 L368.2,301.0 L354.3,319.9 L336.7,334.6 L317.3,345.5 L296.2,351.0 L274.9,349.2 L255.9,341.8 L239.4,333.7 L222.7,328.3 L203.1,323.7 L183.0,314.6 L168.0,298.2 L161.8,276.9 L162.6,255.0 L166.2,234.0 L171.3,213.3 L180.1,193.3 L194.9,177.1 L214.2,166.9 L234.7,161.6 L254.9,158.5 L275.3,157.3 L295.5,161.1 L312.8,172.3 L325.0,188.4 L334.0,204.8 L344.5,219.6 L358.0,235.2Z'/%3E%3Cpath d='M377.0,255.0 L371.3,277.6 L366.2,300.1 L361.2,324.9 L350.8,350.3 L331.4,370.0 L305.3,379.1 L277.9,378.0 L252.8,371.5 L230.1,362.3 L210.3,349.7 L195.0,332.7 L184.6,313.4 L175.5,294.8 L163.6,276.6 L149.5,255.0 L140.3,228.5 L143.2,200.8 L158.9,177.9 L181.7,162.4 L205.5,151.9 L228.8,143.6 L252.8,138.7 L277.0,140.6 L299.3,149.6 L318.6,162.1 L337.0,175.0 L355.4,189.3 L370.9,207.9 L378.4,230.9Z'/%3E%3C/svg%3E"); --accent-pack: #d99a2b; --accent-troop: #3b6b44; --accent-shared: #5b4330; }

/* Page titles: the serif, bigger, tighter. */
.fi-header-heading { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.fi-header-subheading { margin-top: 0.4rem; font-size: 1.02rem; color: var(--muted); }

/* Dashboards and event pages open with a textured band, like the public site's page heroes. */
.fi-page:not([class*='fi-resource']):has(.fi-wi-widget) .fi-header, .fi-resource-view-record-page .fi-header {
    position: relative; overflow: hidden; margin-bottom: 1.25rem; padding: 1.4rem 1.6rem; border-radius: 16px;
    background: var(--chrome-deep, var(--navy)) var(--portal-topo); background-size: 360px; color: #fff;
}
.fi-page:not([class*='fi-resource']):has(.fi-wi-widget) .fi-header-heading, .fi-resource-view-record-page .fi-header-heading { color: #fff; }
.fi-page:not([class*='fi-resource']):has(.fi-wi-widget) .fi-header-subheading, .fi-resource-view-record-page .fi-header-subheading { color: rgba(255, 255, 255, 0.82); }
.fi-page:not([class*='fi-resource']):has(.fi-wi-widget) .fi-breadcrumbs-item-label, .fi-resource-view-record-page .fi-breadcrumbs-item-label, .fi-resource-view-record-page .fi-breadcrumbs svg { color: rgba(255, 255, 255, 0.75); }

/* Labels over values, the public site's way. */
.fi-in-entry-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.fi-in-entry-content { font-size: 1rem; font-weight: 600; color: var(--ink); }
.fi-section-header-heading { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }
.fi-section-header-description { font-size: 0.85rem; }

/* Cards: rounder, softer, with a program-colored edge where we set one. */
.fi-section { border-radius: 14px; box-shadow: 0 1px 2px rgba(42, 37, 29, 0.05), 0 6px 18px rgba(42, 37, 29, 0.06); }
/* Section headings sit on a tinted band with the faint contour pattern; program sections take the program tint. */
.fi-section > .fi-section-header { background: #efe6d0 var(--portal-topo-dark); background-size: 360px; background-position: 100% 0; }
.fi-wi-stats-overview .fi-section > .fi-section-header { background: none; }
.portal-accent--pack .fi-section > .fi-section-header { background-color: #f3e2b4; }
.portal-accent--troop .fi-section > .fi-section-header { background-color: #d4e4d6; }
.fi-section { overflow: hidden; }

/* Event header: date badge beside the title, chips under it. */
.portal-event-head { display: inline-flex; align-items: center; gap: 1rem; }
.portal-event-title { min-width: 0; }
.portal-date-badge { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 4.2rem; padding: 0.4rem 0.6rem; border-radius: 10px; background: #ece2cb; color: #2a251d; line-height: 1; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22); }
.portal-date-badge small { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; }
.portal-date-badge b { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin-top: 0.15rem; }
.portal-date-badge.is-pack { background: #f4d38e; }
.portal-date-badge.is-troop { background: #b9d6bd; }
.portal-chips { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.portal-chip { display: inline-block; padding: 0.18rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.portal-chip.is-live, .portal-chip.is-open { background: #3b6b44; border-color: #3b6b44; }
.portal-chip.is-draft { background: #b8860b; border-color: #b8860b; }
.portal-chip.is-cancelled { background: #b3261e; border-color: #b3261e; }
.portal-chip.is-program-pack { background: #d99a2b; border-color: #d99a2b; color: #2a251d; }
.portal-chip.is-program-troop { background: #3b6b44; border-color: #3b6b44; }
.portal-chip.is-fee { background: #fff8e8; border-color: #fff8e8; color: #6b4a00; }

/* Key facts strip: when, where, fee, RSVP at a glance. */
.portal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; }
.portal-fact { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(42, 37, 29, 0.05); }
.portal-fact-icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: #ece2cb; color: var(--bark); }
.portal-fact-svg { width: 1.3rem; height: 1.3rem; }
.portal-fact-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.portal-fact-value { margin-top: 0.15rem; font-size: 1.02rem; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
a.portal-fact-value { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.portal-fact-sub { margin-top: 0.2rem; font-size: 0.82rem; color: var(--muted); }

/* Stat cards: bigger serif numbers, small caps labels, a colored top edge by meaning. */
.fi-wi-stats-overview-stat { border-radius: 14px; border-top: 4px solid var(--line); box-shadow: 0 1px 2px rgba(42, 37, 29, 0.05), 0 6px 18px rgba(42, 37, 29, 0.06); }
.fi-wi-stats-overview-stat-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.fi-wi-stats-overview-stat-value { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.fi-wi-stats-overview-stat:has(.fi-color-success) { border-top-color: #3b6b44; }
.fi-wi-stats-overview-stat:has(.fi-color-warning) { border-top-color: #d99a2b; }
.fi-wi-stats-overview-stat:has(.fi-color-danger) { border-top-color: #b3261e; }
a.fi-wi-stats-overview-stat { transition: transform 0.12s ease, box-shadow 0.12s ease; }
a.fi-wi-stats-overview-stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(42, 37, 29, 0.08), 0 10px 24px rgba(42, 37, 29, 0.1); }

/* Table rows respond to the pointer. */
.fi-ta-row:hover { background: rgba(217, 154, 43, 0.07); }

@media (max-width: 640px) {
    .fi-page:not([class*='fi-resource']):has(.fi-wi-widget) .fi-header, .fi-resource-view-record-page .fi-header { padding: 1rem 1.1rem; border-radius: 12px; }
    .portal-event-head { gap: 0.7rem; }
    .portal-date-badge { min-width: 3.4rem; }
    .portal-date-badge b { font-size: 1.4rem; }
}

/* Long text reads as prose, not as a bold value. */
.fi-in-entry-content .portal-prewrap, .portal-prewrap { font-weight: 400; line-height: 1.6; }
.fi-wi-stats-overview-stat-value { overflow-wrap: anywhere; }

/* Dues history list. */
.portal-dues-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.portal-dues-history li { padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.portal-dues-history li:last-child { border-bottom: 0; }
.portal-dues-history small { color: var(--muted); }

/* Setup links in notifications: break long links instead of overflowing. */
.portal-setup-link { display: block; margin-top: 0.3rem; overflow-wrap: anywhere; word-break: break-all; font-size: 0.8rem; text-decoration: underline; }

/* Who from your den is coming (family event page). */
.portal-den-intro { margin: 0 0 0.75rem; color: var(--muted); font-weight: 400; }
.portal-den-group + .portal-den-group { margin-top: 1rem; }
.portal-den-head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; margin-bottom: 0.4rem; }
.portal-den-head small { color: var(--muted); font-weight: 400; }
.portal-den-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.4rem 1rem; }
.portal-den-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.portal-resp { padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: #ece2cb; color: #5a4a30; white-space: nowrap; }
.portal-resp.is-yes { background: #d8e8db; color: #1f3825; }
.portal-resp.is-tentative { background: #f7e3b3; color: #6b4a00; }
.portal-resp.is-no { background: #e9e4d8; color: #6a6252; }
.portal-resp.is-none { background: #fff; color: #6a6252; border: 1px dashed #b9ad92; }

/* Scout accounts (family dashboard). */
.portal-acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.portal-acct { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.portal-acct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.portal-acct-balance { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--green); }
.portal-acct-list { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; font-size: 0.85rem; }
.portal-acct-list li { display: flex; justify-content: space-between; gap: 0.75rem; padding-top: 0.3rem; border-top: 1px solid var(--line); font-weight: 400; }
.portal-acct-list .is-in { color: var(--green); }
.portal-acct-list .is-out { color: #7a1a14; }

/* How-tos. */
.portal-howto { display: grid; gap: 0.75rem; max-width: 56rem; }
.portal-howto-intro { margin: 0; color: var(--muted); font-weight: 400; }
.portal-howto-search input { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; }
.portal-howto-index { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.portal-howto-index a { padding: 0.2rem 0.65rem; border-radius: 999px; background: #ece2cb; color: #4a3a26; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.portal-howto-index a:hover { background: #e1d3b2; }
.portal-howto-topic { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(42, 37, 29, 0.05); overflow: hidden; scroll-margin-top: 5rem; }
.portal-howto-topic > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1.1rem; background: #efe6d0 var(--portal-topo-dark); background-size: 360px; background-position: 100% 0; }
.portal-howto-topic > summary::-webkit-details-marker { display: none; }
.portal-howto-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.portal-howto-summary { color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.portal-howto-topic[open] > summary { border-bottom: 1px solid var(--line); }
.portal-howto-body { padding: 1rem 1.2rem 1.3rem; font-weight: 400; line-height: 1.6; }
.portal-howto-body h2 { margin: 1.2rem 0 0.4rem; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.portal-howto-body p, .portal-howto-body ul, .portal-howto-body ol, .portal-howto-body table { margin: 0.5rem 0; }
.portal-howto-body ul { list-style: disc; padding-left: 1.3rem; }
.portal-howto-body ol { list-style: decimal; padding-left: 1.4rem; }
.portal-howto-body li { margin: 0.25rem 0; }
.portal-howto-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.portal-howto-body th, .portal-howto-body td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.portal-howto-body th { background: #efe6d0; }
.portal-howto-body strong { font-weight: 700; }

/* Accessibility (2026-11): contrast and colour-blind safety. */
/* Placeholders and "none" text pass 4.5:1. */
.fi-in-placeholder, .fi-ta-placeholder, .fi-fo-field-wrp-hint { color: var(--muted); }
/* Links on their own line are at least 24px tall (WCAG 2.2 target size). */
.portal-purge-warning a, .fi-wi a.portal-link { display: inline-block; padding: 4px 0; min-height: 24px; }
/* Form fields: a 3:1 border so the edge is visible to everyone (WCAG 1.4.11); the focus ring still wins. */
.fi-input-wrp:not(:focus-within), .fi-fo-select .fi-input-wrp:not(:focus-within) { --tw-ring-color: #857858 !important; }
/* A visible keyboard focus everywhere. */
:focus-visible { outline: 3px solid #1f3825; outline-offset: 2px; }
.fi-sidebar :focus-visible, .fi-topbar :focus-visible { outline-color: #f0c46a; }

/* ======================================================================================================
   High-contrast view (a person's own choice: user menu → "High contrast", or the link on the sign-in page).
   Stronger text (7:1 or better), heavy borders, no patterns or tints, bold status badges, bigger focus ring.
   ====================================================================================================== */
.portal-hc {
    --paper: #ffffff; --card: #ffffff; --cream: #f1ead6; --line: #3d3729; --ink: #000000; --muted: #2b271f;
    --bark: #2a1708; --green: #1f4d2a; --clay: #7a2406; --gold: #ffd36b;
    --portal-topo: none; --portal-topo-dark: none;
}
.portal-hc[data-portal-panel="admin"] { --chrome: #2a1708; --chrome-deep: #170c04; --chrome-line: #ffd36b; }
.portal-hc[data-portal-panel="family"] { --chrome: #0f2a16; --chrome-deep: #08170c; --chrome-line: #ffd36b; }
.portal-hc body, .portal-hc .fi-body, .portal-hc .fi-main, .portal-hc .fi-layout { background: #ffffff; color: #000; }
.portal-hc .fi-main { --tw-ring-color: transparent; }
.portal-hc, .portal-hc .fi-section, .portal-hc .fi-ta, .portal-hc .fi-in-entry-content, .portal-hc p, .portal-hc li, .portal-hc td { color: #000; }
.portal-hc .fi-in-entry-label, .portal-hc .fi-header-subheading, .portal-hc .fi-section-header-description, .portal-hc .portal-fact-sub,
.portal-hc .fi-in-placeholder, .portal-hc .fi-ta-placeholder, .portal-hc .fi-ta-text-item-description, .portal-hc .portal-rsvp-note,
.portal-hc .portal-howto-summary, .portal-hc .portal-den-intro, .portal-hc .fi-fo-field-wrp-hint { color: #2b271f; }
/* Links look like links. */
.portal-hc .fi-main a:not(.fi-btn):not(.fi-ta-actions a):not([class*="fi-wi-stats"]):not(.portal-chip) { text-decoration: underline; text-underline-offset: 2px; }
/* No decoration: solid bands, no photos of contour lines, no shadows or hover lifts. */
.portal-hc .fi-section, .portal-hc .fi-ta, .portal-hc .portal-fact, .portal-hc .fi-wi-stats-overview-stat, .portal-hc .portal-howto-topic,
.portal-hc .portal-acct, .portal-hc .portal-leaders-card { border: 2px solid #3d3729; box-shadow: none; }
.portal-hc .fi-section > .fi-section-header, .portal-hc .portal-howto-topic > summary, .portal-hc .portal-accent--pack .fi-section > .fi-section-header,
.portal-hc .portal-accent--troop .fi-section > .fi-section-header { background: #f1ead6; border-bottom: 2px solid #3d3729; }
.portal-hc .fi-page:not([class*='fi-resource']):has(.fi-wi-widget) .fi-header, .portal-hc .fi-resource-view-record-page .fi-header { background: var(--chrome-deep); border: 2px solid #ffd36b; }
.portal-hc .fi-wi-stats-overview-stat { border-top-width: 6px; }
a.fi-wi-stats-overview-stat:hover { transform: none; box-shadow: none; }
/* Form fields: black 2px borders; the focus ring is thicker still. */
.portal-hc .fi-input-wrp:not(:focus-within), .portal-hc .fi-fo-select .fi-input-wrp:not(:focus-within) { --tw-ring-color: #000 !important; box-shadow: 0 0 0 2px #000 !important; }
.portal-hc :focus-visible { outline: 4px solid #000; outline-offset: 3px; box-shadow: 0 0 0 7px #ffd36b; }
.portal-hc .fi-sidebar :focus-visible, .portal-hc .fi-topbar :focus-visible { outline-color: #ffd36b; box-shadow: 0 0 0 7px #000; }
/* Bars: dark with white text; the current page is underlined as well as highlighted. */
.portal-hc .fi-topbar, .portal-hc .fi-sidebar { background: var(--chrome-deep); }
.portal-hc .fi-sidebar .fi-sidebar-item-label, .portal-hc .fi-sidebar .fi-sidebar-item-icon, .portal-hc .fi-sidebar .fi-sidebar-group-label, .portal-hc .fi-sidebar .fi-sidebar-group-collapse-button { color: #ffffff; }
.portal-hc .fi-sidebar-item.fi-active .fi-sidebar-item-label, .portal-hc .fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: #ffd36b; text-decoration: underline; font-weight: 800; }
.portal-hc .portal-brand-copy .portal-brand-sub { color: #ffd36b; }
/* Status badges and chips: heavy borders, dark text on light fills, always with their words and icons. */
.portal-hc .fi-badge { border: 2px solid currentColor; font-weight: 800; }
/* Text, links and badges in the semantic colours use very dark shades (never on buttons, which keep their own fill). */
.portal-hc { --gray-400: #3d3729; --gray-500: #2b271f; --gray-600: #1a1a1a; }
.portal-hc .fi-badge.fi-color-success, .portal-hc .fi-badge.fi-color-success .fi-badge-label, .portal-hc .fi-ta-text-item.fi-color-success, .portal-hc .fi-link.fi-color-success { color: #0b3d17 !important; }
.portal-hc .fi-badge.fi-color-warning, .portal-hc .fi-badge.fi-color-warning .fi-badge-label, .portal-hc .fi-ta-text-item.fi-color-warning, .portal-hc .fi-link.fi-color-warning { color: #4d3200 !important; }
.portal-hc .fi-badge.fi-color-danger, .portal-hc .fi-badge.fi-color-danger .fi-badge-label, .portal-hc .fi-ta-text-item.fi-color-danger, .portal-hc .fi-link.fi-color-danger { color: #6e1c00 !important; }
.portal-hc .fi-badge.fi-color-gray, .portal-hc .fi-badge.fi-color-gray .fi-badge-label, .portal-hc .fi-ta-text-item.fi-color-gray { color: #1a1a1a !important; }
.portal-hc .fi-badge.fi-color-primary, .portal-hc .fi-link.fi-color-primary, .portal-hc .fi-link, .portal-hc .fi-link-label { color: #0f3a1b !important; }
.portal-hc .fi-ta-text-item.fi-size-lg.portal-cancelled { color: #4d4d4d; }
.portal-hc .fi-btn.fi-color-primary:not(.fi-outlined) { background: #0f3a1b; color: #fff; }
.portal-hc .fi-btn.fi-color-warning:not(.fi-outlined) { background: #ffd36b; color: #000; }
.portal-hc .fi-btn.fi-color-danger:not(.fi-outlined) { background: #6e1c00; color: #fff; }
.portal-hc .portal-status-btn.is-current { color: #fff; }
.portal-hc .portal-status-btn small { opacity: 1; }
.portal-hc .portal-status-btn.is-current.is-draft { background: #4d3200; border-color: #000; }
.portal-hc .portal-status-btn.is-current.is-live { background: #0b3d17; border-color: #000; }
.portal-hc .portal-status-btn.is-current.is-cancelled { background: #6e1c00; border-color: #000; }
.portal-hc .portal-brand-mark { background: #ffd36b; color: #000; }
.portal-hc .portal-chip { background: #fff; color: #000; border: 2px solid #000; }
.portal-hc .portal-chip.is-live, .portal-hc .portal-chip.is-open { background: #0b3d17; color: #fff; }
.portal-hc .portal-chip.is-draft { background: #5c3c00; color: #fff; }
.portal-hc .portal-chip.is-cancelled { background: #6e1c00; color: #fff; }
.portal-hc .portal-chip.is-program-pack { background: #ffd36b; color: #000; }
.portal-hc .portal-chip.is-program-troop { background: #0b3d17; color: #fff; }
.portal-hc .portal-chip.is-fee { background: #fff; color: #000; }
.portal-hc .portal-date-badge { background: #fff; color: #000; border: 2px solid #000; box-shadow: none; }
.portal-hc .portal-resp { border: 2px solid #000; color: #000; background: #fff; }
.portal-hc .portal-resp.is-yes { background: #cfeed5; }
.portal-hc .portal-resp.is-tentative { background: #ffe9a6; }
.portal-hc .portal-resp.is-no { background: #e6e6e6; }
.portal-hc .portal-dues-pill { border: 2px solid #000; color: #000; background: #fff; font-weight: 800; }
.portal-hc .portal-fee-callout, .portal-hc .portal-dues-notice, .portal-hc .portal-purge-warning { border: 3px solid #000; background: #fff; }
.portal-hc .portal-status-btn { border: 2px solid #000; }
.portal-hc .portal-acct-balance { color: #0b3d17; }
.portal-hc .portal-acct-list .is-in { color: #0b3d17; }
.portal-hc .portal-acct-list .is-out { color: #6e1c00; }
/* Buttons: bold outline so they read as buttons. */
.portal-hc .fi-btn { border: 2px solid #000; }
.portal-hc .fi-btn.fi-color-primary:not(.fi-outlined) { background: #1f4d2a; color: #fff; box-shadow: none; }
.portal-hc .fi-ta-header-cell, .portal-hc thead th { background: #f1ead6; color: #000; border-bottom: 2px solid #000; }
.portal-hc .fi-ta-row { border-bottom: 1px solid #3d3729; }
.portal-hc .fi-ta-row:hover { background: #f1ead6; }
.portal-hc .portal-hc-login { text-align: center; margin: 1rem 0 0; }
.portal-hc-login button { padding: 0.4rem 0.9rem; border: 2px solid currentColor; border-radius: 6px; background: transparent; font-weight: 700; cursor: pointer; }
.portal-hc .fi-simple-layout { background: #000; }
.portal-hc .fi-simple-main { background: #fff; border: 3px solid #ffd36b; }
.portal-hc .fi-simple-layout .portal-brand-copy .portal-brand-sub { color: #6e1c00; }

/* High contrast, second pass: stat descriptions, selected status buttons, struck-through (cancelled) titles. */
.portal-hc .fi-wi-stats-overview-stat-description.fi-color-success, .portal-hc .fi-ta-text-item.fi-color-primary, .portal-hc .fi-in-text-item.fi-color-success { color: #0b3d17 !important; }
.portal-hc .fi-wi-stats-overview-stat-description.fi-color-warning, .portal-hc .fi-in-text-item.fi-color-warning { color: #4d3200 !important; }
.portal-hc .fi-wi-stats-overview-stat-description.fi-color-danger, .portal-hc .fi-in-text-item.fi-color-danger { color: #6e1c00 !important; }
.portal-hc .fi-wi-stats-overview-stat-description.fi-color-gray { color: #1a1a1a !important; }
.portal-hc .fi-wi-stats-overview-stat-description [class*="fi-color"], .portal-hc .fi-wi-stats-overview-stat-description span { color: inherit; }
.portal-hc label.fi-btn.fi-color-success, .portal-hc .fi-btn.fi-color-success:not(.fi-outlined) { background: #0b3d17 !important; color: #fff !important; }
.portal-hc .portal-cancelled, .portal-hc .portal-cancelled * { opacity: 1 !important; color: #3d3d3d !important; }
.portal-hc .fi-btn.fi-color-primary:not(.fi-outlined) { background: #0f3a1b !important; color: #fff !important; }

/* My family: my information and family information blocks. */
.portal-myinfo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0 0 0.6rem; }
.portal-myinfo-list dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.portal-myinfo-list dd { margin: 0.1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.portal-myinfo-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.2rem 0; }
.portal-myinfo-note, .portal-people-sub { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.portal-people { display: grid; gap: 1.2rem; }
.portal-people-block h3 { margin: 0 0 0.4rem; font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; }
.portal-people-block p { margin: 0.25rem 0; }
.portal-people-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.portal-people-row .portal-people-sub { display: block; }
.portal-linkbtn { background: none; border: 0; padding: 0.25rem 0; min-height: 24px; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.portal-hc .portal-linkbtn { color: #0f3a1b; }
