/* JASSH v0.3.7 — mobile polish, reviewer roster, editorial identifiers and account/menu cleanup. */

/* --------------------------------------------------------------------------
 * Search input: keep placeholder/content vertically centered on every device.
 * -------------------------------------------------------------------------- */
html .jassh-ui .vl-search,
html .jassh-ui .vl-search input,
html .jassh-ui .vl-search button { box-sizing:border-box !important; }
html .jassh-ui .vl-search input {
  height:100% !important;
  margin:0 !important;
  padding:0 14px !important;
  line-height:1.25 !important;
  vertical-align:middle !important;
}
html .jassh-ui .vl-search input::placeholder { line-height:normal !important; }
@media(max-width:992px){
  html.jassh-mobile-nav-open .jassh-ui .vl-search { height:46px !important; }
  html.jassh-mobile-nav-open .jassh-ui .vl-search input {
    height:46px !important;
    min-height:46px !important;
    padding:0 14px !important;
    font-size:14px !important;
    line-height:46px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .vl-search input::placeholder { line-height:46px !important; }
  html.jassh-mobile-nav-open .jassh-ui .vl-search button { height:46px !important; }
}

/* --------------------------------------------------------------------------
 * Mobile primary navigation: remove inherited white active boxes and empty rows.
 * About remains the only disclosure menu.
 * -------------------------------------------------------------------------- */
@media(max-width:992px){
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li:empty,
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li>a:empty { display:none !important; }
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li,
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li>a {
    background:transparent !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li>a {
    color:#fff !important;
    border:0 !important;
    border-radius:8px !important;
    box-shadow:none !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li>a:hover,
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li>a:focus {
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    box-shadow:inset 3px 0 #30d4c1 !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li>a[aria-current="page"],
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li.jassh-has-submenu.is-submenu-open>a {
    background:#0a4e81 !important;
    color:#fff !important;
    box-shadow:inset 4px 0 #30d4c1 !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li.jassh-has-submenu>ul {
    margin:4px 0 8px !important;
    padding:0 0 0 14px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_primary>li.jassh-has-submenu>ul>li>a {
    min-height:42px !important;
    display:flex !important;
    align-items:center !important;
    margin:3px 0 !important;
    padding:9px 12px !important;
    border-left:3px solid rgba(48,212,193,.55) !important;
    border-radius:0 7px 7px 0 !important;
    background:rgba(255,255,255,.055) !important;
    color:#f3fbff !important;
    font-size:14px !important;
    line-height:1.3 !important;
  }
}

/* --------------------------------------------------------------------------
 * Guest/authenticated account utility. Markup is now server-separated, so a
 * guest can never receive a My Account control.
 * -------------------------------------------------------------------------- */
.jassh-guest-utility { display:flex; align-items:center; gap:8px; }
@media(min-width:993px){
  html .jassh-ui .jassh-account-wrapper.is-guest .jassh-guest-utility {
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
  }
  html .jassh-ui .jassh-account-wrapper.is-guest .jassh-guest-links,
  html .jassh-ui .jassh-account-wrapper.is-guest .pkp_navigation_user {
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    margin:0 !important;
    padding:0 !important;
  }
}
@media(max-width:992px){
  html.jassh-mobile-nav-open .jassh-ui .pkp_navigation_user_wrapper {
    margin-top:14px !important;
    padding-top:12px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-guest .jassh-guest-utility {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-guest .vl-locale {
    margin:0 !important;
    padding:1px 2px 7px !important;
    color:#d9eef9 !important;
    font-size:12.5px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-guest .jassh-guest-links {
    display:block !important;
    margin:0 !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-guest .pkp_navigation_user.pkp_navigation_user {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-guest .pkp_navigation_user>li>a {
    min-height:44px !important;
    justify-content:center !important;
    padding:10px 12px !important;
    border:1px solid rgba(255,255,255,.13) !important;
    border-radius:8px !important;
    background:rgba(255,255,255,.075) !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:600 !important;
    text-align:center !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-authenticated .jassh-account-summary {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-authenticated .vl-locale {
    margin:0 !important;
    padding:0 2px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-authenticated .jassh-account-toggle {
    width:100% !important;
    min-height:44px !important;
    padding:10px 12px !important;
    border:1px solid rgba(255,255,255,.18) !important;
    border-radius:8px !important;
    background:rgba(255,255,255,.075) !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:600 !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-authenticated.is-account-open .pkp_navigation_user>li.profile>ul {
    margin-top:7px !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }
  html.jassh-mobile-nav-open .jassh-ui .jassh-account-wrapper.is-authenticated .pkp_navigation_user li a {
    min-height:42px !important;
    justify-content:center !important;
    padding:9px 10px !important;
    border-radius:7px !important;
    background:rgba(255,255,255,.07) !important;
    color:#fff !important;
    text-align:center !important;
  }
}

/* --------------------------------------------------------------------------
 * Reviewer roster: compact text-only cards; no fixed avatar column; robust word
 * wrapping at word boundaries on narrow phones.
 * -------------------------------------------------------------------------- */
html .jassh-ui .jassh-reviewer-roster {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
html .jassh-ui .jassh-reviewer-person {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:space-between !important;
  gap:9px !important;
  min-width:0 !important;
  min-height:132px !important;
  padding:14px 15px !important;
  border:1px solid #d4e7f1 !important;
  border-left:4px solid #19bcae !important;
  border-radius:10px !important;
  background:linear-gradient(145deg,#fff,#fbfeff) !important;
  box-shadow:0 4px 13px rgba(7,52,94,.035) !important;
}
html .jassh-ui .jassh-reviewer-copy { min-width:0 !important; }
html .jassh-ui .jassh-reviewer-person h3 {
  width:auto !important;
  max-width:100% !important;
  margin:0 0 5px !important;
  color:#062d63 !important;
  font:700 17px/1.2 var(--jassh-font-heading) !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
}
html .jassh-ui .jassh-reviewer-person p {
  margin:0 !important;
  color:#3a5874 !important;
  font-size:12.5px !important;
  line-height:1.45 !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}
html .jassh-ui .jassh-reviewer-person .jassh-reviewer-affiliation { font-weight:600 !important; }
html .jassh-ui .jassh-reviewer-person .jassh-reviewer-meta { margin-top:4px !important; color:#1b628e !important; }
html .jassh-ui .jassh-reviewer-ids {
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  margin:0 !important;
}
html .jassh-ui .jassh-reviewer-ids span {
  display:inline-flex !important;
  align-items:center !important;
  min-height:25px !important;
  padding:4px 9px !important;
  border:1px solid #c9e4ee !important;
  border-radius:999px !important;
  background:#f4fbfd !important;
  color:#087781 !important;
  font-size:10.5px !important;
  font-weight:700 !important;
  white-space:nowrap !important;
}
html .jassh-ui .jassh-reviewer-ids span+span:before { content:none !important; }
@media(max-width:767px){
  html .jassh-ui .jassh-reviewer-roster { grid-template-columns:minmax(0,1fr) !important; gap:8px !important; }
  html .jassh-ui .jassh-reviewer-person { min-height:0 !important; padding:12px 13px !important; }
  html .jassh-ui .jassh-reviewer-person h3 { font-size:16px !important; }
  html .jassh-ui .jassh-reviewer-person p { font-size:12px !important; }
  html .jassh-ui .jassh-reviewer-ids { gap:5px !important; }
  html .jassh-ui .jassh-reviewer-ids span { font-size:10px !important; padding:4px 8px !important; }
}

/* --------------------------------------------------------------------------
 * Editorial team: one operational Managing Editor, scope-aligned Associate
 * Editors, and compact scholarly identifiers.
 * -------------------------------------------------------------------------- */
html .jassh-ui .jassh-editor-section { margin:0 0 22px !important; }
html .jassh-ui .jassh-editor-section-heading { margin:0 0 11px !important; }
html .jassh-ui .jassh-editor-section-heading h2 {
  margin:1px 0 4px !important;
  color:#062d63 !important;
  font:700 25px/1.12 var(--jassh-font-heading) !important;
}
html .jassh-ui .jassh-editor-section-heading>p:last-child:not(.jassh-eyebrow) {
  max-width:72ch !important;
  margin:4px 0 0 !important;
  color:#496780 !important;
  font-size:12.5px !important;
  line-height:1.45 !important;
}
html .jassh-ui .jassh-editor-leadership {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
}
html .jassh-ui .jassh-editor-leadership .jassh-editor-column>h3 { margin-bottom:7px !important; }
html .jassh-ui .jassh-associate-section>.jassh-editor-column { width:100% !important; }
html .jassh-ui .jassh-associate-section>.jassh-editor-column>h3 { display:none !important; }
html .jassh-ui .jassh-associate-section .jassh-editor-list {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
html .jassh-ui .jassh-associate-section .jassh-editor-member {
  min-height:118px !important;
  align-items:flex-start !important;
  padding:12px !important;
  border:1px solid #d6e8f2 !important;
  border-left:4px solid #16b7ae !important;
  border-radius:9px !important;
  background:#fff !important;
}
html .jassh-ui .jassh-editor-board-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:18px !important;
}
html .jassh-ui .jassh-editor-member-copy { min-width:0 !important; flex:1 1 auto !important; }
html .jassh-ui .jassh-editor-member-focus {
  margin-top:4px !important;
  color:#1764a8 !important;
  font-size:10.5px !important;
  line-height:1.35 !important;
}
html .jassh-ui .jassh-editor-ids {
  display:flex !important;
  flex-wrap:wrap !important;
  gap:5px !important;
  margin-top:7px !important;
}
html .jassh-ui .jassh-editor-ids span {
  display:inline-flex !important;
  align-items:center !important;
  min-height:22px !important;
  padding:3px 7px !important;
  border:1px solid #cbe5ef !important;
  border-radius:999px !important;
  background:#f5fbfd !important;
  color:#087781 !important;
  font-size:9.5px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
html .jassh-ui .jassh-editor-leader { min-height:245px !important; }
html .jassh-ui .jassh-editor-leader .jassh-editor-ids { margin-top:6px !important; }
@media(max-width:900px){
  html .jassh-ui .jassh-editor-leadership,
  html .jassh-ui .jassh-editor-board-grid { grid-template-columns:minmax(0,1fr) !important; }
  html .jassh-ui .jassh-associate-section .jassh-editor-list { grid-template-columns:minmax(0,1fr) !important; }
}
@media(max-width:600px){
  html .jassh-ui .jassh-editor-section { margin-bottom:17px !important; }
  html .jassh-ui .jassh-editor-section-heading h2 { font-size:22px !important; }
  html .jassh-ui .jassh-editor-leader { min-height:0 !important; padding:13px !important; }
  html .jassh-ui .jassh-editor-identity { align-items:flex-start !important; gap:10px !important; }
  html .jassh-ui .jassh-editor-identity .jassh-demo-avatar { width:58px !important; height:58px !important; flex:0 0 58px !important; }
  html .jassh-ui .jassh-editor-member { padding:10px !important; }
  html .jassh-ui .jassh-editor-member .jassh-demo-avatar { width:44px !important; height:44px !important; flex:0 0 44px !important; }
  html .jassh-ui .jassh-editor-ids span { font-size:9px !important; }
}
