/* Shared catalog and quick-view artwork. Each jacket uses its published cover. */
.shelf-jacket {
  position: relative;
  width: var(--jacket-width, clamp(8.5rem, 14vw, 12.75rem));
  max-width: 76%;
  aspect-ratio: 3 / 4;
  transform: perspective(50rem) rotateY(-12deg) rotateZ(-5deg);
  filter: drop-shadow(.8rem 1rem .6rem #04132175);
  container-type: inline-size;
}
.shelf-jacket::before {
  content: '';
  position: absolute;
  inset: 2% -4% 1.3% 92%;
  transform: skewY(16deg);
  background: repeating-linear-gradient(90deg, #e9e7dc 0 1px, #aeb4ac 1px 2px);
  border-radius: 0 2px 2px 0;
}
.shelf-jacket-front {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 37% auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d6dad7;
  border-top: 3px solid #ce0736;
  border-radius: 2px;
  background: #fafcfd;
  color: #0d253a;
}
.shelf-jacket-front::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6%;
  background: linear-gradient(90deg, #12222b30, #ffffff30 45%, #10202c22 60%, transparent);
}
.shelf-jacket-titles { display: flex; flex-direction: column; gap: 5%; padding: 8% 10% 5%; min-height: 0; }
.shelf-jacket-publisher, .shelf-jacket-edition {
  display: block;
  font: 600 min(.65rem, 4cqi)/1.4 var(--heading, 'Roboto Condensed', Abel, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shelf-jacket .shelf-jacket-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-top: auto;
  color: inherit;
  font: 750 min(1.8rem, 13.6cqi)/.98 var(--heading, 'Roboto Condensed', Abel, sans-serif);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.shelf-jacket .shelf-jacket-image { display: block; width: 100%; height: 100%; object-fit: contain; background: #112639; }
.shelf-jacket-edition { padding: 5% 9%; color: white; background: #0b2035; border-top: 2px solid #ca1738; }
.shelf-jacket-no-cover .shelf-jacket-front {
  grid-template-rows: 1fr auto;
  background: repeating-linear-gradient(157deg, transparent 0 1.5rem, #213f5612 1.5rem calc(1.5rem + 1px)), #edf3f5;
}
.shelf-jacket-no-cover .shelf-jacket-title { margin-block: auto; }

.navy-site .manual-shelf-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.reference-home .manual-shelf-panel .storefront-panel-heading {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .65rem 2rem; margin-bottom: 1.15rem;
}
.reference-home .manual-shelf-panel .storefront-panel-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.manual-shelf-filter { min-width: 0; max-width: 100%; }
.manual-shelf-filter summary {
  width: fit-content; max-width: 100%; margin-left: auto; padding: .6rem .9rem;
  border: 1px solid #c3ced6; border-radius: 6px; background: white; color: #203c51;
  font-size: .94rem; line-height: 1.4; cursor: pointer;
}
.manual-shelf-filter summary::marker { color: #436174; }
.reference-home .manual-shelf-panel .storefront-filter { align-items: center; flex-wrap: wrap; gap: .45rem .7rem; margin: .65rem 0 0; }
.manual-shelf-hero > h1 { margin-block: 1.1rem .65rem; }
.manual-shelf-hero + .learning-catalog { padding-top: 1.25rem; }

.manual-shelf-card {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.3fr);
  overflow: hidden;
  color: var(--navy, #0b1d31); background: #fff;
  border: 1px solid #d8e0e7; border-radius: 12px;
  box-shadow: 0 6px 24px #0a24350a;
}
.manual-shelf-art {
  display: grid; place-items: center; min-width: 0; padding: 1.7rem 1rem;
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 48% 33%, #36596e, #163345 60%, #0b2034);
}
.manual-shelf-art::before, .manual-shelf-art::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.manual-shelf-art::before { background: url('assets/route-world-unlabelled.svg') 46% center / auto 120% no-repeat; opacity: .26; }
.manual-shelf-art::after { background: linear-gradient(#cddeea0c 1px, transparent 1px), linear-gradient(90deg, #cddeea0c 1px, transparent 1px); background-size: 2rem 2rem; }
.manual-shelf-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(1.35rem, 3.1vw, 3rem); }
.manual-shelf-copy p { margin: 0; }
.manual-shelf-copy .manual-shelf-publisher {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem;
  color: #475b69; font: 600 .8rem/1.35 var(--heading, 'Roboto Condensed', Abel, sans-serif);
  letter-spacing: .06em; text-transform: uppercase;
}
.manual-shelf-publisher .organization-logo { width: auto; height: 1.45rem; max-width: 4rem; object-fit: contain; }
.navy-site .manual-shelf-title { margin: 0; font: 720 clamp(1.9rem, 3.5vw, 3.3rem)/1.04 var(--heading, 'Roboto Condensed', Abel, sans-serif); letter-spacing: -.034em; }
.manual-shelf-title a { color: inherit; text-decoration: none; }
.manual-shelf-title a:hover { text-decoration: underline; text-underline-offset: .12em; }
.manual-shelf-copy .manual-shelf-format { display: flex; gap: .6rem; align-items: baseline; margin-top: .45rem; color: #486173; font-size: .95rem; line-height: 1.4; }
.manual-shelf-format span { color: #9bacb7; }
.manual-shelf-copy .manual-shelf-description { max-width: 68ch; margin-top: .9rem; color: #354c5d; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.48; }
.manual-shelf-buy { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 2rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid #dde4e9; }
.manual-shelf-offer { flex: 1 1 13rem; min-width: 0; }
.manual-shelf-offer > p { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .65rem; }
.manual-shelf-offer strong { color: var(--navy, #0b1d31); font: 720 clamp(1.7rem, 2.5vw, 2.25rem)/1.05 var(--heading, 'Roboto Condensed', Abel, sans-serif); text-decoration: none; }
.manual-shelf-offer span { color: #334e62; font-size: 1rem; }
.manual-shelf-offer small { display: block; margin-top: .35rem; color: #526675; font-size: .88rem; line-height: 1.45; }
.manual-shelf-entitlement, .manual-shelf-status { flex: 1 1 12rem; color: #36546a; font-size: 1rem; }
.navy-site .manual-shelf-action {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  min-height: 2.85rem; padding: .65rem 1.1rem;
  color: white; background: var(--red, #c80036); border-radius: 7px;
  font: 600 1.05rem/1.3 var(--heading, 'Roboto Condensed', Abel, sans-serif);
  text-decoration: none;
}
.navy-site .manual-shelf-action:hover { color: white; background: #a8002c; }
.manual-shelf-card :is(a, button):focus-visible { outline: 3px solid #1674a2; outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .manual-shelf-art > .shelf-jacket { transition: transform .25s ease; }
  .manual-shelf-art:hover > .shelf-jacket { transform: perspective(50rem) translateY(-3px) rotateY(-8deg) rotateZ(-3deg); }
}
@media (max-width: 43rem) {
  .manual-shelf-card { grid-template-columns: minmax(0, 1fr); }
  .manual-shelf-art { --jacket-width: 7.25rem; padding: 1.3rem 1rem; }
  .manual-shelf-copy { padding: 1.25rem; }
  .manual-shelf-copy .manual-shelf-description { margin-top: .65rem; }
  .manual-shelf-buy { margin-top: .9rem; padding-top: .85rem; gap: .75rem; }
  .manual-shelf-offer { flex-basis: 100%; }
  .manual-shelf-action { width: 100%; }
  .manual-shelf-filter[open] { flex-basis: 100%; }
  .manual-shelf-filter summary { margin-left: 0; }
  .manual-shelf-panel .storefront-filter select { max-width: 100%; min-width: 0; }
}
