/* Low Gravitas Symbol Font pages — landing + glyph browser.
   Two groups of rules: landing-page hero icons + sets grid, and the
   browser's virtual-scrolling card grid + modal + selection panel. */

@layer pages {

  /* ══════════════════════════════════════════════════════
     Landing page — version badge, features grid, sets preview
     ══════════════════════════════════════════════════════ */
  .demo-symbol-font .hero .badge--version {
    margin-bottom: 12px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 24px;
  }

  .sets-preview {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
  }
  .sets-preview h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--lg-accent-fg);
  }
  .sets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  /* ══════════════════════════════════════════════════════
     Glyph browser — toolbar, grid, cards
     ══════════════════════════════════════════════════════ */
  .demo-symbol-browser { overflow-x: hidden; }
  .demo-symbol-browser nav { z-index: 10; }

  .demo-symbol-browser .toolbar {
    padding: 12px 24px;
    border-bottom: 1px solid var(--lg-border-light);
    position: sticky;
    top: var(--nav-height, 57px);
    z-index: 9;
    background: var(--lg-sticky-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .demo-symbol-browser .toolbar-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  .demo-symbol-browser .toolbar-hint {
    color: var(--lg-text-dim);
    font-size: var(--text-xs);
    margin-top: 6px;
  }

  /* Search input + sort/filter selects inherit styling from .input / .select
     in common.css. Toolbar-scoped tweaks only. */
  .demo-symbol-browser .toolbar .input-wrap { flex: 1; min-width: 200px; }

  .demo-symbol-browser #count {
    color: var(--lg-text-dim);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    white-space: nowrap;
    margin-left: auto;
  }

  .demo-symbol-browser {
    --card-size: 130px;
    --glyph-size: 32px;
  }

  .demo-symbol-browser #grid {
    position: relative;
    overflow-y: auto;
    padding: 12px 16px;
  }
  .demo-symbol-browser #container { position: relative; }

  .demo-symbol-browser .card {
    --btn-radius: 8px;
    position: absolute;
    width: var(--card-size);
    height: var(--card-size);
    background: var(--lg-grad-surface);
    border: 1px solid var(--lg-border-light);
    border-radius: var(--btn-radius);
    box-shadow: var(--shadow-raised-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--dur-fast);
    padding: 8px;
    user-select: none;
  }
  .demo-symbol-browser .card:hover,
  .demo-symbol-browser .card:focus-visible {
    transform: translateY(-1px);
    border-color: var(--lg-accent-fg);
  }
  .demo-symbol-browser .card:focus { outline: none; }
  .demo-symbol-browser .card.collected {
    border-color: var(--lg-accent-fg);
    box-shadow: inset 0 0 0 1px var(--lg-accent-fg);
  }

  .demo-symbol-browser .card .collect-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lg-accent);
    color: var(--lg-text-on-accent);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    display: none;
  }
  .demo-symbol-browser .card.collected .collect-badge { display: block; }

  .demo-symbol-browser .card .glyph {
    font-family: var(--font-symbol);
    font-size: var(--glyph-size);
    line-height: 1;
    margin-bottom: 4px;
    color: var(--lg-text);
  }
  .demo-symbol-browser .card .name {
    font-size: 11px;
    color: var(--lg-text-dim);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
  }
  .demo-symbol-browser .card .set {
    font-size: 9px;
    color: var(--lg-text-faint);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
  }
  .demo-symbol-browser .card .cp {
    font-size: 10px;
    color: var(--lg-accent-fg);
    font-family: var(--font-mono);
  }

  /* ══════════════════════════════════════════════════════
     Detail modal — backdrop, dialog, specimen, actions
     ══════════════════════════════════════════════════════ */
  .demo-symbol-browser .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    opacity: 0;
    transition: opacity 150ms ease-out;
  }
  .demo-symbol-browser .modal-backdrop.visible { opacity: 1; }

  .demo-symbol-browser .modal-dialog {
    position: fixed;
    z-index: 51;
    background: var(--lg-grad-surface);
    border: 1px solid var(--lg-border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-overlay);
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    opacity: 0;
    transition: opacity 150ms ease-out, transform 150ms ease-out;
    padding: 24px;
  }
  .demo-symbol-browser .modal-dialog.visible { opacity: 1; transform: translateX(-50%) scale(1); }

  .demo-symbol-browser .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--lg-border-medium);
    background: var(--lg-grad-surface);
    box-shadow: var(--shadow-raised-sm);
    color: var(--lg-text-dim);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-fast), color var(--dur-fast);
    line-height: 1;
  }
  .demo-symbol-browser .modal-close:hover {
    color: var(--lg-accent-fg);
    transform: translateY(-1px);
  }
  .demo-symbol-browser .modal-close:active {
    box-shadow: var(--shadow-pressed-sm);
    background: var(--lg-grad-pressed);
    transform: scale(0.97);
  }

  .demo-symbol-browser .modal-specimen-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 8px;
  }
  .demo-symbol-browser .modal-nav {
    width: 44px;
    height: 44px;
    border: 1px solid var(--lg-border-medium);
    background: var(--lg-grad-surface);
    box-shadow: var(--shadow-raised-sm);
    color: var(--lg-text-dim);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--dur-fast), color var(--dur-fast);
  }
  .demo-symbol-browser .modal-nav:hover {
    color: var(--lg-accent-fg);
    transform: translateY(-1px);
  }
  .demo-symbol-browser .modal-nav:active {
    box-shadow: var(--shadow-pressed-sm);
    background: var(--lg-grad-pressed);
    transform: scale(0.97);
  }
  .demo-symbol-browser .modal-nav:disabled { opacity: 0.25; pointer-events: none; }

  .demo-symbol-browser .glyph-specimen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid var(--lg-border-medium);
    border-radius: 8px;
    background: var(--lg-grad-pressed);
    box-shadow: var(--shadow-pressed-sm);
    font-family: var(--font-symbol);
    font-size: 72px;
    line-height: 1;
    flex-shrink: 0;
    color: var(--lg-text);
  }

  .demo-symbol-browser .modal-info { text-align: center; margin-bottom: 20px; }
  .demo-symbol-browser .modal-info .glyph-name {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
    color: var(--lg-text);
  }
  .demo-symbol-browser .modal-info .glyph-meta {
    font-size: var(--text-sm);
    color: var(--lg-text-dim);
    margin-bottom: 4px;
  }
  .demo-symbol-browser .modal-info .glyph-meta .cp-val {
    color: var(--lg-accent-fg);
    font-family: var(--font-mono);
  }
  .demo-symbol-browser .modal-info .glyph-class {
    font-size: var(--text-xs);
    color: var(--lg-text-dim);
    font-family: var(--font-mono);
    word-break: break-all;
  }

  .demo-symbol-browser .modal-actions {
    border: 1px solid var(--lg-border-medium);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-pressed-sm);
  }
  .demo-symbol-browser .modal-actions button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: var(--lg-grad-surface);
    border: none;
    border-bottom: 1px solid var(--lg-border-subtle);
    color: var(--lg-text);
    font-size: var(--text-sm);
    cursor: pointer;
    text-align: left;
    gap: 12px;
    min-height: 44px;
    transition: background var(--dur-fast);
  }
  .demo-symbol-browser .modal-actions button:last-child { border-bottom: none; }
  .demo-symbol-browser .modal-actions button:hover {
    background: var(--lg-grad-pressed);
    color: var(--lg-accent-fg);
  }
  .demo-symbol-browser .modal-actions button:focus { outline: none; }
  .demo-symbol-browser .modal-actions button:focus-visible {
    background: var(--lg-bg);
    outline: 2px solid var(--lg-accent-fg);
    outline-offset: -2px;
  }
  .demo-symbol-browser .modal-actions button .label {
    color: var(--lg-text-dim);
    font-size: var(--text-xs);
    flex-shrink: 0;
  }
  .demo-symbol-browser .modal-actions button .label.mono { font-family: var(--font-mono); }
  .demo-symbol-browser .modal-actions button .label.symbol {
    font-family: var(--font-symbol);
    font-size: var(--text-base);
  }
  .demo-symbol-browser .modal-actions button .copied {
    color: var(--lg-accent-fg);
    font-size: var(--text-xs);
    font-weight: 600;
  }

  .demo-symbol-browser .modal-footer { display: flex; gap: 8px; }
  .demo-symbol-browser .modal-footer button {
    flex: 1;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--lg-border-medium);
    background: var(--lg-grad-surface);
    box-shadow: var(--shadow-raised-sm);
    color: var(--lg-text);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--dur-fast), color var(--dur-fast);
    min-height: 44px;
    position: relative;
  }
  .demo-symbol-browser .modal-footer button:hover {
    transform: translateY(-1px);
    color: var(--lg-accent-fg);
  }
  .demo-symbol-browser .modal-footer button:active {
    box-shadow: var(--shadow-pressed-sm);
    background: var(--lg-grad-pressed);
    transform: scale(0.97);
  }

  /* ══════════════════════════════════════════════════════
     Toast
     ══════════════════════════════════════════════════════ */
  .demo-symbol-browser .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--lg-accent);
    color: var(--lg-text-on-accent);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    z-index: 100;
  }
  .demo-symbol-browser .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  /* ══════════════════════════════════════════════════════
     Selection panel (bottom sticky)
     ══════════════════════════════════════════════════════ */
  .demo-symbol-browser #selection-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--lg-grad-surface);
    border-top: 1px solid var(--lg-border-medium);
    padding: 10px 24px;
    display: none;
    box-shadow: var(--shadow-overlay);
  }
  .demo-symbol-browser #selection-panel.visible {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .demo-symbol-browser #selection-panel .sel-icons {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    font-family: var(--font-symbol);
    font-size: 20px;
    padding: 2px 0;
  }
  .demo-symbol-browser #selection-panel .sel-icon {
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background var(--dur-fast);
    flex-shrink: 0;
    color: var(--lg-text);
  }
  .demo-symbol-browser #selection-panel .sel-icon:hover {
    background: var(--lg-border-medium);
  }
  .demo-symbol-browser #selection-panel .sel-count {
    color: var(--lg-text-dim);
    font-size: var(--text-sm);
    white-space: nowrap;
  }
  /* Selection-panel buttons use the shared .btn / .btn--primary / .btn--ghost
     components from common.css — no page-scoped overrides. */

  .demo-symbol-browser #loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--lg-text-dim);
    font-size: var(--text-sm);
  }

  .demo-symbol-browser footer { z-index: 8; }

  @media (max-width: 520px) {
    .demo-symbol-browser .modal-dialog {
      top: auto;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      max-width: 100%;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      transform: translateY(20px) scale(1);
      max-height: 80vh;
    }
    .demo-symbol-browser .modal-dialog.visible { transform: translateY(0) scale(1); }
  }

  @media (prefers-reduced-motion: reduce) {
    .demo-symbol-browser .modal-backdrop,
    .demo-symbol-browser .modal-dialog,
    .demo-symbol-browser .toast,
    .demo-symbol-browser .card {
      transition: none;
    }
  }

  /* ══════════════════════════════════════════════════════
     Glyph Changelog page
     ══════════════════════════════════════════════════════ */

  .demo-symbol-font,
  .demo-symbol-changelog {
    --cl-added:   oklch(65% 0.16 145);
    --cl-removed: oklch(58% 0.14 15);
    --cl-renamed: var(--lg-accent-fg);
  }

  /* ── What's new teaser (landing page) ───────────────── */

  .whats-new {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 0 24px;
  }

  .whats-new-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--lg-border-subtle);
    background: var(--lg-grad-surface);
    text-decoration: none;
    transition: border-color var(--dur-fast), transform var(--dur-fast);
    flex-wrap: wrap;
  }
  .whats-new-link:hover {
    border-color: var(--lg-accent-fg);
    transform: translateY(-1px);
  }

  .wn-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }
  .wn-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--lg-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .wn-glyphs {
    display: flex;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }

  .wn-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 4px;
    border-radius: var(--radius-sm);
    background: color-mix(in oklch, var(--lg-accent) 6%, transparent);
    border: 1px solid var(--lg-border-subtle);
    max-width: 180px;
    min-width: 0;
  }
  .wn-chip--renamed {
    background: color-mix(in oklch, var(--cl-renamed) 6%, transparent);
  }

  .wn-chip-glyph {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    color: var(--lg-text);
  }

  .wn-chip-name {
    font-size: 11px;
    color: var(--lg-text-dim);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .wn-chip-name del {
    color: var(--lg-text-faint);
    text-decoration-color: color-mix(in oklch, var(--cl-removed) 50%, transparent);
    margin-right: 2px;
  }
  .wn-chip-name .wn-arrow { color: var(--cl-renamed); padding: 0 2px; }

  .wn-cta {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--lg-accent-fg);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
  }

  @media (max-width: 600px) {
    .whats-new-link { gap: 10px; }
    .wn-glyphs { gap: 6px; }
    .wn-cta { margin-left: 0; }
  }

  .changelog-hero {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 24px;
    text-align: center;
  }

  .cl-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--lg-text-dim);
    margin-bottom: 16px;
  }
  .cl-breadcrumb a {
    color: var(--lg-accent-fg);
    text-decoration: none;
  }
  .cl-breadcrumb a:hover { text-decoration: underline; }

  .cl-lead {
    color: var(--lg-text-dim);
    margin-top: 8px;
  }

  .changelog-feed {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 64px;
  }

  .changelog-release {
    position: relative;
    padding-left: 20px;
    margin-bottom: 48px;
    border-left: 2px solid var(--lg-border-medium);
  }
  .changelog-release::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lg-accent-fg);
    border: 2px solid var(--lg-bg);
  }

  .release-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .release-version {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--lg-accent-fg);
    text-decoration: none;
  }
  .release-version:hover { text-decoration: underline; }

  .release-date {
    font-size: var(--text-xs);
    color: var(--lg-text-dim);
    font-family: var(--font-mono);
  }

  .release-summary {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }

  .summary-pill {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in oklch, currentColor 12%, transparent);
  }
  .summary-pill--added   { color: var(--cl-added); }
  .summary-pill--removed { color: var(--cl-removed); }
  .summary-pill--renamed { color: var(--cl-renamed); }

  /* ── Section details/summary ─────────────────────────── */

  .glyph-section { margin-top: 14px; }

  .glyph-section summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    cursor: pointer;
    list-style: none;
    font-size: var(--text-sm);
    font-weight: 600;
    user-select: none;
  }
  .glyph-section summary::marker,
  .glyph-section summary::-webkit-details-marker { display: none; }

  .glyph-section summary::before {
    content: '▶';
    font-size: 8px;
    color: var(--section-color, var(--lg-text-dim));
    transition: transform var(--dur-fast);
    flex-shrink: 0;
  }
  .glyph-section[open] summary::before { transform: rotate(90deg); }

  .glyph-section--added   { --section-color: var(--cl-added); }
  .glyph-section--removed { --section-color: var(--cl-removed); }
  .glyph-section--renamed { --section-color: var(--cl-renamed); }

  .section-title { color: var(--section-color); }

  .section-count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--lg-text-faint);
  }

  /* ── Glyph grid (added / removed) ───────────────────── */

  .glyph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    padding-top: 8px;
  }

  .glyph-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--lg-border-subtle);
    background: var(--lg-grad-surface);
    gap: 3px;
    min-width: 0;
  }

  .glyph-card--added {
    border-color: color-mix(in oklch, var(--cl-added) 28%, transparent);
  }
  .glyph-card--removed {
    border-color: color-mix(in oklch, var(--cl-removed) 22%, transparent);
    opacity: 0.65;
  }
  .glyph-card--reassigned {
    border-color: color-mix(in oklch, var(--cl-renamed) 28%, transparent);
    opacity: 0.75;
  }

  .glyph-char {
    font-size: 30px;
    line-height: 1;
    color: var(--lg-text);
  }
  .glyph-missing {
    font-size: 26px;
    line-height: 1;
    color: var(--lg-text-faint);
  }

  .glyph-name {
    font-size: 10px;
    color: var(--lg-text-dim);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    width: 100%;
  }
  .glyph-card--removed .glyph-name {
    text-decoration: line-through;
    text-decoration-color: color-mix(in oklch, var(--cl-removed) 60%, transparent);
  }

  .glyph-cp {
    font-size: 9px;
    color: var(--lg-accent-fg);
    font-family: var(--font-mono);
  }

  /* ── Rename rows ─────────────────────────────────────── */

  .rename-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
  }

  .rename-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in oklch, var(--cl-renamed) 22%, transparent);
    background: var(--lg-grad-surface);
    min-width: 0;
  }

  .rename-char {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    width: 34px;
    text-align: center;
    color: var(--lg-text);
  }

  .rename-info { min-width: 0; flex: 1; }

  .rename-names {
    display: block;
    font-size: var(--text-sm);
    color: var(--lg-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    gap: 6px;
  }
  .rename-names del {
    color: var(--lg-text-dim);
    text-decoration-color: color-mix(in oklch, var(--cl-removed) 50%, transparent);
    margin-right: 4px;
  }
  .rename-arrow {
    color: var(--cl-renamed);
    padding: 0 4px;
  }

  .rename-meta {
    display: block;
    font-size: var(--text-xs);
    color: var(--lg-text-faint);
    font-family: var(--font-mono);
    margin-top: 2px;
  }

  /* ── Empty state ─────────────────────────────────────── */

  .cl-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--lg-text-dim);
    font-size: var(--text-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  @media (max-width: 520px) {
    .release-header { gap: 8px; }
    .release-summary { margin-left: 0; width: 100%; }
    .glyph-grid {
      grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .glyph-section summary::before { transition: none; }
  }
}
