/* Galley-specific blocks only. Layout, color tokens, header, footer, and the shared blocks come from the fleet showcase kit
   (css/kit.css, css/rk-tokens.css); the archival-brass accent comes from site.yml. */

/* ---- The live widgets (js/galley-demo.js, partials/_widgets.jinja) -------------------------------------------------------- */
.gd { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.25rem; margin: 0 0 2rem; }
.gd-title { margin: 0 0 1rem; font-size: 1.15rem; }
.gd-controls { display: grid; gap: 1rem; margin-bottom: 1rem; }
.gd-label { display: block; margin: 0 0 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.gd-radios { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gd-radio {
  min-height: 44px; padding: 0 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background var(--micro) var(--ease), border-color var(--micro) var(--ease);
}
.gd-radio:hover { border-color: var(--accent-text); }
.gd-radio[aria-checked="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.gd-radio:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.gd-about, .gd-diff { margin: 0 0 0.75rem; color: var(--text-muted); font-size: 0.95rem; }
.gd-diff { margin: 0.9rem 0 0; color: var(--text); font-weight: 600; }
.gd-stage { position: relative; border: 1px solid var(--line); border-radius: 0.6rem; overflow: hidden; background: var(--bg-alt); }
.gd-frame { display: block; width: 100%; height: min(72vh, 42rem); border: 0; background: transparent; transition: opacity 140ms var(--ease); }
.gd-frame.is-swapping { opacity: 0.35; }
.gd-frame:focus-visible { outline: 3px solid var(--accent-text); outline-offset: -3px; }
.gd-loading { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--text-muted); pointer-events: none; }
.gd.is-ready .gd-loading { display: none; }
.gd.is-failed .gd-loading { display: none; }
.gd-status { margin: 0.75rem 0 0; min-height: 1.5em; font-size: 0.92rem; color: var(--text-muted); }
.gd-note { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--text-muted); max-width: 62rem; }
.gd-note kbd, .kbd { display: inline-block; padding: 0.05rem 0.4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 0.35rem; background: var(--bg); font-family: "Fira Code", ui-monospace, monospace; font-size: 0.85em; line-height: 1.4; }
.gd-split { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .gd-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .gd-frame { height: 36rem; } }
.gd-source { min-width: 0; }
.gd-source-head { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.gd-source-label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }
.gd-source pre { margin: 0; max-height: 34rem; overflow: auto; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--bg); font-size: 0.82rem; line-height: 1.55; white-space: pre; }
.gd-source pre:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .gd-radio, .gd-frame { transition: none; }
}

/* ---- Pictures of the real app -------------------------------------------------------------------------------------------- */
.pair { display: grid; gap: 1.5rem; }
.moment { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .moment { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.moment figure { margin: 0; }

/* ---- Spec strip and number cards ---------------------------------------------------------------------------------------- */
.strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.strip li { padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 0.92rem; }
.spec-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.1rem 1.2rem; }
.spec h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.spec p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.spec code { font-family: "Fira Code", ui-monospace, monospace; font-size: 0.88em; }
.thumbs { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-end; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.thumbs figure { margin: 0; }
.thumbs img { display: block; max-width: 100%; height: auto; border-radius: 0.5rem; }
.thumbs figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }

/* ---- The Finder Quick Look panel ---------------------------------------------------------------------------------------- */
.ql-figure { margin: 0 0 2rem; max-width: 54rem; }
.ql-figure img { display: block; width: 100%; max-width: 870px; height: auto; border-radius: 0.75rem; border: 1px solid var(--line); }
.ql-figure figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--text-muted); }
.gd-source pre code { background: transparent; border: 0; padding: 0; font-family: "Fira Code", ui-monospace, monospace; font-size: inherit; color: inherit; }
.gd-source-name { font-family: "Fira Code", ui-monospace, monospace; font-size: 0.85em; }
