/* ============================================================
   ASHISH VAID — Stock Broking
   Professional, fully accessible rebuild (WCAG 2.2 AA)
   Brand: Deep navy + gold accent
   ============================================================ */

:root {
  /* Brand colours — chosen for WCAG AA contrast */
  --navy-900: #07203b;
  --navy-800: #0a2c4f;
  --navy-700: #103a63;
  --navy-600: #16487a;
  --gold-600: #8a5f00;   /* gold text on white — 5.65:1 (WCAG AA) */
  --gold-500: #b8860b;   /* decorative / on-navy */
  --gold-400: #d4a221;
  --ink: #15212e;        /* body text 13.5:1 on white */
  --ink-soft: #3c4a59;   /* secondary text 8.3:1 on white */
  --line: #d7dee6;              /* decorative dividers */
  --line-strong: #6b7785;       /* interactive control borders — 4.56:1 on white (WCAG 1.4.11) */
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --bg-soft: #e8eef5;
  --danger: #9a1b1b;
  --ok: #0f6b3a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(7, 32, 59, .10);
  --shadow-md: 0 6px 22px rgba(7, 32, 59, .14);
  --maxw: 1180px;
  --focus: #1a73e8;
  --tap: 44px; /* generous target size (audit 8.7) */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { font-size: 100%; color-scheme: light; } /* base for text-zoom; force light so OS dark mode can't invert inputs */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem; /* 17px at default root; scales with text-zoom */
}
/* Text-zoom levels applied to <html> by the accessibility widget */
html.a11y-zoom-1 { font-size: 112.5%; }
html.a11y-zoom-2 { font-size: 125%; }
html.a11y-zoom-3 { font-size: 140%; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
/* Skip to main content (audit 8.5) */
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 3000;
  background: var(--navy-900); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: underline;
  /* Hidden off-screen until focused, but still in the tab order */
  transform: translateY(-150%); transition: transform .15s ease;
}
.skip-link:focus, .skip-link:focus-visible, .skip-link.is-focused {
  transform: translateY(0); color: #fff;
  outline: 3px solid var(--gold-400); outline-offset: 2px;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}

/* Visible, high-contrast focus for every interactive element */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* All interactive targets meet >=24px, comfortable 44px (audit 8.7) */
.btn, .nav a, .footer-nav a, .pill, .icon-btn, .chip {
  min-height: var(--tap);
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #e9eff6;
  font-size: .9rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.topbar a:hover { text-decoration: underline; }
.topbar .reg { color: #b9ccdf; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }

/* Always-visible text-size (zoom) control in the top bar */
.tz-control { display: inline-flex; align-items: center; gap: 6px; }
.tz-control .tz-label { color: #b9ccdf; }
.tz-btn {
  min-width: 34px; min-height: 34px; height: 34px; padding: 0 10px; line-height: 1;
  border: 1.5px solid rgba(255,255,255,.85); background: transparent; color: #fff;
  border-radius: 6px; cursor: pointer; font-weight: 700; font-family: inherit;
}
.tz-btn:hover { background: rgba(255,255,255,.16); }
.tz-btn.tz-small { font-size: .78rem; }
.tz-btn.tz-big { font-size: 1.05rem; }

/* ---------- Ticker (audit 8.4 — pause/stop control) ---------- */
.ticker {
  background: var(--gold-500);
  color: #1c1402;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.ticker .container { display: flex; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.ticker__label { font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; }
.ticker__viewport { overflow: hidden; flex: 1; }
.ticker__track {
  display: flex; gap: 3rem; white-space: nowrap; width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker__track span { font-weight: 500; }
.ticker.is-paused .ticker__track,
.ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; transform: none; }
}
.ticker__toggle {
  flex: none; background: var(--navy-900); color: #fff; border: 0;
  width: var(--tap); height: var(--tap); border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: grid; place-items: center;
}
.ticker__toggle:hover { background: var(--navy-700); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: var(--tap); }
.brand__mark {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400); display: grid; place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.2rem;
  letter-spacing: -1px; box-shadow: inset 0 0 0 1px rgba(212,162,33,.35);
}
.brand__name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--navy-900); letter-spacing: .5px; line-height: 1; }
.brand__tag { display: block; font-size: .72rem; font-weight: 600; color: var(--gold-600); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

.nav-toggle {
  margin-left: auto; display: none; background: var(--navy-900); color: #fff;
  border: 0; border-radius: 8px; width: var(--tap); height: var(--tap);
  font-size: 1.3rem; cursor: pointer;
}

.main-nav { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; text-decoration: none;
  color: var(--navy-800); font-weight: 600; padding: 10px 14px; border-radius: 8px;
  font-size: .98rem;
}
.nav a:hover { background: var(--bg-soft); color: var(--navy-900); }
.nav a[aria-current="page"] { background: var(--navy-900); color: #fff; }

/* Header search (audit 8.6 — second navigation method) */
.header-search { display: flex; align-items: center; }
.header-search form { display: flex; }
.header-search input {
  height: var(--tap); border: 1.5px solid var(--line-strong); border-right: 0;
  border-radius: 8px 0 0 8px; padding: 0 12px; font-size: .95rem; min-width: 150px;
  color: var(--ink); background: #fff;
}
.header-search button {
  height: var(--tap); border: 0; background: var(--gold-600); color: #fff;
  padding: 0 14px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600;
}
.header-search button:hover { background: #80580a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  padding: 11px 22px; border-radius: 8px; font-size: 1rem; line-height: 1.2;
}
.btn--primary { background: var(--gold-600); color: #fff; }
.btn--primary:hover { background: #80580a; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }

/* ---------- Breadcrumbs (audit 8.6) ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; color: var(--ink-soft); }
.breadcrumb a { color: var(--navy-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eef4fb;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(212,162,33,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 0 68px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.16rem; color: #cdddec; max-width: 46ch; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(212,162,33,.16);
  color: var(--gold-400); border: 1px solid rgba(212,162,33,.4);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 26px; backdrop-filter: blur(2px);
}
.hero__card h2 { color: #fff; font-size: 1.15rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Plus Jakarta Sans"; font-size: 1.7rem; color: var(--gold-400); }
.stat span { font-size: .8rem; color: #b9ccdf; }

/* ---------- Generic sections ---------- */
.section { padding: 58px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 64ch; margin-bottom: 34px; }
.section__head .eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card__icon {
  width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy-700);
}
.card__icon svg { width: 24px; height: 24px; }

/* Info callouts */
.callout {
  border-left: 5px solid var(--gold-600); background: #fff7e6;
  padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0;
}
.callout--danger { border-left-color: var(--danger); background: #fdf0f0; }
.callout h3 { color: var(--navy-900); margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; }
table.data caption { text-align: left; font-weight: 700; color: var(--navy-900); padding: 14px 16px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy-900); color: #fff; font-weight: 600; }
table.data tbody tr:nth-child(even) { background: var(--bg-alt); }
table.data a { color: var(--navy-600); }

/* ---------- Downloads list ---------- */
.dl-group { margin-bottom: 34px; }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dl-item a {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--ink); min-height: var(--tap);
}
.dl-item a:hover { border-color: var(--navy-600); background: var(--bg-alt); }
.dl-item .file-ico {
  flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: #fff; letter-spacing: .5px;
}
.file-ico.pdf { background: #b3261e; }
.file-ico.doc { background: #1a56b8; }
.file-ico.xls { background: #137333; }
.dl-item .file-meta { display: flex; flex-direction: column; }
.dl-item .file-meta b { font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.dl-item .file-meta small { color: var(--ink-soft); }

/* External-link list */
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; text-decoration: none; color: var(--navy-900); font-weight: 600; min-height: var(--tap);
}
.link-grid a:hover { border-color: var(--gold-600); background: var(--bg-alt); }
.link-grid a .ext { color: var(--ink-soft); font-weight: 400; }

/* ---------- Forms (audit 8.2 — labels & relationships) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.form-field .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 1rem; font-family: inherit; min-height: var(--tap);
  color: var(--ink); background: #fff; -webkit-text-fill-color: var(--ink);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #5c6773; opacity: 1; }
/* Invalid-field styling (WCAG 3.3.1) */
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger);
}
.field-error {
  display: none; color: var(--danger); font-size: .9rem; font-weight: 600;
  margin-top: 6px; align-items: center; gap: 6px;
}
.field-error::before { content: "\26A0"; font-size: 1rem; } /* warning triangle */
.field-error.is-shown { display: flex; }
.form-errors {
  display: none; background: #fdf0f0; border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; color: #7a1414;
}
.form-errors.is-shown { display: block; }
.form-errors h3 { color: var(--danger); margin: 0 0 8px; font-size: 1.05rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-errors a { color: #7a1414; font-weight: 600; }
/* Global safety net: any text input stays dark-on-white regardless of OS theme */
input, textarea, select { color: var(--ink); background-color: #fff; -webkit-text-fill-color: var(--ink); color-scheme: light; }
::placeholder { color: #5c6773; opacity: 1; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--navy-600); }
.form-hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; }

/* ---------- Help band (audit 8.8 — consistent help mechanism) ---------- */
.help-band { background: var(--navy-900); color: #e9eff6; }
.help-band .container { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; padding: 26px 0; }
.help-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.help-band p { margin: 0; color: #c0d2e4; }
.help-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Floating consistent help button (present every page, same place) */
.help-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 950;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-600); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-md); min-height: var(--tap);
}
.help-fab:hover { background: #80580a; color: #fff; }
.help-fab svg { width: 20px; height: 20px; }


/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d6e6; padding: 52px 0 0; }
.site-footer .brand__tag { color: #d4a221; } /* light gold on navy — 7:1 (WCAG AA) */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: #c7d6e6; text-decoration: none; display: inline-flex; align-items: center; min-height: 34px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; color: #c7d6e6; line-height: 1.8; }
.site-footer a { color: #e7eef6; }
.footer-disclaimer { font-size: .82rem; color: #93a8be; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 22px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; color: #93a8be; }
.footer-bottom a { color: #c7d6e6; }

/* ---------- Modal popups (audit 8.1/8.4 — accessible, not auto-moving) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1500; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 18, 33, .72);
}
.modal[aria-hidden="false"] { display: flex; }
.modal__dialog {
  background: #fff; border-radius: 14px; max-width: 760px; width: 100%;
  max-height: 92vh; overflow: auto; box-shadow: var(--shadow-md); position: relative;
}
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0;
  background: var(--navy-900); color: #fff; font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center;
}
.modal__close:hover { background: var(--navy-700); }
.modal__media { margin: 0; }
.modal__media img { width: 100%; height: auto; border-radius: 14px 14px 0 0; }
.modal__body { padding: 16px 22px 22px; }
.modal__body p { color: var(--ink-soft); margin-bottom: 12px; }
.modal__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 22px 20px; }
.modal__dots { display: flex; gap: 8px; }
.modal__dots button {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--navy-600);
  background: #fff; cursor: pointer; padding: 0;
}
.modal__dots button[aria-current="true"] { background: var(--navy-700); }

/* ---------- FAQ (help) ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy-900); padding: 16px 18px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: var(--tap);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 18px 18px; margin: 0; color: var(--ink-soft); }

/* Sitemap page */
.sitemap-cols { columns: 2; gap: 40px; }
.sitemap-cols h2 { break-after: avoid; }
.sitemap-cols ul { break-inside: avoid; margin-bottom: 22px; }

/* Misc utilities */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block; background: var(--bg-soft); color: var(--navy-800);
  border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dl-list, .link-grid { grid-template-columns: 1fr; }
  .header-search { display: none; } /* search remains in mobile menu & footer */
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    box-shadow: var(--shadow-md); padding: 12px; display: none;
  }
  .main-nav.is-open { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 14px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-cols { columns: 1; }
  .topbar { font-size: .82rem; }
  .topbar .container, .header-inner { row-gap: 8px; }
}

/* ---------- Reflow & 200% text-resize safety (WCAG 1.4.4 / 1.4.10) ---------- */
html, body { overflow-x: hidden; }              /* no two-dimensional scrolling */
img, iframe, video { max-width: 100%; }

/* Floating widgets must not overlap text at high zoom / narrow widths (WCAG 1.4.4 & 1.4.10).
   200% zoom collapses the viewport to <=768 CSS px, so below this width the fixed
   Help button and the third-party accessibility widget are hidden — the always-visible
   top-bar A-/A/A+ text-size controls and the header/footer/help-band Help links remain. */
@media (max-width: 768px) {
  .help-fab { display: none !important; }
  .asw-container, .asw-menu-btn { display: none !important; }
}
/* Long tokens (emails, IDs, URLs) must wrap rather than force horizontal scroll */
p, li, address, td, th, dd, dt, figcaption, .breadcrumb, .footer-nav a, .link-grid a { overflow-wrap: break-word; }
address a, .footer-disclaimer, .dl-item .file-meta b { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 420px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .btn { width: 100%; }                          /* stacked, full-width, never clipped */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .help-band .container { flex-direction: column; align-items: flex-start; }
  .tz-control { flex-wrap: wrap; }
}
