/* Archivo (SIL OFL 1.1, see fonts/OFL.txt). One variable family; the width axis does the work:
   condensed for video titles and no-photo tiles, normal for everything else. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #555555;
  --rule: #e3e3e3;
  --haze: #f3f3f3;
  --rec: #d3100d;
  --line-soft: #c4c4c4;
  --muted-2: #6b6b6b;
  --faint: #767676;
  --disabled: #8a8a8a;
  --on-ink-muted: #d6d6d6;
  --dash: #b5b5b5;
  --shadow: rgb(0 0 0 / 0.08);
  --backdrop: rgb(0 0 0 / 0.5);
  --logo-filter: none;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --radius-media: 6px;
  --radius-control: 4px;
  --t-xs: 0.75rem;
  --t-s: 0.8125rem;
  --t-m: 0.9375rem;
  --t-l: 1.125rem;
  --t-xl: 1.5rem;
}
/* Dark follows the device setting only (no toggle, nothing stored); it updates live when the setting changes. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #ffffff;
    --graphite: #a6a6a6;
    --rule: #262626;
    --haze: #151515;
    --rec: #ff3b30;
    --line-soft: #3d3d3d;
    --muted-2: #8f8f8f;
    --faint: #707070;
    --disabled: #6b6b6b;
    --on-ink-muted: #4a4a4a;
    --dash: #4a4a4a;
    --shadow: rgb(0 0 0 / 0.5);
    --backdrop: rgb(0 0 0 / 0.72);
    --logo-filter: invert(1);
  }
}
@media (min-width: 760px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-m)/1.45 var(--font);
  font-stretch: 100%;
  font-kerning: normal;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; z-index: 20; left: 8px; top: -64px;
  padding: 10px 14px; border-radius: var(--radius-control);
  background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.rec { display: inline-block; flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--rec); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: var(--radius-control);
  font-size: var(--t-s); font-weight: 650; line-height: 1.1; text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-block { display: flex; width: 100%; }
.btn.is-disabled, .btn.is-disabled:hover { border-color: var(--rule); background: var(--paper); color: var(--disabled); cursor: default; }
.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 650; text-decoration: underline; text-underline-offset: 0.18em;
}

/* ---------- Masthead and intro ---------- */

.masthead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand brand" "lede signup";
  align-items: center; gap: 10px 12px; padding-top: 14px; padding-bottom: 10px;
}
.brand { grid-area: brand; justify-self: center; margin: 0; font-size: inherit; line-height: 0; }
/* Approved v2 wordmark (true-alpha PNG). The image has its own transparent margin; dark mode shows it white. */
.logo { display: block; line-height: 0; }
.logo img { width: auto; height: 46px; filter: var(--logo-filter); }
.masthead .lede { grid-area: lede; justify-self: start; max-width: 30ch; min-height: calc(3 * 1.35em); margin: 0; font-size: var(--t-s); line-height: 1.35; color: var(--graphite); }
/* The count arrives after first paint; reserving its lines keeps the header from jumping. */
@media (min-width: 760px) {
  .masthead { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "lede brand signup"; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
  .masthead .lede { max-width: 32ch; min-height: calc(2 * 1.35em); font-size: var(--t-m); color: var(--ink); }
  .logo img { height: 64px; }
}
.signup { grid-area: signup; justify-self: end; gap: 8px; min-height: 44px; padding: 5px 12px 5px 10px; line-height: 1.15; text-align: left; }
.signup-icon { width: 22px; height: 22px; stroke-width: 1.6; }
.signup-text { display: flex; flex-direction: column; gap: 1px; }
.signup-label { font-size: var(--t-s); font-weight: 750; }
@media (min-width: 760px) { .signup-label { font-size: var(--t-m); } }
@media (max-width: 359px) {
  .logo img { height: 38px; }
  .signup { padding-inline: 8px; gap: 6px; }
  .signup-icon { display: none; }
}
.signup-benefit { font-size: var(--t-xs); font-weight: 500; }

.intro { padding-bottom: 14px; }

.how summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  font-size: var(--t-s); font-weight: 650; cursor: pointer; list-style: none;
}
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: '+'; font-weight: 800; }
.how[open] summary::after { content: '\2212'; }
.steps { display: grid; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--rule); counter-increment: step;
}
.steps li::before { content: counter(step); min-width: 1.1em; font-size: var(--t-l); font-stretch: 125%; font-weight: 900; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps li { flex-direction: column; gap: 2px; padding: 10px 0 0; border-top: 2px solid var(--ink); }
}

/* ---------- Views, search, filters ---------- */

.views {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 4px; border-bottom: 1px solid var(--rule);
}
.view {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: -1px; padding: 10px 0;
  border-bottom: 3px solid transparent; color: var(--graphite); text-decoration: none;
}
.view:hover { color: var(--ink); }
.view[aria-current='page'] { border-bottom-color: var(--ink); color: var(--ink); }
.view-name { display: inline-flex; align-items: baseline; gap: 0.5em; font-size: var(--t-m); font-weight: 800; line-height: 1.15; }
/* The dot sits on the first line, with room before the label (which wraps on phones). */
.view-name .rec { align-self: flex-start; margin-top: 0.3em; }
.view-count { min-height: 1.45em; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .views { display: flex; gap: 32px; }
  .view { flex-direction: row; align-items: baseline; gap: 8px; padding: 12px 0; }
  .view-name { font-size: var(--t-xl); letter-spacing: -0.01em; }
}

.controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 760px) {
  .controls { grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); align-items: end; gap: 16px; }
}
.search { display: flex; }
.search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius-control) 0 0 var(--radius-control);
  background: var(--paper); font-size: 1rem;
}
.search input::placeholder { color: var(--muted-2); }
.search .btn { min-height: 48px; border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 69px; }
/* The pickers are added by script after first paint; min-height keeps the page from shifting. */
.pickers:has(> .pick:only-child), .pickers:has(> .pick[hidden] + .pick), .pickers:has(> .pick + .pick[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* Searchable picker: black and white, obvious choice, 44px+ targets. */
.pick { position: relative; min-width: 0; }
.pick-label { display: block; margin-bottom: 4px; font-size: var(--t-xs); font-weight: 650; }
.pick-field { position: relative; }
.pick-input {
  width: 100%; min-height: 48px; padding: 0 40px 0 12px;
  border: 2px solid var(--ink); border-radius: var(--radius-control); background: var(--paper);
  font-size: 1rem; text-overflow: ellipsis;
}
.pick-input::placeholder { color: var(--ink); opacity: 1; }
.pick-input:not(:placeholder-shown) { font-weight: 650; }
.pick-toggle {
  position: absolute; top: 2px; right: 2px; bottom: 2px; width: 38px;
  display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; font-size: 18px;
}
.pick-toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
.pick-list {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px);
  max-height: min(55vh, 340px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 4px; list-style: none;
  border: 2px solid var(--ink); border-radius: var(--radius-control); background: var(--paper);
  box-shadow: 0 8px 0 -4px var(--shadow);
}
@media (max-width: 639px) { .pick + .pick .pick-list { left: auto; width: calc(200% + 10px); } .pick:first-child .pick-list { right: auto; width: calc(200% + 10px); } }
.pick-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 6px 10px 6px 30px; border-radius: 3px; cursor: pointer; position: relative;
}
.pick-option.is-active { background: var(--ink); color: var(--paper); }
.pick-option[aria-selected='true'] { font-weight: 750; }
.pick-option[aria-selected='true']::before {
  content: ''; position: absolute; left: 10px; top: 50%; width: 10px; height: 5px;
  border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-70%) rotate(-45deg);
}
.pick-text { min-width: 0; overflow-wrap: anywhere; }
.pick-count { flex: none; font-size: var(--t-s); font-variant-numeric: tabular-nums; color: var(--graphite); }
.pick-option.is-active .pick-count { color: var(--on-ink-muted); }
.pick-empty { padding: 12px 10px; font-size: var(--t-s); color: var(--graphite); }

.cats { margin-top: 12px; min-height: 36px; }
/* Hold a screen of space only until the first page arrives, so the footer doesn't jump. Once finds are
   shown the page takes its real height again; the short-screen auto-fill depends on that. */
main:has(#grid:empty), main:has(#grid[aria-busy]) { min-height: 100vh; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 759px) {
  /* One scrolling row on phones keeps the grid closer to the top. */
  .cats { min-height: 42px; } /* 36px chips plus the strip's 2px + 4px padding */
  .cats .chips {
    flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
    overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter);
  }
  .cats .chips::-webkit-scrollbar { display: none; }
  .cats .chips li { flex: none; }
}
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1.5px solid var(--line-soft); border-radius: 999px;
  font-size: var(--t-s); font-weight: 600; text-decoration: none;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current='true'] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip-count { margin-left: 6px; color: var(--graphite); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip-count:empty { display: none; }
.chip[aria-current='true'] .chip-count { color: var(--on-ink-muted); }
/* Nothing in this category for the current view: still selectable, visibly empty. */
.chip.is-zero:not([aria-current='true']) { border-style: dashed; color: var(--muted-2); }
.inline-error { margin: 0; font-size: var(--t-s); color: var(--graphite); }

/* ---------- Video gallery ---------- */

.videos { margin-top: 20px; }
.videos-head { display: grid; gap: 4px; }
.videos-title { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: var(--t-xl); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.videos-count { font-size: var(--t-s); font-weight: 500; color: var(--graphite); font-variant-numeric: tabular-nums; }
.videos-hint { max-width: 70ch; margin: 0; font-size: var(--t-s); color: var(--graphite); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin: 14px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vcard-item { min-width: 0; }
.vcard { display: flex; flex-direction: column; gap: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.vcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* The image is an ordinary positioned child (no negative z-index), so every engine paints it. */
.vcard-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--haze); }
.vcard-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.vcard-ph { display: none; }
.vcard-media.is-empty .vcard-ph {
  position: absolute; inset: 12px 12px 44px; display: -webkit-box; overflow: hidden; overflow-wrap: anywhere;
  font-size: 1.75rem; font-stretch: 62%; font-weight: 800; line-height: 0.98; color: var(--ink);
  -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6;
}
.vcard[aria-current='true'] .vcard-media { outline: 3px solid var(--rec); outline-offset: 2px; }
/* Badges sit on the photo, so they keep their own dark pill in both themes. */
.vcard-badges {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 4px 7px;
  border-radius: 999px; background: rgb(0 0 0 / 0.64); color: #ffffff;
}
.vcard-badges .rec { width: 8px; height: 8px; }
.vcard-site { font-size: 0.6875rem; font-weight: 700; line-height: 1.2; }
.vcard-title {
  display: -webkit-box; overflow: hidden; overflow-wrap: anywhere;
  font-size: 1.2rem; font-stretch: 62%; font-weight: 800; line-height: 1.02;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
}
@media (min-width: 760px) { .vcard-title { font-size: 1.35rem; } }
.vcard-meta { margin-top: -3px; font-size: var(--t-xs); color: var(--graphite); font-variant-numeric: tabular-nums; }
.vcard:hover .vcard-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.vcard-item.is-skel .sk-line { display: block; width: 70%; }
.vcard-item.is-skel .sk-line.short { width: 40%; margin-top: 8px; }
/* index.html ships 12 placeholder cards: keep two rows for the column count. */
@media (max-width: 639.98px) { .gallery > .is-skel:nth-child(n+5) { display: none; } }
@media (min-width: 640px) and (max-width: 959.98px) { .gallery > .is-skel:nth-child(n+7) { display: none; } }
@media (min-width: 960px) and (max-width: 1239.98px) { .gallery > .is-skel:nth-child(n+11) { display: none; } }
/* Set by early.js when the page opens on the gallery, until app.js takes over the view. */
html[data-first-view='videos'] #videos[hidden] { display: block !important; }
.gallery-more { display: flex; justify-content: center; margin-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
/* The chevron's stroke starts 5px into its box; pull it back so a wrapped link lines up with the text above. */
.back-link .icon { width: 15px; height: 15px; margin-left: -4px; }
/* Playful parallax: covers drift inside their frames as the page scrolls. Compositor-driven,
   no script; off for reduced motion and in browsers without scroll-driven animations. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .vcard-img { top: -6%; height: 112%; animation: vcard-drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes vcard-drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .vcard-img { transition: scale 220ms ease-out; }
  .vcard:hover .vcard-img { scale: 1.045; }
}

/* ---------- Results ---------- */

.results { margin-top: 16px; }
@media (max-width: 759px) { .results-title:not(.is-video) { font-size: 1.25rem; } }
.results-head { display: grid; gap: 4px; margin-bottom: 14px; }
.results-title { margin: 0; font-size: var(--t-xl); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; scroll-margin-top: 12px; }
.results-title:focus { outline: none; }
.results-title.is-video { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); font-stretch: 62%; line-height: 0.95; letter-spacing: 0; }
.results-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; color: var(--graphite); }
.results-sub a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 650; }
.results-count { min-height: 1.45em; margin: 0; font-size: var(--t-s); color: var(--graphite); font-variant-numeric: tabular-nums; }
.active { display: flex; flex-wrap: wrap; gap: 6px; }
.active:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px;
  border-radius: 999px; background: var(--haze); font-size: var(--t-s); font-weight: 600; text-decoration: none;
}
.pill:hover { background: var(--rule); }
.pill-clear { background: none; text-decoration: underline; }

.grid {
  /* The windowed grid's spacers already keep content in place; browser anchoring would fight them. */
  overflow-anchor: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px;
  margin: 0; padding: 0; list-style: none;
}
.grid[aria-busy='true'] > .card:not(.is-skel) { opacity: 0.5; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* Stand-ins for rows outside the rendered window; they span the grid and keep the page height. */
.spacer { grid-column: 1 / -1; list-style: none; }
.card-media { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-media); background: var(--haze); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.nophoto {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; height: 100%; padding: 10px 12px;
  color: var(--graphite); font-size: var(--t-xs);
}
.nophoto-source { color: var(--faint); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-stretch: 62%; font-weight: 800; line-height: 0.95; }
.nophoto-note { display: inline-flex; align-items: center; gap: 5px; }
.nophoto-note .icon { width: 14px; height: 14px; stroke-width: 1.75; }
.is-failed .nophoto-note { color: var(--ink); }
.marks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 0; padding: 0; list-style: none; font-size: var(--t-xs); font-weight: 650; }
.mark { display: inline-flex; align-items: center; gap: 5px; }
.mark::before { content: ''; flex: none; width: 8px; height: 8px; }
.mark-video::before { border-radius: 50%; background: var(--rec); }
.mark-bought::before { border-radius: 1px; background: var(--ink); }
.card-title {
  display: -webkit-box; margin: 8px 0 0; overflow: hidden;
  font-size: 0.875rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.marks + .card-title { margin-top: 4px; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 0.18em; }
.card-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 6px 0 10px; }
.card-price { margin: 0; font-size: var(--t-m); font-weight: 750; font-variant-numeric: tabular-nums; }
.card-price.is-unknown { font-size: var(--t-s); font-weight: 500; color: var(--graphite); }
.card-open {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-s); font-weight: 650; text-decoration: underline; text-underline-offset: 0.18em;
}
/* The whole card opens details; the buy link sits above that layer. */
.card-open::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-media); }
.card-open:focus-visible { outline: none; }
.card-open:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 4px; }
.card-buy { position: relative; z-index: 2; min-height: 40px; margin-top: auto; padding: 0 8px; }

.sk { border-radius: 4px; background: var(--haze); }
.sk-media { aspect-ratio: 1; border-radius: var(--radius-media); }
.sk-line { height: 12px; margin-top: 10px; }
.sk-line.short { width: 55%; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: pulse 1.1s ease-in-out infinite alternate; }
}
@keyframes pulse { to { opacity: 0.45; } }

.notice { max-width: 60ch; padding: 24px 0 8px; border-top: 2px solid var(--ink); }
.notice p { margin: 0 0 14px; }
.notice .notice-title { margin-bottom: 6px; font-size: var(--t-l); font-weight: 750; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.more {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); text-align: center;
}
.more-status { margin: 0; font-size: var(--t-s); color: var(--graphite); font-variant-numeric: tabular-nums; }
.more-status:empty { display: none; }
.more-btn { min-width: 200px; }
.sentinel { height: 1px; }

.footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 2px solid var(--ink); font-size: var(--t-s); color: var(--graphite); }
.footer p { max-width: 75ch; margin: 0 0 6px; }

/* ---------- Product sheet ---------- */

.sheet {
  width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; background: var(--paper); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: var(--backdrop); }
@media (min-width: 760px) { .sheet { width: min(560px, 100%); margin-left: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up 180ms ease-out; }
  @media (min-width: 760px) { .sheet[open] { animation-name: sheet-in; } }
}
@keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } }

.sheet-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: flex-end; padding: 10px var(--gutter);
  border-bottom: 1px solid var(--rule); background: var(--paper);
}
.sheet-close { min-height: 40px; padding: 0 12px; }
.sheet-body { padding: 16px var(--gutter) 48px; }
.sheet-loading { margin: 24px 0; color: var(--graphite); }
.sheet-figure { margin: 0; }
.sheet-media { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-media); background: var(--haze); }
.sheet-media img { width: 100%; height: 100%; object-fit: contain; }
.sheet-media.is-empty { aspect-ratio: 5 / 2; }
.sheet-figure figcaption { margin-top: 6px; font-size: var(--t-xs); color: var(--graphite); }
.sheet-marks { margin-top: 14px; }
.sheet-title { margin: 12px 0 6px; font-size: var(--t-xl); font-weight: 750; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sheet-price { margin: 0; font-size: var(--t-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.fine { margin: 4px 0 0; font-size: var(--t-s); color: var(--graphite); }
.fine a { color: var(--ink); font-weight: 650; }
.sheet-buy { min-height: 52px; margin: 16px 0 8px; font-size: var(--t-m); }
.sheet-section { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sheet-section h3 { margin: 0 0 10px; font-size: var(--t-m); font-weight: 800; }
.sheet-section h4 { margin: 14px 0 4px; font-size: var(--t-s); font-weight: 700; }

.qc-box { padding: 14px; border: 1.5px dashed var(--dash); border-radius: var(--radius-media); }
.qc-box .btn { margin-top: 10px; }
.qc-msg { margin: 0; font-weight: 650; }
.qc[aria-busy] .qc-msg { color: var(--graphite); font-weight: 500; }
.qc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.qc-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--haze); }
.qc-caption { margin: 4px 0 0; font-size: var(--t-xs); color: var(--graphite); }

.link-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.video-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.video-name { font-size: 1.5rem; font-stretch: 62%; font-weight: 800; line-height: 1; }
.video-thumb-wrap { display: inline-block; flex: none; width: 36px; height: 64px; overflow: hidden; border-radius: 4px; background: var(--haze); }
.video-thumb { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-wrap.is-empty { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); }
.video-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.watch { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.watch-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: var(--t-s); font-weight: 650; }
.rail-msg { margin: 2px 0 0; font-size: var(--t-s); }
.rail-msg.is-busy { color: var(--graphite); }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { color: var(--graphite); }
.facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.variants { margin: 4px 0 0; padding-left: 1.1em; font-size: var(--t-s); }
.review-note { margin-top: 14px; padding-left: 10px; border-left: 3px solid var(--ink); }

.offer-list { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.offer { padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-media); }
.offer .offer-title { margin: 0 0 6px; }
.offer-price { margin: 8px 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.offer-actions { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 600px) { .offer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
