/* Homepage-only navigation groups and article tiles. Shared navigation motion,
   journal themes, complete article text and Show more behavior are unchanged. */
body.journal-home {
  overflow-x: clip;
}

.page-wrap.home-page {
  width: calc(100% - 56px);
  max-width: 1720px;
  padding-top: 0;
}
.home-page .article-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.home-page .article-title-row .article-archive-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
@media (min-width: 1181px) {
  .home-page--cdpr .hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 2.2vw, 2.6rem);
    white-space: nowrap;
  }
}
.home-page .home-banner {
  position: relative;
  isolation: isolate;
  height: 220px;
  margin: 0;
}
.home-page .home-banner::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  top: calc(-1 * (var(--publisher-nav-height) + var(--journal-nav-height)));
  z-index: -1;
  content: "";
  background-color: var(--brand);
  background-image:
    linear-gradient(110deg, rgba(37, 32, 62, .58), rgba(36, 67, 102, .28)),
    var(--home-banner-image);
  background-image:
    linear-gradient(110deg, color-mix(in srgb, var(--dark) 58%, transparent), color-mix(in srgb, var(--brand) 28%, transparent)),
    var(--home-banner-image);
  background-position: center;
  background-size: cover;
  pointer-events: none;
}
.home-page .home-search-band {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  margin-bottom: 28px;
  padding: 0;
}
.home-page .home-search-band::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  border-bottom: 1px solid var(--line);
  background: #fff;
  pointer-events: none;
}
body.journal-home .site-footer {
  width: 100%;
  border-top-color: var(--line);
  background-color: var(--soft);
  background-image: linear-gradient(115deg, color-mix(in srgb, var(--brand) 12%, #fff), color-mix(in srgb, var(--blue) 7%, #fff));
  color: var(--ink);
}
body.journal-home .site-footer a {
  color: var(--dark);
}
.home-page .home-search-band .home-search-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home-page .home-search-band .search-controls label,
.home-page .home-search-band .result-count {
  color: var(--dark);
}
.home-page .home-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-rows: auto;
  gap: 20px;
  align-items: start;
}
.home-page .home-workspace > .results-area {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.home-page .home-workspace > .home-sidebar--insight {
  grid-column: 2;
  grid-row: 1;
}
.home-page .home-sidebar--insight {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.home-page .home-navigation {
  margin-bottom: 28px;
}
.home-page .home-navigation-heading {
  margin: 0 0 15px;
}
.home-page .home-navigation-heading .eyebrow {
  margin-bottom: 6px;
}
.home-page .home-navigation-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.3;
}
.home-page .journal-navigation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-page .journal-navigation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-width: 0;
  min-height: 350px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 6px 20px rgba(32, 38, 55, .065);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-page .journal-navigation-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--soft), #dce3ef);
  pointer-events: none;
}
.home-page .journal-navigation-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform .35s ease;
}
/* Show the complete scene in the visible photo band; the same image continues
   behind the existing frosted panel, without changing the card dimensions. */
.home-page .journal-publishing-card .journal-navigation-media {
  background-image: var(--card-image);
  background-position: center;
  background-size: cover;
}
.home-page .journal-publishing-card .journal-navigation-media img {
  height: 150px;
  object-position: center;
}
.home-page .journal-navigation-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, .015) 18%, rgba(255, 255, 255, .10) 50%, rgba(255, 255, 255, .22) 100%);
  pointer-events: none;
}
.home-page .journal-navigation-glass {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
  margin-top: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 7px 7px 0 0;
  background: rgba(255, 255, 255, .93);
  background-clip: padding-box;
  box-shadow: 0 -5px 19px rgba(32, 38, 55, .085), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.home-page .journal-navigation-card:hover {
  border-color: var(--brand);
  box-shadow: 0 9px 26px rgba(32, 38, 55, .10);
}
.home-page .journal-navigation-card:hover .journal-navigation-media img {
  transform: scale(1.015);
}
.home-page .journal-navigation-card:focus-within {
  border-color: var(--brand);
}
.home-page .journal-navigation-glass a:focus-visible,
.home-page .journal-navigation-glass summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-page .journal-navigation-glass {
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
  }
}
.home-page .journal-navigation-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}
.home-page .journal-navigation-card p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.55;
}
.home-page .journal-navigation-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.home-page .journal-navigation-links > a:not(.button) {
  color: var(--brand);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-page .journal-navigation-links > a:not(.button):hover {
  color: var(--dark);
}
.home-page .journal-navigation-glass p {
  color: var(--ink);
}
.home-page .journal-navigation-glass .journal-navigation-links > a:not(.button),
.home-page .journal-navigation-glass .year-browser > summary,
.home-page .journal-navigation-glass .year-links a {
  color: var(--dark);
}
.home-page .journal-navigation-glass .journal-navigation-links > a:not(.button):hover {
  color: var(--ink);
}
.home-page .journal-navigation-card--authors .button {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 3px;
  padding: 8px 11px;
  font-size: .875rem;
  line-height: 1.35;
  white-space: nowrap;
}
.home-page .year-browser {
  margin-top: 11px;
}
.home-page .year-browser > summary {
  color: var(--brand);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.home-page .year-browser .year-links {
  gap: 6px;
  margin-top: 10px;
}
.home-page .year-browser .year-links a {
  padding: 3px 8px;
  font-size: .8125rem;
}
.home-page .home-publishing {
  margin: 28px 0;
  padding-top: 0;
  border-top: 0;
}
.home-page .home-publishing > .section-heading,
.home-page .home-publishing-heading {
  margin-bottom: 18px;
}
.home-page .home-publishing .eyebrow {
  margin-bottom: 7px;
}
.home-page .home-publishing > h2,
.home-page .home-publishing .section-heading h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.3;
}
.home-page .journal-publishing-card .journal-navigation-glass {
  min-width: 0;
}
.home-page .home-support-card {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 38, 55, .04);
}
.home-page .home-support-card h3 {
  margin-bottom: 11px;
  font-size: 1.02rem;
  line-height: 1.35;
}
.home-page .home-support-card p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
}
.home-page .home-support-card > a:not(.button) {
  font-size: .875rem;
  line-height: 1.5;
}
.home-page .home-about-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.home-page .home-about-card .journal-mark {
  max-height: 62px;
  margin-bottom: 16px;
}
.home-page .home-about-card .metric-strip,
.home-page .home-about-card .metric-grid {
  gap: 8px;
  margin: 18px 0;
}
.home-page .home-about-card .metric-strip > div,
.home-page .home-about-card .metric-grid > div {
  padding: 12px 8px;
}
.home-page .home-about-card .metric-strip strong,
.home-page .home-about-card .metric-grid strong {
  font-size: 1.3rem;
}
.home-page .home-about-card .metric-strip span,
.home-page .home-about-card .metric-grid span {
  font-size: .75rem;
  line-height: 1.5;
}
.home-page .home-editor-card .editor-note {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.home-page .home-editor-card .editor-note img {
  width: 42px;
  height: 42px;
}
.home-page .home-editor-card .editor-note span {
  font-size: .8rem;
  line-height: 1.5;
}

.home-article-results #article-results.article-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-article-results .article-card--tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 38, 55, .045);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-article-results .article-card--tile:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(32, 38, 55, .085);
}

.home-article-results .article-card--tile .card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 11px;
}

.home-article-results .article-card--tile .article-kind {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .025em;
}

.home-article-results .article-card--tile .open-access {
  padding: 3px 7px;
  border-radius: 3px;
  font-size: .75rem;
  line-height: 1.4;
}

.home-article-results .article-card--tile .card-publication {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.home-article-results .article-card--tile h3 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

.home-article-results .article-card--tile h3 a {
  color: var(--ink);
  white-space: normal;
}

.home-article-results .article-card--tile h3 a:hover {
  color: var(--brand);
}

.home-article-results .article-card--tile .authors {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.home-article-results .article-card--tile .article-citation {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.home-article-results .article-card--tile .abstract-toggle {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
}

.home-article-results .article-card--tile .abstract-toggle summary {
  color: var(--brand);
  font-size: .875rem;
  font-weight: 650;
}

.home-article-results .article-card--tile .abstract-toggle p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.home-article-results .article-card--tile .card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.5;
}



/* Sharing the actual article row tracks keeps the two information cards
   aligned even when a long title or an expanded abstract changes row height.
   Visible-child counting also keeps filtered/hidden records in the right
   column without any layout script. */
@media (min-width: 1181px) {
  .home-page .home-workspace {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 220px;
    gap: 18px;
  }
  .home-page .home-workspace > .results-area,
  .home-page .home-workspace #search-results.home-article-results,
  .home-page .home-workspace #article-results.article-list,
  .home-page .home-workspace > .home-sidebar--insight {
    display: contents;
  }
  .home-page .home-workspace .home-article-results > .section-heading {
    grid-column: 1 / span 4;
    grid-row: 1;
    min-width: 0;
    margin-bottom: 0;
  }
  .home-page .home-workspace #article-results > .article-card--tile {
    grid-column: 1 / span 4;
    grid-row: auto;
    align-self: stretch;
  }
  .home-page .home-workspace #article-results > .article-card--tile:nth-child(4n + 1 of .article-card:not([hidden])) {
    grid-column: 1;
  }
  .home-page .home-workspace #article-results > .article-card--tile:nth-child(4n + 2 of .article-card:not([hidden])) {
    grid-column: 2;
  }
  .home-page .home-workspace #article-results > .article-card--tile:nth-child(4n + 3 of .article-card:not([hidden])) {
    grid-column: 3;
  }
  .home-page .home-workspace #article-results > .article-card--tile:nth-child(4n of .article-card:not([hidden])) {
    grid-column: 4;
  }
  .home-page .home-workspace .home-about-card {
    grid-column: 5;
    grid-row: 2;
    align-self: stretch;
    height: 100%;
  }
  .home-page .home-workspace .home-editor-card {
    grid-column: 5;
    grid-row: 3;
    align-self: stretch;
    height: 100%;
  }
  .home-page .home-workspace .home-article-results > .empty-state,
  .home-page .home-workspace .home-article-results > .load-more {
    grid-column: 1 / span 4;
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .home-page .journal-navigation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-page .home-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .home-page .home-workspace > .results-area {
    grid-column: 1;
    grid-row: 1;
  }
  .home-page .home-workspace > .home-sidebar--insight {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-article-results #article-results.article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .home-article-results #article-results.article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .home-article-results .article-card--tile {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .page-wrap.home-page {
    width: calc(100% - 32px);
  }
  .home-page .journal-navigation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .home-page .home-banner {
    height: 150px;
  }
  .home-page .home-search-band .home-search-panel {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .home-page .journal-navigation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .home-article-results #article-results.article-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-article-results .article-card--tile {
    min-height: 360px;
  }
}
@media (max-width: 480px) {
  .home-page .home-workspace > .home-sidebar--insight {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .journal-navigation-card,
  .home-page .journal-navigation-media img {
    transition: none;
  }
  .home-page .journal-navigation-card:hover .journal-navigation-media img {
    transform: none;
  }
}
