/* ==========================================================================
   Single Font Page (/fonts/{slug})
   - 16:9 4-Layer Realistic Embossed Paper Hero Mockup
   - Font Action Bar + 60% Slide-over Product Drawer (40% Blurred Backdrop)
   - Theme-Aware Swiss-Grid Type Tester & Character Map
   ========================================================================== */

.fsingle {
  padding: 12px 0 88px;
}

@media (max-width: 1240px) {
  .fsingle { padding-left: 16px; padding-right: 16px; }
  .cpd-nav__inner { padding-left: 16px; padding-right: 16px; }
}

/* ---------- 1. Hero Mockup 16:9 (4-Layer Blend Stack) ---------- */
.fhero-wrap {
  width: 100%;
}

.fhero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--hero-paper-light, #f4d1d6);
  border: 1px solid var(--line);
  transition: background-color 220ms ease;
}

html.theme-dark .fhero {
  background-color: var(--hero-paper-dark, #2b2326);
}

.fhero__base,
.fhero__highlight,
.fhero__paper-tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* Layer 2: Neutral #808080 grayscale embossed paper recolored over Layer 1 */
.fhero__base {
  z-index: 1;
  mix-blend-mode: hard-light;
  opacity: var(--hero-tex-op, 0.90);
  transition: opacity 280ms ease;
}

/* Layer 3: Safe Area + Static Editorial Typography */
.fhero__safe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: var(--safe-y, 14%) var(--safe-x, 16%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fhero__text {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: 'FontHeroFace', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 7.6cqw, 108px);
  line-height: 1.08;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  user-select: none;
  color: var(--hero-ink-active, #1c1d1a);
  opacity: var(--hero-ink-op, 0.92);
  mix-blend-mode: var(--hero-ink-blend, multiply);
  text-shadow: var(--hero-ink-shadow, none);
  transition: opacity 280ms ease;
}

/* Layer 4: Reused Emboss Frame Base as High-Contrast Soft-Light Highlight Pass */
.fhero__highlight {
  z-index: 3;
  mix-blend-mode: soft-light;
  filter: contrast(1.45);
  opacity: var(--hero-hi-op, 0.42);
  transition: opacity 280ms ease;
}

/* Layer 5: Real Folded / Crumpled Paper Texture Shadow + Crease Highlight */
.fhero__paper-tex {
  z-index: 4;
  mix-blend-mode: var(--hero-pt-blend, hard-light);
  opacity: var(--hero-pt-op, 0.55);
  filter: var(--hero-pt-filter, none);
  transition: opacity 280ms ease;
}

/* Coordinated Loading State + Minimalist Hourglass Animation */
.fhero.is-loading .fhero__base,
.fhero.is-loading .fhero__text,
.fhero.is-loading .fhero__highlight,
.fhero.is-loading .fhero__paper-tex {
  opacity: 0 !important;
}

.fhero.is-instant .fhero__base,
.fhero.is-instant .fhero__text,
.fhero.is-instant .fhero__highlight,
.fhero.is-instant .fhero__paper-tex,
.fhero.is-instant .fhero__loader {
  transition: none !important;
}

.fhero__loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--hero-ink-active, var(--hero-ink-light, #1c1d1a));
  opacity: 0;
  transition: opacity 220ms ease;
}

html.theme-dark .fhero__loader {
  color: var(--hero-ink-active, var(--hero-ink-dark, #f5f5f5));
}

.fhero.is-loading .fhero__loader {
  opacity: 0.72;
}

.fhero__hourglass {
  width: 34px;
  height: 44px;
  animation: cpdHourglassFlip 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.fhero__hourglass .hg-sand-top {
  transform-origin: 16px 19px;
  animation: cpdSandDrain 2.2s linear infinite;
}

.fhero__hourglass .hg-sand-bot {
  transform-origin: 16px 37px;
  animation: cpdSandFill 2.2s linear infinite;
}

.fhero__hourglass .hg-stream {
  animation: cpdSandStream 2.2s linear infinite;
}

@keyframes cpdHourglassFlip {
  0%, 72%   { transform: rotate(0deg); }
  92%, 100% { transform: rotate(180deg); }
}

@keyframes cpdSandDrain {
  0%        { transform: scaleY(1); opacity: 0.85; }
  70%       { transform: scaleY(0.08); opacity: 0.55; }
  74%, 100% { transform: scaleY(0); opacity: 0; }
}

@keyframes cpdSandFill {
  0%        { transform: scaleY(0.08); opacity: 0.25; }
  70%, 100% { transform: scaleY(1); opacity: 0.85; }
}

@keyframes cpdSandStream {
  0%, 68%   { opacity: 0.8; stroke-dashoffset: 0; }
  72%, 100% { opacity: 0; stroke-dashoffset: -12; }
}

@media (prefers-reduced-motion: reduce) {
  .fhero__hourglass,
  .fhero__hourglass .hg-sand-top,
  .fhero__hourglass .hg-sand-bot,
  .fhero__hourglass .hg-stream {
    animation: none;
  }
}

/* Discreet Interactive Controls (Shuffle / Reset) */
.fhero__tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.42;
  transition: opacity 160ms ease;
}

.fhero:hover .fhero__tools,
.fhero:focus-within .fhero__tools {
  opacity: 1;
}

.fhero__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 128, 0.45);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--fg);
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1;
  cursor: var(--cpd-cur-pointer, pointer);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.fhero__tool--icon {
  width: 30px;
  padding: 0;
  font-size: 15px;
}

.fhero__tool:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.fhero__tool[hidden] {
  display: none;
}

.fhero__attr {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
}

/* ---------- 2. Font Action Bar ---------- */
.fbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.fbar__info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}

.fbar__name {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.fbar__sep {
  opacity: 0.5;
}

.fbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.68rem 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  cursor: var(--cpd-cur-pointer, pointer);
  white-space: nowrap;
  transition: opacity 150ms ease, background-color 150ms ease, color 150ms ease;
}

.fbar__cta:hover {
  background: transparent;
  color: var(--fg);
}

.fbar__cta:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .fbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .fbar__cta {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- 3. Type Tester (Theme-Aware Swiss Grid) ---------- */
.cpd-single {
  margin-top: 40px;
}

.cpd-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg);
}

.cpd-tester-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.cpd-tester-bar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.cpd-tester-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  cursor: var(--cpd-cur-pointer, pointer);
  user-select: none;
}

.cpd-tester-sync input {
  accent-color: var(--fg);
  cursor: var(--cpd-cur-pointer, pointer);
}

.cpd-tester-presets {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cpd-chip-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.3;
  cursor: var(--cpd-cur-pointer, pointer);
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.cpd-chip-btn:hover,
.cpd-chip-btn.is-active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.cpd-type-testers {
  display: flex;
  flex-direction: column;
}

.cpd-type-testers.is-font-loading .cpd-tester__preview {
  visibility: hidden;
}

.cpd-tester {
  padding: 24px 0 28px;
  border-bottom: 1px dashed var(--line);
}

.cpd-tester:last-child {
  border-bottom: 0;
}

.cpd-tester__head {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.2fr) auto;
  align-items: center;
  gap: 14px 24px;
}

.cpd-tester__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpd-tester__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.cpd-tester:hover .cpd-tester__controls,
.cpd-tester:focus-within .cpd-tester__controls {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cpd-tester__cart {
  justify-self: end;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: var(--cpd-cur-pointer, pointer);
  opacity: 0.78;
  transition: opacity 140ms ease;
}

.cpd-tester__cart:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cpd-tester__cart:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.cpd-tester__control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex: 1 1 140px;
  min-width: 0;
}

.cpd-tester__lbl {
  white-space: nowrap;
}

.cpd-tester__control input[type="range"] {
  flex: 1 1 auto;
  min-width: 56px;
  width: auto;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 20px;
  margin: 0;
  cursor: var(--cpd-cur-pointer, pointer);
}

.cpd-tester__control input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--fg);
  opacity: 0.45;
}

.cpd-tester__control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--fg);
  margin-top: -6.5px;
  cursor: var(--cpd-cur-pointer, pointer);
}

.cpd-tester__control input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--fg);
  opacity: 0.45;
}

.cpd-tester__control input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--fg);
  cursor: var(--cpd-cur-pointer, pointer);
}

.cpd-tester__size-val,
.cpd-tester__spacing-val {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 40px;
  text-align: right;
}

.cpd-tester__align {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.cpd-tester__align-btn {
  background: none;
  border: 0;
  padding: 4px;
  cursor: var(--cpd-cur-pointer, pointer);
  opacity: 0.35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: opacity 140ms ease;
}

.cpd-tester__align-btn .material-symbols-outlined {
  font-size: 19px;
}

.cpd-tester__align-btn:hover { opacity: 0.75; }
.cpd-tester__align-btn.is-active { opacity: 1; }

.cpd-tester__preview {
  font-size: 82px;
  line-height: 1.15;
  color: var(--fg);
  outline: none;
  margin-top: 14px;
  padding: 8px 0.08em 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cpd-tester--lines-1 .cpd-tester__preview {
  font-size: 104px;
  line-height: 1.08;
}

.cpd-tester--lines-2 .cpd-tester__preview {
  font-size: 68px;
  line-height: 1.12;
}

.cpd-tester--lines-3 .cpd-tester__preview {
  font-size: 44px;
  line-height: 1.18;
}

.cpd-tester__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 16px;
}

.cpd-tester__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cpd-tester__col:first-child {
  padding-right: 28px;
  border-right: 1px dashed var(--line);
}

.cpd-tester__col:last-child {
  padding-left: 28px;
}

.cpd-tester__col-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.cpd-tester__preview--col {
  margin-top: 0;
  padding: 4px 0.04em 10px;
  font-size: 26px;
  line-height: 1.4;
}

@media (hover: none) {
  .cpd-tester__controls {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 820px) {
  .cpd-tester__head {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }
  .cpd-tester__controls {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .cpd-tester__cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cpd-tester__col:first-child {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }
  .cpd-tester__col:last-child {
    padding-left: 0;
  }
}

/* ---------- 4. Character Map (Polished Swiss-Grid Monochrome) ---------- */
.cpd-charmap {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
  min-width: 0;
}

.cpd-charmap:empty { display: none; }
.cpd-charmap.is-font-loading { visibility: hidden; }

.cv {
  --size: calc(var(--monitor-width) * 0.46);
  --half-gap: calc(var(--line-gap) / 2);
  --scale: calc(var(--size) / var(--units-per-em));
  font-family: inherit;
  color: var(--fg);
}

.cv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 24px;
}

.cv__title-group {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.cv__count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cv__filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Mobile Compact Inspector Bar (< 640px) */
.cv__mobile-bar {
  display: none;
}

.cv__layout {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cv__inspector {
  position: sticky;
  top: 88px;
}

.cv__stage {
  --cv-line-pad-top: 26px;
  --cv-line-pad-x: 16px;
  position: relative;
  height: calc(1px * (var(--ascender) - var(--descender) + var(--line-gap)) * var(--scale) + var(--cv-line-pad-top) + 22px);
  min-height: 220px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}

.cv__metrics-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.3;
  cursor: var(--cpd-cur-pointer, pointer);
  transition: border-color 140ms ease, color 140ms ease;
}

.cv__metrics-toggle:hover,
.cv__metrics-toggle[aria-pressed="true"] {
  border-color: var(--fg);
  color: var(--fg);
}

.cv__stage.is-metrics-hidden .cv__line {
  opacity: 0 !important;
}

.cv__glyph {
  font-size: calc(1px * var(--size));
  text-align: center;
  white-space: pre;
  z-index: 2;
  line-height: 1;
  position: absolute;
  top: calc(1px * (var(--ascender) + var(--half-gap) - var(--units-per-em) / 2 - (var(--glyph-ascent, var(--ascender)) + var(--glyph-descent, var(--descender))) / 2) * var(--scale) + var(--cv-line-pad-top));
  left: 0;
  width: 100%;
  color: var(--fg);
}

.cv__line {
  border-top: 1px dashed currentColor;
  display: flex;
  justify-content: space-between;
  height: 0;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  position: absolute;
  left: var(--cv-line-pad-x);
  right: var(--cv-line-pad-x);
  opacity: 0.34;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.cv__line[data-name="baseline"] {
  top: calc(1px * (var(--ascender) + var(--half-gap)) * var(--scale) - 0.5px + var(--cv-line-pad-top));
  opacity: 0.7;
}
.cv__line[data-name="ascender"] {
  top: calc(1px * var(--half-gap) * var(--scale) + var(--cv-line-pad-top));
}
.cv__line[data-name="cap-height"] {
  top: calc(1px * (var(--ascender) + var(--half-gap) - var(--cap-height)) * var(--scale) + var(--cv-line-pad-top));
}
.cv__line[data-name="x-height"] {
  top: calc(1px * (var(--ascender) - var(--x-height) + var(--half-gap)) * var(--scale) + var(--cv-line-pad-top));
}
.cv__line[data-name="descender"] {
  top: calc(1px * (var(--ascender) - var(--descender) + var(--half-gap)) * var(--scale) + var(--cv-line-pad-top));
}

.cv__line-label,
.cv__line-val {
  white-space: nowrap;
  padding-top: 2px;
}

/* Technical Details Table */
.cv__details {
  border-top: 1px dashed var(--line);
  font-size: 12px;
}

.cv__detail-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.cv__detail-key {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv__detail-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.cv__style-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cv__style-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  padding: 0 18px 0 0;
  cursor: var(--cpd-cur-pointer, pointer);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.cv__style-select option {
  background: var(--bg);
  color: var(--fg);
}

.cv__style-select:focus {
  outline: none;
}

.cv__style-caret {
  position: absolute;
  right: 2px;
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--fg);
  opacity: 0.6;
}

.cv__copy-btn {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 11px;
  cursor: var(--cpd-cur-pointer, pointer);
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.cv__copy-btn:hover,
.cv__copy-btn.is-copied {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Glyph Blocks — Hairline Swiss Grid */
.cv__block + .cv__block {
  margin-top: 24px;
}

.cv__block[hidden] {
  display: none;
}

.cv__block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.cv__cell {
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-size: 28px;
  line-height: 1;
  white-space: pre;
  cursor: var(--cpd-cur-pointer, pointer);
  user-select: none;
  transition: background-color 90ms ease, color 90ms ease;
}

.cv__cell:hover,
.cv__cell[data-selected="true"] {
  background: var(--fg);
  color: var(--bg);
}

.cv__cell:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}

@media (max-width: 860px) {
  .cv__layout {
    grid-template-columns: 1fr;
  }
  .cv__inspector {
    display: none;
  }
  .cv__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: 6px;
    position: sticky;
    top: 72px;
    z-index: 15;
  }
  .cv__mobile-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }
  .cv__mobile-glyph {
    font-size: 36px;
    line-height: 1;
    min-width: 38px;
    text-align: center;
  }
  .cv__mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .cv__mobile-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .cv__grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  }
}

/* 60% Slide-over Product Drawer styles live globally in /assets/style.css */
