
/* OYB smart light detail page ([oyb_sl_detail]). Same tokens as the SAD lamp and blue blocker pages: blue blocker
   page structure with the SAD lamp distribution cards up top. Chart tooltips and popovers are portaled to <body>,
   so their rules are not scoped to .slv. */
.slv {
  --ink: var(--global-palette3, #1a1a2e);
  --muted: var(--global-palette5, #5a5a72);
  --faint: var(--global-palette6, #9999b3);
  --accent: var(--global-palette-btn-bg, #fa4488);
  --hover: var(--global-palette-btn-bg-hover, #5271ff);
  --accent-deep: #d42c6e;
  --tint: var(--global-palette7, #ffe3ea);
  --wash: var(--global-palette8, #fdf2f5);
  --surface: var(--global-palette9, #ffffff);
  --line: #ebe3ea;
  --soft: #f7f5f9;
  --media: #efeefb;
  --good: #1a7f37; --warn: #a65d0c; --bad: #cf1322;
  --head: var(--global-heading-font-family, "Brandon Grotesque", "Nunito", system-ui, sans-serif);
  --body: var(--global-body-font-family, "Nunito", system-ui, sans-serif);
  box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 56px; /* same box as the blue blocker page */
  display: flex; flex-direction: column; gap: 28px;
  color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
}
.slv *, .slv *::before, .slv *::after { box-sizing: border-box; }
.slv [hidden] { display: none !important; }
.slv.slv :where(h1, h2, h3, p, dl, dd, dt, figure) { margin: 0; }
.slv a { color: var(--accent-deep); }
.slv :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slv .slv-lbl { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.slv .slv-lc { text-transform: none; }
.slv .slv-sub { font-size: 0.875rem; color: var(--muted); }
.slv .slv-sub.is-lg { font-size: 1.02rem; }
.slv .slv-big { font-family: var(--head); font-weight: 800; font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
.slv .slv-crumb a { font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.slv .slv-kicker { font-weight: 800; color: var(--muted); font-size: 0.92rem; }
.slv .slv-title { font-family: var(--head); font-weight: 900; font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.02; letter-spacing: -0.01em; }
.slv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.slv-actions.is-stack { flex-direction: column; }
.slv .slv-btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 22px; border-radius: 8px; background: var(--accent); color: var(--global-palette-btn, #fff) !important; font-weight: 800; text-decoration: none; transition: all .3s ease-in-out; }
.slv .slv-btn:hover { background: var(--hover); box-shadow: 0 0 25px -5px var(--hover); }
.slv-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.slv-dot.is-lg { width: 22px; height: 22px; }
.slv .slv-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

/* photo + flags (the SAD lamp card flag: white pill, colored dot) */
.slv-photo { position: relative; aspect-ratio: 2 / 1; border-radius: 20px; overflow: hidden; background: var(--media); }
.slv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slv-flags { position: absolute; inset: 12px 12px auto 12px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.slv-flag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; background: var(--surface); white-space: nowrap; }
.slv-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.slv-flag.is-good { color: var(--good); }
.slv-flag.is-warn { color: var(--warn); }
.slv-flag.is-bad { color: var(--bad); }
.slv-flag.is-na { color: var(--muted); }
.slv-flag.is-disc { color: var(--bad); margin-left: auto; }
.slv-flag.is-disc::before { display: none; }
.slv-flag.is-inline { box-shadow: inset 0 0 0 1px var(--line); }

/* pills (SAD verdict pills) */
.slv-pill { font-size: 0.78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.slv-pill.is-green { background: #e6f7ed; color: var(--good); }
.slv-pill.is-yellow { background: #fffbe6; color: var(--warn); }
.slv-pill.is-red { background: #fff1f0; color: var(--bad); }
.slv-pill.is-gray { background: #f1edf3; color: var(--muted); }

/* dot strips */
.slv-strip { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.slv-strip-axis { stroke: var(--line); stroke-width: 2; }
.slv-strip-ref { stroke: var(--hover); stroke-width: 1.5; stroke-dasharray: 3 3; }
.slv-strip-dots circle { fill: #cfc7d3; fill-opacity: .8; }
.slv-strip-me { stroke: #fff; stroke-width: 2.5; }
.slv-strip-ticks text { font-size: 11px; fill: var(--muted); font-family: var(--body); }
.slv-strip-ticks text.is-ref { fill: var(--hover); font-weight: 800; }

/* gauges: solid = full brightness, hollow = half */
.slv-gauges { display: flex; flex-direction: column; gap: 16px; }
.slv-gauge { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px; gap: 16px; align-items: center; font-size: 0.95rem; }
.slv-gauge-k { font-weight: 800; }
.slv-gauge-v { text-align: right; font-variant-numeric: tabular-nums; }
.slv-gauge-track { position: relative; height: 10px; border-radius: 999px; }
.slv-gdot { position: absolute; top: -3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; }
.slv-gdot.is-full { background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.slv-gdot.is-half { border: 2.5px solid var(--ink); background: #fff; }
.slv-minigauges { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.slv-minigauges .slv-gauge { grid-template-columns: 110px minmax(0, 1fr) 80px; font-size: 0.85rem; }
.slv .slv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.slv-legend span { display: inline-flex; align-items: center; gap: 7px; }
.slv-key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.slv-key.is-full { background: var(--ink); }
.slv-key.is-half { border: 2px solid var(--ink); }
.slv-key.is-me { background: var(--accent); }
.slv-key.is-other { background: #b9b0c2; }
.slv-key.is-flick { background: #e5a3a3; }
.slv-key.is-disc { background: #b9b0c2; opacity: .35; }

/* tint (Derek's rosy / green meter) */
.slv-tint-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #f472b6 0%, #f8fafc 40%, #f8fafc 60%, #4ade80 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); margin-top: 6px; }
.slv-tint-mid { position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background: rgba(0,0,0,.15); transform: translateX(-50%); }
.slv-tint-mark { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.slv-ends { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 0.68rem; font-weight: 700; color: var(--muted); }

/* lumens, CCT, gamut, scales */
.slv-lum { position: relative; height: 10px; border-radius: 999px; background: #f1edf3; overflow: hidden; margin-top: 6px; }
.slv-lum i { position: absolute; top: 0; height: 100%; border-radius: 999px; }
.slv-cct { position: relative; height: 12px; border-radius: 999px; margin-top: 10px; background: linear-gradient(90deg, #f9a825 0%, #ffcc33 11%, #fff3d6 25%, #fdfdfd 38%, #e3f2fd 52%, #90caf9 66%, #42a5f5 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.slv-cct.is-thin { height: 8px; margin-top: 8px; }
.slv-cct-mask { position: absolute; top: 0; bottom: 0; background: rgba(226, 222, 232, .92); }
.slv-cct-mask:first-child { border-radius: 999px 0 0 999px; }
.slv-cct-mask:nth-child(2) { border-radius: 0 999px 999px 0; }
.slv-cct-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.slv-cct-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2.5px #fff; }
.slv-gamut-track { position: relative; height: 10px; border-radius: 999px; margin-top: 8px; background: linear-gradient(90deg, #ef4444 0%, #f59e0b 33%, #10b981 66%, #06b6d4 100%); }
.slv-gamut-track i { position: absolute; top: 0; width: 2px; height: 100%; background: rgba(255,255,255,.8); }
.slv-gamut-track b { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.slv-gamut-ticks { position: relative; height: 14px; margin-top: 5px; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.slv-gamut-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.slv-gamut-ticks span:first-child { transform: none; }
.slv-gamut-ticks span:last-child { transform: translateX(-100%); }
.slv-scales { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.slv-scales.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slv-scale { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slv-scale-track { position: relative; height: 6px; border-radius: 999px; margin-top: 6px; }
.slv-scale-track i { position: absolute; top: -4px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }

/* segmented control (SAD page) */
.slv-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-self: flex-start; border: 1.5px solid var(--accent); border-radius: 10px; overflow: hidden; max-width: 100%; }
.slv.slv .slv-seg button { border: 0; border-radius: 0; margin: 0; padding: 8px 18px; background: var(--surface); color: var(--accent-deep); font: inherit; font-size: 0.92rem; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; line-height: 1.3; transition: background .2s, color .2s; }
.slv.slv .slv-seg button + button { border-left: 1.5px solid var(--accent); }
.slv.slv .slv-seg button:hover { background: var(--wash); }
.slv.slv .slv-seg button[aria-selected="true"] { background: var(--accent); color: #fff; }
.slv.slv .slv-seg button small { font-weight: 700; opacity: .75; margin-left: 4px; font-size: 0.8em; }
.slv.slv .slv-seg.is-sm button { padding: 6px 14px; font-size: 0.85rem; }
.slv-toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.slv-sub-tabs { display: flex; flex-direction: column; gap: 12px; }

/* chart boxes */
.slv-box { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 12px; }
.slv-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.slv-box-t { font-weight: 800; }
.slv-box-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slv-chart { position: relative; width: 100%; }
.slv-chart.is-spd { height: 260px; flex-grow: 1; }
.slv-chart canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.slv .slv-chip, .slv .sld-mel-toggle { appearance: none; font: inherit; font-size: 0.8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.4; transition: all .2s; }
.slv .sld-mel-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.slv .sld-info { appearance: none; background: none !important; border: 0; padding: 0; margin: 0; cursor: pointer; color: var(--faint) !important; display: flex; box-shadow: none !important; }
.slv .sld-info:hover, .slv .sld-info.is-open { color: var(--ink) !important; }
.slv .sld-info svg { width: 18px; height: 18px; }
.slv .sld-nodata { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; background: var(--surface); }
.slv .sld-nodata.is-on { display: flex; position: relative; min-height: 200px; }
.slv .sld-nodata span { font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.slv .sld-rgb-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* Color Shift Map: Derek's hue-wheel card */
.slv .sld-cvg-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-width: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,1) 0%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 85%),
    conic-gradient(from 90deg, #ff6b6b 0%, #e268b3 12.5%, #7f73e6 25%, #4eb3f2 37.5%, #4bd996 50%, #a8f047 62.5%, #ffe63b 75%, #ff983f 87.5%, #ff6b6b 100%); }
.slv .sld-cvg-head { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.slv .sld-cvg-head .sld-card-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #0f172a; }
.slv .sld-cvg-head .sld-card-title svg { width: 18px; height: 18px; }
.slv .sld-cvg-head .sld-card-tools { display: flex; gap: 8px; pointer-events: auto; }
.slv .sld-cvg-card .sld-info, .slv .sld-grid-btn { color: #0f172a !important; opacity: .6; }
.slv .sld-grid-btn { appearance: none; background: none !important; border: 0; padding: 0; margin: 0; cursor: pointer; display: flex; box-shadow: none !important; }
.slv .sld-grid-btn:hover, .slv .sld-grid-btn.is-on, .slv .sld-cvg-card .sld-info:hover { opacity: 1; }
.slv .sld-cvg-body { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 34px 6px 6px; }
.slv .sld-cvg-canvas { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; }
.slv .sld-cvg-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* CIE 1976 card */
.slv .sld-cie-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.slv .sld-cie-tools { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 12px; z-index: 5; }
.slv .sld-cie-wrap { position: relative; width: 100%; aspect-ratio: 65 / 60; margin-top: 18px; }
.slv .sld-cie-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.slv .sld-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.slv .sld-switch span { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slv .sld-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slv .sld-switch i { position: relative; width: 36px; height: 20px; border-radius: 20px; background: #cbd5e1; transition: background .3s; flex: none; }
.slv .sld-switch i::after { content: ""; position: absolute; left: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s; }
.slv .sld-switch input:checked + i { background: var(--ink); }
.slv .sld-switch input:checked + i::after { transform: translateX(16px); }

/* RGB pills (Derek's, verbatim) */
.rgb-pill { padding: 4px 12px !important; border-radius: 12px !important; font-family: 'Nunito', sans-serif !important; font-size: 12px !important; font-weight: 800 !important; text-transform: uppercase !important; cursor: pointer !important; transition: all .2s ease !important; outline: none !important; box-shadow: none !important; line-height: 1.4 !important; }
.rgb-pill-blue { color: #3b82f6 !important; border: 1px solid #c4d9fc !important; background: #ebf2fe !important; }
.rgb-pill-green { color: #22c55e !important; border: 1px solid #bceecf !important; background: #e9f9ef !important; }
.rgb-pill-red { color: #ef4444 !important; border: 1px solid #fcc7c7 !important; background: #feecec !important; }
.rgb-pill.pill-dimmed { opacity: .5 !important; background: transparent !important; }

/* popovers and chart tooltips (portaled to <body>) */
.sld-tip { display: none; position: absolute; width: 260px; max-width: calc(100vw - 20px); padding: 16px; background: #1e1b2e; color: #fff; font-family: 'Nunito', sans-serif; font-size: 13px; line-height: 1.5; text-align: left; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,.25); z-index: 2147483647; }
.sld-tip.is-wide { width: 300px; }
.sld-tip, .sld-tip * { color: #fff; }
.sld-tip > div + div { margin-top: 8px; }
.sld-tip ul { margin: 0; padding-left: 18px; }
.sld-portal { display: none; position: absolute; pointer-events: none; background: #1e1b2e; color: #fff; padding: 16px; border-radius: 14px; font-family: 'Nunito', sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.45); z-index: 2147483647; min-width: 240px; line-height: 1.3; }
.cvg-hover-title { font-size: 13px; font-weight: 800; text-transform: uppercase; color: #a9a3c2; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; }
.sld-portal .tt-head { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; }
.sld-portal .tt-title { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.sld-portal .tt-block { margin-bottom: 14px; }
.sld-portal .tt-block.is-last { margin-bottom: 2px; }
.sld-portal .tt-block.is-top { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sld-portal .tt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.sld-portal .tt-row.is-caps { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #a9a3c2; }
.sld-portal .tt-row.is-small { font-size: 10px; white-space: nowrap; }
.sld-portal .tt-row .is-white { color: #fff; padding: 0 8px; }
.sld-portal .tt-k { font-size: 11px; color: #a9a3c2; text-transform: uppercase; font-weight: 800; letter-spacing: .5px; }
.sld-portal .tt-k.is-big { font-size: 14px; color: #fff; text-transform: none; letter-spacing: 0; }
.sld-portal .tt-v { font-size: 16px; font-weight: 800; color: #fff; }
.sld-portal .tt-lo { color: #a9a3c2; font-weight: 600; }
.sld-portal .tt-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.sld-portal .tt-bar.is-center::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.3); z-index: 2; }
.sld-portal .tt-bar > div { position: absolute; left: 0; width: 0; height: 100%; border-radius: 3px; }
.sld-portal .tt-bar > div.is-mid { left: 50%; }
.sld-portal .tt-spd-container { height: 50px; overflow: hidden; }
.sld-portal .tt-na { height: 50px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #a9a3c2; }

/* specs, logos, alternatives, footer */
.slv-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.slv-specs dd { font-weight: 700; }
.slv-logos { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.slv-logos > div { display: flex; flex-direction: column; gap: 8px; }
.slv-logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.slv-logo-row img { height: 22px; width: auto; object-fit: contain; }
.slv-logo-row img.is-off { filter: grayscale(1); opacity: .22; }
.slv .slv-alt { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.slv .slv-alt:hover { box-shadow: 0 10px 28px -14px rgba(60, 30, 70, .28); transform: translateY(-2px); }
.slv-alt-img { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--media); }
.slv-alt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slv-alt-img .slv-flag { position: absolute; top: 10px; left: 10px; }
.slv-alt-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.slv-alt-why { font-size: 0.72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.slv-alt-why.is-good { color: var(--good); }
.slv-alt-why.is-warn { color: var(--warn); }
.slv-alt-name { font-family: var(--head); font-weight: 800; font-size: 1.12rem; }
.slv-alt-stat { font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.slv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.slv-foot a { font-weight: 800; }

/* ====================== distribution cards (SAD lamp style) ====================== */
.slv-q-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.slv-q { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.slv-q:nth-child(5):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; row-gap: 8px; align-content: start; }
.slv-q:nth-child(5):last-child > * { grid-column: 1; }
.slv-q:nth-child(5):last-child > .slv-strip { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.slv-q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slv .slv-q-head { font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1.2; }

/* ====================== page (blue blocker structure) ====================== */
.slv-b h2 { font-family: var(--head); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.15; }
.slv-b h3 { font-family: var(--head); font-weight: 800; font-size: 1.2rem; }
.slv-b-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.slv-b-id { background: linear-gradient(160deg, #fbf9fc, #f3eff7); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.slv-b-photo { border-radius: 14px; }
.slv-b-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.slv-b-pills span { font-size: 0.72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 4px 10px; }
.slv-b-brand { font-weight: 800; color: var(--muted); }
.slv-b-verdict { padding: 32px 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.slv-b .slv-kicker { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.slv-b-main { font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.4; font-weight: 700; }
.slv-b-main b { color: var(--accent-deep); }
.slv-b-sub { color: var(--muted); font-size: 1.05rem; }
.slv-b-meta { font-size: 0.88rem; color: var(--faint); }
.slv-b-white { display: flex; flex-direction: column; gap: 28px; }
.slv-b-night { --global-palette3: #ece9f6; --global-palette5: #c9c3e0; background: #1d1a2b; color: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.slv-b-night h2 { color: #fff; }
.slv-b-night-head p { color: #c9c3e0; font-size: 0.92rem; margin-top: 4px; }
.slv-b-scale { padding: 6px 4px 0; }
.slv-b-scale .slv-cct.is-big { height: 16px; margin-top: 4px; box-shadow: none; }
.slv-b-scale .slv-ends { color: #8e88aa; }
.slv.slv-b .slv-b-scale-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border-radius: 50%; border: 3px solid #1d1a2b; background: #8e88aa; cursor: pointer; box-shadow: none; min-height: 0; transition: transform .15s, background .15s; }
.slv.slv-b .slv-b-scale-dot[aria-selected="true"] { background: var(--accent); transform: scale(1.25); box-shadow: 0 0 0 3px rgba(250,68,136,.35); }
.slv-b-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.slv.slv-b .slv-b-src { font: inherit; text-align: left; cursor: pointer; border-radius: 14px; padding: 11px 15px; border: 2px solid #3a3552; background: #26223a; color: #fff; display: flex; flex-direction: column; gap: 2px; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 44px; }
.slv.slv-b .slv-b-src b { display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 900; }
.slv.slv-b .slv-b-src span { font-size: 0.8rem; color: #c9c3e0; }
.slv.slv-b .slv-b-src[aria-selected="true"] { border-color: var(--accent); background: #34203a; }
.slv-b-night-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; }
.slv-b-night .slv-box { background: #26223a; border-color: #3a3552; }
.slv-b-night .slv-box-t { color: #fff; }
.slv-b-night .sld-mel-toggle { background: transparent; border-color: #4a4466; color: #c9c3e0; }
.slv-b-night .sld-mel-toggle[aria-pressed="true"] { background: #fff; color: #1d1a2b; border-color: #fff; }
.slv-b-night .sld-info { color: #8e88aa !important; }
.slv-b-stats { display: flex; flex-direction: column; gap: 12px; }
.slv-b-stat { background: #26223a; border: 1px solid #3a3552; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.slv-b-night .slv-lbl { color: #a9a3c2; }
.slv-b-night .slv-sub { color: #a9a3c2; }
.slv-b-night .slv-ends { color: #8e88aa; }
.slv-b-night .slv-lum { background: #3a3552; }
.slv-b-num { font-family: var(--head); font-weight: 900; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.slv-b-v { font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.slv-b-night .slv-b-num { color: #ffb3d1; }
.slv-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.slv-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.slv-panel-head p, .slv-panel > p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; max-width: 42em; }
.slv-b-big { display: flex; align-items: center; gap: 10px; }
.slv-b-big span:last-child { color: var(--muted); font-weight: 700; font-size: 0.9rem; max-width: 12em; line-height: 1.25; }
.slv-b-big .slv-b-num { color: var(--accent-deep); }
.slv-b-render-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.slv-b-render-side { display: flex; flex-direction: column; gap: 20px; }
.slv-b-color-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.slv-b-color-side { display: flex; flex-direction: column; gap: 16px; }
.slv-b-color-side .slv-b-stat, .slv-b-flicker .slv-b-stat { background: var(--soft); border: 0; }
.slv-b-flicker-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.slv-gauges.is-compact { gap: 14px; margin-top: 10px; }
.slv-gauges.is-compact .slv-gauge { grid-template-columns: 100px minmax(0, 1fr) 92px; gap: 10px; font-size: 0.86rem; }
.slv-b-rank { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.slv-rank-svg { width: 100%; height: auto; display: block; }
.slv-rank-grid { stroke: var(--line); stroke-width: 1; }
.slv-rank-ax { font-size: 11px; fill: var(--muted); font-family: var(--body); }
.slv-rank-at { font-size: 12px; fill: var(--muted); font-family: var(--body); font-weight: 700; }
.slv-rank-zone { fill: #e6f7ed; opacity: .7; }
.slv-rank-zt { font-size: 11px; font-weight: 800; fill: var(--good); font-family: var(--body); }
.slv-rank-dot { fill: #b9b0c2; fill-opacity: .75; stroke: #fff; stroke-width: 1; }
.slv-rank-dot.is-disc { fill-opacity: .3; }
.slv-rank-dot.is-flick { fill: #e5a3a3; }
.slv-rank-dot:hover { fill: var(--hover); fill-opacity: 1; }
.slv-rank-me { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.slv-rank-ml { font-size: 13px; font-weight: 900; fill: var(--accent-deep); font-family: var(--body); }
.slv-b-better a { display: flex; flex-direction: column; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.slv-b-better a:hover { background: var(--wash); }
.slv-b-better small { color: var(--muted); font-weight: 700; }
.slv-b-better p { color: var(--muted); font-size: 0.92rem; }
.slv-b-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.slv-b-more .slv-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slv-alt-list { display: flex; flex-direction: column; gap: 10px; }
.slv-alt-list .slv-alt { flex-direction: row; align-items: stretch; }
/* thumbnail fills the card's full height so the photo backdrop reads as a tile, not a floating strip */
.slv-alt-list .slv-alt-img { width: 130px; flex: none; aspect-ratio: auto; min-height: 104px; }
.slv-alt-list .slv-alt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slv-alt-list .slv-alt-body { align-self: center; }
.slv-alt-list .slv-alt-img .slv-flag { display: none; }
.slv-alt-list .slv-alt-body { padding: 10px 14px; }

.slv-logos.is-side { flex-direction: column; gap: 12px; }


/* ====================== responsive ====================== */

@media (max-width: 900px) {
  .slv-b-hero { grid-template-columns: 1fr; }
  .slv-q-cards { grid-template-columns: 1fr; }
  .slv-q:nth-child(5):last-child { display: flex; }
  .slv-scales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slv-b-night-body, .slv-b-render-body, .slv-b-color-body, .slv-b-flicker-body, .slv-b-rank, .slv-b-more { grid-template-columns: 1fr; }
  .slv-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .slv-gauge, .slv-minigauges .slv-gauge, .slv-gauges.is-compact .slv-gauge { grid-template-columns: 1fr; gap: 6px; }
  .slv-gauge-v { text-align: left; }
  .slv-panel, .slv-b-night { padding: 18px; }
  .slv-b-verdict { padding: 22px; }
  .slv-specs, .slv-b-more .slv-specs { grid-template-columns: 1fr; }
  .slv-chart.is-spd { height: 220px; }
  .slv-alt-list .slv-alt-img { width: 96px; min-height: 96px; }
  .slv.slv .slv-seg button { padding: 7px 10px; }
  .slv.slv .slv-seg button small { display: none; }
  .slv-seg { overflow-x: auto; }
}


/* Some post types use Kadence's contained layout, which adds its own width and side padding around the template.
   Let this page own its box instead, so every detail page lines up with the blue blocker page. */
.content-container:has(.slv) { max-width: none; padding-inline: 0; }

/* screen-reader only, and the brand line inside the title */
.slv .slv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.slv .slv-title { overflow-wrap: anywhere; }
.slv-b-id, .slv-b-verdict { min-width: 0; }
.slv .slv-title .slv-b-brand { display: block; font-family: var(--body); font-size: 1rem; font-weight: 800; letter-spacing: 0; color: var(--muted); margin-bottom: 4px; }
