/* Shared research rows, with the Atlas section layout supplied by design-v2.css. */
.hk-home-research{--research-ink:#133b40;--research-muted:#526b6d;--research-link:#086b69;--research-rule:#ceded8;--research-panel:#eef5f2;color:var(--research-ink)}
.hk-home-research:is(.atlas-research,.hk-journal-research){--research-ink:#fff;--research-muted:#c7dfdb;--research-link:#b5f0de;--research-rule:#83a9a5;--research-panel:#144c50}
#latest-research{padding:clamp(48px,5vw,68px) 0}
#latest-research .atlas-research-grid{grid-template-columns:clamp(220px,27%,340px) minmax(0,1fr);gap:clamp(28px,4vw,48px)}
#latest-research .atlas-research-grid>div:first-child>p:not(.atlas-kicker){margin:18px 0}
#most-viewed-research{padding:44px 0}
.home-research-grid{display:block}
.home-research-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.hk-home-research .home-research-heading h2{margin:0;font:600 38px/1.15 var(--body);letter-spacing:-.035em;color:var(--research-ink)}
.hk-home-research .home-research-heading>a{display:inline-flex;align-items:center;gap:14px;min-height:40px;flex-shrink:0;color:var(--research-link);font:600 13px/1.5 var(--body)}
.home-research-list,.research-item-body,.research-item-content{min-width:0}
.home-research-item{min-width:0;padding:15px 0;border-top:1px solid var(--research-rule)}
.atlas-research .home-research-item{padding-block:10px}
.home-research-list>.home-research-item:last-child{padding-bottom:0}
.research-item-type{display:flex;flex-wrap:wrap;gap:3px 10px;margin-bottom:4px;font:600 11px/1.4 var(--body);color:var(--research-link)}
.research-item-type span+span{font-weight:400;color:var(--research-muted)}
.atlas-research .research-item-type{margin-bottom:5px;text-transform:uppercase;letter-spacing:.08em}
.hk-home-research .home-research-item h3{margin:0 0 2px;font:600 22px/1.27 var(--body);letter-spacing:-.02em;overflow-wrap:anywhere}
.atlas-research .home-research-item h3{text-wrap:pretty}
.hk-home-research .home-research-item h3 a{font:inherit;color:var(--research-ink)}
.research-item-tools{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;margin:0 0 2px}
.research-item-stats{display:flex;align-items:center;flex-wrap:wrap;gap:0 10px;min-height:25px;font:400 12px/1.5 var(--body);font-variant-numeric:tabular-nums;color:var(--research-muted)}
.research-item-stats>span{white-space:nowrap}
.research-item-stats>span+span{padding-left:10px;border-left:1px solid var(--research-rule)}
.research-item-extra{margin:0}
.research-item-extra summary{width:fit-content;cursor:pointer;padding:4px 0;font:500 13px/1.5 var(--body);color:var(--research-link)}
.research-item-extra summary::marker{color:var(--research-link)}
.research-item-extra[open]{flex-basis:100%;min-width:0}
.research-item-extra[open] summary{margin-bottom:7px}
.research-item-expanded{padding:18px 20px;background:var(--research-panel)}
.hk-home-research .research-item-expanded p{margin:0;font:400 15px/1.75 var(--body);color:var(--research-ink)}
.hk-home-research .research-item-expanded .figure-open{color:var(--research-link);margin-bottom:16px}
.research-item-expanded .paper-thumbnail{width:180px;max-height:160px;margin:0 0 10px;object-fit:contain}
.hk-home-research .research-item-authors{margin:0 0 3px;font:400 13px/1.5 var(--body);color:var(--research-muted)}
.research-item-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 18px}
.research-item-publication{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;min-width:0;font:400 12px/1.5 var(--body);color:var(--research-muted)}
.hk-home-research .research-item-publication a{font:500 13px/1.5 var(--body);color:var(--research-link);overflow-wrap:anywhere}
.hk-home-research .research-item-publication .research-item-doi{font:400 12px/1.5 var(--body);color:var(--research-muted)}
.research-item-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px}
.hk-home-research .research-item-actions a,.hk-home-research .research-item-actions button{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0;border:0;background:transparent;color:var(--research-link);font:600 13px/1.5 var(--body)}
.hk-home-research .hk-ranked-research{display:block;list-style:none;padding:0;margin:0}
.hk-home-research .hk-ranked-research>li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;padding:15px 0;border-top:1px solid var(--research-rule);align-items:start}
.hk-home-research .hk-ranked-research>li:last-child{padding-bottom:0}
.hk-home-research .hk-ranked-research .home-research-item{padding:0;border:0}
.hk-home-research .research-rank{color:#526b6d;font:500 20px/1.2 var(--body);font-variant-numeric:tabular-nums;letter-spacing:-.02em;white-space:nowrap}
.research-has-media{display:grid;grid-template-columns:minmax(0,1fr) 144px;column-gap:24px;align-items:start}
.research-image-button{position:relative;display:block;width:100%;padding:0;border:1px solid var(--research-rule);background:var(--research-panel);color:var(--research-link)}
.research-image-button img{display:block;width:100%;height:84px;padding:3px;object-fit:contain}
.research-image-button>span{position:absolute;right:0;bottom:0;padding:1px 4px;background:#fff;font:600 13px/1.3 var(--body)}
.hk-home-research a:hover{text-decoration:underline;text-underline-offset:4px}
.hk-home-research :is(a,button,summary):focus-visible{outline:2px solid var(--research-link);outline-offset:4px}
.hk-journal-research{padding:48px 0 42px;background:#083e43}
.hk-journal-research .home-research-heading{margin-bottom:14px}
.journal-research-sort{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.journal-research-sort a{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:38px;padding:7px 13px;border:1px solid var(--research-rule);
 background:transparent;color:var(--research-link);font:600 13px/1.35 var(--body)
}
.journal-research-sort a[aria-current]{border-color:var(--research-link);background:var(--research-link);color:#083e43}
.hk-journal-research .home-research-item h3{max-width:88ch;text-wrap:pretty}
.hk-home-research.hk-journal-research{--research-rule:#527b7b}
.journal-research-empty{margin:0;padding:16px 0 0;border-top:1px solid var(--research-rule);color:var(--research-muted)}
@media(max-width:1000px){
 .hk-home-research .home-research-heading h2{font-size:34px}
 .research-has-media{grid-template-columns:minmax(0,1fr) 120px;column-gap:18px}
 .research-image-button img{height:74px}
}
@media(max-width:720px){
 .hk-journal-research{padding:30px 0}
 .journal-research-sort{gap:6px;margin-bottom:12px}
 .journal-research-sort a{min-height:36px;padding:6px 8px;font-size:12px}
 #latest-research{padding:40px 0}
 #latest-research .atlas-research-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 #most-viewed-research{padding:32px 0}.home-research-heading{flex-wrap:wrap;gap:4px 12px;margin-bottom:12px}
 .hk-home-research .home-research-heading h2{font-size:29px}
 .hk-home-research .home-research-heading>a{min-height:34px}
 .hk-home-research .home-research-item h3{font-size:19px;line-height:1.3}
 .home-research-item{padding:13px 0}.research-item-tools{column-gap:10px}
 .research-item-extra summary{padding:5px 0}.research-item-expanded{padding:14px}
 .hk-home-research .hk-ranked-research>li{grid-template-columns:22px minmax(0,1fr);gap:8px;padding:13px 0}
 .hk-home-research .research-rank{font-size:17px}
 .research-has-media{grid-template-columns:minmax(0,1fr) 64px;column-gap:10px}
 .research-has-media .research-item-content{display:contents}
 .research-has-media :is(.research-item-tools,.research-item-authors,.research-item-meta){grid-column:1/-1}
 .research-image-button{grid-area:1/2}
 .research-image-button img{height:48px}
}

/* Publisher home: keep cover art and journal information legible at every width. */
.atlas-home .atlas-journal-section { padding-block: clamp(36px,4.5vw,64px); }
.atlas-home .atlas-journal-section .section-head { align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.atlas-home .atlas-journal-section .atlas-section-intro { margin: 0; max-width: 72ch; }
.atlas-home .atlas-journals { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; margin: 20px 0 0; }
.atlas-home .atlas-journals .journal-card:not([hidden]) { display: grid; grid-template-columns: clamp(72px,6.5vw,98px) minmax(0,1fr); align-items: start; gap: 16px; margin: 0; padding: 20px; }
.atlas-home .atlas-journals .journal-card[hidden] { display: none; }
.atlas-home .atlas-journals .journal-card.no-cover { grid-template-columns: 1fr; }
.atlas-home .atlas-journals .journal-cover-link { display: block; width: 100%; }
.atlas-home .atlas-journals .journal-cover,.home-journal-jacket { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.atlas-home .atlas-journals .journal-cover { object-fit: contain; object-position: top center; }
.home-journal-jacket { position: relative; isolation: isolate; overflow: hidden; background: #073b42; box-shadow: 1px 2px 5px #082e302b; }
.home-journal-jacket img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.home-journal-jacket::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#03252beb,transparent 82%); z-index: -1; }
.home-journal-jacket b { display: block; border-top: 2px solid #f4f9f3; margin: 12% 10%; padding-top: 6px; font: 600 clamp(14px,1.4vw,20px)/1.1 var(--body); overflow-wrap: anywhere; color: white; }
.atlas-home .journal-card-copy { display: flex; flex-direction: column; align-self: stretch; min-width: 0; }
.atlas-home .journal-card-copy h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.atlas-home .home-journal-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--accent2); font-size: 12px; }
.atlas-home .journal-description { -webkit-line-clamp: 3; margin-block: 8px 14px; }
.atlas-home .journal-card-action { align-self: start; margin-top: auto; }
@media(max-width:1100px) {
  .atlas-home .atlas-journals { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .atlas-home .atlas-journals { grid-template-columns: minmax(0,1fr); }
  .atlas-home .atlas-journals .journal-card:not([hidden]) { padding: 16px; gap: 14px; }
}

/* Give adjacent homepage sections one shared gap before the news heading. */
.atlas-home > .section:has(+ .publisher-home-news),
.atlas-home > #most-viewed-research:has(+ .publisher-home-news) { padding-bottom: 0; }
.publisher-home-news .journal-news { padding-block: clamp(28px,3.5vw,48px) clamp(36px,4.5vw,64px); }
.publisher-home-news .section-head { margin-bottom: 22px; }
.publisher-home-news .hk-news-grid { gap: clamp(18px,2.5vw,32px); }
.publisher-home-news .news-item { border-top: 1px solid var(--rule); padding-top: 14px; }
.publisher-home-news .news-item h3 { font-size: clamp(19px,1.7vw,24px); line-height: 1.3; }
.publisher-home-news .news-photo img { height: auto; aspect-ratio: 2.2; object-fit: contain; background: var(--pale); }

.publisher-home-news .news-photo { display: block; overflow: hidden; aspect-ratio: 2.2; background: var(--pale); }
.publisher-home-news .news-photo img { display: block; width: 100%; height: 100%; }
.publisher-home-news .news-photo img[src$="/banners/announcements.webp"] { object-fit: cover; }
.atlas-home :is(.news-photo,.journal-card a,.audience-tabs button,.home-subject-filters button):focus-visible {
  outline: 2px solid var(--accent2); outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .atlas-home .audience-panel:not([hidden]),
  .atlas-home .atlas-journals .journal-card:not([hidden]) { animation: hk-home-appear 180ms ease-out; }
  .atlas-home :is(.audience-tabs,.home-subject-filters) button { transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; }
  @keyframes hk-home-appear {
    from { opacity: .6; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .publisher-home-news .news-photo img,.atlas-home .journal-cover-link { transition: transform 200ms ease-out; }
  .publisher-home-news .news-item:has(a:hover) .news-photo img { transform: scale(1.025); }
  .atlas-home .atlas-journals .journal-card:has(a:hover) .journal-cover-link { transform: translateY(-3px); }
}
