/* V35.6 professional QA: responsive spacing consistency + Network search */
:root{--v36-space-1:.5rem;--v36-space-2:.75rem;--v36-space-3:1rem;--v36-space-4:1.5rem;--v36-space-5:2rem}
.brandbar,.shell main>section,.v1-nav-items,footer{box-sizing:border-box}
.search-submit{border:0;border-left:1px solid #d4dfeb;background:#0d4f86;color:#fff;font:inherit;font-weight:700;padding:.65rem .9rem;cursor:pointer}
.network-search-panel{min-height:420px}
.network-search-form{margin:var(--v36-space-4) 0}.network-search-form label{display:block;font-weight:700;margin-bottom:.55rem;color:#173a70}
.network-search-row{display:flex;gap:.65rem;align-items:stretch}.network-search-row input{flex:1;min-width:0;border:1.5px solid #9fb5d2;border-radius:10px;padding:.8rem .9rem;font:inherit}
.network-search-status{margin:1rem 0;padding:.85rem 1rem;border-radius:10px;background:#f6f9fd;color:#405169;line-height:1.5}
.network-search-results{display:grid;gap:.8rem}.network-search-card{border:1px solid #d7e2ed;border-radius:12px;padding:1rem;background:#fff}.network-search-card h3{margin:.1rem 0 .35rem;font-size:1rem}.network-search-card p{margin:.35rem 0;color:#5f6f82;line-height:1.55}.network-search-card .search-type{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#1556a8;margin-bottom:.3rem}.network-search-card a{color:#1556a8;font-weight:700;text-decoration:none}.network-search-card a:hover{text-decoration:underline}
/* Normalize vertical rhythm on all focused pages. */
.v1-focused main>section.v1-active{margin-top:0}.panel>.head{gap:1rem;margin-bottom:1rem}.panel>.head+ .muted{margin-top:0}.directory-grid,.research-paper-list,.live-grid,.global-region-grid{align-items:stretch}
@media(max-width:900px){.shell{padding-left:1rem!important;padding-right:1rem!important}.panel{padding:1.25rem!important}.brandbar{gap:.75rem!important}.v1-nav-items{gap:.2rem}.head{align-items:flex-start}.directory-grid{gap:1rem!important}}
@media(max-width:700px){
 body{overflow-x:hidden}.brandbar{padding:.8rem 1rem!important;align-items:center}.brand-logo-full{margin:0!important}.header-tools{width:100%;gap:.65rem!important}.brandbar .search{margin:0!important;height:auto;min-height:44px}.brandbar .search input[type="search"]{font-size:16px!important;padding:.7rem .6rem!important}.search-submit{padding:.65rem .8rem}
 .shell{padding:0 .8rem!important}.v1-nav{margin:0 0 1rem!important}.mobile-nav-toggle{min-height:44px}.v1-nav-items a,.nav-dropbtn{min-height:44px;display:flex;align-items:center}
 main{padding:0!important}main>section,.panel,.hero{margin-left:0!important;margin-right:0!important}.panel{padding:1rem!important;border-radius:12px!important}.panel>.head,.ct-head,.community-toolbar{gap:.75rem!important;margin-bottom:1rem!important}.panel h2{line-height:1.2;margin:.15rem 0!important}.panel h3{line-height:1.3}
 .actions,.form-actions,.community-actions,.member-controls{gap:.65rem!important}.actions .btn,.form-actions .btn{min-height:44px}.directory-grid,.research-paper-list,.live-grid,.global-region-grid,.ct-grid{gap:.85rem!important}.directory-card,.research-paper-card,.live-card,.global-region,.ct-card{padding:1rem!important}
 .network-search-row{flex-direction:column}.network-search-row .btn{width:100%;min-height:44px}.network-search-form{margin:1rem 0}.network-search-status{margin:.8rem 0}.network-search-card{padding:.9rem}
 footer{padding-left:1rem!important;padding-right:1rem!important}.modal{max-height:calc(100vh - 1.5rem);overflow:auto;margin:.75rem!important;padding:1rem!important}.profile-grid{gap:.75rem!important}
}
@media(max-width:420px){.shell{padding:0 .6rem!important}.panel{padding:.9rem!important}.brandbar{padding:.7rem .8rem!important}.lang{gap:.25rem}.lang button{min-width:36px;min-height:36px}.member-controls .btn{width:100%}}


/* V35.6 final QA: Search intentionally removed; unified desktop/mobile spacing. */
:root{--qa-space-1:.5rem;--qa-space-2:.75rem;--qa-space-3:1rem;--qa-space-4:1.5rem;--qa-space-5:2rem}
.brandbar{gap:var(--qa-space-4)!important;padding:1rem 1.5rem!important}
.header-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:.75rem 1rem!important}
.shell{padding:1.25rem!important;gap:1.25rem!important}
.tabbar-v9{gap:.25rem!important;padding:.65rem 1rem!important}
main>section{margin-bottom:1.25rem!important}
.panel,.card{margin-bottom:1.25rem!important}
.panel{padding:1.5rem!important}
.directory-grid,.cards{gap:1rem!important}
.actions,.form-actions{gap:.75rem!important;flex-wrap:wrap!important}
footer{gap:1.5rem!important;padding:1.5rem!important}
.footer-primary-nav{padding:1rem 1.25rem!important}
@media(max-width:900px){
 .brandbar{padding:.85rem 1rem!important;gap:1rem!important}
 .header-tools{justify-content:flex-start!important;width:100%!important}
 .shell{padding:1rem!important;gap:1rem!important}
 .panel{padding:1.25rem!important}
 .tabbar-v9{padding:.6rem .75rem!important}
}
@media(max-width:700px){
 .brandbar{padding:.75rem!important;gap:.75rem!important}
 .header-tools{display:grid!important;grid-template-columns:1fr auto!important;gap:.65rem!important;align-items:center!important}
 .header-tools>.btn.primary,.header-tools>.contact{margin:0!important}
 .header-tools .lang{justify-self:end!important}
 .header-tools .member-controls{grid-column:1/-1!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:.6rem!important;flex-wrap:wrap!important}
 .shell{padding:.75rem!important;gap:.75rem!important}
 .tabbar-v9{margin:0!important;padding:.55rem .65rem!important}
 main>section{margin-bottom:.9rem!important}
 .panel,.card{padding:1rem!important;margin-bottom:.9rem!important;border-radius:12px!important}
 .hero{padding:1.5rem 1.1rem!important;margin-top:.75rem!important}
 .hero h1{margin:.65rem 0 1rem!important}
 .actions{margin:1rem 0!important;gap:.6rem!important}
 .actions .btn{width:100%!important;text-align:center!important}
 .pillars{margin-top:1rem!important;gap:.75rem!important}
 .directory-grid,.cards{gap:.75rem!important}
 .directory-card{padding:1rem!important}
 .section-brand-logo{margin-bottom:.9rem!important}
 .footer-primary-nav{padding:.85rem .75rem!important}
 footer{margin:0 .75rem .75rem!important;padding:1.1rem!important;gap:1rem!important;grid-template-columns:1fr!important}
 .modal{padding:1.15rem!important}
 input,select,textarea,.btn{min-height:44px}
}


/* V35.6.1 — Mobile Spacing: mobile-only vertical rhythm correction. */
@media(max-width:700px){
  /* Keep desktop untouched; give mobile cards predictable breathing room. */
  .education-course-grid,
  .directory-grid,
  .research-paper-list,
  .live-grid,
  .global-region-grid,
  .ct-grid{gap:1.25rem!important;}

  .education-course-card,
  .directory-card,
  .research-paper-card,
  .live-card,
  .global-region,
  .ct-card{padding:1.15rem!important;}

  .education-course-card>div,
  .directory-card>div{display:block;}

  .education-course-card .tag,
  .directory-card .tag{display:inline-block;margin-bottom:.65rem!important;}

  .education-course-card h3,
  .directory-card h3{margin:.15rem 0 .65rem!important;line-height:1.32!important;}

  .education-course-card p,
  .directory-card p{margin:.55rem 0!important;line-height:1.55!important;}

  .education-course-card .course-meta{margin:.55rem 0 .7rem!important;line-height:1.45!important;}

  .education-course-card>.btn,
  .directory-card>.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:1rem!important;min-height:44px!important;}

  .education-category{margin:2rem 0 1rem!important;padding-bottom:.7rem!important;line-height:1.3!important;}
  .education-intro{margin-bottom:1rem!important;line-height:1.6!important;}
  .estro-fallback-notice,.education-link-note{margin:1rem 0!important;line-height:1.55!important;}
}


/* V35.6.2 — Mobile Back to Top */
.mobile-back-to-top{display:none}
@media(max-width:700px){
 html{scroll-behavior:smooth}
 .mobile-back-to-top{position:fixed;right:1rem;bottom:1rem;width:46px;height:46px;border:0;border-radius:50%;background:#0d4f86;color:#fff;font:800 1.35rem/1 sans-serif;align-items:center;justify-content:center;box-shadow:0 3px 12px rgba(0,0,0,.22);z-index:999;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
 .mobile-back-to-top.is-visible{display:flex;opacity:1;visibility:visible;transform:none}
}


/* V35.6.2 visibility hardening — mobile Back to Top */
@media(max-width:700px){
 .mobile-back-to-top{display:flex!important;right:18px!important;bottom:28px!important;width:58px!important;height:58px!important;background:#061a3a!important;color:#fff!important;border:3px solid #fff!important;border-radius:50%!important;font-size:30px!important;font-weight:900!important;box-shadow:0 4px 18px rgba(0,0,0,.45)!important;z-index:2147483647!important;opacity:0!important;visibility:hidden!important;transform:none!important}
 .mobile-back-to-top.is-visible{display:flex!important;opacity:1!important;visibility:visible!important}
}
