/* Astryx adaption: preserve the site's editorial layout while giving controls
   a shared interaction language, spacing rhythm, and mobile navigation. */
:root {
  --astryx-adapter-0: rgba(7, 33, 66, .025);
  --astryx-adapter-1: rgba(20, 47, 79, .06);
  --astryx-adapter-2: rgba(20, 47, 79, .12);
  --astryx-adapter-3: rgba(0, 100, 224, .28);
  --astryx-adapter-4: rgba(202, 220, 241, .85);
  --astryx-adapter-5: rgba(248, 251, 255, .98);
  --astryx-adapter-6: #10243d;
}
.nav-inner { display: block; min-height: 72px; padding-inline: 0; }
.nav-inner > * { width: 100%; min-height: inherit; }
.nav .nav-links { position: static; display: flex; min-width: 0; padding: 0; border: 0; background: transparent; justify-content: center; gap: clamp(14px, 1.7vw, var(--space-28)); }
.nav .nav-links a { border: 0; color: var(--color-ink-2); font-size: 13px; transition: color .2s ease; }
.nav .nav-links a:hover, .nav .nav-links a.is-active { color: var(--color-accent); }
.nav .nav-actions { gap: 10px; }
.nav .nav-actions > .nav-toggle { display: none; min-width: 42px; width: 42px; height: 42px; padding: var(--space-xs); border: 1px solid var(--color-rule); border-radius: 5px; }
.nav-toggle-lines { display: grid; gap: 5px; }
.nav-toggle-lines i { display: block; width: 18px; height: 1px; margin: 0; background: currentColor; }
.mobile-nav-links { display: grid; gap: var(--space-xs); padding: var(--space-sm) var(--space-2xs); }
.mobile-nav-links a { min-height: 48px; }

.astryx-arch-control { padding: 18px; background: linear-gradient(145deg, var(--astryx-adapter-0), transparent); }
.astryx-arch-control [role="radiogroup"] { width: 100%; flex-wrap: nowrap; }
.astryx-arch-control [role="radio"] { flex: 1 1 0; min-width: 0; min-height: 52px; }
.arch-detail { position: relative; }
.arch-detail::before { position: absolute; top: 0; left: 0; width: 3px; height: 54px; background: var(--color-accent); content: ""; opacity: .8; }

#astryx-product-controls { display: contents; }
.config-form { min-width: 0; }
.config-field { gap: var(--space-sm); }
.config-field [data-astryx-field-description], .config-field [class*="description"] { color: var(--color-muted); font-size: 12px; line-height: 1.55; }
.config-field [role="combobox"] { width: 100%; min-height: 48px; border-radius: 5px; }
.config-submit { min-height: 48px; }
.astryx-range-cards { gap: var(--space-md); border: 0; background: transparent; }
.astryx-range-cards .range-card { min-height: 270px; border: 1px solid var(--color-rule-2); border-radius: 8px; box-shadow: 0 12px 32px var(--astryx-adapter-1); transition: transform .28s ease, box-shadow .28s ease; }
.astryx-range-cards .range-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px var(--astryx-adapter-2); }
.astryx-range-cards .range-card.is-featured { border-color: var(--astryx-adapter-3); }
.astryx-range-cards .range-card h3 { letter-spacing: -.025em; }

#astryx-inference-controls { margin-top: var(--space-28); }
.astryx-inference-controls { display: grid; gap: 18px; padding: var(--space-md); border: 1px solid var(--astryx-adapter-4); border-radius: 8px; background: var(--astryx-adapter-5); color: var(--astryx-adapter-6); }
.astryx-inference-controls [data-stepper] { min-width: 0; }
.astryx-step-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--color-rule-2); }
.astryx-inference-controls [data-stepper] * { color: inherit; }
.astryx-inference-controls [data-stepper] button { color: inherit; }
.astryx-step-actions button { min-height: 40px; }
.sim-autoplay { justify-content: flex-end; }
.sim-autoplay > span { margin-left: 0; }

@media (max-width: 1100px) {
  .nav .nav-links { gap: 10px; }
  .nav .nav-links a { font-size: 12px; }
}
@media (max-width: 1120px) {
  .nav .nav-links { display: none; }
  .nav .nav-actions > .nav-toggle { display: inline-flex; }
  .nav .nav-actions > .btn { display: none; }
}
@media (max-width: 820px) {
  .nav-inner { min-height: 68px; }
  .nav .nav-links { display: none; }
  .nav .nav-actions > .nav-toggle { display: inline-flex; }
  .nav .nav-actions > .btn { display: none; }
  .astryx-arch-control { padding: var(--space-sm); }
  .astryx-arch-control [role="radio"] { flex-basis: 0; }
  .astryx-range-cards { gap: var(--space-sm); }
  .astryx-range-cards .range-card { min-height: 0; }
  .astryx-step-actions { justify-content: stretch; }
  .astryx-step-actions > * { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .astryx-range-cards .range-card { transition: none; }
}
