/* ITERVO M1 | mobile experience | preview only
 * Frontend presentation. No auth, serviceability, payment or proof-gate changes.
 * Loaded last so existing desktop and tablet layouts remain intact.
 */

@media (max-width: 960px) {
  /* One legible five-item navigation bar, including 320px Android screens. */
  body.stage24-ui .itervo-mobile-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    padding: 4px max(4px, env(safe-area-inset-right))
      calc(5px + env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
    box-sizing: border-box;
  }
  body.stage24-ui .itervo-mobile-bar :is(a, button) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 59px;
    padding: 5px 2px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    touch-action: manipulation;
  }
  body.stage24-ui .itervo-mobile-bar .itervo-svg-icon {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
  }
  body.stage24-ui .itervo-mobile-bar .itervo-bar-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.1;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    letter-spacing: -0.015em;
  }
  body.stage24-ui .itervo-mobile-bar :is(a, button):focus-visible {
    outline: 3px solid #2b7955;
    outline-offset: -3px;
    border-radius: 10px;
  }
  /* Compact brand header while retaining the real ITERVO wordmark and profile. */
  body.stage24-ui .itervo-nav-wrap { padding: 5px 8px 0; }
  body.stage24-ui .itervo-nav-wrap .itervo-nav {
    min-height: 61px;
    padding: 5px 8px;
    border-radius: 15px;
    gap: 7px;
  }
  body.stage24-ui .itervo-nav-brand { min-width: 0; flex: 1 1 auto; }
  body.stage24-ui .itervo-brand-lockup { min-width: 0; }
  body.stage24-ui .itervo-brand-wordmark {
    display: block;
    width: min(138px, 43vw);
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
    object-position: left center;
  }
  body.stage24-ui .itervo-brand-lockup > small {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
  }
  body.stage24-ui .itervo-mobile-trigger {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
  /* Search remains a true role finder, not a decorative field. */
  body.stage24-ui .itervo-role-finder { max-width: calc(100% - 20px); }
  body.stage24-ui .itervo-finder-shell { min-width: 0; }
  body.stage24-ui .itervo-finder-input {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    text-overflow: ellipsis;
  }
  body.stage24-ui .itervo-mobile-panel { max-width: 100%; box-sizing: border-box; }
  body.stage24-ui .itervo-mobile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.stage24-ui .itervo-mobile-grid :is(a, button) { min-width: 0; overflow-wrap: anywhere; }
  body.stage24-ui :is(main, section, article) { min-width: 0; }
  body.stage24-ui :where(.geco-shell, .market-shell, .participate-shell, .dashboard-shell) {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Readable mobile-first page intros across Shop, Work, Green and My ITERVO. */
  body.stage24-ui :where(.geco-hero, .market-hero, .services-hero, .sw-hero, .passport-hero, .participate-hero) {
    padding: 25px 18px;
    border-radius: 19px;
    box-sizing: border-box;
  }
  body.stage24-ui :where(.geco-hero, .market-hero, .services-hero, .sw-hero, .passport-hero, .participate-hero) h1 {
    font-size: clamp(28px, 7vw, 39px);
    line-height: 1.13;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  body.stage24-ui :where(.geco-hero, .market-hero, .services-hero, .sw-hero, .passport-hero, .participate-hero) p {
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }
  body.stage24-ui :where(.geco-toolbar, .filter-row) > :where(input, select, button) {
    min-width: 0;
    min-height: 46px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* One 44px route into the scanner on account and service pages.
 * The homepage icon opens a compact scannable QR sticker. */
.itervo-shared-scan-link { display: none; }

/* Voice search also has a proper touch target on desktop/tablet layouts. */
body.stage24-ui .itervo-finder-voice {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eaf4ed;
  color: #124b37;
  cursor: pointer;
}
body.stage24-ui .itervo-finder-voice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body.stage24-ui .itervo-finder-voice.is-listening { background: #124b37; color: #fff; }
body.stage24-ui .itervo-finder-voice:disabled { opacity: .55; cursor: not-allowed; }
body.stage24-ui .itervo-finder-voice:focus-visible { outline: 3px solid #75ba8b; outline-offset: 1px; }

@media (max-width: 780px) {
  /* NEMO stays at the lower right, above the measured mobile bar. */
  body .nemo-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(var(--s24-bottom-nav-height, 76px) + 12px);
    width: 48px;
    height: 48px;
    min-height: 48px;
  }
  body .nemo-hint { display: none; }
  body .nemo-panel {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(var(--s24-bottom-nav-height, 76px) + 72px);
    width: min(420px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - var(--s24-bottom-nav-height, 76px) - 90px);
  }
  /* The scanner sits exactly above NEMO, without the long floating text pill. */
  body.stage22-home .itervo-scan-corner {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(var(--s24-bottom-nav-height, 76px) + 72px);
    z-index: 99;
  }
  body.stage22-home .itervo-scan-corner-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d5e4d9;
    background: #124b37;
    color: #fff;
    box-shadow: 0 5px 18px rgba(15, 42, 29, .17);
    animation: none;
  }
  body.stage22-home .itervo-scan-corner-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
  }
  body.stage22-home .itervo-scan-corner-icon svg { width: 23px; height: 23px; }
  body.stage22-home .itervo-scan-corner-toggle-copy { display: none; }
  /* A small scannable QR sticker above the toggle, never the desktop QR panel. */
  body.stage22-home .itervo-scan-corner.is-expanded .itervo-scan-corner-card {
    display: block !important;
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    width: min(184px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--s24-bottom-nav-height, 76px) - 120px);
    border-radius: 15px;
    overflow: hidden;
  }
  body.stage22-home .itervo-scan-corner.is-expanded .itervo-scan-corner-toggle { display: flex; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 0;
    gap: 6px;
    padding: 10px 10px 4px;
  }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-copy { order: 2; text-align: center; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-copy strong { font-size: 13px; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-kicker,
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-copy small { display: none; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-qr { width: 124px; height: 124px; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-qr img { width: 116px; height: 116px; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-open { margin: 4px 9px 9px; padding: 8px; font-size: 11px; }
  body.stage22-home .itervo-scan-corner-card .itervo-scan-corner-minimize { top: 3px; right: 3px; width: 27px; height: 27px; }
  body.stage22-home.itervo-design8-hero-visible .itervo-scan-corner {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.stage22-home.itervo-scan-input-active .itervo-scan-corner,
  body.stage22-home:has(.nemo-panel[open]) .itervo-scan-corner,
  body.stage22-home:has(.itervo-mobile-drawer.open) .itervo-scan-corner { display: none !important; }
  body:has(:is(input, textarea, select):focus) .nemo-launcher,
  body:has(.itervo-mobile-drawer.open) .nemo-launcher { display: none; }

  body.stage24-ui .itervo-shared-scan-link {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 80;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(var(--s24-bottom-nav-height, 76px) + 72px);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #d5e4d9;
    border-radius: 50%;
    background: #124b37;
    color: white;
    box-shadow: 0 5px 18px rgba(15, 42, 29, .17);
    text-decoration: none;
  }
  body.stage24-ui .itervo-shared-scan-link svg { width: 23px; height: 23px; }
  body.stage24-ui .itervo-shared-scan-link:focus-visible { outline: 3px solid #7bbd96; outline-offset: 3px; }
  body.stage24-ui:has(:is(input, textarea, select):focus) .itervo-shared-scan-link,
  body.stage24-ui:has(.nemo-panel[open]) .itervo-shared-scan-link,
  body.stage24-ui:has(.itervo-mobile-drawer.open) .itervo-shared-scan-link { display: none; }

  /* Search is a short top-right pill; it sits over the hero without adding a row. */
  body.stage22-home .itervo-role-finder,
  body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
    width: min(350px, calc(100% - 24px));
    margin: 0 12px -45px auto;
    transform: translateY(8px);
    z-index: 92;
  }
  body.stage22-home .itervo-role-finder .itervo-finder-shell,
  body.stage22-home:not(.itervo-unified-nav-active) .itervo-search-fallback {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 44px;
    padding: 2px 5px 2px 7px;
    border-radius: 14px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 6px 18px rgba(6,28,18,.18);
  }
  body.stage22-home .itervo-role-finder .itervo-finder-icon { width: 29px; height: 29px; }
  body.stage22-home .itervo-role-finder .itervo-finder-input { min-height: 38px; font-size: 16px; }
  body.stage22-home .itervo-role-finder .itervo-finder-key { display: none; }
  /* Bring the original headline back over the photograph, like desktop. */
  body.stage22-home .stage13-hero.itervo-design8-slideshow {
    min-height: 0;
    height: auto;
    display: block;
    padding: 67px 15px 30px;
    background: #163c2d;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer {
    inset: 0;
    height: 100%;
    background: #0d3022;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer::after {
    background: linear-gradient(180deg, rgba(5,26,18,.60), rgba(5,26,18,.72) 45%, rgba(5,26,18,.84));
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide {
    object-fit: cover;
    object-position: var(--it-hero-mobile-focal, center);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {
    position: relative;
    z-index: 1;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {
    max-width: 100%;
    transform: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow h1 {
    font-size: clamp(31px, 8.6vw, 40px);
    line-height: 1.07;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  body.stage22-home .stage13-hero-copy .eyebrow {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .08em;
  }
  body.stage22-home .stage13-hero-copy .s192-positioning {
    font-size: 13px;
    line-height: 1.45;
    margin: 10px 0 14px;
  }
  body.stage22-home .stage13-hero .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
  }
  body.stage22-home .stage13-hero .hero-actions .btn-primary {
    grid-column: auto;
    min-height: 46px;
    padding: 9px 10px;
    font-size: 13px;
  }
  body.stage22-home .itervo-hero-cta-long { display: none; }
  body.stage22-home .itervo-hero-cta-short { display: inline; }
  body.stage22-home .stage13-hero .hero-actions .btn-primary,
  body.stage22-home .stage13-hero .hero-actions .btn-secondary {
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
  }
  body.stage22-home .stage13-hero .hero-actions .btn-secondary,
  body.stage22-home .stage13-hero .hero-actions .s26-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  body.stage22-home .stage13-hero .hero-actions .s26-text-link {
    grid-column: 1 / -1;
    min-height: 25px;
    padding: 1px 8px;
  }
  body.stage22-home .stage13-hero .hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 7px 10px;
    margin-top: 8px;
  }
  body.stage22-home .stage13-hero .hero-trust-row span {
    flex: 0 1 auto;
    white-space: normal;
    font-size: 10px;
    padding: 4px 0;
  }
  /* All three discovery links remain visible: no hidden horizontal strip. */
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 8px;
    overflow: visible;
    margin-top: 10px;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door,
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:last-child {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    grid-column: auto;
    padding: 8px;
    scroll-snap-align: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-door:last-child {
    grid-column: 1 / -1;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-quote { display: none; }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-dots { bottom: 10px; }

  /* All five quick actions remain visible, including on 320px phones. */
  body.stage22-home .s31a-quick { padding-top: 20px; padding-bottom: 25px; }
  body.stage22-home .s31a-quick-head { gap: 6px; margin-bottom: 12px; }
  body.stage22-home .s31a-quick-head h2 { font-size: clamp(23px, 6.8vw, 30px); }
  body.stage22-home .s31a-quick-head p { font-size: 13px; line-height: 1.4; }
  body.stage22-home .s31a-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body.stage22-home .s31a-quick-grid > a {
    min-height: 111px;
    min-width: 0;
    padding: 13px;
    gap: 5px;
    border-radius: 17px;
    overflow-wrap: break-word;
  }
  body.stage22-home .s31a-quick-grid > a > span:first-child {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    min-width: 39px;
    flex-basis: 39px;
    border-radius: 12px;
    font-size: 20px;
  }
  body.stage22-home .s31a-quick-grid strong { font-size: 15px; line-height: 1.2; margin-top: 5px; }
  body.stage22-home .s31a-quick-grid small { font-size: 11px; line-height: 1.3; }
  body.stage22-home .s31a-quick-grid > a:last-child {
    grid-column: 1 / -1;
    min-height: 75px;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }
  body.stage22-home .s31a-quick-grid > a:last-child > span { grid-row: 1 / span 2; }
  body.stage22-home .s31a-quick-grid > a:last-child strong { align-self: end; margin-top: 0; }
  body.stage22-home .s31a-quick-grid > a:last-child small { align-self: start; }

  /* Beyond the screenshots: compact the remaining full homepage, not remove it. */
  body.stage22-home :where(.itervo-experiences, .s22-green-section, .s22-account-section) {
    padding-top: 28px;
    padding-bottom: 32px;
  }
  body.stage22-home :where(.itervo-experience-card, .engine-card, .action-card, .stage13-trust-grid > a) {
    min-width: 0;
    overflow-wrap: break-word;
  }
  body.stage22-home .itervo-experience-card { padding: 20px 17px; }
  body.stage22-home .itervo-experience-card h3 { font-size: clamp(24px, 6vw, 30px); }
  body.stage22-home .itervo-experience-actions { gap: 8px; flex-wrap: wrap; }
  body.stage22-home .itervo-experience-actions a { min-width: 0; }
  body.stage22-home .engine-card { min-height: 0; }
  body.stage22-home .hyderabad-grid { padding-top: 32px; padding-bottom: 20px; }
  body.stage22-home .coverage-explainer { padding-bottom: 30px; }
  body.stage22-home .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.stage22-home .action-card { min-height: 0; padding: 16px 13px; }
  body.stage22-home .action-card strong { overflow-wrap: break-word; }
  body.stage22-home .action-card small { font-size: 12px; line-height: 1.4; }
  body.stage22-home :where(.section-heading h2, .s22-green-section h2, .s22-account-section h2) {
    font-size: clamp(25px, 6.8vw, 34px);
    line-height: 1.16;
  }
  body.stage22-home #homeImpactStats { grid-template-columns: 1fr 1fr; }
  body.stage22-home :where(.impact-panel, .stage13-account-card) { min-width: 0; }
}

@media (max-width: 390px) {
  body.stage24-ui .itervo-mobile-grid { grid-template-columns: 1fr; }
  body.stage22-home .s31a-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.stage22-home .s31a-quick-grid > a { min-height: 105px; padding: 11px; }
  body.stage22-home .s31a-quick-grid > a:last-child { grid-column: 1 / -1; min-height: 75px; }
  body.stage22-home .s31a-quick-grid small { font-size: 10.5px; }
  body.stage22-home .stage13-hero.itervo-design8-slideshow { padding: 66px 13px 25px; }
  body.stage22-home .stage13-hero.itervo-design8-slideshow h1 { font-size: clamp(30px, 8.8vw, 36px); }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-design8-hero-doors { display: grid; }
  body.stage22-home .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 781px) {
  body.stage22-home .itervo-hero-cta-short { display: none; }
}

@media (max-width: 350px) {
  body.stage22-home .s31a-quick-grid > a:not(:last-child) small { display: none; }
  body.stage22-home .s31a-quick-grid > a:not(:last-child) { min-height: 92px; }
  body.stage22-home .action-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.stage22-home .itervo-scan-corner-toggle,
  body.stage22-home .s31a-quick-grid > a { animation: none; transition: none; }
}

/* M1c | signed-in journeys: visual refinements only; protected gates are unchanged. */
@media (max-width: 780px) {
  body.stage24-ui :where(.unified-dashboard-shell, .location-shell, .service-shell, .booking-shell,
    .participate-shell, .sw-shell, .geco-shell) {
    width: calc(100% - 24px);
    max-width: 100%;
    margin: 15px auto 32px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  body.stage24-ui :where(.dashboard-journey, .dev2-command-card, .activity-link,
    .location-card, .participate-panel, .catalog-card, .geco-panel, .geco-row,
    .sw-task, .sw-panel, .work-card) { min-width: 0; overflow-wrap: anywhere; }
  body.stage24-ui :where(.location-shell, .participate-shell, .service-shell, .booking-shell,
    .geco-shell, .sw-shell) :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  body.stage24-ui :where(.location-shell, .participate-shell, .service-shell, .booking-shell,
    .geco-shell, .sw-shell) :is(a.btn, button.btn, button[type='submit']) {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Account: quick paths read like a compact mobile menu, status keeps its context. */
  body.unified-dashboard-body .unified-dashboard-shell { gap: 19px; }
  body.unified-dashboard-body .dashboard-welcome { gap: 9px; }
  body.unified-dashboard-body .dashboard-welcome > div:first-child {
    padding: 18px;
    border-radius: 18px;
  }
  body.unified-dashboard-body .dashboard-welcome h1 {
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.1;
    margin: 7px 0 9px;
  }
  body.unified-dashboard-body .dashboard-welcome p { font-size: 13px; line-height: 1.45; }
  body.unified-dashboard-body .dashboard-wallet {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 12px;
    min-height: 0;
    padding: 12px 17px;
    border-radius: 17px;
  }
  body.unified-dashboard-body .dashboard-wallet small { grid-column: 1; font-size: 11px; }
  body.unified-dashboard-body .dashboard-wallet strong {
    grid-column: 1;
    font-size: 27px;
    margin: 0;
  }
  body.unified-dashboard-body .dashboard-wallet a { grid-column: 2; grid-row: 1 / 3; font-size: 12px; }
  body.unified-dashboard-body .dashboard-journeys { grid-template-columns: 1fr; gap: 8px; }
  body.unified-dashboard-body .dashboard-journey {
    grid-template-columns: 30px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 9px;
    min-height: 0;
    padding: 10px 12px;
    border-top-width: 0;
    border-left: 4px solid #bcc8c0;
    border-radius: 14px;
  }
  body.unified-dashboard-body .dashboard-journey.shop { border-left-color: #b47b1e; }
  body.unified-dashboard-body .dashboard-journey.service { border-left-color: #2a5b88; }
  body.unified-dashboard-body .dashboard-journey.project { border-left-color: #6654a8; }
  body.unified-dashboard-body .dashboard-journey.green { border-left-color: #1c6a42; }
  body.unified-dashboard-body .dashboard-journey > span { font-size: 22px; }
  body.unified-dashboard-body .dashboard-journey strong { margin: 2px 0; font-size: 15px; line-height: 1.2; }
  body.unified-dashboard-body .dashboard-journey p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.35; }
  body.unified-dashboard-body .dev2-command { gap: 10px; }
  body.unified-dashboard-body .dev2-command-grid { grid-template-columns: 1fr; gap: 8px; }
  body.unified-dashboard-body .dev2-command-card {
    grid-template-columns: 34px minmax(0,1fr) 12px;
    min-height: 0;
    gap: 9px;
    padding: 12px;
    border-radius: 15px;
  }
  body.unified-dashboard-body .dev2-command-card strong { font-size: 16px; margin: 3px 0 5px; }
  body.unified-dashboard-body .dev2-command-card em { font-size: 11.5px; line-height: 1.4; }
  body.unified-dashboard-body .dashboard-section-head { align-items: start; gap: 8px; flex-wrap: wrap; }
  body.unified-dashboard-body .dashboard-section-head h2 { font-size: 24px; line-height: 1.17; }
  body.unified-dashboard-body .dashboard-section-head > a,
  body.unified-dashboard-body .dashboard-refresh { min-height: 40px; display: inline-flex; align-items: center; }
  body.unified-dashboard-body .role-card-grid,
  body.unified-dashboard-body .activity-link-grid { grid-template-columns: 1fr; gap: 8px; }
  body.unified-dashboard-body .role-card { min-height: 0; padding: 15px; border-radius: 15px; }
  body.unified-dashboard-body .role-card .role-icon { font-size: 23px; }
  body.unified-dashboard-body .role-card .role-badge { margin: 5px 0 7px; }
  body.unified-dashboard-body .role-card p { margin: 5px 0 8px; }
  body.unified-dashboard-body .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  body.unified-dashboard-body .dashboard-stat { padding: 12px; border-radius: 14px; }
  body.unified-dashboard-body .dashboard-stat strong { font-size: 24px; }
  body.unified-dashboard-body .dashboard-hyderabad { padding: 17px; border-radius: 17px; gap: 12px; }
  body.unified-dashboard-body .dashboard-hyderabad h2 { font-size: 22px; }
  body.unified-dashboard-body .dashboard-hyderabad p { font-size: 12px; line-height: 1.5; }
  body.unified-dashboard-body .dashboard-hyderabad a { min-height: 44px; }

  /* Availability: keep the full verification flow while avoiding three tall choices. */
  body.stage24-ui .location-hero { padding: 7px 1px 9px; }
  body.stage24-ui .location-hero h1 {
    font-size: clamp(27px, 7vw, 35px);
    line-height: 1.11;
    margin: 8px 0;
  }
  body.stage24-ui .location-hero > p { font-size: 13px; line-height: 1.5; }
  body.stage24-ui .location-guardrails { gap: 5px; margin-top: 10px; }
  body.stage24-ui .location-guardrails span { padding: 5px 8px; font-size: 11px; }
  body.stage24-ui .location-card { padding: 14px; margin-top: 10px; border-radius: 16px; }
  body.stage24-ui .location-step { gap: 9px; margin-bottom: 12px; }
  body.stage24-ui .location-step h2 { font-size: 19px; line-height: 1.2; }
  body.stage24-ui .location-step p { font-size: 12px; line-height: 1.45; }
  body.stage24-ui .service-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  body.stage24-ui .service-choice button { min-width: 0; min-height: 71px; padding: 7px 4px; border-radius: 12px; }
  body.stage24-ui .service-choice button span { font-size: 22px; }
  body.stage24-ui .service-choice button strong { font-size: 12px; }
  body.stage24-ui .location-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  body.stage24-ui .location-tabs button { min-width: 0; min-height: 45px; padding: 7px; border-radius: 12px; font-size: 12px; }
  body.stage24-ui .location-tabs button:last-child { grid-column: 1 / -1; }
  body.stage24-ui .manual-grid { grid-template-columns: 1fr; gap: 10px; }
  body.stage24-ui .dev4-state-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  body.stage24-ui .dev4-state-grid > div { padding: 10px; border-radius: 12px; }
  body.stage24-ui .dev4-state-grid strong { font-size: 11px; }
  body.stage24-ui .dev4-state-grid small { font-size: 11px; }

  /* Participation + operational work: readable forms and actions, no skipped steps. */
  body.stage24-ui .participate-hero { padding: 18px; margin-bottom: 10px; border-radius: 17px; }
  body.stage24-ui .participate-hero h1 { font-size: clamp(25px,7vw,34px); line-height: 1.16; }
  body.stage24-ui .participate-hero p { font-size: 13px; line-height: 1.45; }
  body.stage24-ui .participate-panel { padding: 14px; margin: 10px 0; border-radius: 16px; }
  body.stage24-ui .step-head { gap: 9px; margin-bottom: 12px; }
  body.stage24-ui .step-head > span { width: 29px; height: 29px; flex: 0 0 29px; }
  body.stage24-ui .step-head h2 { font-size: 19px; line-height: 1.2; }
  body.stage24-ui .step-head p { font-size: 12px; line-height: 1.4; }
  body.stage24-ui .role-choice { min-height: 0; padding: 13px; }
  body.stage24-ui :where(.dev3-join-actions, .activity-actions, .work-actions) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.stage24-ui :where(.dev3-join-actions, .activity-actions, .work-actions) > :is(a, button) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
  }
  body.stage24-ui .work-card { padding: 13px; }

  /* Marketplace, product planning cart, and Student Work keep disclaimers visible. */
  body.stage24-ui .service-hero { gap: 10px; padding: 6px 0 12px; }
  body.stage24-ui .service-hero h1 { font-size: clamp(27px, 7vw, 35px); margin: 6px 0 9px; }
  body.stage24-ui .service-hero p { font-size: 13px; line-height: 1.5; }
  body.stage24-ui .service-hero-badge { padding: 11px 14px; border-radius: 13px; }
  body.stage24-ui .service-hero-badge > span { display: inline; font-size: 20px; margin-right: 7px; }
  body.stage24-ui .group-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  body.stage24-ui .group-tabs a { display: grid; place-items: center; min-height: 44px; padding: 8px 5px; text-align: center; font-size: 12px; border-radius: 12px; }
  body.stage24-ui .catalog-grid { gap: 16px; }
  body.stage24-ui .catalog-category-head { align-items: start; gap: 8px; flex-wrap: wrap; }
  body.stage24-ui .catalog-category-head h2 { font-size: 24px; }
  body.stage24-ui .catalog-card { grid-template-columns: 40px minmax(0,1fr); gap: 9px; padding: 12px; border-radius: 15px; }
  body.stage24-ui .catalog-icon { width: 40px; height: 40px; font-size: 22px; }
  body.stage24-ui .catalog-main h3 { font-size: 16px; }
  body.stage24-ui .catalog-main p { font-size: 12px; line-height: 1.4; }
  body.stage24-ui .catalog-price { grid-column: 2; gap: 8px; }
  body.stage24-ui .catalog-price strong { font-size: 19px; }
  body.stage24-ui .catalog-price .btn { min-height: 42px; }
  body.stage24-ui .itervo-digital-studio-mention { margin-top: 24px; padding: 13px; background: #f1f7f0; }
  body.stage24-ui .itervo-digital-studio-mention h2 { font-size: 19px; margin: 0 0 5px; }
  body.stage24-ui .itervo-digital-studio-mention p { font-size: 12px; line-height: 1.4; }
  body.stage24-ui .geco-hero { gap: 10px; }
  body.stage24-ui .geco-hero h1 { font-size: clamp(27px,7vw,35px); }
  body.stage24-ui .geco-row { grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
  body.stage24-ui .geco-row img { width: 64px; height: 64px; }
  body.stage24-ui .geco-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  body.stage24-ui .geco-actions { display: grid; grid-template-columns: 1fr; }
  body.stage24-ui .geco-actions > a { min-height: 44px; text-align: center; }
  body.stage24-ui .sw-hero { padding: 18px; gap: 10px; border-radius: 17px; }
  body.stage24-ui .sw-hero h1 { font-size: clamp(27px,7vw,35px); line-height: 1.12; }
  body.stage24-ui .sw-hero p { font-size: 13px; line-height: 1.5; }
  body.stage24-ui .sw-hero-card { padding: 13px; border-radius: 14px; }
  body.stage24-ui .sw-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
  body.stage24-ui .sw-actions :is(a,button) { width: 100%; min-height: 44px; }
  body.stage24-ui .sw-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  body.stage24-ui .sw-stat { padding: 10px; }
  body.stage24-ui .sw-panel { padding: 14px; border-radius: 16px; }
}

@media (max-width: 350px) {
  body.stage24-ui .dev4-state-grid { grid-template-columns: 1fr; }
  body.stage24-ui .group-tabs { grid-template-columns: 1fr; }
}

/* M1e | single-photo mobile hero: no repeated poster or visible horizontal join.
 * The original approved slideshow photograph fills one continuous hero surface.
 * Landscape edges crop on portrait phones, using the manifest's mobile focal. */
@media (max-width: 780px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 0;
    height: auto;
    padding: 67px 15px 31px;
    overflow: hidden;
    background-color: #153f30;
    background-image: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: transparent;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--it-hero-mobile-focal, center);
    max-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .itervo-hero-slide-layer::after {
    background: linear-gradient(180deg, rgba(5,25,17,.62) 0%, rgba(5,25,17,.58) 39%, rgba(5,25,17,.65) 73%, rgba(5,25,17,.80) 100%);
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    transform: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow .stage13-hero-copy > .eyebrow {
    display: none;
  }
  body.stage22-home .stage13-hero.itervo-design8-slideshow h1 {
    font-size: clamp(31px, 8.5vw, 40px);
    line-height: 1.07;
    margin-top: 0;
    text-wrap: balance;
  }
  body.stage22-home .stage13-hero-copy .s192-positioning {
    max-width: 100%;
    margin: 11px 0 14px;
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  body.stage22-home .stage13-hero.itervo-design8-slideshow {
    padding: 63px 13px 26px;
  }
}
