/* ════════════════════════════════════════
       What's New — page-specific styles
       ════════════════════════════════════════ */

    html, body { overflow-x: hidden; }

    /* ── Page shell — shared width, gutters, and surface ── */
    .wn-page {
      --wn-max: 1200px;
      --wn-gutter: clamp(20px, 4vw, 40px);
      background: var(--pds-color-background-secondary);
      min-height: 100vh;
    }

    .wn-page__inner {
      width: 100%;
      max-width: var(--wn-max);
      margin-inline: auto;
      padding-inline: var(--wn-gutter);
    }

    /* ── Page hero ── */
    .wn-page-hero {
      position: relative;
      padding-block: calc(var(--nav-h) + 80px) 48px;
      overflow: hidden;
    }

    /* Ambient glow — full hero width so side margins match page background */
    .wn-page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 70% 55% at 18% 35%, rgba(255,255,255,0.045) 0%, transparent 72%);
      pointer-events: none;
      z-index: 0;
    }

    [data-pds-theme="light"] .wn-page-hero::before {
      background:
        radial-gradient(ellipse 70% 55% at 18% 35%, rgba(0,0,0,0.04) 0%, transparent 72%);
    }

    .wn-page-hero .wn-page__inner {
      position: relative;
      z-index: 1;
    }

    .wn-page-eyebrow {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
      text-transform: uppercase; color: var(--dim);
      margin-bottom: 20px;
    }
    .wn-page-eyebrow::before {
      content: '';
      display: inline-block;
      width: 18px; height: 1px;
      background: var(--nmp-decorative-line);
      flex-shrink: 0;
    }
    .wn-page-title {
      font-family: var(--font-display);
      font-size: clamp(4rem, 10vw, 9rem);
      font-weight: 800; letter-spacing: -0.05em;
      line-height: 0.88; color: var(--pds-color-text-primary);
      white-space: nowrap;
    }
    .wn-page-sub {
      font-size: 0.95rem; line-height: 1.8;
      color: var(--muted);
      margin-top: 20px;
      max-width: 480px;
    }

    /* ── Filter bar ── */
    .wn-filter-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }
    .wn-filter-label {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--dim);
      margin-right: 8px;
    }
    .wn-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.63rem; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase;
      background: transparent;
      border: 1px solid var(--pds-color-border-secondary);
      color: var(--pds-color-text-secondary);
      padding: 5px 14px; border-radius: 20px;
      cursor: pointer;
      transition: background 0.18s, border-color 0.18s, color 0.18s;
      font-family: var(--font);
    }
    .wn-pill-count {
      font-size: 0.58rem;
      opacity: 0.65;
      background: var(--nmp-code-bg);
      border-radius: 8px;
      padding: 1px 5px;
      line-height: 1.4;
    }
    .wn-pill:hover { background: var(--nmp-code-bg); color: var(--pds-color-text-primary); border-color: var(--pds-color-border-primary); }
    .wn-pill.active { background: var(--pds-color-element-primary); color: var(--pds-color-text-primary-inverse); border-color: var(--pds-color-element-primary); }
    .wn-pill.active .wn-pill-count { background: rgba(0,0,0,0.15); opacity: 0.7; }

    /* ── Feature list ── */
    .wn-list {
      padding-block: 20px 120px;
    }

    /* ── Feature entry ── */
    .wn-entry {
      border-top: none;
      transition: border-color 0.2s;
    }
    /* One divider between entries — not above the first (hero already has a bottom rule) */
    .wn-entry + .wn-entry {
      margin-top: 28px;
      padding-top: 28px;
      border-top: 1px solid var(--border);
    }
    .wn-entry:last-child {
      border-bottom: 1px solid var(--border);
    }

    /* Collapsed summary row.
       The row is split into two interactive controls now: an <a> covering the
       title that bumps the URL hash (copy-link-friendly), and a chevron
       <button> that's the only thing which toggles open/close. */
    .wn-entry-head {
      display: grid;
      grid-template-columns: 100px minmax(0, 1fr) auto;
      align-items: center;
      gap: 24px;
      padding: 22px 12px;
      transition: background 0.15s;
      border-radius: var(--pds-radius-12, 12px);
    }
    .wn-entry-head:has(.wn-entry-anchor:hover) { background: var(--pds-color-background-overlay); }
    .wn-entry.open .wn-entry-head {
      background: var(--pds-color-background-overlay);
      padding-bottom: 28px;
    }

    /* Anchor that wraps the date + summary cluster. `display: contents` lets
       its children participate directly in the parent grid, so wrapping
       doesn't disrupt the existing layout. */
    .wn-entry-anchor {
      display: contents;
      color: inherit;
      text-decoration: none;
      cursor: pointer;
    }

    .wn-entry-date {
      font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--dim);
      white-space: nowrap;
    }
    .wn-entry-summary {
      display: flex;
      align-items: center;
      gap: 12px 16px;
      flex-wrap: wrap;
      min-width: 0;
    }
    .wn-entry-title {
      font-family: var(--font-display);
      font-size: clamp(1.15rem, 2.5vw, 1.75rem);
      font-weight: 800; letter-spacing: -0.025em;
      color: var(--pds-color-text-primary); line-height: 1.15;
      transition: opacity 0.15s;
      min-width: 0;
    }
    .wn-entry-anchor:hover .wn-entry-title { opacity: 0.75; }
    .wn-tag {
      font-size: 0.54rem; font-weight: 800; letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 3px 8px; border-radius: 3px;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .wn-tag-new      { background: var(--pds-color-element-primary); color: var(--pds-color-text-primary-inverse); }
    .wn-tag-ai       { background: rgba(130,170,255,0.13); color: #82aaff; border: 1px solid rgba(130,170,255,0.28); }
    .wn-tag-video    { background: rgba(195,232,141,0.1); color: #c3e88d; border: 1px solid rgba(195,232,141,0.22); }
    .wn-tag-image    { background: rgba(255,203,107,0.1); color: #ffcb6b; border: 1px solid rgba(255,203,107,0.22); }
    .wn-tag-beta     { background: rgba(247,140,108,0.1); color: #f78c6c; border: 1px solid rgba(247,140,108,0.28); }
    .wn-tag-coming   { background: var(--nmp-code-bg); color: var(--pds-color-text-disabled); border: 1px solid var(--nmp-decorative-line-subtle); }
    .wn-tag-released { background: rgba(195,232,141,0.15); color: #c3e88d; border: 1px solid rgba(195,232,141,0.32); }
    .wn-tag-search   { background: rgba(137,221,255,0.1);  color: #89ddff; border: 1px solid rgba(137,221,255,0.28); }
    .wn-tag-ui       { background: rgba(199,146,234,0.1);  color: #c792ea; border: 1px solid rgba(199,146,234,0.28); }

    .wn-entry-desc {
      font-size: 0.85rem; color: var(--pds-color-text-secondary); line-height: 1.5;
      display: none;
      margin: 0;
    }
    /* Show desc on wide screens, anchored inline with the title row.
       flex: 1 lets it take remaining space; line-clamp keeps it tidy at
       2 lines even when the underlying copy is long. */
    @media (min-width: 900px) {
      .wn-entry-desc {
        display: -webkit-box;
        flex: 1 1 280px;
        min-width: 0;
        max-width: 540px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    /* Chevron is now a real <button> — reset UA defaults, keep the original
       pill-disc visual treatment. */
    .wn-chevron {
      appearance: none;
      -webkit-appearance: none;
      padding: 0;
      width: 28px; height: 28px;
      background: transparent;
      border: 1px solid var(--border); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-size: 0.58rem; color: var(--dim);
      cursor: pointer;
      transition: transform 0.35s var(--ease-out), border-color 0.2s, background 0.2s, color 0.2s;
    }
    .wn-chevron:hover {
      border-color: var(--pds-color-border-secondary);
      background: var(--nmp-code-bg);
      color: var(--pds-color-text-primary);
    }
    .wn-chevron:focus-visible {
      outline: 2px solid rgba(137,221,255,0.6);
      outline-offset: 2px;
    }
    .wn-entry.open .wn-chevron {
      transform: rotate(180deg);
      border-color: var(--pds-color-border-secondary);
      background: var(--nmp-code-bg);
    }

    /* Expanded demo body */
    .wn-entry-body {
      display: none;
      padding-top: 4px;
      padding-bottom: 28px;
      animation: entryBodyIn 0.35s var(--ease-out) both;
    }
    @media (max-width: 640px) {
      .wn-entry-body { padding-bottom: 20px; }
    }
    @keyframes entryBodyIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: none; }
    }
    .wn-entry.open .wn-entry-body { display: block; }

    /* ════════════════════════════════════════
       Demo section layout
       ════════════════════════════════════════ */

    .sc-demo-section {
      padding-top: 8px;
    }

    .sc-section-heading {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 2.8vw, 2.5rem);
      font-weight: 800; letter-spacing: -0.03em;
      color: var(--pds-color-text-primary); margin-bottom: 12px; line-height: 1.02;
    }
    /* Highlighter-style emphasis inside a section heading.
       Used to reinforce searchability in entries tagged "search". */
    .sc-section-heading-accent {
      color: var(--pds-color-text-primary);
      background-image: linear-gradient(180deg,
        transparent 0%, transparent 62%,
        rgba(137,221,255,0.32) 62%, rgba(137,221,255,0.32) 96%,
        transparent 96%);
      background-repeat: no-repeat;
      padding: 0 4px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }
    /* Connector arrow inside a section heading (e.g. "Vocabulary → Discoverable").
       Dimmer than the headline so it reads as a relationship glyph, not a word,
       and lifted optically so it sits on the cap-height line of the words around
       it rather than dropping toward the baseline. */
    .sc-section-heading-arrow {
      display: inline-block;
      color: var(--pds-color-text-disabled);
      font-weight: 500;
      transform: translateY(-0.06em);
      margin: 0 0.12em;
    }
    .sc-section-lead {
      font-size: 0.93rem; line-height: 1.8;
      color: var(--muted);
      margin-bottom: 32px;
      max-width: 640px;
    }
    .wn-inline-code {
      font-family: var(--font-mono);
      font-size: 0.88em;
      background: var(--nmp-code-bg);
      padding: 2px 7px;
      border-radius: 3px;
      color: var(--pds-color-text-secondary);
      border: 1px solid var(--nmp-decorative-line-subtle);
    }

    /* ── Smart Crop clip switcher ── */
    .sc-clip-switcher {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 16px;
      background: var(--nmp-code-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 5px 8px;
    }
    .sc-clip-label {
      font-size: 0.57rem; font-weight: 700; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--dim);
      padding: 0 6px 0 2px;
      border-right: 1px solid var(--border);
      margin-right: 4px;
      line-height: 1.8;
    }
    .sc-clip-btn {
      font-size: 0.63rem; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase;
      background: transparent;
      border: 1px solid transparent;
      color: var(--dim);
      padding: 5px 14px; border-radius: 5px;
      cursor: pointer;
      font-family: var(--font);
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    .sc-clip-btn:hover { color: var(--pds-color-text-primary); background: var(--nmp-code-bg); }
    .sc-clip-btn.active { background: var(--pds-color-element-primary); color: var(--pds-color-text-primary-inverse); border-color: var(--pds-color-element-primary); }

    /* ════════════════════════════════════════
       Device side-by-side
       ════════════════════════════════════════ */

    .sc-compare-wrap {
      display: grid;
      grid-template-columns: 1fr 1px 340px;
      grid-template-rows: auto 1fr auto auto;
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 48px rgba(0,0,0,0.4);
    }

    .sc-compare-col {
      display: contents; /* children participate directly in the grid */
    }

    /* Landscape children — column 1 */
    .sc-col-landscape .sc-col-header  { grid-column: 1; grid-row: 1; }
    .sc-col-landscape .sc-video-area  { grid-column: 1; grid-row: 2; }
    .sc-col-landscape .sc-col-footer  { grid-column: 1; grid-row: 3; }

    /* Divider — column 2, spans all rows */
    .sc-compare-divider {
      grid-column: 2;
      grid-row: 1 / 4;
      background: var(--border);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .sc-compare-divider::after {
      content: '→';
      position: absolute;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 50%;
      width: 28px; height: 28px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.7rem; color: var(--dim);
      z-index: 2;
    }

    /* Smart Crop comparison — no arrow, just a clean divider line */
    #entry-smart-crop .sc-compare-divider::after { display: none; }
    /* On desktop, Smart Crop portrait column is narrower than image panels */
    @media (min-width: 681px) {
      #entry-smart-crop .sc-compare-wrap { grid-template-columns: 1fr 1px 300px; }
    }

    /* Portrait / right children — column 3 */
    .sc-col-portrait .sc-col-header,
    .sc-col-right .sc-col-header  { grid-column: 3; grid-row: 1; }
    .sc-col-portrait .sc-video-area,
    .sc-col-right .sc-video-area  { grid-column: 3; grid-row: 2; }
    .sc-col-portrait .sc-col-footer,
    .sc-col-right .sc-col-footer  { grid-column: 3; grid-row: 3; }

    /* Column label header */
    .sc-col-header {
      padding: 12px 22px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--pds-color-background-overlay);
    }
    .sc-col-label {
      font-size: 0.59rem; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--dim);
    }
    .sc-col-badge {
      font-size: 0.52rem; font-weight: 800; letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 3px 8px; border-radius: 3px;
      flex-shrink: 0;
    }
    .sc-col-badge-source {
      background: var(--nmp-code-bg);
      color: var(--dim);
      border: 1px solid var(--border);
    }
    .sc-col-badge-ai {
      background: var(--pds-color-element-primary);
      color: var(--pds-color-text-primary-inverse);
    }

    /* Video area */
    .sc-video-area {
      position: relative;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    /* Landscape video fills naturally */
    .sc-col-landscape .sc-video-area video {
      width: 100%; display: block; object-fit: cover;
    }

    /* Portrait video area — dark letterbox, video centered */
    .sc-col-portrait .sc-video-area {
      background: #0a0a0a;
    }
    .sc-portrait-inner {
      position: relative;
      height: 100%;
      aspect-ratio: 9 / 16;
      overflow: hidden;
      border-left: 1px solid rgba(255,255,255,0.06);
      border-right: 1px solid rgba(255,255,255,0.06);
    }    .sc-portrait-inner video {
      position: absolute; inset: 0;
      width: 100%; height: 100%; object-fit: cover; display: block;
    }

    /* Crop indicator lines */
    .sc-crop-indicator {
      position: absolute; inset: 0;
      pointer-events: none; z-index: 2;
    }
    .sc-crop-indicator::before,
    .sc-crop-indicator::after {
      content: '';
      position: absolute;
      top: 0; bottom: 0; width: 1px;
      background: rgba(255,255,255,0.18);
    }
    .sc-crop-indicator::before { left: 0; }
    .sc-crop-indicator::after  { right: 0; }

    /* Column footers — same grid row = always level */
    .sc-col-footer {
      padding: 12px 22px;
      border-top: 1px solid var(--border);
      background: var(--pds-color-background-overlay);
      display: flex;
      align-items: center;
    }
    .sc-col-footer p {
      font-size: 0.73rem; line-height: 1.6; color: var(--pds-color-text-secondary);
    }
    .sc-col-footer strong { color: var(--muted); font-weight: 600; }

    /* ── Compare panel — stack on narrow screens ── */
    @media (max-width: 680px) {
      .sc-compare-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 1px auto auto auto auto;
      }
      .sc-col-landscape .sc-col-header { grid-column: 1; grid-row: 1; }
      .sc-col-landscape .sc-video-area { grid-column: 1; grid-row: 2; }
      .sc-col-landscape .sc-col-footer { grid-column: 1; grid-row: 3; }
      .sc-compare-divider { grid-column: 1; grid-row: 4; width: 100%; height: 1px; }
      .sc-compare-divider::after { rotate: 90deg; }
      .sc-col-portrait .sc-col-header,
      .sc-col-right .sc-col-header  { grid-column: 1; grid-row: 5; }
      .sc-col-portrait .sc-video-area,
      .sc-col-right .sc-video-area  { grid-column: 1; grid-row: 6; }
      .sc-col-portrait .sc-col-footer,
      .sc-col-right .sc-col-footer  { grid-column: 1; grid-row: 7; }
      .sc-spec-strip { grid-column: 1; grid-row: 8; }

      /* Landscape source — natural 16:9 */
      .sc-col-landscape .sc-video-area { aspect-ratio: 16 / 9; height: auto; }

      /* Portrait panel — center a 9:16 crop window */
      .sc-col-portrait .sc-video-area { height: auto; background: #0a0a0a; justify-content: center; padding: 16px 0; }
      .sc-portrait-inner { height: auto; width: min(56vw, 240px); }

      /* Image comparison panels — give them a height on mobile */
      .sc-col-right .sc-video-area[style*="aspect-ratio"] { height: auto; }

      /* Image panels (Text Overlay, Bg Removal) — override inline grid-template-columns
         so they stack the same way the video panel does */
      .sc-compare-wrap[style*="grid-template-columns: 1fr 1px 1fr"] {
        grid-template-columns: 1fr !important;
      }
    }

    /* ── Inline spec strip (replaces standalone feature footer) ── */
    .sc-spec-strip {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 12px 22px;
      border-top: 1px solid var(--border);
      background: var(--pds-color-background-overlay);
      flex-wrap: wrap;
    }
    .sc-spec-tokens {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0;
    }
    .sc-spec-token {
      font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em;
      text-transform: uppercase; color: var(--dim);
      white-space: nowrap;
    }
    .sc-spec-token + .sc-spec-token::before {
      content: '·';
      margin: 0 8px;
      opacity: 0.35;
    }
    .sc-spec-docs {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--pds-color-text-secondary);
      text-decoration: none;
      flex-shrink: 0;
      opacity: 0.7;
      transition: opacity 0.15s;
      white-space: nowrap;
    }
    .sc-spec-docs:hover { opacity: 1; color: var(--pds-color-text-primary); }

    /* ══════════════════════════════════════════════════
       Mobile — ≤ 640px
       ══════════════════════════════════════════════════ */
    @media (max-width: 640px) {
      /* Hero */
      .wn-page-hero {
        padding-block: calc(var(--nav-h) + 40px) 32px;
      }
      .wn-page-hero::before { opacity: 0.65; }
      .wn-page-title {
        white-space: normal;
        font-size: clamp(3rem, 16vw, 5rem);
      }
      .wn-page-sub {
        font-size: 0.88rem;
        margin-top: 14px;
      }

      /* Filter bar — scroll horizontally rather than wrap */
      .wn-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
        margin-inline: calc(-1 * var(--wn-gutter));
        padding-inline: var(--wn-gutter);
        scrollbar-width: none;
      }
      .wn-filter-bar::-webkit-scrollbar { display: none; }
      .wn-filter-label { flex-shrink: 0; }
      .wn-pill { flex-shrink: 0; }

      /* Entry list */
      .wn-list { padding-block: 16px 80px; }

      /* Entry row — tighter, hide date on very small screens */
      .wn-entry + .wn-entry {
        margin-top: 20px;
        padding-top: 20px;
      }
      .wn-entry-head {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 18px 12px;
      }
      .wn-entry.open .wn-entry-head {
        padding-bottom: 22px;
      }
      .wn-entry-date { display: none; }
      .wn-entry-title { font-size: 1.1rem; }
      .wn-tag { font-size: 0.48rem; padding: 3px 6px; }

      /* Demo section headings */
      .sc-section-heading { font-size: clamp(1.3rem, 6vw, 2rem); }
      .sc-section-lead { font-size: 0.85rem; margin-bottom: 20px; }

      /* Clip switcher — scrollable */
      .sc-clip-switcher {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
      }
      .sc-clip-switcher::-webkit-scrollbar { display: none; }
      .sc-clip-btn { flex-shrink: 0; padding: 6px 16px; font-size: 0.7rem; }

      /* Compare panel footers — smaller text */
      .sc-col-footer p { font-size: 0.68rem; }
      .sc-col-header { padding: 10px 14px; }
      .sc-col-label { font-size: 0.54rem; }
      .sc-col-badge { font-size: 0.48rem; padding: 2px 6px; }

      /* Spec strip — stack vertically */
      .sc-spec-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
      }
      .sc-spec-tokens { gap: 0; }
      .sc-spec-token { font-size: 0.56rem; }
    }

    /* ════════════════════════════════════════
       Screencast + numbered-walkthrough layout
       Used by: entry-style-code-classification, entry-metadata-alignment
       ════════════════════════════════════════ */

    .scc-screencast {
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 48px rgba(0,0,0,0.4);
      margin-bottom: 32px;
    }
    .scc-screencast-header {
      padding: 12px 22px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--pds-color-background-overlay);
    }
    .scc-screencast-frame {
      position: relative;
      aspect-ratio: 16 / 9;
      background: #0a0a0a;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .scc-screencast-frame video,
    .scc-screencast-frame img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
    }
    .scc-screencast-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
      padding: 32px;
      background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px),
        #0a0a0a;
      width: 100%; height: 100%;
    }
    .scc-screencast-placeholder-label {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--dim);
    }
    .scc-screencast-placeholder-hint {
      font-size: 0.78rem; color: var(--muted); max-width: 320px; line-height: 1.5;
    }

    /* Steps */
    .scc-steps {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .scc-step {
      display: grid;
      grid-template-columns: 88px 1fr 1.2fr;
      align-items: stretch;
      gap: 0;
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .scc-step-num {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 22px 0;
      font-family: var(--font-display);
      font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
      color: var(--pds-color-text-primary);
      background: var(--pds-color-background-secondary);
      border-right: 1px solid var(--border);
      line-height: 1;
    }
    .scc-step-body {
      padding: 22px 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 8px;
      border-right: 1px solid var(--border);
    }
    .scc-step-title {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--pds-color-text-primary);
      margin: 0;
      line-height: 1.15;
    }
    .scc-step-desc {
      font-size: 0.85rem;
      line-height: 1.6;
      color: var(--pds-color-text-secondary);
      margin: 0;
    }
    .scc-step-visual {
      position: relative;
      background: #0a0a0a;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      min-height: 320px;
      padding: 14px;
    }
    .scc-step-visual img,
    .scc-step-visual video {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
    }
    .scc-step-visual-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-align: center;
      padding: 22px;
      background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 10px, transparent 10px 20px),
        #0a0a0a;
      width: 100%; height: 100%;
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--dim);
    }

    /* ── Two-part media layout (no step numbering) ──
       Used by entries that pair a short blurb with a video/poster, twice.
       e.g. entry-style-code-classification, entry-metadata-alignment */
    .scc-parts {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin: 0 0 8px;
    }
    .scc-part {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      align-items: stretch;
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .scc-part-body {
      padding: 28px 32px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 14px;
      border-right: 1px solid var(--border);
    }
    .scc-part-title {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--pds-color-text-primary);
      margin: 0;
      line-height: 1.15;
    }
    .scc-part-desc {
      font-size: 0.9rem;
      line-height: 1.65;
      color: var(--pds-color-text-secondary);
      margin: 0;
    }
    .scc-part-visual {
      position: relative;
      background: #0a0a0a;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .scc-part-visual video,
    .scc-part-visual img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
    }
    /* Play affordance — sits over the poster while the row is idle so the
       viewer reads the frame as a video, not a static image. JS injects
       this badge from `attachHlsLoop` for any video inside an `.scc-part`,
       and the parent row's :hover state fades it out as playback starts. */
    .scc-play-badge {
      position: absolute;
      bottom: 10px;
      right: 12px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 999px;
      color: var(--white);
      pointer-events: none;
      z-index: 2;
      opacity: 1;
      transition: opacity 0.18s ease, transform 0.18s ease;
    }
    .scc-play-badge svg {
      width: 11px;
      height: 11px;
      fill: currentColor;
      transform: translateX(1px); /* nudge right so the triangle reads centered */
    }
    .scc-part:hover .scc-play-badge {
      opacity: 0;
      transform: scale(0.85);
    }

    /* Spec strip variant for non-compare-wrap usage */
    .scc-spec-strip {
      margin-top: 24px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--pds-color-background-overlay);
      padding: 14px 22px;
    }

    @media (max-width: 720px) {
      .scc-step {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
      }
      .scc-step-num {
        font-size: 1.4rem;
        padding: 14px 0;
        align-items: center;
      }
      .scc-step-body {
        padding: 16px 18px;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }
      .scc-step-visual {
        grid-column: 1 / -1;
        min-height: 200px;
        aspect-ratio: 16 / 9;
      }
      .scc-part {
        grid-template-columns: 1fr;
      }
      .scc-part-body {
        padding: 20px 22px;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }
    }

    /* ════════════════════════════════════════
       New UI launch — overview + compare layout
       Used by: entry-new-ui-launch
       ════════════════════════════════════════ */

    .uiv-section-eyebrow {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--dim);
      margin: 32px 0 10px;
    }

    /* Classic vs New compare panel (image side-by-side with labelled headers) */
    .uiv-compare {
      display: grid;
      grid-template-columns: 1fr 1px 1fr;
      grid-template-rows: auto 1fr;
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 48px rgba(0,0,0,0.4);
      margin-bottom: 12px;
    }
    .uiv-compare-col-header {
      padding: 12px 22px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--pds-color-background-overlay);
    }
    .uiv-compare-col-header.uiv-classic { grid-column: 1; grid-row: 1; }
    .uiv-compare-col-header.uiv-new     { grid-column: 3; grid-row: 1; }
    .uiv-compare-divider {
      grid-column: 2;
      grid-row: 1 / -1;
      background: var(--border);
    }
    .uiv-compare-frame {
      position: relative;
      /* Matches the native 16:9 of the source clips so they fill edge-to-edge.
         If a future asset comes in at a different ratio, object-fit: contain
         below will letterbox it instead of cropping. */
      aspect-ratio: 16 / 9;
      background: #0a0a0a;
      overflow: hidden;
    }
    .uiv-compare-frame.uiv-classic { grid-column: 1; grid-row: 2; }
    .uiv-compare-frame.uiv-new     { grid-column: 3; grid-row: 2; }
    .uiv-compare-frame img,
    .uiv-compare-frame video {
      width: 100%; height: 100%;
      object-fit: contain; display: block;
    }
    .uiv-compare-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-align: center;
      padding: 32px;
      background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px),
        #0a0a0a;
      width: 100%; height: 100%;
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--dim);
    }
    .uiv-compare-caption {
      grid-column: 1 / -1;
      padding: 12px 22px;
      border-top: 1px solid var(--border);
      background: var(--pds-color-background-overlay);
      font-size: 0.78rem; line-height: 1.6; color: var(--muted);
      text-align: center;
    }

    /* "What's improved" — feature card grid */
    .uiv-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 12px;
    }
    .uiv-card {
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 22px 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: border-color 0.18s, background 0.18s;
    }
    .uiv-card:hover {
      border-color: var(--pds-color-border-secondary);
      background: var(--pds-color-background-secondary);
    }
    .uiv-card-eyebrow {
      font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--dim);
    }
    .uiv-card-title {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--pds-color-text-primary);
      margin: 0;
      line-height: 1.15;
    }
    .uiv-card-desc {
      font-size: 0.85rem;
      line-height: 1.6;
      color: var(--pds-color-text-secondary);
      margin: 0;
      flex: 1 1 auto;
    }
    .uiv-card-link {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--pds-color-text-link);
      text-decoration: none;
      opacity: 1;
      transition: opacity 0.15s;
      white-space: nowrap;
    }
    .uiv-card-link:hover { opacity: 0.75; }

    /* Simplified one-liner list — used under the side-by-side hero. */
    .uiv-list {
      list-style: none;
      margin: 0 0 36px;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      border-top: 1px solid var(--border);
    }
    .uiv-list-item {
      position: relative;
      padding: 12px 0 12px 20px;
      font-size: 0.92rem;
      line-height: 1.55;
      color: var(--pds-color-text-secondary);
      border-bottom: 1px solid var(--border);
    }
    .uiv-list-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 1.05em;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--pds-color-text-disabled);
    }
    .uiv-list-label {
      font-family: var(--font-display);
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--pds-color-text-primary);
      margin-right: 4px;
    }
    .uiv-list-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 6px;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--pds-color-text-link);
      text-decoration: none;
      opacity: 1;
      transition: opacity 0.15s;
      white-space: nowrap;
      vertical-align: 2px;
    }
    .uiv-list-link:hover { opacity: 0.75; }

    /* "What stays the same" — small reassurance cards */
    .uiv-stay-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }
    .uiv-stay-card {
      background: var(--pds-color-background-overlay);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .uiv-stay-title {
      font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--pds-color-text-primary);
    }
    .uiv-stay-desc {
      font-size: 0.8rem;
      line-height: 1.55;
      color: var(--pds-color-text-secondary);
    }

    @media (max-width: 720px) {
      .uiv-compare {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
      }
      .uiv-compare-col-header.uiv-classic { grid-column: 1; grid-row: 1; }
      .uiv-compare-frame.uiv-classic     { grid-column: 1; grid-row: 2; }
      .uiv-compare-divider { grid-column: 1; grid-row: 3; width: 100%; height: 1px; }
      .uiv-compare-col-header.uiv-new    { grid-column: 1; grid-row: 4; }
      .uiv-compare-frame.uiv-new         { grid-column: 1; grid-row: 5; }
      .uiv-compare-caption               { grid-column: 1; grid-row: 6; }
      .uiv-grid      { grid-template-columns: 1fr; }
      .uiv-stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .uiv-list-item { font-size: 0.88rem; }
      .uiv-list-link { display: inline; margin-left: 4px; }
    }

    /* ── Entry reveal animation ── */
    .wn-reveal-anim {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.55s var(--ease-out) var(--reveal-delay, 0ms),
                  transform 0.55s var(--ease-out) var(--reveal-delay, 0ms);
    }
    .wn-reveal-anim.wn-revealed {
      opacity: 1;
      transform: none;
    }
