/* G26 + G42: one type scale, one control size and one text hierarchy for the whole site.
   Agreed with WorkTrack360, which applied the same scale (its var.css --ui-text-* tokens and a11y.css "VS1" block), so the
   two apps read alike. G42 (Nish: "titles smaller than the text under them, lists bigger than headings, summary lines smaller
   than the lists they summarise") moves the body to 16px and orders every level:

       page title (h1)  >  card / section title (h2, .card-title)  >  sub-title (h3, h4)  >  summary line (.lead) = body
       >  meta / hints  >  chips / badges                       (never the other way round)

   Loaded by Views/Shared/_AntiforgeryHook.cshtml, which every layout includes at the top of <head>, so one link covers the
   member (v1 and v2), organization, Program Team, public / landing / job, sign-in and admin pages.
   It loads BEFORE the page's own sheets, so each rule is prefixed "html body" (and "body.layout-v2" / "body.organization-shell"
   for the shells whose own sheets repeat that prefix) to win on specificity instead of on order. Class rules that name one
   component (a landing hero, a stat number) keep their own size on purpose.
   Sizes are in rem, so a browser text-size setting still scales everything. 1rem = 16px at the default.

   Scale (root 16px)
     h1 page title        1.75rem / 600     28px
     h2, card title       1.25rem / 600     20px
     h3, h4               1.0625rem / 600   17px
     h5, h6, summary      1rem / 600        16px
     body, labels, tables 1rem              16px   (lists and tables inside a card: .9375rem, 15px)
     meta, hints          .875rem muted     14px
     chips, badges        .8125rem          13px
     nav and menu rows    1rem / 500        16px
     inputs, selects, textareas, buttons   1rem, 2.5rem (40px) tall; 2.75rem (44px) touch targets on phones
     checkboxes, radios   1.125rem (18px)
   The Member v2 "Text size and display" choice (body.pref-large) is left alone. */

:root {
  --ts-h1: 1.75rem;           /* 28px page title */
  --ts-h2: 1.25rem;           /* 20px card / section title */
  --ts-h3: 1.0625rem;         /* 17px sub-title (h3, h4) */
  --ts-h5: 1rem;              /* 16px h5, h6 (weight carries the level) */
  --ts-lead: 1rem;            /* 16px summary line, semibold */
  --ts-body: 1rem;            /* 16px body, labels, tables */
  --ts-list: .9375rem;        /* 15px lists and tables inside a card */
  --ts-meta: .875rem;         /* 14px meta, hints, captions */
  --ts-small: .8125rem;       /* 13px chips, badges */
  --ts-nav: 1rem;             /* 16px nav and menu rows */
  --ts-nav-weight: 500;
  --ts-title-weight: 600;
  --ts-btn: 1rem;             /* 16px buttons */
  --ts-btn-sm: .875rem;       /* 14px small buttons */
  --ts-control: 1rem;         /* 16px inputs (16px also stops iOS zoom) */
  --ts-lh: 1.5;
  --ts-btn-h: 2.5rem;         /* 40px */
  --ts-ctl-h: 2.5rem;         /* 40px */
  --ts-check: 1.125rem;       /* 18px */
  --ts-row-pad: .5rem;        /* menu row: 16px text + 2 x 8px = 40px */
  --ts-muted: #4b5563;        /* meta text, 7.6:1 on white */
}
@media (max-width: 767.98px) {
  :root { --ts-h1: 1.5rem; --ts-btn-h: 2.75rem; --ts-ctl-h: 2.75rem; --ts-row-pad: .625rem; }   /* 24px title; 44px targets */
}

/* ---- Text ---------------------------------------------------------------------------------------------------- */
html body:not(.pref-large) { font-size: var(--ts-body); line-height: var(--ts-lh); }
html body h1, html body .h1 { font-size: var(--ts-h1); line-height: 1.25; font-weight: var(--ts-title-weight); overflow-wrap: anywhere; }
html body h2, html body .h2 { font-size: var(--ts-h2); line-height: 1.3; font-weight: var(--ts-title-weight); overflow-wrap: anywhere; }
html body :is(h3, .h3, h4, .h4) { font-size: var(--ts-h3); line-height: 1.35; font-weight: var(--ts-title-weight); overflow-wrap: anywhere; }
html body :is(h5, .h5, h6, .h6) { font-size: var(--ts-h5); line-height: 1.4; font-weight: var(--ts-title-weight); }
html body :is(.display-1, .display-2, .display-3, .display-4, .display-5, .display-6) { font-size: var(--ts-h1); line-height: 1.25; }
html body :is(.fs-1, .fs-2) { font-size: var(--ts-h1) !important; }
html body .fs-3 { font-size: var(--ts-h2) !important; }
html body .fs-4 { font-size: var(--ts-h3) !important; }
html body .fs-5 { font-size: var(--ts-body) !important; }
html body .fs-6 { font-size: var(--ts-body) !important; }
html body .lead { font-size: var(--ts-lead); font-weight: 600; }
html body :is(small, .small, .text-muted.small, .form-text, .invalid-feedback, .valid-feedback, .field-validation-error, .help-block) { font-size: var(--ts-meta); }
html body :is(legend, .legend) { font-size: var(--ts-h3); line-height: 1.35; font-weight: var(--ts-title-weight); }
html body :is(label, .form-label, .col-form-label, .form-check-label) { font-size: var(--ts-body); }
/* nwa-g3.css field captions (organization sign-in / register, Agency Review, public volunteering): body size, not 12px. */
html body :is(.form-grid label > span, .field > span) { font-size: var(--ts-body); }
html body .opportunity-card :is(h2, h3) { font-size: var(--ts-h3); }
html body :is(table, .table) { font-size: var(--ts-body); }
html body :is(th, td) { font-size: inherit; overflow-wrap: anywhere; }
html body :is(.breadcrumb, .pagination, .page-link, .tooltip, .popover-body, .toast-body) { font-size: var(--ts-meta); }
html body .alert { font-size: var(--ts-body); }
html body :is(.badge, .chip, .tag, .pill, .label-chip) { font-size: var(--ts-small); }
html body :is(.nav-tabs .nav-link, .nav-pills .nav-link) { font-size: var(--ts-nav); font-weight: var(--ts-nav-weight); }

/* Cards and panels: the title is the biggest thing in the card; lists and tables inside it a step under body text. */
html body :is(.card-title, .modal-title, .offcanvas-title, .card-header h2, .card-header h3, .card-header h4, .card-header h5) { font-size: var(--ts-h2); line-height: 1.3; font-weight: var(--ts-title-weight); overflow-wrap: anywhere; }
html body .card-subtitle { font-size: var(--ts-meta); }
html body :is(.card-body, .modal-body, .offcanvas-body) { font-size: var(--ts-body); }
html body :is(.card, .panel) :is(ul, ol, table, .table, .list-group) { font-size: var(--ts-list); }
html body .list-group-item { font-size: var(--ts-list); }
/* A heading that sits inside a list item or table in a card keeps its own level, not the list size. */
html body :is(.card, .panel) :is(ul, ol, table) :is(h2, h3, h4) { font-size: var(--ts-h3); }

/* ---- Panels: modals, offcanvas menus, fly-ins and drawers (same rule as WorkTrack360) ----------------------------------
   Inside a panel the panel title is the largest text (card-title token, 1.25rem); everything else steps down one level:
   headings and card titles 1.0625rem / 600, body 1rem, lists .9375rem. A full page opened in the fly-in keeps its h1
   as the panel title. */
html body :is(.modal, .offcanvas, .rw-flyin, .rw-flyin-page, [class*="drawer"]:not([class*="drawer__"]):not([class*="drawer-"]), .side-panel)
  :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, .card-title, legend) { font-size: var(--ts-h3); line-height: 1.35; font-weight: var(--ts-title-weight); }
html body :is(.modal, .offcanvas, .rw-flyin, .rw-flyin-page, [class*="drawer"]:not([class*="drawer__"]):not([class*="drawer-"]), .side-panel)
  :is(.modal-title, .offcanvas-title, .rw-flyin__title, [class*="drawer__header"] :is(h1, h2, h3), [class*="drawer-header"] :is(h1, h2, h3), .rw-flyin-page h1) {
  font-size: var(--ts-h2); line-height: 1.3; font-weight: var(--ts-title-weight); overflow-wrap: anywhere;
}
html body :is(.modal-body, .offcanvas-body, .rw-flyin__body, [class*="drawer__body"], [class*="drawer-body"]) { font-size: var(--ts-body); }
html body :is(.modal-body, .offcanvas-body, .rw-flyin__body, [class*="drawer__body"], [class*="drawer-body"]) :is(ul, ol, table, .list-group) { font-size: var(--ts-list); }

/* ---- Empty states and hints -------------------------------------------------------------------------------------
   One short muted line, a step under body text, so "Nothing here yet" never outweighs the card title above it.
   Its own heading (when a component gives it one) is a plain 1rem / 600 line, not a card-size title. */
html body :is(.empty, .empty-state, .no-data, .rw-empty, [class*="__empty"], [class*="-empty-state"]):not(input, select, textarea, button) {
  font-size: var(--ts-list); color: var(--ts-muted);
}
html body :is(.empty, .empty-state, .no-data, .rw-empty, [class*="__empty"], [class*="-empty-state"]) :is(h2, h3, h4, h5, strong) { font-size: var(--ts-body); font-weight: var(--ts-title-weight); color: inherit; }
html body :is(.empty, .empty-state, .no-data, .rw-empty, [class*="__empty"], [class*="-empty-state"]) p { font-size: var(--ts-list); }
html body :is(.form-text, .help-block, .hint, .field-hint, .field-help) { font-size: var(--ts-meta); color: var(--ts-muted); }

/* ---- Legacy f-NN size utilities (main.css: .f-12 ... .f-40, all !important) ------------------------------------------
   Legacy markup sizes text with f-NN classes, so an h1 and an h2 were both f-24 and a section title could be smaller
   than the text under it. Central decision: on a heading the LEVEL wins (h1 f-20 is still the page title); on other
   text each utility maps onto the nearest token. Sizes of 24px and up on non-headings (stat figures) are left alone.
   Same specificity trick as above, with !important because the utilities carry it. */
html body :is(h1, .h1)[class*="f-"] { font-size: var(--ts-h1) !important; }
html body :is(h2, .h2)[class*="f-"] { font-size: var(--ts-h2) !important; }
html body :is(h3, .h3, h4, .h4)[class*="f-"] { font-size: var(--ts-h3) !important; }
html body :is(h5, .h5, h6, .h6)[class*="f-"] { font-size: var(--ts-h5) !important; }
html body :is(.f-10, .f-11, .f-12, .f-13):not(h1, h2, h3, h4, h5, h6) { font-size: var(--ts-small) !important; }
html body .f-14:not(h1, h2, h3, h4, h5, h6) { font-size: var(--ts-meta) !important; }
html body .f-15:not(h1, h2, h3, h4, h5, h6) { font-size: var(--ts-list) !important; }
html body .f-16:not(h1, h2, h3, h4, h5, h6) { font-size: var(--ts-body) !important; }
html body .f-18:not(h1, h2, h3, h4, h5, h6) { font-size: var(--ts-h3) !important; }
html body :is(.f-20, .f-21, .f-22):not(h1, h2, h3, h4, h5, h6) { font-size: var(--ts-h2) !important; }
/* Inside a panel the same step-down applies to f-NN headings; the panel title stays the largest. */
html body :is(.modal, .offcanvas, .rw-flyin, .rw-flyin-page, [class*="drawer"]:not([class*="drawer__"]):not([class*="drawer-"]), .side-panel)
  :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4)[class*="f-"]:not(.modal-title, .offcanvas-title, .rw-flyin__title) { font-size: var(--ts-h3) !important; }
html body :is(.modal-title, .offcanvas-title, .rw-flyin__title)[class*="f-"] { font-size: var(--ts-h2) !important; }

/* ---- Form controls and dropdowns (selects, the language selector, filters) -------------------------------------- */
html body :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=image], [type=hidden], [type=submit], [type=button], [type=reset], [type=file]), select, textarea, .form-control, .form-select, .input-group-text, .select2-selection, .tagify) {
  font-size: var(--ts-control);
  line-height: 1.4;
}
html body :is(select, .form-select, input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=image], [type=hidden], [type=submit], [type=button], [type=reset], [type=file]), .form-control:not(textarea)) {
  min-height: var(--ts-ctl-h);
}
/* Fixed-height legacy controls (48-56px) shrink to the shared height; textareas still grow. */
html body :is(.form-control:not(textarea), .form-select, select) { height: auto; }
html body :is(.form-control-sm, .form-select-sm) { font-size: var(--ts-control); min-height: var(--ts-ctl-h); }
html body :is(select option, select optgroup) { font-size: var(--ts-control); }
html body :is(.dropdown-menu, .select2-results__option, .ui-menu-item) { font-size: var(--ts-nav); }
html body :is(input[type=file], input[type=file]::file-selector-button) { font-size: var(--ts-body); }
/* Checkboxes and radios: one small square / circle, never the 22-26px boxes some sheets set. */
html body :is(input[type=checkbox], input[type=radio]):not(.btn-check):not(.form-switch .form-check-input) {
  width: var(--ts-check); height: var(--ts-check); min-width: var(--ts-check); min-height: 0; flex: none; padding: 0; vertical-align: middle; transform: none;   /* main.css scaled every checkbox 1.2x (22px) */
}
/* Language selector controls, wherever they sit: the label, the select and its button read as nav text, not bigger. */
html body :is([class*="language" i], [id*="language" i], [class*="lang-" i], [id*="lang-" i]) :is(label, select, .form-select, button, .btn, a) { font-size: var(--ts-nav); }

/* ---- Buttons --------------------------------------------------------------------------------------------------- */
html body .btn:not(.btn-sm):not(.btn-lg):not(.btn-link):not(.btn-close) {
  font-size: var(--ts-btn); min-height: var(--ts-btn-h); padding-top: .25rem; padding-bottom: .25rem; line-height: 1.25;
}
html body .btn:not(.ladda-button):not(.btn-close) { display: inline-flex; align-items: center; justify-content: center; gap: .4em; }
html body .btn-sm { font-size: var(--ts-btn-sm); min-height: 2rem; line-height: 1.25; }
html body .btn-lg { font-size: var(--ts-btn); min-height: calc(var(--ts-btn-h) + .25rem); line-height: 1.25; }
html body .btn-link { font-size: inherit; }
/* The member design-system button (.rw-btn, 13px / 36px in rw-layout.css) and the list/cards view switch are buttons too. */
html body :is(.rw-btn, .rw-view-switch__btn):not(.rw-btn--sm) { font-size: var(--ts-btn); min-height: var(--ts-btn-h); }
/* Public site header (themes/elevancehealth/css/main-header.css): its nav links and Sign up / Log in buttons were 13-14px
   behind an id selector; nav is page-text size like everywhere else. */
html body header#header :is(.nav-link, .dropdown-item) { font-size: var(--ts-nav); }
html body header#header .navbar-right .btn:not(.btn-sm):not(.btn-link) { font-size: var(--ts-btn); }
/* Plain buttons: a low-specificity default (:where) so a component that styles its own button (a stat tile number, a tab)
   keeps its size; G26 used :is/:not here, which out-ranked those and shrank 28px figures to 14px. */
html body :where(button, input[type=submit], input[type=button], input[type=reset]):where(:not(.btn, .navbar-toggler, .btn-close, .accordion-button)) { font-size: var(--ts-btn); }

/* ---- Navigation and menu rows: page-text size, medium weight ------------------------------------------------- */
html body :is(.navbar .nav-link, .navbar-nav .nav-link, .nav-link, .dropdown-item, .dropdown-header, .sidebar a, .sidebar-nav a, .menu a, .menu button, .public-nav a,
              .offcanvas a.nav-link, [id$="DropdownCanvasRight"], [id^="ProviderDropdown"], .pt-nav-label, .pt-nav-link, #lnkJobsmenu) { font-size: var(--ts-nav); }
html body :is(.navbar .nav-link, .navbar-nav .nav-link, .nav-link, .sidebar a, .sidebar-nav a, .public-nav a, .pt-nav-label, .pt-nav-link, #lnkJobsmenu) { font-weight: var(--ts-nav-weight); }
html body .dropdown-item { padding-top: var(--ts-row-pad); padding-bottom: var(--ts-row-pad); line-height: 1.3; }

/* ---- Footers: link rows are nav (1rem); the legal / copyright lines are meta ------------------------------------ */
html body :is(footer, .footer, .site-footer, .foot) { font-size: var(--ts-meta); }
html body :is(footer, .footer, .site-footer, .foot) :is(p, li, span, small, address) { font-size: var(--ts-meta); }
html body :is(footer, .footer, .site-footer, .foot) :is(a, button, .btn, .foot-link) { font-size: var(--ts-nav); }
/* A footer column heading is bigger than the links under it (it was a 12px uppercase label over 13px links); same size as the links, set apart by weight. */
html body :is(footer, .footer, .site-footer, .foot) :is(h2, h3, h4, h5, h6) { font-size: var(--ts-body); font-weight: var(--ts-title-weight); letter-spacing: normal; text-transform: none; }
html body :is(footer, .footer, .site-footer, .foot) p a { font-size: inherit; }
/* RG-1064 (8 Nov 2026): the public site footer used 14px for its lines and 16px for its links; one size (16px) there. */
html body .rw-jobseeker-footer :is(p, li, span, small, address) { font-size: var(--ts-nav); }

/* ---- Overlap: banners, notices and the language bar sit in the page flow; the back-to-top button never covers text --- */
html body #back-to-top { right: 1rem; bottom: 1rem; z-index: 20; }
@media (max-width: 767.98px) {
  /* Phones have no gutter: a floating button would sit on top of the text, so it is hidden (the footer is a short scroll away). */
  html body #back-to-top { display: none !important; }
}
@media (min-width: 1200px) {
  /* Wide screens: park it in the right gutter, outside the 1140-1320px content column. */
  html body #back-to-top { right: max(1rem, calc((100vw - 1440px) / 2 + .5rem)); }
}


/* ---- Shared layout components (branding) --------------------------------------------------------------------------- */
/* Organization console top bar: on phones the side rail (and its logo) is behind the menu button, so the bar shows the logo. */
html body .topbar-brand { display: none; }
@media (max-width: 768px) {
  html body .topbar-brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
  html body .topbar-brand img { display: block; height: 36px; width: auto; }
}
/* Program Team footer: the tenant logo beside the copyright line. */
html body .program-team-footer__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
html body .program-team-footer__brand p { margin: 0; }
html body .program-team-footer__logo { display: block; height: 40px; width: auto; flex: none; }
/* Links on the navy footers: white and underlined (AA on #12345b), never light blue. */
html body :is(.rw-jobseeker-footer, footer.foot) a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Program Team / staff shell (program-team-d3.css + program-team-accessibility.css, also loaded by the admin and
   in-house layouts): its own tokens were 14px text, 12px small text and 13px labels, and two #main-content rules (one
   !important) pinned controls and buttons at 13px. Its tokens now follow this scale, and the two rules are out-ranked here. */
html body.program-team-d3 { --pt-readable-text: var(--ts-body); --pt-readable-small: var(--ts-meta); --pt-readable-label: var(--ts-body); font-size: var(--ts-body); }
html body.program-team-d3 #main-content :is(.form-control, .form-select, select, textarea, input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=image], [type=hidden], [type=submit], [type=button], [type=reset], [type=file])) { font-size: var(--ts-control) !important; }   /* PT sheets pin 13-14px with !important */
html body.program-team-d3 #main-content .btn:not(.btn-sm):not(.btn-link):not(.btn-close) { font-size: var(--ts-btn) !important; }
html body.program-team-d3 #main-content .btn.btn-sm { font-size: var(--ts-btn-sm) !important; }
html body.program-team-d3 .pt-sidebar-account-avatar { font-size: var(--ts-small); }
html body.program-team-d3 #main-content :is(input[type=checkbox], input[type=radio]):not(.btn-check):not(.form-switch .form-check-input) { width: var(--ts-check); height: var(--ts-check); min-width: var(--ts-check); min-height: 0; transform: none; }
html body.program-team-d3 .program-team-footer { padding-right: 4.5rem; }
/* Staff pages fill the width, so the fixed back-to-top button gets its own right-hand gutter instead of sitting on content. */
@media (min-width: 768px) { html body.program-team-d3 #main-content:has(#back-to-top) { padding-right: 4.5rem; } }   /* the fixed back-to-top button sits at the right end of this row */

/* ---- Member v2 shell (works-shell.css sets 18px text, 17px menu rows and 52px controls below 1200px) ---------------- */
html body.layout-v2:not(.pref-large) { font-size: var(--ts-body); line-height: 1.5; }
html body.layout-v2 h1 { font-size: var(--ts-h1); }
html body.layout-v2 h2 { font-size: var(--ts-h2); }
html body.layout-v2 :is(.panel, .row, .item, .statement) :is(h2, h3), html body.layout-v2 h3 { font-size: var(--ts-h3); }
html body.layout-v2 :is(.panel, .hom-area, .hom-next) > h2 { font-size: var(--ts-h2); }
html body.layout-v2 .logo-word { font-size: var(--ts-nav); }
html body.layout-v2 :is(.tool-btn, .lang-label, .acct-label) { font-size: var(--ts-nav); }
html body.layout-v2 .tool-btn { min-height: var(--ts-ctl-h); }
html body.layout-v2 .avatar { width: 32px; height: 32px; font-size: var(--ts-small); }
html body.layout-v2 .menu { min-width: 0; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 6px; border-radius: 10px; }
html body.layout-v2 .menu :is(a, button) { font-size: var(--ts-nav); font-weight: var(--ts-nav-weight); min-height: 2.5rem; padding: 6px 10px; line-height: 1.3; display: flex; align-items: center; }
html body.layout-v2 .menu hr { margin: 4px 0; }
html body.layout-v2 :is(.kicker, .state, .chip, .tag, .mini-tag) { font-size: var(--ts-small); }
html body.layout-v2 :is(.small, .note, .hint, .task-text, .meta, .statement .meta, .step-count, .back-link, .field-error, .hom-today, .hom-kind, .hom-date) { font-size: var(--ts-meta); }
html body.layout-v2 :is(.hom-small, .hom-jobs-foot, .hom-hv-links, .hom-remind, .hom-help) { font-size: var(--ts-meta); }
html body.layout-v2 .hom-steps li { font-size: var(--ts-list); }
html body.layout-v2 :is(.lead, .callout, .row p, .item p) { font-size: var(--ts-body); }
html body.layout-v2 :is(.empty, li.empty, p.empty, div.empty) { font-size: var(--ts-list); color: var(--ts-muted); }
html body.layout-v2 .btn { font-size: var(--ts-btn); min-height: var(--ts-btn-h); padding: 0 16px; }
html body.layout-v2 :is(input[type=text], input[type=date], input[type=number], input[type=email], input[type=tel], input[type=password], input[type=time], input[type=search], input[type=url], select, textarea) {
  font-size: var(--ts-control); min-height: var(--ts-ctl-h); padding: 6px 10px; border-width: 1px;
}
html body.layout-v2 textarea { min-height: 5.5rem; }
html body.layout-v2 input[type=file] { font-size: var(--ts-body); min-height: var(--ts-ctl-h); padding: 6px 10px; }
html body.layout-v2 :is(legend, .sub-legend, .step-heading) { font-size: var(--ts-h3); }
html body.layout-v2 :is(.month-head, .group-title) { font-size: var(--ts-h3); }
html body.layout-v2 table.simple { font-size: var(--ts-list); }
html body.layout-v2 :is(.foot-text p) { font-size: var(--ts-meta); }
html body.layout-v2 .foot-link { font-size: var(--ts-nav); }
html body.layout-v2 :is(.ask input.ask-input, .askc .askc-input, #ask-input, #askc-input) { font-size: var(--ts-control); min-height: var(--ts-ctl-h); }
html body.layout-v2 .hom-next h2 { font-size: var(--ts-h2); }
html body.layout-v2 .hom-sub { font-size: var(--ts-h3); }
html body.layout-v2 .hom-big { font-size: 1.75rem; }
html body.layout-v2 .hom-num-n { font-size: 1.25rem; }
/* Modal markup that a page includes without Bootstrap's stylesheet stays hidden until Bootstrap shows it (inline display). */
html body.layout-v2 .modal:not(.show) { display: none; }
@media (min-width: 761px) {
  html body.layout-v2 nav.main a, html body.layout-v2 nav.main .nav-more-btn { font-size: var(--ts-nav); font-weight: var(--ts-nav-weight); min-height: var(--ts-ctl-h); }
}
@media (max-width: 767.98px) {
  html body.layout-v2 .menu :is(a, button) { min-height: 2.75rem; }
  /* Phone header: logo + language + account must fit 320-375px without sideways scroll. */
  html body.layout-v2 :is(.top-inner, .top-tools) { min-width: 0; }
  html body.layout-v2 .top-tools { gap: 2px; flex-shrink: 1; }
  html body.layout-v2 .tool-btn { padding: 0 6px; min-width: 2.75rem; }
  html body.layout-v2 .tool-btn :is(.lang-label, .acct-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 760px) {
  /* Bottom tab bar (icon above label, five across): the label stays one step smaller so five fit at 320px. */
  html body.layout-v2 nav.main :is(a, .nav-more-btn) { font-size: var(--ts-meta); }
}

/* ---- Organization console (nwa-g3.css: 14px body, 10-12px labels, a 37px h1) ---------------------------------------- */
html body.organization-shell { font-size: var(--ts-body); }
html body.organization-shell h1 { font-size: var(--ts-h1); letter-spacing: -.02em; }
html body.organization-shell h2 { font-size: var(--ts-h2); }
html body.organization-shell :is(h3, h4) { font-size: var(--ts-h3); }
html body.organization-shell :is(.button, button.button, a.button) { font-size: var(--ts-btn); min-height: var(--ts-btn-h); }
html body.organization-shell :is(label, .field > span, .form-grid label > span) { font-size: var(--ts-body); }
html body.organization-shell legend { font-size: var(--ts-h3); }
html body.organization-shell :is(input, select, textarea) { font-size: var(--ts-control); }
html body.organization-shell :is(.field-help, .field-error, .breadcrumbs, .metric-card .metric-label, .file-row .file-size, .timeline .step-detail, .opportunity-card .detail, .opportunity-card .org) { font-size: var(--ts-meta); }
html body.organization-shell :is(table, td, .timeline .step-label, .file-row .file-name) { font-size: var(--ts-list); }
html body.organization-shell :is(.sidebar a, .sidebar-nav a, .public-nav a) { font-size: var(--ts-nav); font-weight: var(--ts-nav-weight); }
html body.organization-shell :is(th, .stepper li) { font-size: var(--ts-meta); }
html body.organization-shell :is(.nav-section h2, .brand-name small) { font-size: var(--ts-small); }
html body.organization-shell .metric-card .metric-value { font-size: 1.625rem; }
html body.organization-shell .avatar { font-size: var(--ts-small); }
/* Side-rail account block: the name is the line, its role the meta under it (the name was an inline .84rem, smaller than its caption). */
html body.organization-shell .profile-summary .profile-name { font-size: var(--ts-body); font-weight: var(--ts-title-weight); }
html body.organization-shell .profile-summary small { font-size: var(--ts-meta); }
html body.organization-shell .topbar { gap: .75rem; }

/* ---- Organization workspace cards (volunteering-provider.css): never wider than the phone ------------------------- */
html body .vol-provider__card { min-width: 0; max-width: 100%; }
html body .vol-provider__card :is(h3, h4) { overflow-wrap: anywhere; }

/* ---- Member v2 dashboard: one step tighter on desktop only (a phone keeps today's layout) ----------------------------- */
@media (min-width: 1024px) {
  html body.layout-v2 .panel { padding: 12px 14px; }
  html body.layout-v2 .stack { gap: 10px; }
  html body.layout-v2 .grid, html body.layout-v2 .hub-grid { gap: 12px; }
  html body.layout-v2 main { padding-top: 14px; }
  html body.layout-v2 .hom-head { margin-bottom: 8px; }
  html body.layout-v2 .hom-next, html body.layout-v2 .hom-areas, html body.layout-v2 .hom-welcome { margin-bottom: 10px; }
  html body.layout-v2 .hom-next-text, html body.layout-v2 .hom-due, html body.layout-v2 .hom-ai, html body.layout-v2 .hom-note { margin-bottom: 8px; }
  html body.layout-v2 .hom-area > h2 { margin-bottom: 6px; }
  html body.layout-v2 .hom-area p { margin-bottom: 6px; }
  html body.layout-v2 .hom-area-foot { gap: 6px 12px; padding-top: 4px; }
  html body.layout-v2 :is(.hom-area .btn, .hom-next .btn, .hom-welcome .btn) { min-height: var(--ts-btn-h); padding: 0 14px; font-size: var(--ts-btn); }
}
@media (min-width: 1024px) and (pointer: fine) {
  html body.layout-v2 :is(.hom-num) { min-height: 40px; }
  html body.layout-v2 :is(.hom-small, .hom-line a, .hom-hv-links a, .hom-jobs-foot a, .hom-jobs-n, .hom-remind a, .hom-help a, .hom-attn-link, .hom-back-go) { min-height: 36px; }
  html body.layout-v2 .hom-coming li { min-height: 36px; }
}

@media print {
  html body { font-size: 12pt; }
}
