/* Multi-author navigation extension. The original approved researcher dashboard
   styles (css/styles.css) and visualizations are preserved. */
.explorer-header { display: grid; grid-template-columns: minmax(195px, 235px) minmax(260px, 570px) auto; justify-content: space-between; gap: 20px; padding-inline: max(26px, calc((100vw - 1420px)/2)); }
.explorer-header .header-search-wrap { justify-self: stretch; max-width: 570px; width: 100%; }
.explorer-header .brand-title { font-size: 25px; }
.directory-header-action { font-size: 12px; }
.author-search-shell { position: relative; min-width: 0; z-index: 40; }
/* Below the sticky header (z-index 30) so the header's results cover it, yet above the page sections. */
.author-search-shell.hero-search { z-index: 20; }
.author-search-shell .global-search { width: 100%; border: 1px solid #1F313C; background: #15222B; }
.author-search-shell .global-search:focus-within { background: #111B22; }
.author-search-results { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 99; background: #111B22; border: 1px solid rgba(141,184,255,0.28); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.549); padding: 7px; max-height: 385px; overflow: auto; }
.author-search-results[hidden] { display: none; }
.search-result { border: 0; display: flex; gap: 12px; align-items: center; padding: 10px 10px; width: 100%; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; color: #E8FFFC; }
.search-result:hover, .search-result.is-active { background: #1A2A35; }
.search-result-avatar { flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; width: 39px; height: 39px; background: rgba(92,235,213,0.12); color: #5CEBD5; font-size: 13px; font-weight: 800; }
.search-result-text { display: block; flex: 1; min-width: 0; }
.search-result-text strong { display:block; white-space: nowrap; overflow:hidden; text-overflow:ellipsis; font-size: 13px; }
.search-result-text small { display: block; color: #A9C9C5; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow:ellipsis; }
.search-result-arrow { color: #5CEBD5; font-size: 17px; }
.search-empty { color: #A9C9C5; padding: 16px; font-size: 12px; line-height: 1.6; }
.classification-note { border: 1px solid #B8902F; border-left: 3px solid #F5C451; background: rgba(245,196,81,0.12); color: #CFE9E5; padding: 12px 17px; border-radius: 10px; font-size: 12px; line-height: 1.65; margin: 0 0 20px; }
.classification-note strong { color: #E8FFFC; }
.pending-fields { padding: 36px; min-height: 260px; }
.pending-fields p { max-width: 600px; color: #A9C9C5; }
.profile-directory-back { color: #A9C9C5; padding: 0 15px 14px; font-size: 12px; font-weight: 700; display:block; }
.profile-directory-back:hover { color: #5CEBD5; }
/* The collapsed sidebar and the phone tab bar have room for the arrow only;
   the hidden text stays the link's accessible name, as in .nav-link. */
@media (max-width:1110px) {
  .profile-directory-back { display:flex; align-items:center; justify-content:center; min-height:40px; padding:0; margin-bottom:8px; border-radius:10px; font-size:0; }
  .profile-directory-back:hover { background:#1A2A35; }
  .profile-directory-arrow { font-size:18px; line-height:1; }
}
@media (max-width:800px) {
  .profile-directory-back { flex:0 0 36px; margin:0 4px 0 0; }
}

/* Landing layout */
.explorer-home { background: var(--bg); }
.explorer-main { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.home-hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(380px,.88fr); gap: 40px; align-items: center; min-height: 550px; padding: 66px 18px 57px; }
.hero-copy { max-width: 660px; }
.hero-eyebrow { color: #5CEBD5; font-weight: 800; font-size: 10.5px; letter-spacing: 1.65px; display:flex; align-items:center; gap: 9px; margin-bottom: 22px; }
.eyebrow-indicator { width: 7px; height: 7px; border-radius: 50%; background: #3AAFAB; box-shadow:0 0 0 5px rgba(92,235,213,0.18); }
.hero-copy h1 { font-size: clamp(42px, 4.3vw, 69px); letter-spacing: -3.4px; line-height: 1.08; margin: 0 0 21px; color: #E8FFFC; font-weight: 820; }
.hero-copy h1 span { color: #5CEBD5; }
.hero-description { color:#A9C9C5; font-size: 16px; line-height: 1.75; max-width: 570px; margin-bottom: 28px; }
.hero-search-area { max-width: 590px; }
.hero-search .global-search { min-height: 61px; border-radius: 13px; background:#111B22; border-color:rgba(141,184,255,0.28); box-shadow: 0 12px 34px rgba(0,0,0,0.3); padding: 0 17px; gap: 12px; }
.hero-search .global-search svg { width: 20px; height: 20px; }
.hero-search .global-search input { font-size: 13px; }
.search-hint { color: #A9C9C5; font-size: 10px; font-weight: 700; white-space:nowrap; }
.search-support { color: #8FB2AE; font-size: 11px; margin: 11px 2px 0; }
.hero-quicklinks { display:flex; gap: 29px; margin-top: 32px; flex-wrap: wrap; }
.hero-quicklinks a { font-size: 12px; color:#5CEBD5; font-weight: 750; }
.hero-quicklinks a:nth-child(2) { color:#A9C9C5; }
.hero-quicklinks a span { padding-left: 5px; }
.hero-quicklinks a:hover { text-decoration: underline; }
.hero-visual { min-height: 442px; position: relative; border-radius: 30px; background: radial-gradient(ellipse 70% 60% at 55% 45%, rgb(58 175 171 / 16%), transparent 70%), linear-gradient(147deg,#111B22 8%,#13262B 52%,#0E171D 100%); border: 1px solid rgba(92,235,213,0.28); overflow: hidden; box-shadow:0 16px 70px rgba(0,0,0,0.3); }
.constellation-label { position:absolute; top: 28px; left: 29px; font-size: 9px; font-weight: 780; letter-spacing: 1.2px; color:#A9C9C5; z-index:2; }
.constellation-label span { color:#5CEBD5; padding-inline:5px; }
.hero-constellation { display:block; width:100%; height: 100%; min-height:440px; }
.constellation-center { position:absolute; left:50%; top:47%; transform:translate(-50%,-50%); text-align:center; color:#E8FFFC; font-size:7px; letter-spacing:1px; font-weight:650; line-height:1.5; }
.constellation-center strong { font-size: 10px; letter-spacing:.7px; }
.constellation-chip { position:absolute; padding: 9px 12px; border:1px solid rgba(92,235,213,0.28); background: rgba(17,27,34,0.937); color: #CFE9E5; border-radius: 10px; box-shadow:0 5px 18px rgba(0,0,0,0.3); font-size: 10px; font-weight:700; white-space:nowrap; display:flex; gap:7px; align-items:center; }
.constellation-chip span { display:block; width:6px; height:6px; border-radius:100%; background:#8DB8FF; }
.chip-one { top: 26%; left: 4%; } .chip-two { top: 30%; right: 2%; } .chip-three { bottom: 16%; right: 9%; }
.chip-two span { background:#5CEBD5; } .chip-three span { background:#6FE39A; }
.constellation-footer { position:absolute; bottom:26px; left:28px; color:#A9C9C5; font-size:10px; }
.home-pulse { background: #111B22; border: 1px solid #1F313C; border-radius: 18px; min-height: 136px; display:grid; grid-template-columns:1.1fr 1fr 1fr 1fr; box-shadow:0 11px 38px rgba(0,0,0,0.3); padding: 27px 10px; }
.home-pulse > div { padding:0 29px; border-right:1px solid #1F313C; }
.home-pulse > div:last-child { border:0; }
.home-pulse small { display:block; color:#8FB2AE; font-size:9px; font-weight: 800; letter-spacing:1.2px; margin-bottom:7px; }
.home-pulse strong { display:block; color:#E8FFFC; font-size:30px; letter-spacing:-1px; line-height: 1.25; }
.home-pulse p { margin:5px 0 0; color:#8FB2AE; font-size:11px; }
.home-pulse .pulse-primary { display:flex; gap:15px; align-items: center; }
.pulse-icon { width:42px; height:42px; background:rgba(92,235,213,0.12); color:#5CEBD5; border-radius:12px; display:grid; place-items:center; font-size:19px; font-weight:800; }
.home-pulse .pulse-primary strong { color:#5CEBD5; }
.directory-section { padding: 95px 10px 90px; scroll-margin-top: 100px; }
.section-topline { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom: 30px; }
.section-topline .eyebrow, .perspectives-section .eyebrow { font-size: 10px; letter-spacing:1.3px; color: #5CEBD5; font-weight:800; margin-bottom: 10px; }
.section-topline h2, .perspectives-section h2 { font-size: 36px; letter-spacing:-1.5px; font-weight:790; color:#E8FFFC; margin:0 0 8px; }
.section-topline p, .perspectives-subtitle { color:#A9C9C5; font-size:13px; margin:0; }
.section-count { font-size:11px; padding: 9px 12px; border:1px solid #1F313C; border-radius:9px; background:#111B22; color:#A9C9C5; font-weight:650; white-space:nowrap; }
.directory-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.directory-note { font-size:11px; font-weight:700; color:#A9C9C5; display:flex; gap:8px; align-items:center; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#6FE39A; box-shadow:0 0 0 4px rgba(111,227,154,0.18); }
.directory-sort { border:1px solid #1F313C; background:#111B22; color:#A9C9C5; font-size:11px; font-weight:700; border-radius:8px; padding:7px 13px; min-width:84px; }
.directory-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.researcher-card { display:flex; flex-direction:column; padding:22px 22px 17px; min-height:183px; background:#111B22; border:1px solid #1F313C; border-radius:15px; transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease; position:relative; overflow:hidden; }
.researcher-card:hover { transform: translateY(-3px); border-color:rgba(92,235,213,0.28); box-shadow:0 16px 40px rgba(0,0,0,0.376); }
.researcher-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.researcher-avatar { width:43px; height:43px; display:grid; place-items:center; border-radius:13px; background:rgba(92,235,213,0.12); color:#5CEBD5; font-size:13px; font-weight:800; }
.researcher-card:nth-child(4n+2) .researcher-avatar { background:rgba(141,184,255,0.12); color:#8DB8FF; }
.researcher-card:nth-child(4n+3) .researcher-avatar { background:rgba(111,227,154,0.12); color:#6FE39A; }
.researcher-card:nth-child(4n+4) .researcher-avatar { background:rgba(245,196,81,0.12); color:#F5C451; }
.researcher-open { color:#8FB2AE; font-size:20px; }
.researcher-card-name { display:block; color:#E8FFFC; font-size:14px; font-weight:760; line-height:1.35; min-height:19px; margin-bottom:4px; }
.researcher-card-id { font-size:10px; color:#8FB2AE; margin-bottom:15px; }
.researcher-card-foot { display:flex; justify-content:space-between; gap:5px; align-items:center; border-top: 1px solid #1F313C; padding-top: 13px; margin-top:auto; font-size:10.5px; color:#A9C9C5; }
.researcher-card-foot strong { color:#A9C9C5; font-weight:760; }
.directory-empty { grid-column:1/-1; padding:55px; border:1px dashed rgba(141,184,255,0.28); background:#111B22; border-radius:15px; color:#A9C9C5; text-align:center; }
.directory-more-wrap { text-align:center; margin-top:25px; }
.directory-more { border-radius:10px; padding:11px 21px; }
.perspectives-section { padding:66px 10px 104px; scroll-margin-top: 90px; border-top:1px solid #1F313C; }
.perspectives-subtitle { margin-top:2px; margin-bottom:31px; }
.perspectives-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.perspectives-grid article { background:#111B22; border:1px solid #1F313C; border-radius:14px; padding:23px 20px 29px; min-height:170px; }
.perspective-index { color:#5CEBD5; font-size:11px; letter-spacing:1px; font-weight:800; }
.perspectives-grid h3 { font-size:14px; color:#E8FFFC; margin:27px 0 8px; }
.perspectives-grid p { color:#A9C9C5; font-size:11px; line-height:1.65; margin:0; }
.home-footer { border-top:1px solid #1F313C; padding:23px 10px 35px; display:flex; justify-content:space-between; align-items:center; gap:18px; color:#A9C9C5; font-size:10px; }
.home-footer > span:first-child { display:flex; align-items:center; gap:10px; }
.home-footer small { font-size:9px; letter-spacing:.18em; color:#5CEBD5; font-weight:700; }
.preview-notice { background:rgba(92,235,213,0.12); border-bottom:1px solid rgba(92,235,213,0.28); color:#A9C9C5; font-size:11px; text-align:center; padding:10px; font-weight:670; }
@media(max-width:1150px) {
 .explorer-header { grid-template-columns:180px minmax(230px,1fr) auto; padding:0 23px; }
 .home-hero { grid-template-columns: minmax(0,1fr) minmax(310px,.8fr); gap:15px; }
 .hero-copy h1 { font-size: clamp(39px,5vw,59px); }
 .directory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .perspectives-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .home-pulse > div { padding:0 17px; }
}
@media(max-width:850px) {
 .explorer-header { grid-template-columns:170px minmax(160px,1fr); }
 .directory-header-action { display:none; }
 .explorer-main { padding:0 20px; }
 .home-hero { grid-template-columns:1fr; padding:50px 5px 34px; }
 .hero-copy { max-width:none; }
 .hero-visual { min-height:280px; max-height:340px; }
 .hero-constellation { height: 340px; min-height:340px; }
 .home-pulse { grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px 0; }
 .home-pulse>div:nth-child(2) { border-right:0; }
 .home-pulse>div:nth-child(3) { border-right:1px solid #1F313C; }
 .directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
 .explorer-header { height:auto; min-height:104px; grid-template-columns:1fr; gap:10px; padding:12px 16px; }
 .explorer-header .brand { justify-content:flex-start; }
 .explorer-header .header-search-wrap { justify-self:stretch; }
 .explorer-main { padding: 0 14px; }
 .home-hero { padding:47px 5px 27px; }
 .hero-copy h1 { font-size:41px; letter-spacing:-2.5px; }
 .hero-description { font-size:14px; }
 .search-hint { display:none; }
 .hero-visual { min-height:280px; }
 .hero-constellation { transform: scale(1.07); }
 .chip-one { left:3%; top:26%; } .chip-two { top:34%; right:1%; }
 .constellation-label { font-size:8px; left:18px; }
 .home-pulse { padding:21px 2px; }
 .home-pulse > div { padding:0 14px; }
 .home-pulse small { font-size:8px; }
 .home-pulse strong { font-size:25px; }
 .home-pulse .pulse-primary { gap:9px; }
 .pulse-icon { display:none; }
 .section-topline { align-items:flex-start; flex-direction:column; }
 .section-topline h2, .perspectives-section h2 { font-size:30px; }
 .directory-section { padding:67px 2px 72px; }
 .directory-grid { grid-template-columns:1fr; }
 .researcher-card { min-height:148px; }
 .perspectives-grid { grid-template-columns:1fr; }
 .perspectives-grid article { min-height:auto; padding:20px 23px; }
 .perspectives-grid h3 { margin-top:13px; }
 .home-footer { align-items:flex-start; flex-direction:column; }
}
/* In the directory the search field must stay visible on phones; the old
   single-author header intentionally collapsed it to an icon. */
@media (max-width:540px) {
  .explorer-header .global-search, .hero-search .global-search,
  .explorer-header .global-search:focus-within, .hero-search .global-search:focus-within {
    width: 100%; padding: 0 13px;
  }
  .explorer-header .global-search input, .hero-search .global-search input {
    opacity: 1; width: 100%; min-width: 0;
  }
  /* The profile header keeps the collapsed field beside "View Scopus", so its
     results drop from the sticky header at full width instead of the field's. */
  .site-header:not(.explorer-header) .author-search-shell { position: static; }
  .site-header:not(.explorer-header) .author-search-results { left: 12px; right: 12px; top: calc(100% + 6px); }
}

/* ---------------------------------------------------------------------------
   Dark theme (splitech.org): controls and states shared by index and profile.
   Field and button borders are #4A6F7A, 3:1 against the dark surfaces, so the
   outline of every input stays visible; focus turns them neon aqua.
   --------------------------------------------------------------------------- */
.global-search, .author-search-shell .global-search, .hero-search .global-search,
.table-search, .atlas-directory-search, .atlas-directory-sort, .directory-sort,
.atlas-filter, .publications-filters select, .galaxy-more-field-label,
.galaxy-key .category-swatches .galaxy-category-button, .timeline-year-close,
.header-button, .section-count, .info-tip { border-color: var(--control-border); }
.global-search, .author-search-shell .global-search, .hero-search .global-search,
.table-search, .atlas-directory-search { background: var(--deep-void); }
.global-search:focus-within, .author-search-shell .global-search:focus-within,
.table-search:focus-within, .atlas-directory-search:focus-within { border-color: var(--neon-aqua); }
.button-outline, .atlas-refresh, .atlas-filter-clear, .geo-toggle, .galaxy-filter-reset { border-color: rgb(92 235 213 / 55%); }
.header-button, .button-solid, .button-outline { border-radius: 100px; }
.timeline-year-marker.is-open .timeline-year-count,
.timeline-year-marker.is-current-paper-year .timeline-year-count { fill: #0A0F14; }
select option { background: var(--dark-circuit); color: var(--white-signal); }
::selection { background: rgb(92 235 213 / 35%); color: var(--white-signal); }

/* Profile header actions: Publications (moved out of the side menu) sits left
   of "Open researcher profile"; on phones only Publications stays. */
.profile-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.profile-actions .profile-open { margin-left: 0; }
.profile-open.is-active { background: var(--neon-aqua); color: var(--deep-void); }
/* "?" next to ASJC (js/app.js asjcTip): the explanation opens right under the
   "?" on hover, focus or tap, with a small arrow pointing at it. js/app.js
   (placeAsjcTip) sets --tip-left / --tip-width so the box is shifted sideways
   just enough to stay inside the content column and the screen. */
.asjc-tip { position: relative; top: -1px; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin: 0 2px; padding: 0; vertical-align: middle; border: 1px solid var(--neon-aqua); border-radius: 50%; background: rgb(92 235 213 / 10%); color: var(--neon-aqua); font: 700 9px/1 var(--font-sans); cursor: help; }
.asjc-tip:hover, .asjc-tip:focus-visible { background: var(--neon-aqua); color: var(--deep-void); }
.asjc-tip::after { content: attr(data-tip); position: absolute; z-index: 60; top: calc(100% + 9px); left: var(--tip-left, 50%); transform: translateX(var(--tip-x, -50%)); width: var(--tip-width, min(320px, calc(100vw - 32px))); padding: 10px 12px; border: 1px solid var(--neon-aqua); border-radius: 10px; background: var(--midnight-steel); color: var(--white-signal); font: 400 12px/1.55 var(--font-sans); letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; box-shadow: 0 12px 30px rgb(0 0 0 / 50%); opacity: 0; visibility: hidden; pointer-events: none; }
.asjc-tip::before { content: ""; position: absolute; z-index: 61; top: calc(100% + 4px); left: 50%; width: 9px; height: 9px; margin-left: -5px; background: var(--midnight-steel); border-left: 1px solid var(--neon-aqua); border-top: 1px solid var(--neon-aqua); transform: rotate(45deg); opacity: 0; visibility: hidden; pointer-events: none; }
.asjc-tip:hover::after, .asjc-tip:focus::after, .asjc-tip:hover::before, .asjc-tip:focus::before { opacity: 1; visibility: visible; }
.journey-empty { margin: 18px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  .profile-actions .profile-publications { display: flex; }
}
@media (max-width: 540px) {
  .profile-strip { flex-wrap: wrap; }
  .profile-strip .profile-text { flex: 1 1 0; min-width: 0; }
  .profile-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
}
