/* UNTAN UI v86 CONSOLIDATED MOBILE — replaces stacked v78-v85 overrides
   Goals: fixed compact header, stable clickable menu, no horizontal overflow,
   smooth/light scrolling, responsive Home/OPAC/Stats/Browse/Contact/Detail/Search. */

html,body{width:100%;max-width:100%;overflow-x:hidden!important}
@supports (overflow:clip){html,body{overflow-x:clip!important}}

@media (max-width:900px){
  *,*::before,*::after{box-sizing:border-box!important}
  html{scroll-padding-top:85px!important;scroll-behavior:auto!important}
  body{margin:0!important;padding:0!important;position:relative!important;max-width:100%!important}
  body *{min-width:0}

  /* Keep scrolling cheap on phones/tablets. */
  .repo-global-topbar,.repo-global-navbar,.repo-global-menu,.repo-global-mobile-toggle,
  .repo-global-menu a,.search-panel,.search-panel .btn,.search-panel .icon-btn,
  .untan-page-card,.opac-v23-card,.opac-v23-item{
    animation:none!important;transition:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important
  }
  .hero,.untan-page,body{background-attachment:scroll!important}

  /* ===== FIXED HEADER: total 85px ===== */
  .repo-global-topbar{
    position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:2100!important;
    width:100%!important;height:28px!important;min-height:28px!important;max-height:28px!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
    background-size:auto 28px!important;background-position:center!important;box-shadow:none!important
  }
  .repo-global-topbar-inner{
    width:calc(100% - 16px)!important;max-width:1240px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
    margin:0 auto!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:7px!important;flex-wrap:nowrap!important;overflow:hidden!important
  }
  .repo-global-top-links,.repo-global-social{
    display:flex!important;align-items:center!important;width:auto!important;height:28px!important;min-height:28px!important;max-height:28px!important;
    margin:0!important;padding:0!important;gap:7px!important;white-space:nowrap!important;overflow:hidden!important
  }
  .repo-global-topbar a,.repo-global-topbar a:link,.repo-global-topbar a:visited{
    height:auto!important;min-height:0!important;margin:0!important;padding:0!important;font-size:9.2px!important;font-weight:700!important;
    line-height:1!important;white-space:nowrap!important
  }

  .repo-global-navbar{
    position:fixed!important;top:28px!important;left:0!important;right:0!important;z-index:2090!important;
    width:100%!important;height:57px!important;min-height:57px!important;max-height:57px!important;
    margin:0!important;padding:0!important;overflow:visible!important;
    transform:none!important;contain:none!important;
    background-image:linear-gradient(rgba(247,251,255,.20),rgba(247,251,255,.20)),url('/untan-ui/bg_header.webp')!important;
    background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
    box-shadow:0 3px 10px rgba(6,26,60,.06)!important
  }
  .repo-global-nav-inner{
    position:relative!important;z-index:2091!important;width:calc(100% - 16px)!important;max-width:1240px!important;
    height:57px!important;min-height:57px!important;max-height:57px!important;margin:0 auto!important;padding:0!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;
    overflow:visible!important;transform:none!important;contain:none!important
  }
  .repo-global-brand{
    display:flex!important;align-items:center!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
    height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;padding:0!important;gap:7px!important
  }
  .repo-global-brand-mark{width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important}
  .repo-global-brand-mark img{width:25px!important;height:25px!important;object-fit:contain!important}
  .repo-global-brand-text{font-size:9px!important;line-height:1.04!important;letter-spacing:.09em!important;max-width:132px!important;white-space:normal!important}
  .repo-global-mobile-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;z-index:2110!important;
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;
    border:1px solid #b9cbe0!important;border-radius:10px!important;background:#fff!important;color:#103a78!important;
    font-size:19px!important;font-weight:800!important;line-height:1!important;box-shadow:0 3px 9px rgba(13,39,83,.07)!important;
    pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important
  }

  /* Every page begins immediately after the fixed 85px header. */
  body>main,main{margin-top:85px!important;padding-top:0!important}

  /* ===== MOBILE MENU ===== */
  html.repo-mobile-menu-open,body.repo-mobile-menu-open{overflow-x:hidden!important;max-width:100%!important}
  body.repo-mobile-menu-open::before,html.repo-mobile-menu-open::before,
  body.repo-mobile-menu-open::after,html.repo-mobile-menu-open::after{content:none!important;display:none!important;pointer-events:none!important}
  .repo-global-menu{
    display:none!important;position:fixed!important;top:85px!important;left:8px!important;right:8px!important;z-index:2109!important;
    width:auto!important;max-width:520px!important;height:auto!important;margin:0 auto!important;padding:9px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
    border:1px solid #cbd9e9!important;border-radius:14px!important;background:#f8fbff!important;background-image:none!important;
    box-shadow:0 10px 24px rgba(8,23,47,.12)!important;overflow:visible!important;
    transform:none!important;contain:none!important;pointer-events:auto!important;opacity:1!important
  }
  .repo-global-menu.is-open{display:grid!important;pointer-events:auto!important}
  .repo-global-menu>a:not(.repo-global-nav-cta){
    display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;z-index:2111!important;
    width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;min-height:38px!important;max-height:38px!important;
    margin:0!important;padding:0 8px!important;border:1px solid #dce6f1!important;border-radius:9px!important;background:#fff!important;
    color:#172033!important;font-size:11.5px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;
    pointer-events:auto!important;touch-action:manipulation!important
  }
  .repo-global-menu>a.is-active:not(.repo-global-nav-cta){background:#e4edf9!important;color:#14498f!important;border-color:#c8d8ea!important}
  .repo-global-menu>.repo-global-nav-cta{
    grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;z-index:2111!important;
    width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;max-height:40px!important;
    margin:0!important;padding:0 12px!important;border-radius:9px!important;font-size:11.75px!important;pointer-events:auto!important
  }

  /* ===== WIDTH SAFETY ===== */
  main,main>section,section,header,footer,.repo-global-container,.container,.untan-container,
  .hero-inner,.latest-inner,.stats-inner,.faq-inner,.categories-inner,.untan-page-card,.untan-eprints-content{
    min-width:0!important;max-width:100%!important
  }
  .repo-global-container,.container,.untan-container,
  .hero .container,.latest .container,.stats .container,.faq .container,.categories .container{
    width:calc(100% - 20px)!important;margin-left:auto!important;margin-right:auto!important
  }
  img,svg,canvas,video,iframe{max-width:100%!important}
  input,select,textarea,button,pre,code{max-width:100%!important}

  /* ===== HOME ===== */
  section.hero,.hero{width:100%!important;max-width:100%!important;min-height:0!important;margin-top:0!important;padding-top:0!important;overflow:hidden!important}
  .hero-inner{
    display:block!important;width:100%!important;max-width:100%!important;min-height:0!important;
    margin:0 auto!important;padding:30px 0 36px!important;align-content:start!important;align-items:start!important
  }
  .hero-grid,.hero-layout,.hero-content-grid,.hero-columns,.home-grid,.quick-grid,.feature-grid,.features-grid,.browse-grid,.categories-grid,.latest-grid,.stats-grid,.faq-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important
  }
  .hero-copy,.hero-search,.hero-side,.hero-sidebar,.search-panel,.upload-card,.home-card,.category-card,.browse-card,.feature-card,.latest-card,.stats-card,.faq-card,#untan-latest-list,.paper-list{
    width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important
  }
  .eyebrow,.hero .eyebrow{
    display:inline-flex!important;align-items:center!important;width:auto!important;max-width:max-content!important;min-width:0!important;
    margin:0 0 14px!important;padding:6px 10px!important;border-radius:999px!important;font-size:10px!important;white-space:nowrap!important
  }
  .hero h1{
    max-width:10.5ch!important;margin:0 0 14px!important;font-size:2.15rem!important;line-height:1.04!important;letter-spacing:-.035em!important;
    overflow-wrap:normal!important;word-break:normal!important
  }
  .hero-lead{max-width:31ch!important;margin-bottom:20px!important;font-size:13px!important;line-height:1.58!important;overflow-wrap:normal!important}
  .search-panel{
    padding:7px!important;gap:7px!important;border-radius:11px!important;background:#f8fbff!important;
    box-shadow:0 8px 20px rgba(6,26,60,.08)!important
  }
  .search-panel input{height:42px!important;font-size:12.5px!important;padding:0 10px!important}
  .search-panel .icon-btn,.search-panel .btn{width:100%!important;height:42px!important;min-height:42px!important;font-size:12px!important}

  /* Video / FAQ media: always within viewport. */
  main>section>.container.split,.container.split,.split{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:24px!important}
  .media-card{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;aspect-ratio:16/9!important;margin:0 auto!important;overflow:hidden!important;border-radius:14px!important}
  .media-card iframe,.media-card video,.faq iframe,.faq video,iframe[src*="youtube.com"],iframe[src*="youtube-nocookie.com"]{
    position:absolute!important;inset:0!important;display:block!important;width:100%!important;max-width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important
  }

  /* ===== OPAC ===== */
  main.opac-v23{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important;overflow-x:hidden!important}
  main.opac-v23>.repo-global-container{width:100%!important;max-width:100%!important;margin:0 auto!important;padding-left:10px!important;padding-right:10px!important}
  .opac-v23-card{width:100%!important;max-width:100%!important;margin:0 auto!important;padding-left:12px!important;padding-right:12px!important;border-radius:14px!important}
  .opac-v23-search,.opac-v23-filters,.opac-v23-toolbar,.opac-v23-list,.opac-v23-pages,.opac-v23-item{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important}
  .opac-v23-item>div:nth-child(2){min-width:0!important}
  .opac-v23-item h2,.opac-v23-item p{max-width:100%!important;overflow-wrap:anywhere!important}

  /* ===== EPRINTS PAGES / ADVANCED SEARCH ===== */
  body .untan-page{width:100%!important;max-width:100%!important;min-width:0!important;padding:22px 0 36px!important}
  body .untan-page>.untan-container{width:calc(100% - 12px)!important;max-width:100%!important;margin:0 auto!important}
  body .untan-page-card{width:100%!important;max-width:100%!important;padding:14px 9px 18px!important;overflow:hidden!important;border-radius:11px!important}
  body .untan-page-title{margin-bottom:12px!important;padding:0 4px!important}
  body .untan-page-title h1{font-size:20px!important;line-height:1.2!important;margin:0 auto 10px!important}
  .untan-eprints-content,.untan-eprints-content form,.untan-eprints-content .ep_form,.untan-eprints-content .ep_search_fields,.untan-eprints-content .ep_search_controls{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
  .untan-eprints-content form{font-size:11px!important;line-height:1.35!important}
  .untan-eprints-content form table,.untan-eprints-content table.ep_form_input_grid,.untan-eprints-content .ep_search_fields table{width:100%!important;max-width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;margin:8px 0!important;overflow:hidden!important}
  .untan-eprints-content form th,.untan-eprints-content form td,.untan-eprints-content .ep_search_fields th,.untan-eprints-content .ep_search_fields td{min-width:0!important;padding:6px!important;font-size:10.5px!important;line-height:1.25!important;vertical-align:top!important;overflow-wrap:normal!important;word-break:normal!important}
  .untan-eprints-content form th,.untan-eprints-content .ep_search_fields th{width:24%!important;max-width:24%!important;white-space:normal!important;text-align:right!important;font-weight:700!important}
  .untan-eprints-content form td,.untan-eprints-content .ep_search_fields td{width:76%!important;max-width:76%!important}
  .untan-eprints-content form input[type="text"],.untan-eprints-content form input[type="search"],.untan-eprints-content form input[type="password"],.untan-eprints-content form input[type="email"],.untan-eprints-content form textarea{width:100%!important;max-width:100%!important;height:32px!important;min-height:32px!important;padding:5px 7px!important;font-size:11px!important;border-radius:7px!important}
  .untan-eprints-content form textarea{height:54px!important;min-height:54px!important;resize:vertical!important}
  .untan-eprints-content form select{width:auto!important;max-width:100%!important;min-width:92px!important;height:32px!important;padding:3px 24px 3px 7px!important;font-size:11px!important;border-radius:7px!important}
  .untan-eprints-content form input[type="submit"],.untan-eprints-content form input[type="reset"],.untan-eprints-content form button,.untan-eprints-content .ep_form_action_button{width:auto!important;min-width:0!important;min-height:32px!important;height:32px!important;padding:0 12px!important;font-size:11px!important;border-radius:7px!important;box-shadow:none!important}

  /* Floating WhatsApp never leaks outside viewport. */
  .float-wa,.wa-float,.whatsapp-float,[class*="wa-float"],[class*="whatsapp-float"]{right:12px!important;left:auto!important;max-width:calc(100vw - 24px)!important}
}

@media (max-width:520px){
  .repo-global-topbar-inner,.repo-global-nav-inner{width:calc(100% - 12px)!important}
  .repo-global-topbar a,.repo-global-topbar a:link,.repo-global-topbar a:visited{font-size:8.8px!important}
  .repo-global-brand-text{font-size:8.7px!important;max-width:120px!important}
  .repo-global-container,.container,.untan-container,.hero .container,.latest .container,.stats .container,.faq .container,.categories .container{width:calc(100% - 16px)!important}
  .hero-inner{padding:30px 0 32px!important}
  .hero h1{font-size:2.15rem!important;max-width:10.5ch!important}
  body .untan-page>.untan-container{width:calc(100% - 8px)!important}
  body .untan-page-card{padding:12px 7px 16px!important}
  .untan-eprints-content form th,.untan-eprints-content .ep_search_fields th{width:22%!important;max-width:22%!important;font-size:10px!important;padding:5px 4px!important}
  .untan-eprints-content form td,.untan-eprints-content .ep_search_fields td{width:78%!important;max-width:78%!important;padding:5px!important}
}

@media (max-width:380px){
  .repo-global-topbar a,.repo-global-topbar a:link,.repo-global-topbar a:visited{font-size:8.4px!important}
  .repo-global-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important;left:6px!important;right:6px!important}
  .repo-global-menu>.repo-global-nav-cta{grid-column:1/-1!important}
  .hero h1{font-size:2rem!important;max-width:10.5ch!important}
}

/* v87 professional responsive finishing */
@media (max-width:900px){
  body>main,main{margin-top:85px!important}
  .repo-global-navbar,.repo-global-nav-inner{transform:none!important;contain:none!important;overflow:visible!important}
  .faq-question{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;touch-action:manipulation!important}
  .faq-answer{max-width:100%!important;overflow-wrap:anywhere!important}
  .opac-v23-head{gap:12px!important;align-items:flex-start!important}
  .opac-v23-count{flex:0 0 auto!important}
  .opac-v23-search{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .opac-v23-search button{width:100%!important}
  .opac-v23-filters{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .opac-v23-filters label,.opac-v23-filters select,.opac-v23-filter-apply{width:100%!important;max-width:100%!important}
  .opac-v23-item{grid-template-columns:38px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}
  .opac-v23-year{grid-column:2!important;justify-self:start!important;margin-top:2px!important}
  .stats-v23,.stats-v23-card,.stats-v23-grid,.stats-v23-kpis,.stats-v23-latest{min-width:0!important;max-width:100%!important}
  .stats-v23-grid,.stats-v23-kpis{grid-template-columns:minmax(0,1fr)!important}
  .repo-global-footer-grid{grid-template-columns:minmax(0,1fr)!important;gap:22px!important}
}
@media (min-width:901px) and (max-width:1180px){
  .repo-global-container{width:calc(100% - 32px)!important}
  .repo-global-menu{gap:2px!important}
  .repo-global-menu>a:not(.repo-global-nav-cta){flex-basis:78px!important;width:78px!important;min-width:78px!important;max-width:78px!important;font-size:12.5px!important}
  .repo-global-menu>.repo-global-nav-cta{flex-basis:140px!important;width:140px!important;min-width:140px!important;max-width:140px!important;margin-left:6px!important}
}

/* =========================================================
   UNTAN UI v89 — professional locked mobile baseline
   - fixed header 85px, single-row topbar
   - social links stay right on mobile
   - mobile menu 2 columns x 3 rows, panel slightly lower
   - FAQ cards keep visible spacing
   - media/video gets safe breathing room
   - creator/NIM/email detail table left untouched
   ========================================================= */
@media (max-width:900px){
  html{scroll-padding-top:85px!important}

  /* Topbar: one row, account links left, socials right. */
  .repo-global-topbar{
    height:28px!important;min-height:28px!important;max-height:28px!important;
    overflow:hidden!important
  }
  .repo-global-topbar-inner{
    width:calc(100% - 16px)!important;height:28px!important;min-height:28px!important;max-height:28px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:nowrap!important;gap:6px!important;overflow:hidden!important
  }
  .repo-global-top-links,.repo-global-social{
    display:flex!important;align-items:center!important;width:auto!important;height:28px!important;
    min-height:28px!important;max-height:28px!important;margin:0!important;padding:0!important;
    white-space:nowrap!important;overflow:visible!important
  }
  .repo-global-top-links{gap:7px!important;flex:1 1 auto!important;min-width:0!important}
  .repo-global-social{gap:8px!important;flex:0 0 auto!important;justify-content:flex-end!important;margin-left:auto!important}
  .repo-global-topbar a,.repo-global-topbar a:link,.repo-global-topbar a:visited{
    display:inline-flex!important;align-items:center!important;gap:3px!important;height:28px!important;
    margin:0!important;padding:0!important;font-size:8.9px!important;font-weight:700!important;
    line-height:28px!important;white-space:nowrap!important
  }
  .repo-top-icon{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:11px!important;min-width:11px!important;font-size:10px!important;line-height:1!important;font-weight:800!important
  }
  .repo-global-social a{font-size:9.2px!important;line-height:28px!important}

  /* Navbar: 57px under the 28px topbar = total fixed header 85px. */
  .repo-global-navbar{
    top:28px!important;height:57px!important;min-height:57px!important;max-height:57px!important;
    transform:none!important;contain:none!important;overflow:visible!important
  }
  .repo-global-nav-inner{
    height:57px!important;min-height:57px!important;max-height:57px!important;
    transform:none!important;contain:none!important;overflow:visible!important
  }
  .repo-global-brand{height:48px!important;min-height:48px!important;max-height:48px!important}
  .repo-global-brand-mark{width:34px!important;height:34px!important;min-width:34px!important;flex-basis:34px!important}
  .repo-global-brand-mark img{width:25px!important;height:25px!important}
  .repo-global-brand-text{font-size:9px!important;line-height:1.04!important;letter-spacing:.09em!important}
  .repo-global-mobile-toggle{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}
  body>main,main{margin-top:85px!important;padding-top:0!important}

  /* Menu: 2 columns x 3 rows, CTA full width. Leave 7px breathing room below header. */
  .repo-global-menu{
    top:92px!important;left:8px!important;right:8px!important;width:auto!important;max-width:520px!important;
    margin:0 auto!important;padding:10px!important;gap:8px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    border-radius:14px!important;background:#f8fbff!important;box-shadow:0 10px 24px rgba(8,23,47,.12)!important;
    overflow:visible!important;transform:none!important;contain:none!important;pointer-events:auto!important
  }
  .repo-global-menu.is-open{display:grid!important}
  .repo-global-menu>a:not(.repo-global-nav-cta){
    width:100%!important;height:39px!important;min-height:39px!important;max-height:39px!important;
    padding:0 8px!important;border-radius:9px!important;font-size:11.5px!important
  }
  .repo-global-menu>.repo-global-nav-cta{
    grid-column:1/-1!important;width:100%!important;height:41px!important;min-height:41px!important;max-height:41px!important;
    margin:0!important;border-radius:9px!important;font-size:11.8px!important
  }

  /* Video/media: visible gutter and vertical breathing room. */
  .media-card{
    width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
    margin:18px auto 28px!important;aspect-ratio:16/9!important;border-radius:13px!important;overflow:hidden!important
  }
  .media-card iframe,.media-card video,.media-card img{
    display:block!important;width:100%!important;height:100%!important;max-width:100%!important;border:0!important
  }

  /* FAQ: explicit spacing between heading/description and every card. */
  .faq .section-desc{margin-bottom:24px!important}
  .faq-list{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:18px!important;row-gap:18px!important;margin-top:22px!important
  }
  .faq-item{
    margin:0!important;border:1px solid #d8e2ee!important;border-radius:12px!important;
    background:#fff!important;overflow:hidden!important;box-shadow:0 6px 18px rgba(15,23,42,.035)!important
  }
  .faq-item + .faq-item{margin-top:0!important}
  .faq-question{
    min-height:58px!important;padding:0 14px!important;gap:12px!important;
    font-size:12.5px!important;line-height:1.35!important
  }
  .faq-question span:last-child{
    width:26px!important;height:26px!important;flex:0 0 26px!important;border-radius:8px!important
  }
  .faq-answer p{margin:0!important;padding:0 14px 16px!important;font-size:12.5px!important;line-height:1.58!important}
  .faq-item.open .faq-answer{max-height:260px!important}

  /* Keep detail metadata natural; do not force creator/NIM/email inner-table sizing. */
  body.untan-detail-page .untan-eprints-content table:not(.ep_form_input_grid){table-layout:auto!important}
}

@media (max-width:380px){
  .repo-global-top-links{gap:5px!important}
  .repo-global-social{gap:6px!important}
  .repo-global-topbar a,.repo-global-topbar a:link,.repo-global-topbar a:visited{font-size:8.2px!important}
  .repo-global-social a{font-size:8.7px!important}
  .repo-global-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .repo-global-menu>.repo-global-nav-cta{grid-column:1/-1!important}
}


/* =========================================================
   CURRENT MOBILE BASELINE v101 — consolidated
   No stacked v90/v91/v92 FAQ overrides.
   ========================================================= */
@media (max-width:900px){
  /* Homepage hero: current accepted mobile positioning. */
  .hero-inner{padding-top:50px!important}
  .hero-inner .hero-lead{
    width:94%!important;
    max-width:94%!important;
    box-sizing:border-box!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* FAQ: current accepted gutter + spacing, one source of truth. */
  .faq-panel{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .faq-panel .section-kicker{margin:0 0 10px!important}
  .faq-panel .section-title{margin:0 0 14px!important;line-height:1.08!important}
  .faq-panel .section-desc{
    margin:0 0 22px!important;
    padding:0!important;
    line-height:1.7!important;
  }
  .faq-panel .faq-list{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    margin:0!important;
    padding:0!important;
  }
  .faq-panel .faq-item{
    margin:0!important;
    border:1px solid #d8e2ee!important;
    border-radius:14px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:none!important;
  }
  .faq-panel .faq-question{
    width:100%!important;
    min-height:64px!important;
    padding:18px 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    background:#fff!important;
    border:0!important;
  }
  .faq-panel .faq-question span:first-child{line-height:1.45!important}
  .faq-panel .faq-question span:last-child{
    flex:0 0 auto!important;
    width:28px!important;
    height:28px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:10px!important;
    background:#eef4ff!important;
  }
  .faq-panel .faq-answer{padding:0!important}
  .faq-panel .faq-answer p{
    margin:0!important;
    padding:0 16px 18px!important;
    line-height:1.7!important;
  }
  .faq-panel .faq-item.open .faq-answer{max-height:320px!important}
}

/* =========================================================
   V101 MOBILE GEOMETRY
   Match the canonical 85px header on pages that also load mobile-v81.css.
   Internal pages: 40px visual gap below header.
   Homepage hero keeps its accepted 50px internal top spacing.
   ========================================================= */
@media (max-width:900px){
  :root{--repo-fixed-header-height:85px!important}
  html{scroll-padding-top:85px!important}

  .repo-global-topbar{height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important}
  .repo-global-topbar-inner{height:28px!important;min-height:28px!important;max-height:28px!important;flex-wrap:nowrap!important;align-items:center!important}
  .repo-global-top-links,.repo-global-social{width:auto!important;height:28px!important;min-height:28px!important;flex-wrap:nowrap!important;padding:0!important}
  .repo-global-social{margin-left:auto!important;justify-content:flex-end!important}
  .repo-global-navbar{top:28px!important;height:57px!important;min-height:57px!important;max-height:57px!important}
  .repo-global-nav-inner{height:57px!important;min-height:57px!important;max-height:57px!important;padding:0!important;flex-wrap:nowrap!important;overflow:visible!important;transform:none!important;contain:none!important}
  .repo-global-navbar + main{margin-top:85px!important}
  .repo-global-menu{top:92px!important}

  /* Native EPrints pages (Browse / Contact / Advanced / detail wrapper). */
  main.untan-page,.untan-page{padding-top:40px!important}
}
