/* Page styles for Part 1: the series nav and the spec filter lab.
   Built on the v3 tokens and the /css/explainers.css aliases. */

/* ---------- series nav (Part 1 / 2 / 3) ---------- */
.series { margin-top: var(--space-5); }
.series__label { font: 500 var(--text-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-faint); margin: 0 0 8px; }
.series ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
.series li { min-width: 0; }
.series a { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text-muted); text-decoration: none; font-size: 14px; line-height: 1.35; transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard); }
.series a b { display: block; font: 500 12px/1.2 var(--font-mono); color: var(--color-text-faint); margin-bottom: 3px; font-weight: 500; }
.series a:hover { border-color: var(--color-line-strong); color: var(--color-text); }
.series a[aria-current="page"] { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-text); }
.series a[aria-current="page"] b { color: var(--color-accent); }
.series a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 560px) { .series ol { grid-template-columns: 1fr; } }

/* ---------- screenshots ---------- */
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.shot--narrow { max-width: 560px; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- spec filter lab ---------- */
.sf__specs { display: grid; gap: 10px; }
.sf__spec { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .3s var(--ease), background .3s var(--ease); }
.sf__spec label { font: 500 12.5px var(--font-mono); color: var(--ink-2); }
.sf__spec select { width: 100%; min-width: 0; font: 400 14px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 8px; }
.sf__spec select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf__spec[data-state="pass"] { border-color: var(--pass-ink); }
.sf__spec[data-state="fail"] { border-color: #c2433d; background: rgba(194,67,61,.06); }
.sf__spec[data-state="skip"] { opacity: .45; }
.sf__note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.sf .pvl__switch { margin-bottom: 0; display: flex; flex-wrap: wrap; border-radius: 14px; }
.sf .pvl__switch button { flex: 1 1 auto; }
.sf__status { display: inline-block; font: 600 12px/1 var(--font-mono); padding: 5px 9px; border-radius: 999px; margin-bottom: 8px; }
.sf__status.ok { background: rgba(31,110,82,.18); color: var(--mint); }
.sf__status.no { background: rgba(194,67,61,.22); color: var(--rose); }
.sf__body { margin: 0; font: 400 12px/1.6 var(--font-mono); color: var(--bone-2); white-space: pre-wrap; overflow-wrap: anywhere; background: transparent; border: 0; padding: 0; border-radius: 0; }
.sf__story { margin: 10px 0 0; font-size: 14px; color: var(--bone); }
.sf .verdict { min-height: 120px; }
.sf__static h3 { font: 600 13px var(--font-mono); margin: 0 0 6px; color: var(--bone); }
.sf__static h3 + .sf__body { margin-bottom: 14px; }
.cmp--narrow { max-width: 560px; }
.code--wrap .ln { white-space: pre-wrap; padding-left: 3.2em; text-indent: -3.2em; }

/* ---------- quality pass, October 2026 ---------- */
/* A code chip inside a link: the underline stays on the words, the chip takes the link color. */
.article-body a > code { display: inline-block; color: var(--color-accent); }
/* Links on the dark code bar keep their contrast on hover. */
.article-body .code .bar a:hover { color: var(--bone); }
/* Screenshots open full size, which matters most on a phone. */
.fig__open { display: block; border-radius: 12px; cursor: zoom-in; }
.fig__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Native selects in the labs, drawn to match the chips and inputs. */
.article-body figure select { -webkit-appearance: none; appearance: none; min-height: 40px; padding: 8px 34px 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background-color: var(--bg); color: var(--ink); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; transition: border-color .2s var(--ease); }
.article-body figure select:hover { border-color: var(--ink-2); }
.article-body figure select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.article-body figure input[type="checkbox"] { accent-color: var(--accent); }
.article-body figure input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Phones: 44px targets, and figure bars stack instead of squeezing the source link into a narrow column. */
@media (max-width: 640px) {
  .article-body .chips button, .article-body .cmp__tabs button, .article-body .pvl__switch button { min-height: 44px; }
  .article-body figure select, .article-body figure input[type="text"] { min-height: 44px; }
  .article-body .code .bar, .article-body .lab__bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}
/* Watch links: the shared article link rule outranks the kit's "no underline", and the
   dashed rule sat 10px under the paragraph above it. */
.article-body > p.watch { margin-top: 22px !important; padding-top: 12px; }
.article-body .watch a:not([class*="__"]) { text-decoration: none; }
.article-body .watch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* A filtered spec reads as skipped without fading its text below contrast. */
.sf__spec[data-state="skip"] { opacity: 1; border-style: dashed; background: transparent; }
.sf__spec[data-state="skip"] label { color: var(--muted); }
.sf__spec select { font: 400 14px var(--font-body); }
