.shelf {
  padding:clamp(28px,4vw,54px) 0 12px;
  scroll-margin-top:var(--nav-height);
  color:var(--navy);
}

.shelf-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.25rem;
  margin-bottom: 1rem;
}

.shelf .shelf-heading-row h2 {
  margin: 0;
}

.shelf-heading-row a, .catalogue-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 1rem/1.35 var(--sans);
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.catalogue-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin-top: .75rem;
}

.shelf h2 {
  margin:0 0 20px;
  font:500 clamp(2rem,3.35vw,3.2rem)/1.08 var(--serif);
}

.shelf h3 {
  margin:0;
  font:500 clamp(1.65rem,2.35vw,2.1rem)/1.18 var(--serif);
}

.shelf [hidden] {
  display:none!important;
}

.shelf-sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.shelf details {
  margin:0;
  border-bottom:1px solid var(--line);
  scroll-margin-top:calc(var(--nav-height) + 12px);
}

.shelf-stack {
  border-block-start:1px solid var(--line);
}

.shelf summary,.shelf-tab {
  display:flex;
  align-items:center;
  text-align:left;
  gap:12px;
  width:100%;
  min-height:54px;
  padding:12px 14px;
  background:transparent;
  color:var(--navy);
  font:650 1.02rem/1.3 var(--sans);
  list-style:none;
  cursor:pointer;
}

.shelf summary::-webkit-details-marker {
  display:none;
}

.shelf-count {
  min-width:1.75em;
  margin-left:auto;
  flex:none;
  font:600 .82rem/1.6 var(--sans);
  font-variant-numeric:tabular-nums;
  text-align:center;
  color:#524d49;
  background:#eae5de;
  border-radius:1em;
}

.shelf-summary-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shelf-indicator {
  width:.5rem;
  height:.5rem;
  flex:none;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}

.shelf details[open]>summary .shelf-indicator {
  transform:translateY(2px) rotate(225deg);
}

.shelf details[open]>summary {
  background:#eee8e0;
}

.shelf-panel {
  background:#fffdf9;
  padding:20px clamp(16px,2.6vw,32px);
  border:1px solid var(--line);
  border-block:0;
}


.shelf-articles {
  list-style:none;
  padding:0;
  margin:0;
}

.shelf-articles li {
  padding:0;
  margin:0;
}

.shelf-articles li + li {
  border-top:1px solid var(--line);
}

.shelf-article {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:16px;
  align-items:center;
  padding:13px 0;
  color:var(--navy);
  text-decoration:none;
}

.shelf-article-name {
  grid-area:1/1;
  font:600 clamp(1rem,1.45vw,1.18rem)/1.42 var(--sans);
  overflow-wrap:anywhere;
}

.shelf-article-meta {
  grid-area:2/1;
  margin-top:5px;
  color:#596069;
  font:400 .83rem/1.42 var(--sans);
}

.shelf-next {
  grid-area:1/2/3/3;
  color:var(--burgundy);
  font-size:1.16rem;
}

.shelf a:hover .shelf-article-name,.shelf a:focus-visible .shelf-article-name {
  color:var(--burgundy);
  text-decoration:underline;
  text-underline-offset:.17em;
}

.shelf :is(button,a,summary):focus-visible {
  outline:2px solid var(--burgundy);
  outline-offset:-2px;
}

.shelf-tab {
  border:0;
  border-radius:4px;
}

.shelf-tab:hover {
  background:#eae5de;
}

.shelf-tab[aria-selected=true] {
  background:var(--navy);
  color:white;
}

.shelf-tab[aria-selected=true] .shelf-count {
  background:#39455c;
  color:white;
}

.shelf-tab[aria-selected=true]:focus-visible {
  outline-color:#f1d094;
}

@media(min-width:801px) {
  .shelf.enhanced .shelf-layout {
    display:grid;
    grid-template-columns:minmax(225px,.72fr) minmax(0,1.9fr);
    gap:clamp(16px,2.5vw,38px);
    align-items:start;
    border-top:1px solid var(--line);
    padding-top:18px;
  }
  .shelf.enhanced .shelf-stack,.shelf.enhanced .shelf-group {
    border:0;
  }
  .shelf.enhanced .shelf-group>summary {
    display:none;
  }
  .shelf.enhanced .shelf-panel {
    padding:6px clamp(18px,2.4vw,32px);
    border:1px solid var(--line);
    border-radius:7px;
  }
  .shelf.enhanced .shelf-tabs {
    display:grid;
    gap:3px;
  }
}

@media(max-width:800px) {
  .shelf {
    padding-top:28px;
  }
  .shelf h2 {
    margin-bottom:15px;
  }
  .shelf summary {
    padding:13px 5px;
  }
  .shelf details[open]>summary {
    padding-inline:11px;
    border-left:3px solid var(--burgundy);
  }
  .shelf-panel {
    padding:0 12px;
  }
}
