/* ==========================================================================
   Newark Alliance Works — design system, conformed to TalentArbor G3
   Source of truth: TalentArbor_G3_Dotnet/frontend/src/index.css
   See Documentation/G3_DESIGN_STANDARDS_REFERENCE_2026-08-20.md

   Deliberate deviation from G3 (PRD §6.1): G3's form a11y is weaker than
   WCAG 2.1 AA requires. We keep G2's stronger semantics — real fieldset/
   legend, aria-invalid, programmatic error association — while adopting
   G3's visual language.
   ========================================================================== */

:root {
  /* Colour — G3 values, unchanged */
  --brand: #0c61e7;
  --brand-dark: #0b4fb9;
  --brand-soft: #f4f7ff;
  --accent: #0b8039;
  --text: #2d3b50;
  --muted: #667085;
  --border: #dfe5ed;
  --surface: #fff;
  --surface-alt: #f7f9fc;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --success: #08783f;
  --success-soft: #eaf8f0;
  --warning: #9a5d00;
  --warning-soft: #fff6df;
  --focus: #b45309;   /* was #f59e0b (2.0:1 on the page background; WCAG 1.4.11 needs 3:1) */
  --shadow: 0 8px 24px rgba(34, 56, 84, .08);

  /* Spacing — G3 scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px;

  /* Radii */
  --r-sm: 8px; --r-md: 9px; --r-lg: 13px; --r-xl: 18px; --r-pill: 999px;

  /* Layout */
  --content-max: 1180px;   /* public content, per G3 docs */
  --app-max: 1540px;       /* application frame */
  --sidebar-w: 252px;

  --font-sans: Poppins, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tap: 40px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #15243a;
  background: #f4f7fb;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography (G3 scale) ---------- */
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: var(--s2); font-size: clamp(1.65rem, 2.6vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin-bottom: var(--s2); font-size: 1.05rem; line-height: 1.3; }
h3 { margin-bottom: 6px; font-size: .95rem; }
p  { color: var(--muted); }
small { color: var(--muted); }

.eyebrow {
  display: block; margin-bottom: var(--s2);
  color: var(--brand); font-size: .8125rem; font-weight: 750;
  letter-spacing: .1em; text-transform: uppercase;
}

a { color: var(--brand-dark); }

/* ---------- Focus (G3: 3px ring with offset) ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: var(--s2) var(--s4); background: var(--surface); color: var(--brand-dark);
  border-radius: 0 0 var(--r-md) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
/* The skip link's target takes focus (tabindex="-1") but is not a control, so no ring around the whole page body. */
#main-content:focus, #main-content:focus-visible { outline: none; }

/* ---------- Buttons (G3) ---------- */
.button {
  display: inline-flex; min-height: var(--tap);
  align-items: center; justify-content: center; gap: 7px;
  padding: var(--s2) 15px; border: 1px solid transparent; border-radius: var(--r-md);
  font-family: inherit; font-size: .86rem; font-weight: 650;
  text-decoration: none; cursor: pointer;
}
.button-primary {
  background: linear-gradient(120deg, var(--brand) 0%, #1478dc 64%, var(--accent) 145%);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.16), 0 4px 12px rgba(11,99,206,.2);
}
.button-primary:hover { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 64%, var(--accent) 145%); }
.button-secondary { border-color: var(--border); background: #fff; color: var(--text); }
.button-full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .58; }

.icon-button {
  display: inline-grid; width: var(--tap); height: var(--tap); place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-md); background: transparent; cursor: pointer;
}

/* ---------- Cards ---------- */
.card, .content-card {
  padding: 19px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.content-card + .content-card { margin-top: var(--s3); }

/* ---------- Page header (G3 PageHeader contract) ---------- */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s5); margin-bottom: 20px;
}
.page-header p { max-width: 760px; margin-bottom: 0; }
.page-actions { flex: 0 0 auto; display: flex; gap: var(--s2); }

.breadcrumbs { display: flex; gap: 7px; margin-bottom: 13px; font-size: .82rem; color: var(--muted); }

/* ---------- Forms (G3 visual + G2 semantics) ---------- */
label, .field > span { color: #33445d; font-size: .82rem; font-weight: 700; }

input, select, textarea {
  width: 100%; min-height: var(--tap); padding: var(--s2) 10px;
  border: 1px solid #7a8699; border-radius: var(--r-sm);   /* 3.7:1 on white (WCAG 1.4.11) */
  background: #fff; color: var(--text);
  font-family: inherit; font-size: .88rem;
}
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--brand);
  box-sizing: border-box;
  height: 20px;
  min-height: 20px;
  padding: 0;
  transform: none;
  vertical-align: middle;
  width: 20px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 10px; }
.form-grid label { display: grid; gap: 5px; }
.form-grid label > span { color: #33445d; font-size: .8125rem; font-weight: 700; }
.form-span { grid-column: 1 / -1; }

.form-actions {
  display: flex; justify-content: flex-end; gap: var(--s2);
  margin-top: 14px; padding-top: var(--s3); border-top: 1px solid var(--border);
}

/* Retained from G2 — stronger than G3 (PRD §6.1) */
fieldset { margin: 0 0 var(--s3); padding: 0; border: 0; }
legend { padding: 0; margin-bottom: var(--s2); font-size: .82rem; font-weight: 700; color: #33445d; }
.field-help { display: block; margin-top: var(--s1); max-width: 850px; font-size: .8125rem; color: var(--muted); }
.field-error { display: block; margin-top: var(--s1); font-size: .8125rem; font-weight: 650; color: var(--danger); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.required-marker { color: var(--danger); font-weight: 700; }

.check-row {
  display: grid; min-height: 39px; grid-template-columns: 18px minmax(0,1fr);
  gap: var(--s2); align-items: center; border-top: 1px solid var(--border); padding: var(--s2) 0;
}

/* ---------- Badges / status (G3 status-<slug> model) ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
  background: #eef2f7; color: #40516a;
}
.status-approved, .status-active, .status-confirmed, .status-ready, .status-verified { background: var(--success-soft); color: var(--success); }
.status-review, .status-submitted, .status-pending, .status-action-needed { background: var(--warning-soft); color: var(--warning); }
.status-flagged, .status-rejected { background: var(--danger-soft); color: var(--danger); }
.status-training { background: #efe9ff; color: #5a35c8; }
.status-job { background: #e6f2ff; color: var(--brand-dark); }
.status-volunteering { background: var(--success-soft); color: var(--success); }

/* ---------- State panels ---------- */
.state-panel { padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-alt); }
.state-error { border-color: #f1b8b3; background: var(--danger-soft); }
.state-success { border-color: #b7e3c9; background: var(--success-soft); }

/* ---------- Public shell ---------- */
.public-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: var(--s3) 0;
}
.public-header .inner, .content-container {
  max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(18px, 3vw, 34px);
}
.public-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.public-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.public-nav a { color: var(--text); text-decoration: none; font-weight: 650; font-size: .88rem; }
.public-nav a:hover { color: var(--brand); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand-dark); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: .82rem; font-weight: 800;
}
.brand-name { display: grid; line-height: 1.15; }
.brand-name small { font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.page-body { padding: var(--s6) 0 var(--s7); }

/* ---------- App shell (member / console) ---------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar-head { padding: var(--s4); border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; padding: var(--s3) var(--s2); }
.nav-section { margin-bottom: var(--s3); }
.nav-section h2, .nav-group-button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; margin: 0 0 var(--s1);
  font-size: .8125rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-section ul { list-style: none; margin: 0; padding: 0; }
.nav-section a {
  display: flex; align-items: center; gap: 10px; min-height: 38px;
  padding: var(--s2) 10px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 600;
}
.nav-section a:hover { background: var(--surface-alt); }
.nav-section a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.nav-icon { width: 18px; text-align: center; opacity: .75; }

/* G2's authenticated portals use a 44px interaction floor. G3's original
   sidebar links are 38px; keep the G3 visual treatment while meeting the G2
   touch-target standard for the organization shell only. */
.organization-shell .sidebar-head .brand,
.organization-shell .sidebar-nav .nav-section a {
  min-height: 44px;
}

/* Match the established Program Team identity treatment without importing its
   role-specific shell. The official tenant logo and compact role label remain
   readable while Employer keeps the stronger 44px interaction floor. */
.organization-shell {
  --sidebar-w: 244px;
}

.organization-shell .sidebar-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 11px 14px;
}

.organization-shell .sidebar-head .brand {
  display: grid;
  gap: 2px;
  color: var(--text);
}

.organization-shell .sidebar-head .brand-mark {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* 2026-10-26: the Newark Alliance Works mark is almost square; 34px high was unreadable. */
  max-height: 92px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.organization-shell .sidebar-head .brand-name {
  display: block;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.organization-shell .sidebar-nav .nav-section h2 {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.organization-shell .sidebar-nav .nav-section a,
.organization-shell .sidebar-nav .nav-section a.active {
  font-size: 14px;
  font-weight: 400;
}

.organization-shell .sidebar-nav .nav-count {
  min-width: 24px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: #eef2f7;
  color: #40516a;
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
}

.organization-shell .sidebar-nav a.active .nav-count {
  background: #dce9ff;
  color: var(--brand-dark);
}

/* Sidebar: the count is its own button beside the section link. Kept here (not in a page's CSS)
   so pages such as Mark attendance lay the menu out the same as the workspace. */
.organization-shell .sidebar-nav .nav-item-count {
  position: relative;
  display: flex;
  align-items: center;
}

.organization-shell .sidebar-nav .nav-item-count > a {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 52px;
}

.organization-shell .sidebar-nav .nav-item-count > .nav-count {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 36px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #2d3b50;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.organization-shell .sidebar-nav .nav-item-count > .nav-count:hover,
.organization-shell .sidebar-nav .nav-item-count > a.active ~ .nav-count {
  background: #dce9ff;
  color: #0a3a85;
}

.profile-block { padding: var(--s3); border-top: 1px solid var(--border); }
.profile-summary { display: flex; align-items: center; gap: 10px; width: 100%; padding: var(--s2); border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; border-radius: var(--r-sm); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8125rem; font-weight: 700; }

/* ---------- Mobile sidebar (nav + sign-out), hidden by default below 768px ---------- */
.sidebar-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--rw-tap-target, 44px); height: var(--rw-tap-target, 44px);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
  font-size: 1.05rem; cursor: pointer;
}
.sidebar-close {
  display: none; align-items: center; justify-content: center;
  width: var(--rw-tap-target, 44px); height: var(--rw-tap-target, 44px);
  border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; border-radius: var(--r-sm);
}
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 39;
}
@media (max-width: 768px) {
  .sidebar-toggle { display: inline-flex; }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
  .sidebar-close { display: inline-flex; }
  .sidebar.is-open {
    display: flex; position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: min(84vw, 320px); height: 100vh; box-shadow: 0 0 0 100vmax rgba(0,0,0,0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar.is-open { animation: sidebar-slide-in .18s ease-out; }
}
@keyframes sidebar-slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.app-frame { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 10; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 0 clamp(18px, 3vw, 34px);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
#main-content { max-width: var(--app-max); width: 100%; margin: 0 auto; padding: 26px clamp(18px, 3vw, 34px) 44px; }

/* Organization shell footer: Help, Contact us, Terms of Use and Privacy Policy. */
.org-footer {
  max-width: var(--app-max); width: 100%; margin: 0 auto; padding: 18px clamp(18px, 3vw, 34px) 28px;
  border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted);
}
.org-footer p { margin: 0 0 6px; }
.org-footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.org-footer a { display: inline-block; min-height: 24px; padding: 2px 0; color: #0a4aa8; text-decoration: underline; }

/* ---------- Grids ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s3); }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s3); }
.content-grid--wide-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s3); }

.metric-card { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.metric-card .metric-value { font-size: 1.9rem; font-weight: 750; color: #15243a; line-height: 1.1; }
.metric-card .metric-label { font-size: .8125rem; font-weight: 650; color: var(--muted); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th {
  text-align: left; padding: var(--s2) 10px; border-bottom: 1px solid var(--border);
  font-size: .8125rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
td { padding: 11px 10px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Opportunity cards ---------- */
.opportunity-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.opportunity-card h3 { margin: 0; font-size: 1rem; }
.opportunity-card .org { font-size: .82rem; font-weight: 650; color: var(--text); }
.opportunity-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
/* A badge that is a direct child of a flex-column card must not stretch to full width. */
.opportunity-card > .status-badge { align-self: flex-start; }
.opportunity-card .detail { font-size: .8125rem; color: var(--muted); }
.opportunity-card .card-actions { margin-top: auto; padding-top: var(--s2); }

.filters { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); margin-bottom: var(--s4); }
.filter-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }

/* ---------- Hero ---------- */
.hero { padding: var(--s7) 0; background: linear-gradient(160deg, #eef4ff 0%, #f7fbff 55%, #f4f7fb 100%); border-bottom: 1px solid var(--border); }
.hero .inner { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(18px, 3vw, 34px); }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 60ch; font-size: 1.02rem; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: var(--s2); list-style: none; margin: 0 0 var(--s5); padding: 0; }
.stepper li { flex: 1; padding: 10px var(--s3); border-radius: var(--r-sm); background: var(--surface-alt); border: 1px solid var(--border); font-size: .8125rem; font-weight: 650; color: var(--muted); }
.stepper li.current { background: var(--brand-soft); border-color: #c9dcfb; color: var(--brand-dark); }
.stepper li.done { background: var(--success-soft); border-color: #b7e3c9; color: var(--success); }

/* ---------- Upload well / timeline / file row (submission module, promoted from mockup 07) ---------- */
.upload-well {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 40px 24px; border: 2px dashed var(--border); border-radius: var(--r-lg);
  background: var(--surface-alt);
}
.upload-well.drag-over { border-color: var(--brand); background: var(--brand-soft); }
.upload-well .upload-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 1.4rem;
}
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; border-left: 2px solid var(--border); margin-left: 10px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--surface); }
.timeline li.done::before { background: var(--success); }
.timeline li.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li.attention::before { background: var(--warning); }
.timeline .step-label { font-weight: 700; color: var(--text); font-size: .88rem; }
.timeline .step-detail { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.file-row .file-meta { flex: 1; min-width: 0; }
.file-row .file-name { font-weight: 650; color: var(--text); font-size: .86rem; }
.file-row .file-size { font-size: .8125rem; color: var(--muted); }

/* ---------- Responsive (G3 breakpoints) ---------- */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-actions, .page-actions .button { width: 100%; }
  .metric-grid, .content-grid, .results-grid, .form-grid { grid-template-columns: minmax(0,1fr); }
  .filter-row { grid-template-columns: minmax(0,1fr); }
  .public-nav ul { display: none; }
  .stepper { flex-wrap: wrap; }
}

/* ==========================================================================
   Touch-target floor for shared site chrome, NWA/Employer routes only
   (2026-08-27 follow-up live audit).

   #togglenavmenu, .footer-link-item a and the
   ChatArbor widget all live in the site-wide shell (Views/Shared/Themes/
   ElevanceHealth/_Layout.cshtml) or in globally-loaded stylesheets
   (chatarbor.css) - editing those files
   directly would change every page site-wide, including Program Team and
   other unrelated surfaces this pass must not touch.

   Scoped instead via `body:has(.rw-volunteering)`, the same technique this
   codebase already uses for --rw-ui-scale (see the :root:has() rule near the
   top of this file) - .rw-volunteering is the page-shell class every one of
   the affected routes sets (organization Login/Register/ForgotPassword/
   ResetPassword, the anonymous and signed-in volunteering search hubs), and
   nothing else. A page without that class - any Program Team or other
   unrelated route - is completely untouched by this block. Floors only via
   min-width/min-height - never shrinks a control that is already taller. */
body:has(.rw-volunteering) #togglenavmenu.navbar-toggler {
  min-width: var(--rw-tap-target, 44px);
  min-height: var(--rw-tap-target, 44px);
}

/* chatarbor.css declares its own sizing with !important - matched here so
   this floor actually wins rather than losing to equal-or-later specificity. */
body:has(.rw-volunteering) .chatbot-open-icon {
  width: var(--rw-tap-target, 44px) !important;
  height: var(--rw-tap-target, 44px) !important;
}

/* The visible injected chat close control is actually .tooltip-close-btn (confirmed by a
   post-reload DOM scan, 2026-08-27) - .chatbot-close button is kept alongside it in case a
   different chat state/skin still uses that markup, but .tooltip-close-btn is the one that
   matters. Both are injected at runtime from the external ChatArbor endpoint (Views/Shared/
   _ChatPlugin.cshtml fetches and injects it), not rendered by this repo. */
body:has(.rw-volunteering) .chatbot-close button,
body:has(.rw-volunteering) .tooltip-close-btn {
  min-width: var(--rw-tap-target, 44px) !important;
  min-height: var(--rw-tap-target, 44px) !important;
}

/* Reset Search (outline button) needs 4.5:1 on the tinted filter panel (WCAG 1.4.3). */
.btn-outline-primary[type="reset"]:not(:hover):not(:focus-visible) { color: #0a58ca; border-color: #0a58ca; }
/* CR-06 (R-37) Reporting & Documents: package summary */
#submission-page .rw-package-facts { margin: 0 0 12px; padding-left: 1.2em; }
#submission-page .rw-package-facts li { margin-bottom: 4px; }
#submission-page .rw-package-warning { padding: 10px 12px; border-left: 4px solid #b54708; background: #fff6ed; color: #7a2e0e; font-weight: 600; }
#submission-page .rw-package-ok { padding: 10px 12px; border-left: 4px solid #0f6b3c; background: #ecfdf3; color: #0f4d2c; font-weight: 600; }
#submission-page #package-status.rw-field-success { color: #0f4d2c; }
#submission-page #other-documents > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
#submission-page .rw-send-reason { margin: 8px 0 0; font-size: .95rem; color: #475467; }
#submission-page #submission-status.rw-field-success { color: #0f4d2c; }
#submission-page .file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#submission-page .file-row .file-meta { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
#submission-page .file-row .button { min-height: 44px; }

/* G34 (WCAG 1.4.10 Reflow, 2.5.8): organization sign-in, register and password pages use the site-wide _Layout, so the
   floating chat launcher (fixed, bottom right, 42px) crowds a 320px screen and can sit on top of the
   Sign in / Submit button. Phone widths only, and only on these pages (.rw-org-auth); the launcher is untouched elsewhere.
   Chat stays reachable on larger screens. */
@media (max-width: 480px) {
  body:has(.rw-org-auth) .chatbot-open-icon { display: none !important; }
  .rw-org-auth { padding-bottom: 24px; }
}

/* G42: the logo in the organization top bar, shown only where the side rail is hidden (phones). */
.topbar-brand { display: none; }
@media (max-width: 768px) {
  .topbar-brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
  .topbar-brand img { display: block; height: 36px; width: auto; }
}

/* "How it works" tap hint on organization pages (Mark attendance, Agency check): a native <details>, so it opens on tap or
   keyboard with no script, and the page shows only the short line above it. */
.org-tip { margin: 4px 0 0; font-size: .875rem; }
.org-tip > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #1d4f91; font-weight: 600; cursor: pointer; list-style: none; }
.org-tip > summary::-webkit-details-marker { display: none; }
.org-tip > summary::before { content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .75rem; font-weight: 700; }
.org-tip > summary:focus-visible { outline: 2px solid #1d4f91; outline-offset: 2px; border-radius: 4px; }
.org-tip > p { max-width: 40rem; margin: 0 0 4px; color: #374151; line-height: 1.45; }
