/* v65 — final mobile composition and accessibility polish.
   This layer deliberately leaves the desktop art direction untouched. */
@media (max-width: 600px) {
  /* Six primary destinations, two balanced rows. FREE CODES stays last and visible. */
  #networkr-view .site-nav,
  #eyefind-case-view .site-nav {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:minmax(44px,auto);
    width:100%;max-width:100%;overflow:visible!important;
    column-gap:7px;row-gap:8px;
    padding:4px 0 8px;
    justify-content:stretch;
  }
  #networkr-view .site-nav > a,
  #eyefind-case-view .site-nav > a {
    min-width:0;min-height:44px;
    padding:9px 5px!important;
    display:inline-flex;align-items:center;justify-content:center;
    text-align:center;white-space:nowrap;
    font-size:clamp(12px,3.45vw,15px)!important;
    line-height:1.05;
    box-sizing:border-box;
  }
  #networkr-view .site-nav > a.nav-bonus,
  #eyefind-case-view .site-nav > a.nav-bonus {
    font-size:clamp(12px,3.45vw,15px)!important;
    background:#ff8f76!important;
    color:#351b2f!important;
    border:2px solid #3b233d!important;
  }
  #networkr-view .site-nav .nr-bonus-glyph,
  #networkr-view .site-nav .nr-bonus-arrow,
  #eyefind-case-view .site-nav .nr-bonus-glyph,
  #eyefind-case-view .site-nav .nr-bonus-arrow {display:none!important}
  #networkr-view .header-layout,
  #eyefind-case-view .header-layout {row-gap:10px}

  /* The panoramic source used to be enlarged 3x across a tall hero: only a
     sliver of the illustration survived. Give the original character room. */
  #networkr-view .hero {
    display:flex!important;flex-direction:column;
    min-height:0!important;
    background:linear-gradient(145deg,#37284c 0%,#59446f 100%)!important;
    overflow:hidden;
  }
  #networkr-view .hero .hero-shade {display:none!important}
  #networkr-view .hero .hero-content {
    order:1;position:relative;min-height:0!important;
    width:calc(100% - 34px);
    padding:28px 0 27px!important;
    align-items:flex-start;
  }
  #networkr-view .hero .hero-text {width:100%;max-width:460px}
  #networkr-view .hero h1 {
    font-size:clamp(41px,10.6vw,54px)!important;
    line-height:.89!important;
    margin:14px 0 15px;
  }
  #networkr-view .hero .hero-text > p {max-width:390px;font-size:13px;line-height:1.48;margin-bottom:16px}
  #networkr-view .hero .hero-actions {gap:14px 19px}
  #networkr-view .hero .btn.large {min-width:0;min-height:44px;max-width:100%;font-size:clamp(18px,5.5vw,22px);padding:10px 13px}
  #networkr-view .hero .hero-image {
    order:2;display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:clamp(260px,78vw,345px)!important;
    max-width:100%;aspect-ratio:auto!important;
    object-fit:cover!important;object-position:77% center!important;
    z-index:auto!important;
  }
  #networkr-view .hero .hero-status {
    order:3;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;max-width:none;margin:0;
    display:grid!important;grid-template-columns:1fr 1fr;
    gap:6px 15px;padding:13px 17px!important;
    background:#30263fcf;border:0;border-top:2px solid #bba6c6;
    box-shadow:none;box-sizing:border-box;
  }
  #networkr-view .hero .hero-status > div {grid-column:1/-1}
  #networkr-view .hero .hero-status p {margin:3px 0;font-size:9px}
  #networkr-view .hero .hero-id {display:none!important}

  /* Share a consistent comfortable touch rhythm across the small screens. */
  #networkr-view .operations-grid {gap:10px}
  #networkr-view .operation-card {min-width:0}
  #networkr-view .section-padding {padding-block:38px 42px}
  #networkr-view .section-heading {margin-bottom:19px}
  #networkr-view .section-heading > p {line-height:1.4}
  #eyefind-demo-view .ef-proto-search button,
  #eyefind-demo-view .ef-random,
  #eyefind-demo-view .ef-ai-toggle {min-height:44px}
  #eyefind-demo-view .ef-categories button {min-height:44px}
  #eyefind-demo-view .ef60-breaking .main-container {padding-block:9px;row-gap:5px}
  #eyefind-demo-view .ef60-breaking #ef60-breaking-headline {margin:2px 0 0;min-height:2.7em;line-height:1.35}
  #eyefind-demo-view .ef60-breaking-controls button {min-height:36px!important}
  #eyefind-demo-view .ef60-trust-ribbon {gap:8px}
  #eyefind-demo-view .ef-proto-header {padding-block:18px 19px}
  #eyefind-demo-view .ef-proto-search-area {gap:9px}
  #eyefind-demo-view .ef-proto-content {padding-top:17px}
  #eyefind-demo-view .ef-proto-search input {font-size:16px!important}
  #networkr-view .contact-form input,
  #networkr-view .contact-form select,
  #networkr-view .contact-form textarea {font-size:16px!important}
}

@media (max-width: 767px) {
  /* One conversation, one composer. Keep greeting and quick starts together
     instead of pinning a second floating box to the bottom of the page. */
  body.nr-ai-mobile-page #eyefind-demo-view #ef-ai-panel {overscroll-behavior:contain}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-topbar {
    min-height:58px;box-sizing:border-box;
  }
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-chat {
    flex:1 1 auto!important;
    justify-content:flex-end;
    padding:12px 12px 9px;
    scroll-padding-bottom:12px;
  }
  body.nr-ai-mobile-page.ef-ai-has-user #eyefind-demo-view .ef-ai-chat {justify-content:flex-start}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-starter {
    display:block;position:relative!important;
    order:2;flex:0 0 auto;
    left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
    margin:0 12px 12px;
    padding:12px!important;
    border-radius:10px;
    box-shadow:0 3px 12px #174e6315;
    background:#fff;
  }
  body.nr-ai-mobile-page.nr-ai-editing #eyefind-demo-view .ef-ai-mobile-starter,
  body.nr-ai-mobile-page.ef-ai-has-user #eyefind-demo-view .ef-ai-mobile-starter,
  body.nr-ai-mobile-page.nr-ai-mobile-options-open #eyefind-demo-view .ef-ai-mobile-starter {display:none!important}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-starter > strong {font-size:14px;line-height:1.25}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-starter-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-starter-grid button {min-height:44px!important;padding:9px 5px;font-size:9px}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-options,
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-close {min-height:40px;}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-close {width:40px;flex-basis:40px}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-options {font-size:10px;padding-inline:9px}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-composer {
    z-index:3;position:relative;
    padding:9px 10px max(10px,env(safe-area-inset-bottom))!important;
  }
  body.nr-ai-mobile-page #eyefind-demo-view #ef-ai-composer-input {height:44px;min-height:44px;font-size:16px!important}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-composer button {min-height:44px;min-width:76px}
  body.nr-ai-mobile-page.nr-ai-mobile-options-open #eyefind-demo-view .ef-ai-chat {min-height:80px}
  body.nr-ai-mobile-page.nr-ai-mobile-options-open #eyefind-demo-view .ef-ai-history {
    flex:0 1 auto;max-height:min(26dvh,220px);
  }
  body.nr-ai-mobile-page.nr-ai-mobile-options-open #eyefind-demo-view .ef-ai-controls {
    flex:0 0 auto;padding:10px 12px!important;
  }
}
@media (max-width: 355px) {
  #networkr-view .site-nav > a,
  #eyefind-case-view .site-nav > a,
  #networkr-view .site-nav > a.nav-bonus,
  #eyefind-case-view .site-nav > a.nav-bonus {font-size:12px!important;padding-inline:2px!important}
  #networkr-view .hero h1 {font-size:43px!important}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mark {display:none}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-starter > strong {font-size:13px}
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-mobile-starter-grid button {font-size:8px}
}
@media (prefers-reduced-motion:reduce){
  #networkr-view .site-nav a,
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-bubble {scroll-behavior:auto;transition:none}
}

/* Empty conversation: balance whitespace above and below the welcome stack.
   After the first prompt, the ordinary scrolling conversation takes over. */
@media(max-width:767px){
  body.nr-ai-mobile-page:not(.ef-ai-has-user):not(.nr-ai-mobile-options-open):not(.nr-ai-editing) #eyefind-demo-view #ef-ai-panel::before,
  body.nr-ai-mobile-page:not(.ef-ai-has-user):not(.nr-ai-mobile-options-open):not(.nr-ai-editing) #eyefind-demo-view #ef-ai-panel::after {
    content:"";display:block;flex:1 1 0;min-height:0;
  }
  body.nr-ai-mobile-page:not(.ef-ai-has-user):not(.nr-ai-mobile-options-open):not(.nr-ai-editing) #eyefind-demo-view #ef-ai-panel::before {order:1}
  body.nr-ai-mobile-page:not(.ef-ai-has-user):not(.nr-ai-mobile-options-open):not(.nr-ai-editing) #eyefind-demo-view #ef-ai-panel::after {order:4}
  body.nr-ai-mobile-page:not(.ef-ai-has-user):not(.nr-ai-mobile-options-open):not(.nr-ai-editing) #eyefind-demo-view .ef-ai-chat {
    order:2;flex:0 1 auto!important;max-height:min(40dvh,310px)!important;
  }
  body.nr-ai-mobile-page:not(.ef-ai-has-user):not(.nr-ai-mobile-options-open):not(.nr-ai-editing) #eyefind-demo-view .ef-ai-mobile-starter {order:3}
}
@media(max-width:355px){#networkr-view .hero h1{font-size:38px!important;letter-spacing:-.024em}}

@media(max-width:767px){
  /* Messages settle near the composer while short, and scroll normally once
     the transcript grows beyond the viewport. */
  body.nr-ai-mobile-page.ef-ai-has-user #eyefind-demo-view .ef-ai-chat > .ef-ai-bubble:first-child {margin-top:auto}
  /* Related links should be one compact swipeable row, not a partially cut-off stack. */
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-response-links:not([hidden]) {
    display:flex!important;flex-direction:row;flex-wrap:nowrap;align-items:center;
    order:2;flex:0 0 auto;
    overflow-x:auto;overflow-y:hidden;
    width:100%;min-height:56px;max-height:56px!important;
    padding:7px 12px;box-sizing:border-box;gap:8px;
    white-space:nowrap;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-response-links > strong {
    width:auto;max-width:none;flex:0 0 auto;
    margin:0!important;font-size:0;white-space:nowrap;
  }
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-response-links > strong::after {
    content:'EXPLORE';font:800 9px/1 var(--mono);color:#5c8490;
  }
  body.nr-ai-mobile-page #eyefind-demo-view .ef-ai-response-links button {
    min-height:40px;flex:0 0 auto;white-space:nowrap;padding:8px 10px;
  }
}
