/* ITERVO SHAD-1 — protected homepage-only, shadcn-inspired component polish.
 * Preserves the current layout, words, assets, routes, search algorithm,
 * sessions, QR behavior, serviceability, impact values, evidence and legal gates.
 * No shadcn/React/Tailwind packages or external dependencies are installed.
 * All selectors are rooted in the existing homepage body class.
 */
body.stage22-home {
  --shad1-focus: #89c6a1;
  --shad1-edge: #cadbcf;
  --shad1-ink: #173b2a;
  --shad1-soft: #f2f8f3;
  --shad1-elevation: 0 12px 30px rgba(12, 40, 26, .09);
}

/* SHAD-1A — Command-inspired finder: presentation only.
 * The existing combobox, keyboard logic, ranking and seven result links remain. */
body.stage22-home .itervo-role-finder .itervo-finder-shell {
  border-color: #cbdcd1;
  box-shadow: 0 8px 24px rgba(12, 40, 26, .08);
}
body.stage22-home .itervo-role-finder .itervo-finder-panel {
  border-color: var(--shad1-edge);
  border-radius: 16px;
  box-shadow: 0 24px 65px rgba(12, 40, 26, .19);
}
body.stage22-home .itervo-role-finder .itervo-finder-result {
  border-radius: 10px;
  border-color: transparent;
  transition: background-color .16s ease, border-color .16s ease;
}
body.stage22-home .itervo-role-finder .itervo-finder-result:is(:hover, .active, :focus-visible) {
  background: var(--shad1-soft);
  border-color: #bdd9c6;
}
body.stage22-home .itervo-role-finder .itervo-finder-result:focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 1px;
}
body.stage22-home .itervo-role-finder .itervo-finder-result-copy small {
  line-height: 1.42;
}
body.stage22-home .itervo-role-finder .itervo-finder-empty {
  border-radius: 11px;
}
body.stage22-home .itervo-role-finder :is(.itervo-finder-input, .itervo-finder-clear):focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 2px;
}

/* SHAD-1B — Card-inspired primary actions.
 * Keeps the original five anchors, text, order and breakpoint grids. */
body.stage22-home .s31a-quick-grid > a {
  position: relative;
  border-color: #d3e0d7;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(12, 40, 26, .055);
  gap: 8px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body.stage22-home .s31a-quick-grid > a > span:first-child {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #edf6ef;
  color: var(--shad1-ink);
  font-size: 24px;
}
body.stage22-home .s31a-quick-grid > a strong {
  line-height: 1.25;
  overflow-wrap: break-word;
}
body.stage22-home .s31a-quick-grid > a small {
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body.stage22-home .s31a-quick-grid > a:hover {
  border-color: #8fb99b;
  box-shadow: var(--shad1-elevation);
}
body.stage22-home .s31a-quick-grid > a:focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 3px;
}

/* SHAD-1C — Navigation Menu / Sheet-inspired fit-and-finish.
 * Do not change display/hidden, keyboard focus trap, account state or links. */
body.stage22-home .itervo-nav-more .itervo-nav-menu {
  border-color: var(--shad1-edge);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(12, 40, 26, .16);
}
body.stage22-home .itervo-nav-menu .itervo-menu-section {
  border: 1px solid #e5eee7;
  border-radius: 12px;
  background: #fcfefc;
}
body.stage22-home .itervo-nav-menu .itervo-menu-section a {
  border-radius: 9px;
  transition: background-color .15s ease;
}
body.stage22-home .itervo-nav-menu .itervo-menu-section a:focus-visible,
body.stage22-home .itervo-nav-more > button:focus-visible,
body.stage22-home .itervo-account-menu :is(a, button):focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 2px;
}
body.stage22-home .itervo-account-menu {
  border-color: var(--shad1-edge);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(12, 40, 26, .17);
}
body.stage22-home .itervo-mobile-panel {
  border: 1px solid var(--shad1-edge);
  box-shadow: 0 -18px 55px rgba(12, 40, 26, .22);
}
body.stage22-home .itervo-mobile-grid a:focus-visible,
body.stage22-home .itervo-mobile-close:focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 2px;
}

/* SHAD-1D — Alert-inspired availability notice.
 * This styles an EXISTING caution. It does not claim availability or call APIs. */
body.stage22-home .hyderabad-band .availability-note {
  border: 1px solid rgba(212, 238, 216, .38);
  border-left: 4px solid #b4d5bd;
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .09);
  color: #f2fbf4;
  line-height: 1.58;
}
body.stage22-home .hyderabad-band .launch-action {
  border-radius: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body.stage22-home .hyderabad-band .launch-action:focus-visible {
  outline: 3px solid #d9f0dd;
  outline-offset: 3px;
}
body.stage22-home .hyderabad-band .coverage-explainer > div {
  border: 1px solid rgba(227, 247, 230, .19);
  border-radius: 12px;
}

/* SHAD-1E — Skeleton/Alert-inspired loader on the EXISTING live-region.
 * Shimmer only while aria-busy=true, never on verified records or errors.
 * Original loading text and screen-reader announcements stay visible. */
body.stage22-home #homeImpactStats[aria-busy="true"] .impact-empty {
  position: relative;
  border: 1px solid #d7e7dc;
  border-radius: 14px;
  background: #f8fbf9;
  color: #40594a;
}
body.stage22-home #homeImpactStats[aria-busy="true"] .impact-empty::before {
  content: "";
  display: block;
  width: min(240px, 72%);
  height: 10px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: linear-gradient(100deg, #e3eee7 20%, #d0e4d6 48%, #e3eee7 75%);
  background-size: 210% 100%;
  animation: shad1-loading-sheen 1.9s ease-in-out infinite;
}
@keyframes shad1-loading-sheen {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.stage22-home #homeImpactStats[aria-busy="false"] .impact-stat {
  border-radius: 13px;
}

/* SHAD-1F — Card-inspired circular and Green proof navigation.
 * Preserve all destination anchors and original environmental disclosures. */
body.stage22-home .action-grid .action-card,
body.stage22-home .s22-green-section .stage13-trust-grid > a {
  border: 1px solid #d5e1d8;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(12, 40, 26, .045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body.stage22-home .action-grid .action-card:hover,
body.stage22-home .s22-green-section .stage13-trust-grid > a:hover {
  border-color: #9abcaa;
  box-shadow: var(--shad1-elevation);
}
body.stage22-home .action-grid .action-card:focus-visible,
body.stage22-home .s22-green-section .stage13-trust-grid > a:focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 3px;
}
body.stage22-home .action-grid .action-card strong,
body.stage22-home .s22-green-section .stage13-trust-grid > a strong {
  line-height: 1.35;
  overflow-wrap: break-word;
}
body.stage22-home .action-grid .action-card small,
body.stage22-home .s22-green-section .stage13-trust-grid > a small {
  line-height: 1.55;
}

/* SHAD-1G — Card / Avatar-inspired account summary.
 * Presentation only; profile, role, session and balance fields are untouched. */
body.stage22-home .s22-account-section .stage13-account-card {
  border: 1px solid rgba(219, 244, 224, .26);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(12, 40, 26, .12);
}
body.stage22-home .s22-account-section .stage13-avatar {
  border: 1px solid rgba(250, 255, 251, .23);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
body.stage22-home .s22-account-section .account-metrics > div {
  border-radius: 12px;
  border: 1px solid rgba(243, 255, 244, .19);
}
body.stage22-home .s22-account-section .stage13-account-card a:focus-visible {
  outline: 3px solid #c2e8cd;
  outline-offset: 3px;
}

/* SHAD-1H — Dialog-inspired QR detail surface.
 * Preserve original QR asset, /scan/ path, JS toggles and focus behavior. */
body.stage22-home .itervo-scan-corner .itervo-scan-corner-card {
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(12, 40, 26, .16);
}
body.stage22-home .itervo-scan-corner :is(button, a):focus-visible {
  outline: 3px solid var(--shad1-focus);
  outline-offset: 3px;
}
body.stage22-home .itervo-scan-corner .itervo-scan-corner-qr img {
  object-fit: contain;
}
body.stage22-home .itervo-scan-corner.is-expanded .itervo-scan-corner-card {
  border-color: #a5c8b0;
}

/* Accessibility and constrained screens; do not alter original breakpoints,
 * service cards, slideshow focal points, dots or search state. */
@media (max-width: 780px) {
  body.stage22-home .itervo-role-finder .itervo-finder-panel {
    border-radius: 14px;
  }
  body.stage22-home .itervo-mobile-panel {
    border-radius: 23px 23px 15px 15px;
  }
  body.stage22-home .s31a-quick-grid > a {
    min-width: 0;
  }
}
@media (max-width: 390px) {
  body.stage22-home .s31a-quick-grid > a > span:first-child {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.stage22-home :is(
    .itervo-finder-result, .s31a-quick-grid > a,
    .itervo-nav-menu a, .hyderabad-band .launch-action,
    .action-grid .action-card, .s22-green-section .stage13-trust-grid > a
  ) {
    transition: none !important;
  }
  body.stage22-home #homeImpactStats[aria-busy="true"] .impact-empty::before {
    animation: none;
  }
}
@media (forced-colors: active) {
  body.stage22-home :is(
    .s31a-quick-grid > a, .hyderabad-band .availability-note,
    .action-grid .action-card, .s22-green-section .stage13-trust-grid > a
  ) {
    border: 1px solid CanvasText;
  }
}



/* STAGE 3 — Homepage typography, keyboard accessibility and compact-screen polish.
 * Reuses the founder-approved SHAD-1 visual system. No network-loaded fonts,
 * new JS libraries, hidden functional controls or changes to back-end gates. */
body.stage22-home {
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
}
body.stage22-home :is(.stage13-hero h1, .s31a-quick-head h2, .section-heading h2, .s22-account-section h2) {
  font-family: Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.stage22-home .itervo-skip-link {
  position: fixed;
  inset: 10px auto auto 12px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: calc(100vw - 24px);
  padding: 12px 18px;
  border: 2px solid #123f31;
  border-radius: 12px;
  background: #fff;
  color: #123f31;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16,44,39,.2);
  transform: translateY(-160%);
}
body.stage22-home .itervo-skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #164dce;
  outline-offset: 2px;
}
body.stage22-home #home:focus { outline: none; }
body.stage22-home .stage13-hero-copy .s192-positioning {
  max-width: 45rem;
  line-height: 1.62;
  text-wrap: pretty;
}
body.stage22-home .s31a-quick-head h2 { line-height: 1.08; }
body.stage22-home .s31a-quick-grid > a {
  overflow-wrap: anywhere;
  min-width: 0;
}
body.stage22-home .s31a-quick-grid > a > span:first-child {
  background: #e9f5ec;
  color: #155d40;
}
body.stage22-home .s31a-quick-grid > a:nth-child(2) > span:first-child {
  background: #e9f0ff;
  color: #224ca2;
}
body.stage22-home .s31a-quick-grid > a:nth-child(3) > span:first-child,
body.stage22-home .s31a-quick-grid > a:nth-child(4) > span:first-child {
  background: #f1ecfc;
  color: #5d399a;
}
body.stage22-home .s31a-quick-grid > a:nth-child(5) > span:first-child {
  background: #fff4dd;
  color: #80591b;
}
body.stage22-home :is(.s31a-quick-grid > a, .action-card, .engine-links a, .s22-green-links a, .site-footer a):focus-visible {
  outline: 3px solid #164dce;
  outline-offset: 4px;
}
body.stage22-home .hyderabad-band .availability-note strong { color: inherit; }
@media (max-width: 780px) {
  body.stage22-home .s31a-quick-head p,
  body.stage22-home .stage13-hero-copy .s192-positioning { max-width: 100%; }
  body.stage22-home .s31a-quick-grid > a { min-height: 112px; }
  body.stage22-home .itervo-mobile-grid a { overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  body.stage22-home .itervo-skip-link { inset-inline-start: 8px; max-width: calc(100vw - 16px); }
  body.stage22-home .s31a-quick-grid > a { padding: 15px; }
  body.stage22-home .s31a-quick-grid small { font-size: 13px; }
  body.stage22-home .s26-assurance > div { gap: 12px; }
  body.stage22-home .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.stage22-home .itervo-skip-link { transition: none; }
  body.stage22-home .itervo-hero-slide { transition: none !important; }
  body.stage22-home .s31a-quick-grid > a:hover,
  body.stage22-home .action-grid .action-card:hover { transform: none; }
}
@media (forced-colors: active) {
  body.stage22-home .itervo-skip-link {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}
