/* Responsive extension of desktop-cohesion.css, authorized for this release.
   Remove this file's link independently to restore the previous mobile styling. */
@media (max-width:1023px) {
  body {
    --site-ink:#173a51; --site-muted:#526b7a; --site-pale:#f1f6f9;
    --site-line:#d6e3eb; --site-blue:#00b1eb; --site-navy:#061227;
    --site-section-space:64px; --site-heading:clamp(30px,5vw,40px);
  }
  body[data-page] .agv_nav { border-bottom:1px solid #e8eef2; }
  body[data-page] .agave-products-wrap,
  body[data-page] .agave-inventory-wrap,
  body[data-page] .agave-reporting-wrap,
  body[data-page] .agave-page-wrap,
  body[data-page='home'] .agave-campaign-support .agv_productspage_container,
  body[data-page='home'] .agave-campaign-support .agv_productpage_ctacontainer { width:88%; margin-inline:auto; }

  body[data-page='home'] .agv_2columns_text .agv_headers,
  body[data-page] .inventory-intro h2,
  body[data-page] .agave-reporting-copy h2,
  body[data-page='home'] .agave-campaign-support .agv_productpage_secondarybebas.endbullets,
  body[data-page] .agave-feedback-heading h2,
  body[data-page] .agave-products .agave-journey-intro h2,
  body[data-page] .agave-products .agave-market-refined .agave-market-copy h2,
  body[data-page] .agave-products .agave-showcase-heading h2,
  body[data-page] .agave-case-panel .agave-case-copy h2,
  body[data-page] .agave-page-end h2 {
    font:400 var(--site-heading)/1.18 Poppins,sans-serif;
    letter-spacing:-.035em; color:var(--site-ink); text-wrap:balance;
  }
  body[data-page] .agave-reporting-copy h2,
  body[data-page] .agave-feedback-heading h2 { color:#fff; }
  body[data-page] .agave-case-header h1,
  body[data-page] .agave-contact-content header h1 { color:var(--site-ink); }
  body[data-page] .agv_button,
  body[data-page] .agv_nav_contact {
    min-height:48px; border-radius:6px; background:var(--site-blue); color:#052b3d;
    font:600 12px/1.5 Poppins,sans-serif; letter-spacing:.1em;
    border:1px solid transparent; padding:14px 22px; box-shadow:0 3px 8px #173a510c;
  }
  body[data-page] .agv_button:focus-visible,
  body[data-page] .agv_nav_contact:focus-visible { outline:3px solid #007da8; outline-offset:3px; }
  body[data-page='home'] .agv_masthead_text,
  body[data-page='home'] .agv_2columns_text > div:not(.agv_button_container),
  body[data-page='home'] .agv_2columns_text > p,
  body[data-page] .agave-products .agave-journey-intro > p,
  body[data-page] .agave-products .agave-market-refined .agave-market-copy > p,
  body[data-page] .agave-products .agave-showcase-heading > p,
  body[data-page] .agave-case-header > p,
  body[data-page] .agave-contact-content header > p:last-child {
    font:400 16px/1.75 Poppins,sans-serif; color:var(--site-muted);
  }
  body[data-page] .agave-inventory.inventory-calculator-section,
  body[data-page] .agave-reporting-section,
  body[data-page='home'] .agave-campaign-support #campaign-process,
  body[data-page] .agave-market-section.agave-market-refined,
  body[data-page] .agave-other-games.agave-games-showcase { padding-block:var(--site-section-space); }
  body[data-page] .agave-inventory.inventory-calculator-section,
  body[data-page] .agave-other-games.agave-games-showcase,
  body[data-page] .agave-page-end { background:var(--site-pale); }
  body[data-page] .agave-reporting-section,
  body[data-page] .agave-home-testimonials { background:var(--site-navy); }
  body[data-page] .agave-home-testimonials { padding-block:var(--site-section-space); }
  body[data-page] .agave-reporting-copy > p { font:400 16px/1.75 Poppins,sans-serif; color:#c4d4df; }
  body[data-page] .agave-reporting-copy li span { font-size:14px; line-height:1.65; }
  body[data-page] .agave-market-value dt { font-size:19px; line-height:1.4; }
  body[data-page] .agave-market-value dd { font-size:16px; line-height:1.75; color:var(--site-muted); }
  body[data-page] .agave-case-panel .agave-case-copy > p,
  body[data-page] .agave-case-story p { font:400 15px/1.75 Poppins,sans-serif; color:var(--site-muted); }
  body[data-page] .agave-case-story h3 { font:500 19px/1.45 Poppins,sans-serif; color:var(--site-ink); }
  body[data-page] .agave-case-panel { border-color:var(--site-line); }
  body[data-page] .agave-page-end h2 { margin-bottom:0; }
  body[data-page] .agv_endcta_body.agave-shared-contact { padding:var(--site-section-space) 6% 40px; }
  body[data-page] .agave-shared-contact .agv_endtitle {
    font:400 clamp(42px,7.5vw,64px)/1.06 'Bebas Neue',sans-serif; color:var(--site-ink); margin-bottom:24px;
  }
  body[data-page] .agave-shared-contact .agv_endcta_subhead { font:400 16px/1.75 Poppins,sans-serif; color:var(--site-muted); }
  body[data-page] .agave-project-form label,
  body[data-page] .agave-contact-form label { font:500 12px/1.5 Poppins,sans-serif; color:var(--site-ink); }
  body[data-page] .agave-project-form input,
  body[data-page] .agave-project-form textarea,
  body[data-page] .agave-contact-form input,
  body[data-page] .agave-contact-form textarea { min-height:50px; padding:13px 14px; border:1px solid #cbdce6; border-radius:6px; font:400 16px/1.5 Poppins,sans-serif; color:var(--site-ink); background:#fff; }
  body[data-page] .agave-project-form textarea,
  body[data-page] .agave-contact-form textarea { min-height:130px; }
}
@media (max-width:767px) {
  body[data-page='home'] .agv_homepage_2columns.photoleft { padding-block:64px; }
  body[data-page] .inventory-intro { margin-bottom:28px; }
  body[data-page] .inventory-asset-heading { align-items:flex-start; flex-direction:column; gap:6px; }
  body[data-page] .inventory-asset-heading h3 { font-size:16px; line-height:1.45; }
  body[data-page] .inventory-asset-heading strong { font-size:18px; }
  body[data-page] .inventory-asset-content p { font-size:15px; line-height:1.7; }
  body[data-page] .inventory-asset-content > span { font-size:12px; }
  body[data-page] .agave-products .agave-game-journey { padding-top:112px; padding-bottom:56px; }
  body[data-page] .agave-products .agave-journey-intro h2 { max-width:440px; }
  body[data-page] .agave-market-value { margin-top:28px; }
  body[data-page] .agave-showcase-heading { margin-bottom:30px; }
  body[data-page] .agave-phone-lineup {
    width:100vw; max-width:100vw; justify-content:flex-start;
    overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity;
    padding:8px 6vw 30px; scrollbar-width:thin; scrollbar-color:#8aafc1 #dfebf1;
  }
  body[data-page] .agave-showcase-phone { width:225px; flex:0 0 225px; scroll-snap-align:center; }
  body[data-page] .agave-showcase-phone + .agave-showcase-phone { margin-left:-18px; }
  body[data-page] .agave-showcase-phone figcaption { display:block; font-size:13px; }
  body[data-page] .agave-products .agave-lineup-note { font-size:11px; }
  body[data-page] .agave-shared-contact .agave-contact-form { margin-top:28px; }
  body[data-page] .agave-project-form-footer { align-items:flex-start; }
}

/* Mobile flow review: presentation changes are scoped below the desktop breakpoint. */
.inventory-mobile-total { display:none; }
@media (max-width:767px) {
  /* Start Home with the actual game, then the headline and introduction. */
  body[data-page='home'] .agv_masthead_container { gap:30px; padding-top:96px; }
  body[data-page='home'] .agv_masthead_phone { grid-row:1; }
  body[data-page='home'] .agv_masthead_left { grid-row:2; }

  /* One complete row: winner, soccer, jumbotron. */
  body[data-page='home'] .agv_hp_digitalmvp { width:100%; height:auto; margin:0; left:auto; transform:none; }
  body[data-page='home'] .agv_hp_digitalmvp_pics.agave-experience-collage {
    position:static; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto;
    gap:10px; width:100%; height:auto; margin:0; transform:none;
  }
  body[data-page='home'] .agave-experience-collage .agv_hp_digitalmvp_row { display:contents; }
  body[data-page='home'] .agave-experience-collage .agave-collage-photo,
  body[data-page='home'] .agave-experience-collage .agave-collage-wheel { display:none; }
  body[data-page='home'] .agave-experience-collage .agv_hp_digitalmvp_img {
    width:100%; max-width:none; height:clamp(160px,44vw,250px); margin:0;
    border-radius:7px; grid-column:auto; object-fit:cover;
  }
  body[data-page='home'] .agave-experience-collage .agave-collage-winner { order:1; }
  body[data-page='home'] .agave-experience-collage .agave-collage-crop { order:2; }
  body[data-page='home'] .agave-experience-collage .agave-collage-jumbotron { order:3; }

  /* Repeat the live calculated result after all five asset types. */
  body[data-page] .inventory-mobile-total {
    display:block; padding:26px 0; margin-top:28px; border-block:1px solid #cbdce6;
  }
  body[data-page] .inventory-mobile-total > span { display:block; color:#173a51; font:500 17px/1.5 Poppins,sans-serif; }
  body[data-page] .inventory-mobile-total output { display:block; margin-top:10px; color:#008bb8; font:400 clamp(36px,10vw,54px)/1.1 'Bebas Neue',sans-serif; white-space:nowrap; }
  body[data-page] .inventory-mobile-total p { margin:10px 0 0; font:400 14px/1.6 Poppins,sans-serif; color:#526b7a; }

  /* Heading, dashboard, summary, benefits, action. */
  body[data-page='home'] .agave-reporting-wrap.agave-reporting-split { display:flex; flex-direction:column; align-items:stretch; gap:0; }
  body[data-page='home'] .agave-reporting-copy { display:contents; }
  body[data-page='home'] .agave-reporting-copy h2 { order:1; margin:0; }
  body[data-page='home'] .agave-reporting-split .agave-dashboard { order:2; width:100%; margin:30px 0; }
  body[data-page='home'] .agave-reporting-copy > p { order:3; margin:0 0 24px; }
  body[data-page='home'] .agave-reporting-copy ul { order:4; margin:0 0 28px; }
  body[data-page='home'] .agave-reporting-copy > a { order:5; align-self:flex-start; }
  body[data-page] #dash-overview:not([hidden]) { display:flex; flex-direction:column; }
  body[data-page] #dash-overview .agave-dash-insights { display:contents; }
  body[data-page] #dash-overview .agave-engagement-chart { order:1; padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid #dce7ee; }
  body[data-page] #dash-overview .agave-dash-scorecards { order:2; }
  body[data-page] #dash-overview .agave-sponsor-distribution { order:3; }

  /* Introduce the question, show the phone, then explain the uses. */
  body[data-page] .agave-products .agave-market-refined .agave-market-layout { display:flex; flex-direction:column; align-items:stretch; gap:0; }
  body[data-page] .agave-market-copy { display:contents; }
  body[data-page] .agave-products .agave-market-refined .agave-market-copy h2 { order:1; margin:0 0 24px; }
  body[data-page] .agave-question-visual { order:3; margin-bottom:0; }
  body[data-page] .agave-market-copy > p { order:2; margin:0 0 30px; }
  body[data-page] .agave-market-value { order:4; margin-top:28px; }

  /* All five phones stay visible as one compact composition. */
  body[data-page] .agave-phone-lineup {
    width:100%; max-width:100%; left:auto; transform:none; justify-content:center;
    overflow:visible; scroll-snap-type:none; padding:8px 0 22px; gap:0;
  }
  body[data-page] .agave-showcase-phone { width:22%; flex:0 0 22%; scroll-snap-align:none; }
  body[data-page] .agave-showcase-phone + .agave-showcase-phone { margin-left:-2.5%; }
  body[data-page] .agave-showcase-phone img { border-width:2px; border-radius:clamp(9px,2.5vw,16px); box-shadow:-4px 7px 12px #16364e25; }
  body[data-page] .agave-showcase-phone:nth-child(2),
  body[data-page] .agave-showcase-phone:nth-child(4) { padding-top:8px; }
  body[data-page] .agave-showcase-phone:nth-child(3) { padding-top:16px; }
  body[data-page] .agave-showcase-phone figcaption { display:none; }

  /* Give the closing case-study action its own breathing room. */
  body[data-page='casestudies'] .agave-page-end { padding:60px 0 72px; }
  body[data-page='casestudies'] .agave-page-end > div { display:flex; flex-direction:column; align-items:flex-start; gap:32px; }
  body[data-page='casestudies'] .agave-page-end .agv_button { margin:0; }
}

@media (max-width: 767px) {
  .inventory-game-source { display: none; }
}

/* Keep the desktop asset layout open; condense the same content on mobile. */
.inventory-breakdown { display:contents; }
.inventory-breakdown > summary { display:none; }
@media (max-width:767px) {
  body[data-page] .inventory-breakdown { display:block; margin-top:24px; border:1px solid #cbdce6; border-radius:8px; background:#ffffff80; }
  body[data-page] .inventory-breakdown > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px; color:#173a51; cursor:pointer; list-style:none; }
  .inventory-breakdown > summary::-webkit-details-marker { display:none; }
  .inventory-breakdown > summary strong { display:block; font:500 17px/1.5 Poppins,sans-serif; }
  .inventory-breakdown > summary small { display:block; margin-top:4px; font:400 13px/1.6 Poppins,sans-serif; color:#526b7a; }
  .inventory-breakdown > summary svg { flex:none; width:22px; height:22px; color:#008bb8; transition:transform .2s ease; }
  .inventory-breakdown[open] > summary svg { transform:rotate(180deg); }
  .inventory-breakdown > summary:focus-visible { outline:3px solid #008bb8; outline-offset:3px; border-radius:8px; }
  body[data-page] .inventory-breakdown .inventory-game-map { margin:0; padding:0 18px 10px; }
  body[data-page] .inventory-mobile-total { border-top:0; margin-top:0; }
}

@media (max-width:767px) {
  body[data-page] .agave-dashboard .agave-followup-board { display:none; }
}

@media (max-width:767px) {
  body[data-page] .agave-products .agave-game-journey { padding-bottom:24px; }
  body[data-page] .agave-products .agave-journey-viewport { padding-bottom:32px; }
  body[data-page] .agave-products .agave-journey-visual:has(.agave-journey-controls:not([hidden])) .agave-journey-viewport { padding-bottom:125px; }
  body[data-page] .agave-market-section.agave-market-refined { padding-top:40px; }
}

/* A manual, single-screen walkthrough replaces panning only on phones. */
@media (max-width:767px) {
  body[data-page] .agave-products .agave-journey-intro { margin-bottom:30px; }
  body[data-page] .agave-products .agave-journey-viewport,
  body[data-page] .agave-products .agave-journey-visual:has(.agave-journey-controls:not([hidden])) .agave-journey-viewport { width:88%; margin-inline:auto; padding:0; overflow:visible; cursor:default; }
  body[data-page] .agave-products .agave-journey-track { display:block; width:100%; transform:none!important; }
  body[data-page] .agave-products .agave-journey-stages { display:block; width:100%; padding:0; }
  body[data-page] .agave-products .agave-journey-stages[aria-hidden],
  body[data-page] .agave-products .agave-journey-stages > li[hidden] { display:none!important; }
  body[data-page] .agave-products .agave-journey-stages > li { display:flex; flex-direction:column; align-items:center; gap:24px; width:100%; transform:none; }
  body[data-page] .agave-products .agave-stage-copy { position:static; width:100%; transform:none; order:2; }
  body[data-page] .agave-products .agave-stage-heading { padding-bottom:12px; }
  body[data-page] .agave-products .agave-journey-phone { width:230px; max-width:calc(100vw - 128px); margin:0; order:1; }
  body[data-page] .agave-products .agave-stage-arrow { display:none; }
  body[data-page] .agave-products .agave-journey-controls { position:absolute; top:var(--mobile-controls-top); bottom:auto; left:2%; right:2%; transform:translateY(-50%); display:grid; grid-template-columns:44px 1fr 44px; align-items:center; width:96%; margin:0; padding:0; gap:12px; border:0; border-radius:0; background:transparent; box-shadow:none; pointer-events:none; }
  body[data-page] .agave-products .agave-journey-play,
  body[data-page] .agave-products .agave-journey-progress { display:none; }
  .agave-journey-previous { grid-column:1; grid-row:1; }
  .agave-journey-next { grid-column:3; grid-row:1; }
  body[data-page] .agave-journey-position { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  body[data-page] .agave-journey-controls button { border:1px solid #9ccee0; border-radius:50%; color:#008dbb; background:#eef8fc; pointer-events:auto; }
  body[data-page] .agave-journey-controls button:disabled { opacity:.35; cursor:default; }
  body[data-page] .agave-market-refined .agave-question-body h3,
  body[data-page] .agave-market-refined .agave-question-intro { font-size:18px; line-height:1.5; margin-bottom:20px; }
  body[data-page] .agave-market-refined .agave-answer-list button,
  body[data-page] .agave-market-refined .agave-question-response { font-size:16px; }
  body[data-page] .agave-market-refined .agave-question-next,
  body[data-page] .agave-market-refined .agave-question-submit { font-size:16px; }
}

/* One mobile total; shrink the entire question phone without restyling its contents. */
@media(max-width:767px) {
  body[data-page] .inventory-value-multiple { display:none; }
  body[data-page] .agave-question-visual { max-width:330px; padding-block:14px; }
  body[data-page] .agave-question-visual::before { inset:46px 0; }
  body[data-page] .agave-market-refined .agave-question-demo { width:350px; max-width:none; height:725px; transform:scale(.8); transform-origin:top center; margin-bottom:-145px; }
}
