:root {
  color-scheme: light;
  --ink: #152b43;
  --paper: #eeede5;
  --stock: #fffaf0;
  --yellow: #f6c731;
  --brand: "Archivo Black", "Arial Black", "Franklin Gothic Heavy", Arial, sans-serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, a { font: inherit; color: inherit; }
a { text-underline-offset: .2em; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible { outline: 3px solid #126da4; outline-offset: 4px; }
.shelf-skip { position: absolute; z-index: 10; left: 8px; top: 8px; padding: 8px 12px; background: white; transform: translateY(-160%); }
.shelf-skip:focus { transform: none; }
#main { --sans: var(--vc-sans, "DM Sans", "Segoe UI", Arial, sans-serif); font-family: var(--sans); }
.shelf-width { width: min(100%, 1456px); margin-inline: auto; padding-inline: clamp(18px, 4.8vw, 76px); }
/* The painted upper wall carries a cream aisle board, like the department signs above the tapes. */
.shelf-hero {
  background: #e9cb76;
  border-bottom: 1px solid #bcaa7e;
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); align-items: end; gap: 24px clamp(30px, 6vw, 96px); padding-block: clamp(33px, 4.5vw, 68px) clamp(24px, 3.1vw, 42px); }
.hero-type { min-width: 0; }
.hero-type h1 {
  display: inline-block; max-width: 100%; padding: .12em .25em .16em;
  color: #163878; background: #fbf6e4; border: 1px solid #ccbc96;
  box-shadow: 1px 3px 0 #a48d5c;
  font: 830 clamp(2.1rem,4.35vw,4.75rem)/1 var(--sans); letter-spacing: -.066em;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.hero-type h1 em { font: inherit; }
.hero-type p { margin-top: 18px; max-width: 49ch; color: #2e3d43; font-size: clamp(1rem,1.34vw,1.18rem); line-height: 1.5; }
.hero-type .shelf-text { margin-top: 5px; }
.shelf-counts { display: grid; grid-template-columns: 1.45fr 1fr .86fr; border-block: 1px solid #b39e65; padding: 15px 0; align-content: center; }
.shelf-counts div { min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 7px; padding-inline: clamp(8px,1.25vw,20px); }
.shelf-counts div:first-child { padding-left: 0; }
.shelf-counts div:last-child { padding-right: 0; }
.shelf-counts div+div { border-left: 1px solid #b9a773; }
.shelf-counts dt, .shelf-bar span, .cassette-cap, .caption-code, .pack-panel .pack-owner { font: 650 .73rem/1.35 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.shelf-counts dt { text-transform: none; letter-spacing: 0; color: #405360; }
.shelf-counts dd { font: 660 clamp(1.6rem,2.5vw,2.6rem)/1.05 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.075em; }
.shelf-counts dd small { font: 500 .48em/1 var(--mono); color: #4a5c67; letter-spacing: -.05em; white-space: nowrap; }
.shelf-content { padding-block: clamp(24px,3vw,44px) clamp(50px,6vw,90px); }
.shelf-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 0 0 clamp(8px,1vw,16px); margin-bottom: 20px;
  border-bottom: 5px solid #2b3031;
  box-shadow: 0 2px #a6a8a1, 0 4px #474d4d;
}
.shelf-bar h2 { color: #183a79; background: #fbf7e9; border: 1px solid #b7b6a7; border-bottom: 0; padding: .36em .65em .3em; }
.shelf-bar h2, .pack-panel h2, .wall-sharing h2, .shelf-next h2 { font: 750 clamp(1.38rem,2.15vw,2rem)/1.07 var(--sans); letter-spacing: -.052em; }
.shelf-bar span { padding: 0 5px; color: #4f606a; text-align: right; font-size: .68rem; }
.shelf-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: clamp(30px,3.2vw,50px) clamp(18px,2.15vw,34px); margin: 0; padding: 0; list-style: none; }
.shelf-grid li { min-width: 0; }
.shelf-grid li > .card-credit { margin-top: 1px; }
.shelf-grid .card-credit .shelf-text { display: inline-flex; min-height: 32px; padding: 3px 0; max-width: 100%; overflow-wrap: anywhere; }
.cartridge { display: block; width: 100%; padding: 0; border: 0; text-align: left; background: transparent; border-radius: 2px; }
.cartridge:hover .card-title { text-decoration: underline; text-underline-offset: .13em; text-decoration-thickness: 1.5px; }
.cassette { display: block; border-radius: 2px 2px 0 0; background: linear-gradient(105deg,#283e4e,#53616a 10%,#293e4e 38%,#394c58 75%,#283b49); border: 4px solid #30414c; padding: 6px 8px 8px; box-shadow: inset 0 0 0 1px #ffffff52; }
.cartridge.holo .cassette { background: linear-gradient(110deg,#79562c,#f1d99d 25%,#c09449 45%,#ddbd7c 75%,#94703b); border-color: #776039; }
.cassette-cap { display: flex; align-items: center; justify-content: space-between; padding: 0 1px 6px; color: #e9ebe5; font-size: .75rem; }
.cartridge.holo .cassette-cap { color: #352713; background: #ead5a3; padding: 2px 4px; margin-bottom: 4px; }
.cassette-photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 16/9; border: 2px solid #111f2a; background: #172b3c; }
.cassette-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cassette-photo img[data-art="unavailable"] { font: .9rem var(--sans); color: white; }
/* Individual title slips meet the wire lip below the face-out picture. */
.card-label { position: relative; display: block; border-top: 5px solid #333a3a; padding: 14px 0 0; }
.card-label::before { content:""; position:absolute; inset: -6px auto auto 9px; width: 20px; height: 5px; background: #ecbf33; border-bottom: 1px solid #a58628; }
.card-title { display: block; font: 760 clamp(1.22rem,1.85vw,1.82rem)/1.13 var(--sans); letter-spacing: -.047em; overflow-wrap: anywhere; }
.card-credit { display: block; color: #435569; margin-top: 5px; font-size: .9rem; overflow-wrap: anywhere; }
.card-credit strong { color: #243c52; }
.editions { display: flex; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid #b5bdbb; margin-top: 10px; padding-top: 8px; font-size: .81rem; font-weight: 650; }
.holo-count { color: #725016; }
.editions span+span::before { content: "·"; margin-right: 10px; color: #687889; }
.state-slip {
  background: #faf6ea; border: 1px solid #b6ac94;
  border-bottom: 4px solid #374040;
}
.state-slip:has(.shelf-plinth) { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); min-height: clamp(245px,21vw,320px); }
.state-copy { align-self: center; padding: clamp(25px, 3.3vw, 52px); }
.state-copy h3 { font: 730 clamp(1.7rem,3.2vw,3.15rem)/1.03 var(--sans); letter-spacing: -.065em; text-wrap: balance; }
.state-copy p { max-width: 47ch; margin-top: 12px; color: #425461; }
/* A single upright on a slatwall endcap, cradled by the front of the black wire rack. */
.shelf-plinth {
  position: relative; isolation: isolate; display: grid; place-items: center;
  overflow: hidden; min-height: 225px; border-right: 1px solid #a59a83;
  background: repeating-linear-gradient(0deg,#c1ad8d 0 1px,#82745e 1px 3px,#d7c3a4 3px 5px,#e1cfb2 5px 42px);
}
.shelf-plinth::before {
  content: ""; position: absolute; inset: 9% 19% 8%; z-index: -1;
  background: repeating-linear-gradient(90deg,transparent 0 22px,#303637 22px 24px,transparent 24px 27px);
  border: 3px solid #353b3a; box-shadow: 1px 2px 0 #927f65; border-radius: 5px;
}
.shelf-plinth::after {
  content: ""; position: absolute; inset: auto 14% 10%; height: 12px;
  border-top: 3px solid #272f30; border-bottom: 4px solid #353b3b;
  border-radius: 2px; box-shadow: 0 2px 1px #93816865; pointer-events: none;
}
.shelf-plinth img {
  position: absolute; height: 81%; width: auto; max-width: 76%;
  object-fit: contain; transform: rotate(-4deg); filter: drop-shadow(5px 7px 3px #46382751);
}
.shelf-actions, .sharing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.shelf-actions { margin-top: 18px; }
.shelf-button, .shelf-text, .detail button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 3px; font-weight: 700; }
.shelf-button { background: var(--yellow); color: var(--ink); border: 1px solid var(--ink); padding: 9px 18px; text-decoration: none; }
.shelf-button:hover { background: #ffdb66; }
.shelf-text { background: transparent; border: 0; padding: 5px 0; text-decoration: underline; text-underline-offset: .23em; text-decoration-thickness: 1px; }
.shelf-text:hover { text-decoration-thickness: 2px; }
.wall-sharing, .shelf-next { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 24px; margin-top: clamp(30px,4vw,60px); border-top: 1px solid #9aa6a5; padding-block: 21px 0; }
.wall-sharing { scroll-margin-top: 20px; }
.wall-sharing h2, .shelf-next h2 { font-size: clamp(1.2rem,1.7vw,1.6rem); }
.wall-sharing p, .shelf-next p { margin: 5px 0 0; max-width: 60ch; color: #435563; }
.shelf-next > .shelf-text { justify-self: start; }
#sharing-status:not(:empty), #share-url { grid-column: 1 / -1; }
#sharing-status:empty { display: none; }
#share-url { width: 100%; min-height: 44px; padding: 7px; font: inherit; }
.pack-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 0 0 clamp(22px,2.5vw,36px); padding: clamp(16px,2vw,28px); background: #faf6e9; border: 1px solid #c6bda5; border-left: 5px solid #24457e; }
.pack-panel h2 { font-size: clamp(1.28rem,1.8vw,1.65rem); }
.pack-panel .pack-owner { display: block; margin-bottom: 5px; color: #415763; overflow-wrap: anywhere; }
.pack-panel p { margin-top: 4px; color: #344d5e; }
.pack-panel .shelf-actions { justify-content: flex-end; margin: 0; }
.queue-consent { font-size: .88rem; max-width: 64ch; }
.feedback:not(:empty) { margin: 0 0 18px; padding: 13px 16px; background: #fff7d6; border-left: 4px solid #d6a91e; }
.feedback button { margin-left: 12px; }
.loading { padding-block: 17px; }
.shelf-footer { border-top: 1px solid #9eaaa8; color: #425565; }
.shelf-footer>.shelf-width { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; font-size: .88rem; }
.shelf-footer nav { display: flex; gap: 16px; }
.shelf-footer a { display: inline-flex; min-height: 44px; align-items: center; }
#detail { width: min(890px,94vw); max-height: min(90vh,90dvh); overflow-y: auto; overscroll-behavior: contain; padding: 0; color: var(--ink); border: 2px solid #172d45; border-radius: 3px; background: var(--stock); }
#detail::backdrop { background: #091625b8; }
.detail-top { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 20px; background: var(--ink); color: white; border-bottom: 4px solid var(--yellow); }
.detail-top button { min-height: 44px; padding: 6px 12px; color: white; background: transparent; border: 1px solid #71818f; border-radius: 2px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.15fr); align-items: center; gap: clamp(20px,3vw,38px); padding: clamp(16px,3vw,35px); }
.detail-art { align-self: stretch; display: grid; place-items: center; background: #e4e6de; padding: clamp(12px,2vw,28px); border: 1px solid #c1c6bf; }
.detail-art .card-print { display: block; width: min(100%,238px); }
.detail-art img { display: block; width: 100%; }
.detail-art .archive-print-text { display: none; }
.detail-type h2 { font: italic 900 clamp(1.7rem,3.3vw,2.9rem)/1.06 var(--brand); letter-spacing: -.06em; margin-bottom: 8px; }
.detail-type>p { margin: 10px 0; }
.detail-credit { color: #445767; }
.edition-choice { display: flex; gap: 6px; margin-bottom: 16px; }
.edition-choice button { min-height: 40px; padding: 6px 12px; border: 1px solid #7e8d97; border-radius: 2px; background: #faf8ee; font-weight: 700; }
.edition-choice button[aria-pressed="true"] { color: #fff; background: #214a71; }
.archive-source { border-top: 1px dashed #a1a6a0; margin-top: 17px; padding-top: 16px; }
.archive-source-kicker { display: block; font: 700 .79rem/1.35 var(--mono); text-transform: uppercase; letter-spacing: .055em; }
.archive-source-title { margin: 5px 0; font-size: 1.08rem; line-height: 1.34; }
.archive-stats { display: flex; flex-wrap: wrap; gap: 2px 8px; color: #47596a; font-size: .87rem; }
.archive-watch { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
@media(max-width: 1000px) {
  .shelf-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 760px) {
  .hero-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .shelf-counts { max-width: 425px; padding-block: 12px; border-bottom: 0; }
  .hero-layout:has(.shelf-counts:not([hidden])) { padding-bottom: 12px; }
  .state-slip:has(.shelf-plinth) { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
  .shelf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pack-panel, .wall-sharing { align-items: flex-start; }
  .wall-sharing { grid-template-columns: minmax(0,1fr); }
}
@media(max-width: 590px) {
  .hero-layout { padding-block: 31px 24px; }
  .hero-type h1 { font-size: clamp(1.78rem,7.25vw,2.75rem); }
  .hero-type p { margin-top: 12px; }
  .shelf-counts { grid-template-columns: 1.45fr 1fr .85fr; }
  .shelf-counts dt { font-size: .68rem; }
  .shelf-bar { gap: 10px; padding: 0 0 0 4px; margin-bottom: 16px; }
  .shelf-bar span { max-width: 9ch; font-size: .63rem; }
  .state-slip:has(.shelf-plinth) { grid-template-columns: minmax(0,1fr); }
  .shelf-plinth { min-height: clamp(150px,43vw,235px); border-right: 0; border-bottom: 1px solid #a59a83; }
  .state-copy { padding: 23px 19px; }
  .shelf-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .shelf-grid li { border-bottom: 1px solid #b4bdb9; padding-bottom: 14px; }
  .shelf-grid .cartridge { display: grid; grid-template-columns: minmax(108px,.9fr) minmax(0,1.1fr); align-items: start; gap: 13px; }
  .shelf-grid .cassette { padding: 3px 4px 5px; border-width: 3px; }
  .shelf-grid .cassette-cap { padding-bottom: 5px; gap: 5px; font-size: .55rem; letter-spacing: 0; }
  .shelf-grid .card-label { border-top: 0; padding: 1px 0; }
  .shelf-grid .card-label::before { content: none; }
  .shelf-grid .cassette { box-shadow: 0 3px #2c3536, 0 4px #a29a82; }
  .shelf-grid .card-title { font-size: 1.15rem; }
  .shelf-grid .card-credit, .shelf-grid .editions, .shelf-grid li > .shelf-text { font-size: .79rem; }
  .shelf-grid .editions { border: 0; margin-top: 5px; padding: 0; }
  .shelf-grid li > .card-credit { margin-top: 6px; }
  .shelf-grid .card-credit .shelf-text { min-height: 44px; }
  @supports (grid-template-rows: subgrid) {
    .shelf-grid li:has(> .card-credit) { display: grid; grid-template-columns: minmax(108px,.9fr) minmax(0,1.1fr); grid-template-rows: auto 1fr; column-gap: 13px; }
    .shelf-grid li:has(> .card-credit) .cartridge { grid-area: 1 / 1 / 3 / 3; grid-template-columns: subgrid; grid-template-rows: subgrid; row-gap: 0; }
    .shelf-grid li:has(> .card-credit) .cassette { grid-area: 1 / 1 / 3 / 2; }
    .shelf-grid li:has(> .card-credit) .card-label { grid-area: 1 / 2; }
    .shelf-grid li > .card-credit { grid-area: 2 / 2; z-index: 1; align-self: start; pointer-events: none; margin-top: 0; }
    .shelf-grid .card-credit .shelf-text { pointer-events: auto; }
  }
  .wall-sharing, .shelf-next { grid-template-columns: minmax(0,1fr); }
  .pack-panel { flex-direction: column; }
  .pack-panel .shelf-actions { justify-content: flex-start; }
  .shelf-footer>.shelf-width { flex-wrap: wrap; }
  .detail-layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .detail-art .card-print { width: min(100%,170px); }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }

