/* The legacy page themes load on demand. Give small-screen layout rules a
   stable priority whichever route or language the visitor opens first. */
@layer cybertel-responsive-pages {
  @media (min-width: 1101px) and (max-width: 1199px) {
    #page-about .r91-context-open {
      grid-template-columns: minmax(0, 1fr) !important;
    }
    #page-about .r91-context-open > .r91-context-link {
      flex-direction: row !important; align-items: center !important;
      min-height: 48px !important; gap: 12px !important; text-align: start !important;
    }
    #page-about .r91-context-open .r91-pattern-art,
    #page-about .r91-context-open .r91-pattern-art img {
      width: 48px !important; height: 48px !important;
    }
  }
  @media (max-width: 1100px) {
    #page-about > .c3-reading-nav.r91-about-navigation-v2 {
      position: static !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 6px !important;
      width: auto !important;
      height: auto !important;
      margin: 0 !important;
      padding: 16px clamp(16px, 3vw, 32px) !important;
      overflow: visible !important;
      transform: none !important;
    }
    #page-about .r91-about-navigation-v2 button {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      width: auto !important;
      min-width: 0 !important;
      min-height: 48px !important;
      height: auto !important;
      padding: 8px !important;
      gap: 7px !important;
      white-space: normal !important;
      font-size: .9375rem !important;
      text-align: start !important;
    }
    #page-about .r91-about-navigation-v2 button img {
      width: 30px !important; height: 30px !important; flex: none !important;
    }
    #page-support .c15-faq-layout {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) !important;
    }
    #page-support :is(.c15-faq-body, #cyb14-faq-list, .cyb14-faq-item, .cyb14-faq-item summary) {
      min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important;
    }
    :is(#page-login, #page-signup) .c15-auth-main {
      background: #0b2a45 !important;
    }
    :is(#page-login, #page-signup, #page-support, #page-contact, #page-policies)
      :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
      min-width: 0 !important;
      max-width: 100% !important;
      font-size: max(1rem, 16px) !important;
    }
    #page-solutions .cyb1673-removed-stats-space { display: none !important; }
  }

  @media (min-width: 681px) and (max-width: 1100px) {
    :is(#page-solutions, #page-about, #page-contact, #page-support, #page-account) .cyb-open-scene::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(90deg, #092a48 5%, rgba(9,42,72,.96) 29%, rgba(9,42,72,.81) 44%, transparent 71%);
      pointer-events: none;
    }
    #page-solutions .cyb1673-photo.cyb-open-scene-host { display: none !important; }
    #page-solutions .cyb1673-grid {
      min-height: clamp(350px, 45vw, 475px) !important;
      padding-block: 40px !important;
      align-content: center !important;
    }
    #page-solutions .cyb1673-hero-copy { max-width: min(50vw, 34rem) !important; }
    #page-about .c15-about-hero-grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) !important;
      min-height: clamp(340px, 45vw, 470px) !important;
      align-items: center !important;
    }
    #page-about .c15-about-photo { min-height: 0 !important; align-self: stretch !important; }
    #page-about .c15-about-photo > .cyb-open-scene-source { position: absolute !important; inset: 0 !important; }
    #page-about .c15-about-overlap { position: absolute !important; top: auto !important; bottom: 0 !important; }
  }

  @media (max-width: 680px) {
    :is(#page-solutions, #page-support, #page-contact, #page-about, #page-account) > .cyb-open-blend-hero {
      --photo-band: clamp(125px, 36vw, 218px);
      height: auto !important; min-height: 0 !important;
      padding: var(--photo-band) 0 0 !important;
      background: #0b2945 !important;
    }
    :is(#page-solutions, #page-support, #page-contact, #page-about, #page-account) .cyb-open-scene {
      bottom: auto !important;
      height: calc(var(--cyb1000-header-height, 100px) + var(--photo-band)) !important;
    }
    :is(#page-solutions, #page-support, #page-contact, #page-about, #page-account) .cyb-open-scene-photograph {
      inset: var(--cyb1000-header-height, 100px) 0 0 !important;
      background-size: cover !important;
      background-position: 50% 38% !important;
      mask-image: none !important;
    }
    :is(#page-solutions, #page-support, #page-contact, #page-about, #page-account) .cyb-open-scene::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(7,25,42,.3), transparent 60%, rgba(11,41,69,.15) 80%, #0b2945);
      pointer-events: none;
    }
    :is(#page-solutions, #page-support, #page-contact, #page-about, #page-account)
      :is(.cyb1673-grid, .c15-help-grid, .c15-contact-hero-grid, .c15-about-hero-grid, .c15-account-hero-grid) {
      display: block !important;
      width: 100% !important;
      height: auto !important; min-height: 0 !important;
      box-sizing: border-box !important;
      padding: 14px clamp(18px, 5vw, 28px) 28px !important;
      margin: 0 !important;
    }
    :is(#page-about, #page-account, #page-solutions) .cyb-open-scene-host,
    :is(#page-support, #page-contact) .cyb-open-scene-host { display: none !important; }
    :is(#page-support, #page-contact, #page-account, #page-about, #page-solutions)
      :is(.c15-help-copy, .c15-contact-hero-copy, .cyb1673-hero-copy, .c15-about-hero-grid > div:first-child, .c15-account-hero-grid > div:first-child) {
      min-height: 0 !important; padding: 0 !important; width: auto !important;
    }
    :is(#page-support, #page-contact, #page-account, #page-about, #page-solutions) .cyb-open-blend-hero h1 {
      font-size: clamp(1.8rem, 7.4vw, 2.75rem) !important;
      line-height: 1.07 !important;
      margin-block: 10px 12px !important;
    }
    :is(#page-support, #page-contact, #page-account, #page-about, #page-solutions) .cyb-open-blend-hero p:not(.cyb1673-kicker) {
      font-size: 1rem !important; line-height: 1.5 !important; margin-block: 0 16px !important;
    }
    :is(#page-support, #page-contact, #page-account, #page-solutions) :is(.c15-hero-actions, .cyb1673-actions) {
      margin-block: 0 !important; gap: 8px !important;
    }
    #page-about > .c3-reading-nav.r91-about-navigation-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #page-support .c15-faq-layout { grid-template-columns: minmax(0,1fr) !important; }
    :is(#page-login,#page-signup) .c15-auth-main { padding: 24px clamp(18px,5vw,28px) 36px !important; }
  }
}
