/* =========================================================================
   cheapstockphotos.site — "Soft Depth" (stock-image template)
   Palette tokens between the FORGE markers are rewritten per site by
   scripts/forge_stock_sites.py. No CDN, no inline styles (CSP: style-src 'self').
   ========================================================================= */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* FORGE:PALETTE:BEGIN */
  --bg: #0b1017;
  --bg-deep: #080b10;
  --surface: #131b26;
  --surface-2: #182230;
  --text: #eef2f8;
  --muted: #8495b0;
  --indigo: #5b8cff;
  --indigo-soft: #b06bff;
  --indigo-deep: #326fff;
  --glow: rgba(91, 140, 255, 0.35);
  --glow-soft: rgba(176, 107, 255, 0.18);
  --line: rgba(166, 187, 218, 0.14);
  --line-strong: rgba(166, 187, 218, 0.26);
  /* FORGE:PALETTE:END */

  --grad-accent: linear-gradient(135deg, var(--indigo-soft) 0%, var(--indigo-deep) 100%);
  --grad-wash: radial-gradient(120% 90% at 50% -10%, var(--glow) 0%, var(--glow-soft) 42%, transparent 72%);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(3, 6, 12, 0.4);
  --shadow: 0 12px 32px rgba(3, 6, 12, 0.55);
  --shadow-lift: 0 22px 52px rgba(3, 6, 12, 0.62), 0 0 0 1px var(--line-strong), 0 0 40px var(--glow-soft);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --step: clamp(48px, 7vw, 88px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-soft); text-decoration: none; }
a:hover { color: #a5c0ff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.15em 0.45em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--indigo); color: #06090f; padding: 12px 20px;
  border-radius: 0 0 var(--r) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--indigo-soft);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 16, 23, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(18px)) {
  .site-header { background: rgba(11, 16, 23, 0.68); backdrop-filter: blur(18px) saturate(1.3); }
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.16rem;
  color: var(--text); letter-spacing: -0.02em; margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand-name em { font-style: normal; color: var(--indigo-soft); }
.brand-dot {
  width: 22px; height: 22px; border-radius: 8px;
  background: var(--grad-accent);
  box-shadow: 0 0 22px var(--glow);
  flex: none;
}

.header-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; order: 3; }
.header-search input,
.hero-search input,
.search-form input {
  flex: 1; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text);
  font: inherit; font-size: 0.96rem;
  padding: 11px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header-search input::placeholder,
.hero-search input::placeholder,
.search-form input::placeholder { color: var(--muted); }
.header-search input:focus,
.hero-search input:focus,
.search-form input:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 4px var(--glow-soft); outline: none;
}
.header-search button,
.hero-search button,
.search-form button {
  border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.94rem;
  color: #06090f; background: var(--grad-accent);
  border-radius: var(--r-pill); padding: 11px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-search button:hover,
.hero-search button:hover,
.search-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow); }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); font-weight: 600; font-size: 0.94rem;
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta { color: var(--indigo-soft); border: 1px solid var(--line-strong); }
.site-nav .nav-cta:hover { background: var(--glow-soft); color: #cfdcff; }

.nav-toggle {
  display: none; width: 44px; height: 40px; order: 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; padding: 10px 11px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 3px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-search { order: 4; max-width: none; flex-basis: 100%; padding-bottom: 14px; }
  .site-nav {
    order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding-bottom: 16px; display: none;
  }
  .site-nav a { padding: 12px 14px; }
  body.nav-open .site-nav { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--grad-accent); color: #06090f; box-shadow: 0 10px 30px var(--glow-soft); }
.btn-primary:hover { color: #06090f; transform: translateY(-2px); box-shadow: 0 16px 40px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--indigo); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 116px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background: var(--grad-wash); pointer-events: none;
}
.hero > .shell { position: relative; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 1.2em;
}
.hero-lead {
  max-width: 62ch; margin: 0 auto 2em; color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2em; }
.hero-search, .search-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 1.4em; }
.search-form { margin-inline: 0; }

/* ---------- bands ---------- */
.band { padding: var(--step) 0; }
.band-top { padding-top: clamp(28px, 4vw, 48px); }
.band-alt { background: linear-gradient(180deg, rgba(20, 27, 38, 0) 0%, rgba(20, 27, 38, 0.72) 50%, rgba(20, 27, 38, 0) 100%); }
.band-inline { margin-top: var(--step); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 1.6em; }
.band-head h2 { margin: 0; }
.band-more { font-weight: 700; font-family: var(--display); white-space: nowrap; }

.lede { color: var(--muted); font-size: 1.06rem; max-width: 70ch; }
.count-line { font-size: 1.06rem; color: var(--muted); margin-bottom: 0.5em; }
.count-line strong { color: var(--text); font-family: var(--display); font-size: 1.2em; }
.count-line em { font-style: normal; color: var(--indigo-soft); }
.range-line { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-bottom: 2em; }
.empty { color: var(--muted); padding: 48px 0; }

/* ---------- breadcrumbs ---------- */
.crumbs { margin-bottom: 1.4em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: '/'; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--indigo-soft); }

/* ---------- grid + cards ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 0.35s ease; }
.card-media img.is-loading { opacity: 0; }
.card-link { display: block; height: 100%; }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  background: rgba(7, 11, 17, 0.78); color: var(--indigo-soft);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 3px 10px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { margin: 0; font-size: 1rem; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--indigo-soft); }
.card-download {
  margin-top: auto; align-self: flex-start;
  font-family: var(--display); font-weight: 700; font-size: 0.86rem;
  color: var(--indigo-soft); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 8px 16px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.card-download:hover { background: var(--glow-soft); border-color: var(--indigo); color: #cfdcff; }

/* ---------- the CTA overlay (the point of the whole site) ---------- */
.cta-overlay {
  position: absolute; inset: auto 10px 10px auto; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  color: #06090f; background: var(--grad-accent);
  border-radius: var(--r-pill); padding: 9px 17px;
  box-shadow: 0 6px 22px rgba(3, 6, 12, 0.55);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.cta-overlay::after { content: '↗'; font-size: 0.9em; }
.cta-overlay:hover { color: #06090f; box-shadow: 0 10px 30px var(--glow); }
.card:hover .cta-overlay,
.card:focus-within .cta-overlay,
.detail-frame:hover .cta-overlay,
.cta-overlay:focus-visible {
  opacity: 1; transform: translateY(0);
}
/* Touch devices have no hover — never hide the CTA there. */
@media (hover: none) {
  .cta-overlay { opacity: 1; transform: none; }
}

/* ---------- tags ---------- */
.tag-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.tag-chips a {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px 12px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.tag-chips a:hover { color: var(--text); border-color: var(--indigo); background: var(--glow-soft); }
.tag-chips-wide { margin: 1em 0 1.6em; }
.tag-chips-wide a { font-size: 0.88rem; padding: 7px 16px; }

.tag-index {
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
  column-width: 16.5rem;
  column-gap: 2rem;
}
.tag-index li {
  break-inside: avoid;
  margin: 0;
  padding: 0;
}
.tag-index a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tag-index a:hover {
  color: var(--indigo-soft);
  border-bottom-color: var(--indigo);
}
.tag-index-name { text-transform: capitalize; }
.tag-index-count { font-family: var(--mono); font-size: 0.78rem; color: var(--indigo-soft); }

/* ---------- keyword hubs ---------- */
.hub-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.hub a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: rgba(20, 27, 38, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
  color: var(--text);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
@supports (backdrop-filter: blur(12px)) {
  .hub a { background: rgba(20, 27, 38, 0.55); backdrop-filter: blur(12px); }
}
.hub a:hover {
  transform: translateY(-4px); border-color: var(--indigo);
  box-shadow: 0 18px 44px rgba(3, 6, 12, 0.55), 0 0 34px var(--glow-soft);
  color: var(--text);
}
.hub-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.hub-count { font-family: var(--mono); font-size: 0.74rem; color: var(--indigo-soft); letter-spacing: 0.08em; }
.hub-intro { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- detail ---------- */
.detail-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 940px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: var(--shadow);
}
.detail-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-frame .cta-overlay { inset: auto 16px 16px auto; font-size: 0.9rem; padding: 11px 20px; }
.detail-side { position: sticky; top: 96px; }
@media (max-width: 940px) { .detail-side { position: static; } }
.detail-side h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.detail-note { font-size: 0.88rem; color: var(--muted); margin-top: 1em; }

.specs {
  margin: 1.8em 0; padding: 0;
  border-top: 1px solid var(--line);
}
.specs > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.specs dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.specs dd { margin: 0; font-weight: 600; font-size: 0.94rem; text-align: right; }

.detail-tags h2 { font-size: 1rem; margin-bottom: 0.7em; }
.source-card {
  margin-top: 1.8em; padding: 22px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: rgba(26, 35, 49, 0.8);
}
@supports (backdrop-filter: blur(14px)) {
  .source-card { background: rgba(26, 35, 49, 0.5); backdrop-filter: blur(14px); }
}
.source-card h2 { font-size: 1.05rem; margin-bottom: 0.5em; }
.source-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- pager ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 3em; }
.pager-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.pager-list a, .pager-current, .pager-step {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 0.9rem;
  background: var(--surface); color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pager-list a:hover, .pager-step:hover { color: var(--text); border-color: var(--indigo); background: var(--surface-2); }
.pager-current { background: var(--grad-accent); color: #06090f; border-color: transparent; }
.pager-gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* ---------- search empty state ---------- */
.empty-state {
  margin: 2em 0; padding: 30px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: rgba(20, 27, 38, 0.55);
}
.empty-state h2 { font-size: 1.2rem; }
.empty-state p { color: var(--muted); }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose li { margin-bottom: 0.4em; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: var(--step) 0 40px; margin-top: var(--step); }
.footer-lead { display: flex; gap: 14px; align-items: flex-start; max-width: 62ch; margin-bottom: 2.6em; }
.footer-lead p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.footer-cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 4px;
}
.footer-cols a { color: var(--muted); font-size: 0.92rem; }
.footer-cols a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 3em 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.faq-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.faq-card > span { font-family: "IBM Plex Mono", monospace; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.faq-card h2 { margin: .45rem 0 .4rem; font-size: 1.1rem; }
.faq-card p { margin: 0; color: var(--muted); }
.faq-copy a { color: var(--indigo); }
.faq-table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 12px; }
.faq-copy table { width: 100%; border-collapse: collapse; }
.faq-copy th, .faq-copy td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.faq-next { margin-top: 2rem; }
.csp-fig { margin: 1.6rem 0; padding: 1.15rem 1.2rem; border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 16px; }
.csp-fig .fig-kicker { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo-soft); }
.csp-fig h3 { margin: .4rem 0 .5rem; }
.csp-fig .fig-lede { color: var(--muted); }
.csp-fig .fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem; }
.csp-fig .fig-card { padding: .85rem .9rem; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.csp-fig .fig-card .idx { font-size: .75rem; color: var(--indigo); }
.csp-fig .fig-card.is-hot { border-color: var(--indigo); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover, .btn:hover, .tag-index a:hover, .hub a:hover { transform: none; }
  .cta-overlay { opacity: 1; transform: none; }
}


/* ---------- responsive images + fluid grid (stock template) ---------- */
img { max-width: 100%; height: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
@media (min-width: 2200px) { .grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); } }
@media (min-width: 3800px) { .grid { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); } }
.card-media img { width: 100%; height: auto; aspect-ratio: auto; display: block; }
.detail-frame img { width: 100%; height: auto; display: block; }
.detail-full { display: block; cursor: zoom-in; }
.detail-fullres { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.detail-fullres a { color: var(--indigo-soft); }
.spelling-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.spelling-index li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.spelling-index li > a { color: var(--text); }
.spelling-bad { display: block; margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
.spelling-tag { display: inline-block; margin-top: 6px; font-size: 0.9rem; }
.spelling-letters code { font-size: 1.25rem; letter-spacing: 0.08em; }
