/* Ridgelift site styles.
   Palette and type from the brand plan: Basalt, Bone, Blaze, Spruce, Sky;
   Barlow Condensed ExtraBold/Bold for headlines, Barlow for body.
   Brand marks currently use v7 files in /images/brand/.
   When /workspace/brand-uem/v2/final/ is ready, swap those files (see ASSETS.md). */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --basalt: #1c2220;
  --basalt-deep: #121615;
  --basalt-raised: #262c2a;
  --bone: #efe6d2;
  --bone-dim: #cfc6b0;
  --blaze: #e8692a;
  --blaze-hover: #f07d44;
  --blaze-deep: #c5521a;
  --spruce: #2e5a4c;
  --spruce-deep: #1f3f36;
  --sky: #8fb8c9;
  --rule: rgba(239, 230, 210, 0.14);
  --rule-strong: rgba(239, 230, 210, 0.28);
  --text: var(--bone);
  --muted: var(--bone-dim);
  --bg: var(--basalt);
  --font-body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --space: 1.25rem;
  --wrap: 70rem;
  --header-h: 4.25rem;
  --radius: 0.25rem;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bone);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blaze);
}

:focus-visible {
  outline: 2px solid var(--blaze);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--blaze);
  color: var(--basalt-deep);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 22, 21, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

body {
  padding-top: var(--header-h);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo img {
  height: 2.35rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-dim);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--bone);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--blaze);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--blaze);
  color: var(--basalt-deep) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--blaze-hover);
  color: var(--basalt-deep) !important;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--bone);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blaze);
  color: var(--basalt-deep);
  border-color: var(--blaze);
}

.btn-primary:hover {
  background: var(--blaze-hover);
  color: var(--basalt-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  border-color: var(--bone);
  color: var(--bone);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  /* Soft sun and ridge, kept behind the emblem so the badge stays clean. */
  content: "";
  position: absolute;
  right: -6rem;
  top: -4rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 105, 42, 0.22), rgba(232, 105, 42, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blaze);
}

.hero h1,
.page-hero h1,
.section h2,
.form-block h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 14ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

.hero-emblem {
  display: flex;
  justify-content: center;
}

.hero-emblem img {
  width: min(100%, 26rem);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

/* ---------- Status / disclaimer ---------- */

.status-bar {
  background: var(--basalt-deep);
  border-block: 1px solid var(--rule);
  padding: 0.9rem 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.status-bar p {
  margin: 0;
}

.status-bar strong {
  color: var(--bone);
  font-weight: 600;
}

.disclaimer {
  background: var(--basalt-deep);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--blaze);
  padding: 1.15rem 1.25rem;
  margin: 0 0 2.5rem;
}

.disclaimer p {
  margin: 0;
  color: var(--bone);
}

.disclaimer p + p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

main {
  flex: 1;
}

.section {
  padding: 4.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section h2 {
  font-size: clamp(2.15rem, 4vw, 3.15rem);
}

.section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.section p {
  color: var(--muted);
}

.section p.lead {
  color: var(--bone);
  font-size: 1.2rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 18ch;
}

/* ---------- Division / product cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--basalt-raised);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

a.card:hover {
  border-color: var(--blaze);
  color: inherit;
}

.card h3 {
  color: var(--bone);
}

.card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card .more {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--blaze);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--basalt-deep);
  background: var(--sky);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.55rem;
}

.badge-warn {
  background: var(--blaze);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.product {
  border-top: 2px solid var(--blaze);
  background: var(--basalt-raised);
  padding: 1.4rem 1.4rem 1.3rem;
}

.product h3 {
  margin-top: 0;
}

.product p {
  margin: 0;
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

blockquote.origin {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--bone);
  letter-spacing: 0.01em;
}

blockquote.origin footer {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--blaze);
  border: 0;
  padding: 0;
  background: none;
}

/* ---------- Shop ---------- */

.merch-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.15rem;
}

.merch-card {
  background: #e8dfc8;
  color: var(--basalt);
  padding: 1rem;
  border: 1px solid var(--rule);
}

.merch-card img {
  width: 100%;
  background: #e8dfc8;
}

.merch-card figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #3a3f3c;
}

.merch-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--basalt);
  font-size: 1.05rem;
}

.sticker-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.sticker-row figure {
  margin: 0;
  background: #e8dfc8;
  padding: 0.75rem;
}

.sticker-row img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 1;
}

.sticker-row figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #3a3f3c;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Forms ---------- */

.form-band {
  background: var(--spruce-deep);
  border-block: 1px solid rgba(239, 230, 210, 0.12);
  padding: 3.5rem 0;
}

.form-block h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.form-block p {
  color: var(--bone-dim);
  max-width: 36rem;
}

.waitlist-form {
  margin-top: 1.5rem;
  max-width: 36rem;
}

.form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: min(100%, 16rem);
}

.field label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.3;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(239, 230, 210, 0.35);
  background: #0e1210;
  color: var(--bone);
  border-radius: var(--radius);
  width: 100%;
}

.field input::placeholder {
  color: rgba(239, 230, 210, 0.45);
}

.field-hp {
  /* Honeypot. Must stay in the DOM, hidden from people. */
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--bone-dim);
}

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 500;
}

.form-status.is-ok {
  color: var(--sky);
}

.form-status.is-error {
  color: #f0b3a0;
}

/* ---------- About / contact extras ---------- */

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.meta-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.meta-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  font-size: 0.95rem;
}

.meta-list a {
  color: var(--blaze);
  text-decoration: none;
}

.meta-list a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--basalt-deep);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  font-size: 0.98rem;
  color: var(--muted);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--bone);
  margin: 0 0 0.7rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.3rem;
}

.site-footer a {
  color: var(--bone-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blaze);
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}

.footer-legal p {
  margin: 0 0 0.45rem;
}

.social-pending {
  color: var(--muted);
}

.social-pending span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

/* ---------- Coming soon banner ---------- */

.soon {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--basalt-deep);
  background: var(--bone);
  padding: 0.2rem 0.5rem;
  margin-bottom: 1rem;
}

/* ---------- 404 ---------- */

.page-missing {
  padding: 5rem 0 6rem;
  text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--basalt-deep);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-cta {
    margin: 0.85rem 0 0.25rem;
    text-align: center;
  }

  .hero-grid,
  .story-grid,
  .card-grid,
  .product-grid,
  .merch-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticker-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-emblem {
    order: -1;
  }

  .hero-emblem img {
    width: min(100%, 18rem);
  }

  .hero h1 {
    max-width: none;
  }

  .meta-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 520px) {
  .wrap,
  .wrap-narrow {
    width: min(100% - 1.75rem, var(--wrap));
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row .field {
    min-width: 0;
    width: 100%;
  }

  .form-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .menu-toggle, .form-band, .actions { }
  body { background: white; color: #111; }
}

.section.flush-top {
  padding-top: 0;
  border-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.measure {
  max-width: 44rem;
}

.nowrap {
  white-space: nowrap;
}

.form-row .btn {
  flex: 0 0 auto;
  min-height: 2.85rem;
  padding-inline: 1.15rem;
}

#waitlist {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.site-header.is-open .menu-toggle span {
  background: transparent;
}
.site-header.is-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =============================================================================
   Ported tools: Panel Planner, attitude display, Short Field game launcher,
   resources. Added 2026-11-13 when shared elements were reused from an earlier site.
   ============================================================================= */

.fine { font-size: 0.88rem; color: var(--muted); }
.section p.fine { color: var(--muted); opacity: 0.85; }

.footer-sub { margin-top: 1.4rem; }

.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-static { min-height: 0; }

/* Game launcher band */
.play-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.play-band .play-grid > div h2 { margin-top: 0; }
.play-art {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--basalt-deep);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  width: 100%;
}
.play-art img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.play-art:hover img, .play-art:focus-visible img { transform: scale(1.03); }
.play-art:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; }
.play-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--blaze);
  color: var(--basalt-deep);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
}
.play-hero .play-grid { grid-template-columns: 1fr 1.15fr; }
.play-hero h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
button.btn { font: inherit; font-family: var(--font-display); font-weight: 700; cursor: pointer; }

/* Attitude display (Avionics page) */
.display-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 24rem);
  gap: 2.5rem;
  align-items: center;
}
.display-grid h2 { margin-top: 0; }
.att-display {
  margin: 0;
  background: var(--basalt-deep);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.att-head {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}
.att-hint { color: var(--blaze); }
.att-display.is-flying .att-hint { color: var(--bone); }
.att-screen { position: relative; aspect-ratio: 1 / 0.92; }
.att-screen canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
.att-screen canvas:active { cursor: grabbing; }
.att-screen canvas:focus-visible { outline: 2px solid var(--blaze); outline-offset: -2px; }
.att-readouts {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(to top, rgba(18, 22, 21, 0.9), transparent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  pointer-events: none;
}
.att-readouts b { color: var(--bone); font-weight: 700; }
.att-display figcaption {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* Hangar callout */
.tool-callout {
  margin: 2rem 0 1rem;
  padding: 1.5rem;
  background: var(--basalt-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blaze);
}
.tool-callout h2 { margin: 0 0 0.5rem; font-size: clamp(1.9rem, 3.5vw, 2.5rem); }

/* Tool pages */
.wrap-wide {
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2.5vw, 2rem);
}
.tool-hero { padding: 2rem 0 1rem; }
.tool-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0.2rem 0 0.4rem; }
.tool-hero .lede { max-width: 52rem; margin: 0; }
.tool-small-note { display: none; margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--blaze); }
.tool-section { padding: 0.5rem 0 2.5rem; }
.tool-disclaimer { margin-top: 2rem; }
.tool-disclaimer p + p { margin-top: 0.6rem; }

/* Article */
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 2.4rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.checklist {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--basalt-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--spruce);
}
.checklist .kicker { margin-bottom: 0.4rem; }

@media (max-width: 860px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .play-grid, .play-hero .play-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .play-hero .play-art { order: -1; }
  .display-grid { grid-template-columns: 1fr; }
  .att-display { max-width: 26rem; margin: 0 auto; width: 100%; }
  .tool-small-note { display: block; }
}

/* Phone controller pairing panel (play page and game menu) */
.pad-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: var(--basalt-raised, #262c2a); border-radius: 14px; padding: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 760px) { .pad-band { grid-template-columns: 1fr; } }
.pad-pair-intro p { margin: 0 0 .8rem; }
.pad-pair-fine { font-size: .85rem; opacity: .75; margin-top: .8rem !important; }
.pad-pair-live { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.pad-qr { width: 168px; height: 168px; background: #efe6d2; border-radius: 10px; padding: 6px; flex: none; }
.pad-qr svg { width: 100%; height: 100%; display: block; }
.pad-qr svg path { fill: #121615; }
.pad-qr svg rect { fill: #efe6d2; }
.pad-pair-text { min-width: 0; flex: 1; }
.pad-pair-text p { margin: 0 0 .4rem; }
.pad-code-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pad-code { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: .18em; color: #e8692a; }
.pad-howto { font-size: .9rem; opacity: .85; word-break: break-word; }
.pad-status { font-weight: 600; }
.pad-status[data-pad-status="live"] { color: #7fbf8f; }
.pad-status[data-pad-status="error"], .pad-status[data-pad-status="closed"] { color: #e0806a; }
.btn-small { padding: .45rem .8rem; font-size: .85rem; margin-top: .3rem; }

/* =============================================================================
   Shop, bag, and legal pages. Added 2026-11-13 with the Cloudflare store.
   ============================================================================= */

.footer-legal a { color: var(--bone-dim); }
.footer-legal a:hover { color: var(--blaze); }

.shop-notice {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--basalt-deep);
  border-block: 1px solid var(--rule);
  padding: 0.6rem 0;
}
.shop-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.shop-mode { margin: 0; font-size: 0.95rem; color: var(--muted); }
.shop-mode .badge { margin: 0 0.5rem 0 0; vertical-align: 0.1em; }
.shop-bag-btn { flex: none; padding: 0.5rem 1rem; }
.shop-section { scroll-margin-top: calc(var(--header-h) + 4rem); }
.shop-section .section-head h2 { margin-top: 0; }
.shop-hero { padding-bottom: 2rem; }
.shop-notice + .shop-section { padding-top: 2.5rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.shop-item {
  display: flex;
  flex-direction: column;
  background: var(--basalt-raised);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--blaze);
}
.shop-art { background: #e8dfc8; padding: 0.9rem; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.shop-art img { width: 100%; height: 100%; object-fit: contain; }
.shop-body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.shop-body h3 { margin: 0 0 0.35rem; font-size: 1.45rem; line-height: 1.1; }
.shop-desc { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.98rem; }
.shop-price { margin: auto 0 0.7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--bone); letter-spacing: 0.02em; }
.shop-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.shop-controls .btn { flex: 1 1 8rem; min-height: 2.75rem; }
.shop-field { display: flex; flex-direction: column; gap: 0.25rem; }
.shop-field label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; color: var(--muted); }
.shop-field select, .shop-field input {
  font: inherit; font-size: 1rem; padding: 0.55rem 0.6rem; min-height: 2.75rem;
  border: 1px solid rgba(239, 230, 210, 0.35); background: #0e1210; color: var(--bone); border-radius: var(--radius);
}
.shop-qty input { width: 4.5rem; }
.shop-meta { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--muted); opacity: 0.85; }
.shop-fine { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); }
.shop-subhead { margin: 2rem 0 0.9rem; font-size: 1.25rem; color: var(--bone); }
.section-head + .shop-subhead { margin-top: 0; }
.shop-jump { margin: 0.6rem 0 0; color: var(--muted); }
.shop-jump a { font-weight: 600; }

.shop-policy-band { background: var(--basalt-deep); }
.shop-policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.shop-policy h3 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.shop-policy p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.shop-policy a { color: var(--blaze); }

/* Bag drawer */
.bag-scrim { position: fixed; inset: 0; background: rgba(8, 10, 9, 0.62); z-index: 90; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(29rem, 100%);
  background: var(--basalt);
  border-left: 1px solid var(--rule-strong);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.bag[hidden], .bag-scrim[hidden] { display: none; }
body.bag-open { overflow: hidden; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--rule); }
.bag-head h2 { margin: 0; font-size: 1.7rem; }
.bag-x { font: inherit; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; background: none; color: var(--bone); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0.4rem 0.7rem; cursor: pointer; }
.bag-x:hover { border-color: var(--bone); }
.bag-scroll { overflow-y: auto; padding: 1rem 1.2rem 2rem; flex: 1; }
.bag-empty { color: var(--muted); margin: 0 0 1rem; }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.bag-line img { width: 64px; height: 64px; object-fit: contain; background: #e8dfc8; padding: 4px; }
.bag-line p { margin: 0; }
.bag-line-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.bag-line-sub { font-size: 0.88rem; color: var(--muted); }
.bag-line-price { font-weight: 600; }
.bag-qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
.bag-qty button { font: inherit; min-width: 2rem; height: 2rem; background: var(--basalt-raised); color: var(--bone); border: 1px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer; }
.bag-qty span { min-width: 1.5rem; text-align: center; }
.bag-qty .bag-remove { min-width: 0; padding: 0 0.6rem; font-size: 0.85rem; background: none; color: var(--muted); }
.bag-totals { margin: 1rem 0 0; }
.bag-totals div { display: flex; justify-content: space-between; padding: 0.25rem 0; color: var(--muted); }
.bag-totals dt, .bag-totals dd { margin: 0; }
.bag-totals .bag-total { color: var(--bone); font-weight: 600; border-top: 1px solid var(--rule); margin-top: 0.3rem; padding-top: 0.5rem; font-size: 1.15rem; }
.bag-hint { font-size: 0.9rem; color: var(--sky); margin: 0.5rem 0 1.2rem; }
.bag-form h3 { margin: 0.5rem 0 0.2rem; font-size: 1.4rem; }
.bag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0.8rem 0 1rem; }
.bag-grid .field { min-width: 0; }
.bag-grid .bag-span { grid-column: 1 / -1; }
.bag-grid .field input, .bag-grid .field select { font-size: 1rem; padding: 0.6rem 0.65rem; }
.bag-wide { width: 100%; margin-top: 0.6rem; }
.bag-status { min-height: 1.2em; margin: 0.6rem 0 0; font-size: 0.92rem; }
.bag-status.is-ok { color: var(--sky); }
.bag-status.is-error { color: #f0b3a0; }
.bag-terms { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.1rem 0 0.4rem; font-size: 0.92rem; color: var(--bone); }
.bag-terms input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--blaze); flex: none; }
.bag-terms a, .bag-fine a { color: var(--blaze); }
.bag-fine { font-size: 0.84rem; color: var(--muted); margin: 0.6rem 0 0; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Legal pages */
.legal-meta { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--spruce); padding-left: 0.9rem; }
.legal a { color: var(--blaze); }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--bone-dim); }
.legal strong { color: var(--bone); }
.legal .disclaimer { margin: 1rem 0 0; }
.legal-links { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }

@media (max-width: 960px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shop-policy { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-notice-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .shop-mode { font-size: 0.85rem; }
  .shop-mode [data-shop-mode-text] { display: none; }
  .shop-bag-btn { width: 100%; }
  .bag-grid { grid-template-columns: 1fr; }
}

/* ---------- Nov 14 release: plainer rhythm, real tools first ---------- */

/* Tool pages: condensed display face on the h1, tight line height. */
.tool-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 24ch;
}

/* Home lead: the MOSAIC checker first, brand mark small. */
.home-lead { padding: 3rem 0 3.25rem; border-bottom: 1px solid var(--rule); }
.home-lead-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem 3.5rem; align-items: start; }
.home-mark { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.4rem; color: var(--bone-dim); font-size: 0.98rem; }
.home-mark img { width: 3.25rem; height: 3.25rem; flex: none; }
.home-lead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
  text-wrap: balance;
}
.lead-tool { background: var(--basalt-raised); border: 1px solid var(--rule-strong); padding: 1.5rem 1.6rem 1.4rem; }
.lead-tool h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin: 0 0 0.7rem; }
.lead-tool p { margin: 0 0 0.8rem; color: var(--muted); }
.lead-results { margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: res; }
.lead-results li { counter-increment: res; display: flex; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--rule); color: var(--bone); }
.lead-results li::before { content: counter(res); font-family: var(--font-display); font-weight: 800; color: var(--blaze); min-width: 1ch; }
.lead-foot { font-size: 0.95rem; }
.lead-foot a { color: var(--blaze); white-space: nowrap; }

/* Split section: heading left, rows right. */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 3.5rem; align-items: start; }
.split h2 { margin-top: 0; }

/* Row lists instead of card grids. */
.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row-list li { border-bottom: 1px solid var(--rule); }
.row-list a { display: grid; grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.6fr); gap: 0.25rem 1.5rem; padding: 0.9rem 0.25rem; text-decoration: none; color: inherit; }
.row-list a:hover strong { color: var(--blaze); }
.row-list strong { color: var(--bone); font-weight: 600; }
.row-list span { color: var(--muted); }
.row-list-plain { margin: 0.5rem 0 2rem; }
.measure h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.2rem 0 0.4rem; }

/* Spec tables and definition rows. */
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 0.98rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.spec-table thead th { color: var(--bone-dim); font-weight: 600; font-size: 0.85rem; border-bottom-color: var(--rule-strong); }
.spec-table tbody th { color: var(--bone); font-weight: 600; white-space: nowrap; }
.spec-table a { color: var(--bone); }
.spec-table a:hover { color: var(--blaze); }
.lineup-table td:last-child { color: var(--bone); min-width: 9rem; }
.spec-rows { margin: 0 0 1.5rem; border-top: 1px solid var(--rule); }
.spec-rows > div { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.spec-rows dt { color: var(--bone); font-weight: 600; }
.spec-rows dd { margin: 0; color: var(--muted); }
.note-list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.note-list li { margin: 0.3rem 0; }

/* One plain status line (Avionics). */
.status-line { margin: 1.4rem 0 0; padding: 0.8rem 1rem; background: var(--basalt-deep); border-left: 3px solid var(--blaze); color: var(--bone); max-width: 46rem; }

/* NAIP strip photos. */
.strips-band { background: var(--basalt-deep); }
.strips-band h2 { margin-top: 0; }
.strips-intro { max-width: 46rem; }
.strip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.strip-row-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip-fig { margin: 0; }
.strip-fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.strip-fig figcaption { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.credit { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.credit a { color: var(--blaze); }

/* Shop card spec rows. */
.shop-specs { margin: 0 0 0.9rem; font-size: 0.9rem; border-top: 1px solid var(--rule); }
.shop-specs > div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
.shop-specs dt { color: var(--bone-dim); }
.shop-specs dd { margin: 0; color: var(--bone); text-align: right; }

.footer-ship { margin: 0.9rem 0 0; font-size: 0.9rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.7fr); gap: 2rem 3.5rem; align-items: start; }
.about-grid .meta-list { margin-top: 0.4rem; }

@media (max-width: 860px) {
  .home-lead-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .home-lead { padding-top: 2rem; }
  .strip-row, .strip-row-6 { grid-template-columns: 1fr 1fr; }
  .row-list a { grid-template-columns: 1fr; }
  .spec-rows > div { grid-template-columns: 1fr; }
  .spec-table { display: block; overflow-x: auto; }
  .spec-table tbody th { white-space: normal; }
}
@media (max-width: 520px) {
  .strip-row, .strip-row-6 { grid-template-columns: 1fr; }
}
/* Keep every shop image in the same 4:3 frame (square art was stretching its card). */
.shop-art { position: relative; }
.shop-art img { position: absolute; inset: 0.9rem; width: calc(100% - 1.8rem); height: calc(100% - 1.8rem); object-fit: contain; }

/* ---------- Merch 3D viewer (/shop/3d/) ---------- */
.shop-3d-link { margin: 1rem 0 0; color: var(--muted); }
.shop-3d-link a { font-weight: 600; }
.m3d { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 1fr); gap: 2rem; align-items: start; }
.m3d-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(239, 230, 210, 0.12);
  background: radial-gradient(120% 90% at 50% 40%, #4a524e 0%, #2c3330 55%, #1d2321 100%); }
.m3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.m3d-canvas:active { cursor: grabbing; }
.m3d-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 0.4rem 0.9rem; border-radius: 30px;
  background: rgba(18, 22, 21, 0.72); font-size: 0.9rem; color: var(--bone); pointer-events: none; }
.m3d-status:empty { display: none; }
.m3d-hint { position: absolute; left: 0; right: 0; bottom: 0.6rem; margin: 0; text-align: center; font-size: 0.8rem; color: var(--muted); pointer-events: none; opacity: 0.85; }
.m3d-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.m3d-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.m3d-group[hidden] { display: none; }
.m3d-group legend, .m3d-group > label { display: block; padding: 0; margin: 0 0 0.5rem; font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: 1rem; letter-spacing: 0.04em; color: var(--bone); }
.m3d-group legend span { font-family: "Barlow", sans-serif; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.m3d-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.m3d-chip { font: 600 0.92rem "Barlow", sans-serif; min-height: 40px; padding: 0.35rem 0.85rem; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(239, 230, 210, 0.25); background: var(--basalt-raised); color: var(--bone); }
.m3d-chip:hover { border-color: var(--bone-dim); }
.m3d-chip[aria-pressed="true"] { background: var(--bone); color: var(--basalt-deep); border-color: var(--bone); }
.m3d-line-row { display: flex; gap: 0.4rem; }
.m3d-line-row select { flex: 1; min-width: 0; min-height: 42px; padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid rgba(239, 230, 210, 0.25);
  background: var(--basalt-raised); color: var(--bone); font: 600 1rem "Barlow", sans-serif; }
.m3d-step { width: 42px; min-height: 42px; border-radius: 8px; border: 1px solid rgba(239, 230, 210, 0.25); background: var(--basalt-raised);
  color: var(--bone); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.m3d-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.m3d-swatch { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(239, 230, 210, 0.3); padding: 0;
  background: linear-gradient(135deg, var(--sw) 0 55%, var(--sw2, var(--sw)) 55% 100%); }
.m3d-swatch[aria-pressed="true"] { border-color: var(--blaze, #e8692a); box-shadow: 0 0 0 2px var(--basalt), 0 0 0 4px var(--bone); }
.m3d-spec { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; padding: 1rem; border-radius: 10px;
  background: var(--basalt-deep); font-size: 0.92rem; }
.m3d-spec dt { color: var(--muted); }
.m3d-spec dd { margin: 0; color: var(--bone); }
.m3d-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; counter-reset: m3d; }
.m3d-list li { counter-increment: m3d; }
.m3d-list a { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem; border-radius: 10px; background: var(--basalt-raised);
  color: var(--muted); text-decoration: none; height: 100%; font-size: 0.88rem; }
.m3d-list a:hover { outline: 1px solid var(--bone-dim); }
.m3d-list img { width: 64px; height: auto; flex: none; }
.m3d-list strong { display: block; color: var(--bone); font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.m3d-list strong::before { content: counter(m3d) ". "; color: var(--muted); }
.m3d-foot { margin-top: 1.5rem; color: var(--muted); }
@media (max-width: 860px) {
  .m3d { grid-template-columns: 1fr; gap: 1.25rem; }
  .m3d-stage { aspect-ratio: 1 / 1.05; }
}

/* ---------- Plane configurator (/shop/3d/#build-your-plane) ---------- */
.pc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 1fr); gap: 2rem; align-items: start; }
.pc-stage { position: relative; aspect-ratio: 240 / 166; border-radius: 14px; overflow: hidden; border: 1px solid rgba(239, 230, 210, 0.12);
  background: linear-gradient(180deg, #3d4744 0%, #2a312f 70%, #222826 100%); color: var(--bone); --pc-acc: var(--blaze, #e8692a); }
.pc-layer { position: absolute; inset: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.pc-layer.is-entering { opacity: 0; transform: translateY(6px); }
.pc-layer.is-leaving { opacity: 0; }
.pc-svg { width: 100%; height: 100%; display: block; }
.pc-ground path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.pc-ground .pc-acc { stroke: var(--pc-acc); }
.pc-disc { fill: currentColor; opacity: 0.16; }
.pc-scroll { animation: pc-scroll 1.6s linear infinite; }
.pc-g-water .pc-scroll { animation-duration: 4.5s; }
.pc-g-snow .pc-scroll { animation-duration: 2.2s; }
@keyframes pc-scroll { to { transform: translateX(-240px); } }
.pc-prop { animation: pc-prop 0.14s linear infinite; }
@keyframes pc-prop { 0% { transform: scaleY(1); } 50% { transform: scaleY(-1); } 100% { transform: scaleY(1); } }
.pc-land { animation: pc-land 6s cubic-bezier(.3,.6,.4,1) infinite; }
@keyframes pc-land {
  0% { transform: translate(-60px, -34px); opacity: 0; }
  6% { opacity: 1; }
  34% { transform: translate(0, -1px); }
  38% { transform: translate(0, 0); }
  92% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}
.pc-land .pc-bodyw { animation: pc-squat 6s linear infinite; }
.pc-land .pc-legs { animation: pc-compress 6s linear infinite; }
@keyframes pc-squat { 0%, 37% { transform: translateY(0); } 41% { transform: translateY(2.4px); } 46% { transform: translateY(-0.8px); } 51%, 100% { transform: translateY(0.4px); } }
@keyframes pc-compress { 0%, 37% { transform: scaleY(1); } 41% { transform: scaleY(0.88); } 46% { transform: scaleY(1.03); } 51%, 100% { transform: scaleY(0.985); } }
.pc-rock { animation: pc-rock 3.8s ease-in-out infinite; transform-origin: 156px 126px; }
@keyframes pc-rock { 0%, 100% { transform: rotate(-1.1deg) translateY(0); } 50% { transform: rotate(1.1deg) translateY(1.2px); } }
.pc-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; }
.pc-toggle input { width: 20px; height: 20px; accent-color: var(--blaze, #e8692a); }
.pc-note { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); min-height: 1.1em; }
.pc-name { margin: 0 0 0.6rem; font-weight: 600; color: var(--bone); }
.pc-readout .btn { margin-top: 0.9rem; }
.pc-readout code { font-size: 0.9rem; color: var(--bone); }
.pc-muted { color: var(--muted); font-size: 0.85rem; }
.m3d-chip[disabled] { opacity: 0.38; cursor: not-allowed; }
@media (max-width: 860px) { .pc { grid-template-columns: 1fr; gap: 1.25rem; } }
@media (prefers-reduced-motion: reduce) {
  .pc-scroll, .pc-prop, .pc-land, .pc-land .pc-bodyw, .pc-land .pc-legs, .pc-rock { animation: none !important; }
  .pc-layer { transition: none; }
}

/* ---------- Sticker creator (/shop/sticker-creator/) ---------- */
.sc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 1fr); gap: 2rem; align-items: start; }
.sc-stage-wrap { position: sticky; top: calc(var(--header-h) + 1rem); min-width: 0; }
.sc-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.sc-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(239, 230, 210, 0.12);
  background: radial-gradient(120% 90% at 50% 40%, #59605b 0%, #3a413e 55%, #262c2a 100%); }
.sc-flat { position: absolute; inset: 6%; display: grid; place-items: center; }
.sc-flat[hidden], .sc-3d[hidden] { display: none; }
.sc-flat svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.sc-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.sc-size { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.sc-msgs { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.sc-msgs li { padding: 0.45rem 0.7rem; border-radius: 8px; background: rgba(232, 105, 42, 0.12); border-left: 3px solid var(--blaze); font-size: 0.9rem; }
.sc-msgs li.is-block { background: rgba(200, 60, 40, 0.22); border-left-color: #e0442c; color: #fff; font-weight: 600; }
.sc-export { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.sc-export .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.sc-help { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--muted); max-width: 44rem; }
.sc-input { width: 100%; min-height: 44px; padding: 0.45rem 0.7rem; border-radius: 8px; border: 1px solid rgba(239, 230, 210, 0.25);
  background: var(--basalt-raised); color: var(--bone); font: 600 1rem "Barlow", sans-serif; }
input.sc-input { font-family: "Barlow Condensed", sans-serif; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; font-size: 1.1rem; }
.sc-note { margin: 0.35rem 0 0.7rem; font-size: 0.82rem; color: var(--muted); }
.m3d-group > label.sc-sublabel { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 0.88rem; letter-spacing: 0; color: var(--muted); margin-bottom: 0.35rem; }
.sc-check { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.6rem; font-size: 0.92rem; cursor: pointer; }
.sc-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--blaze); }
.sc-range { display: flex; justify-content: space-between; margin: 0.8rem 0 0.2rem; font-size: 0.92rem; color: var(--muted); }
.sc-range output { color: var(--bone); font-weight: 600; }
input[type="range"][data-sc-angle] { width: 100%; accent-color: var(--blaze); }
.sc-way { display: inline-flex; align-items: center; gap: 0.45rem; }
.sc-dots { display: inline-flex; }
.sc-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.35); margin-left: -4px; }
.sc-dots i:first-child { margin-left: 0; }
.sc-custom { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.6rem; }
.sc-custom label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.sc-custom input { width: 44px; height: 34px; padding: 0; border: 1px solid rgba(239, 230, 210, 0.3); border-radius: 6px; background: none; }
.is-off .m3d-chip { opacity: 0.4; }
.sc-notes h2 { margin-top: 0; }
@media (max-width: 860px) {
  .sc { grid-template-columns: 1fr; gap: 1.25rem; }
  .sc-stage-wrap { position: static; }
}
.sc-custom[hidden] { display: none; }


/* ---- FAQ (shared with model product pages) ---- */
.faq { margin-top: 2.5rem; }
.faq h2 { margin-bottom: 0.8rem; }
.faq-item { border-top: 1px solid var(--rule); padding: 0.8rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--bone); list-style-position: outside; }
.faq-item p { margin: 0.5rem 0 0; color: var(--muted); }
.faq-item[open] summary { color: var(--blaze-hover); }

/* ---- 3D-printed model product pages ---- */
.mdl-kicker { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; color: var(--blaze); }
.mdl-hero .lede { max-width: 46rem; }
.mdl-buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.85rem 1.25rem; margin: 1.1rem 0 0; }
.mdl-price { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: 0.02em; color: var(--bone); line-height: 1; }
.mdl-price small { display: block; margin-top: 0.25rem; font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; letter-spacing: 0; color: var(--muted); }
.mdl-buy .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.mdl-notice { margin: 1.25rem 0 0; padding: 0.85rem 1rem; border-left: 3px solid var(--blaze); background: rgba(232, 105, 42, 0.1); color: var(--bone); max-width: 50rem; }
.mdl-notice p { margin: 0; }
.mdl-notice p + p { margin-top: 0.45rem; }
.mdl-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.mdl-offer { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.95rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--basalt-raised); color: inherit; text-decoration: none; min-height: 100%; }
.mdl-offer:hover { border-color: var(--rule-strong); }
.mdl-offer[aria-current="page"] { border-color: var(--blaze); box-shadow: inset 0 0 0 1px var(--blaze); }
.mdl-offer strong { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--bone); }
.mdl-offer span { color: var(--muted); font-size: 0.95rem; }
.mdl-offer em { font-style: normal; color: var(--blaze); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mdl-gallery { margin: 0; }
.mdl-gallery > input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mdl-slides { position: relative; background: #d8d0c2; border-radius: var(--radius); aspect-ratio: 3 / 2; overflow: hidden; }
.mdl-slides figure { display: none; margin: 0; width: 100%; height: 100%; }
.mdl-slides img { width: 100%; height: 100%; object-fit: contain; }
.mdl-slides figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.55rem 0.8rem; background: linear-gradient(transparent, rgba(18, 22, 21, 0.88)); color: var(--bone); font-size: 0.9rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65); }
.mdl-gallery > input:nth-of-type(1):checked ~ .mdl-slides figure:nth-of-type(1),
.mdl-gallery > input:nth-of-type(2):checked ~ .mdl-slides figure:nth-of-type(2),
.mdl-gallery > input:nth-of-type(3):checked ~ .mdl-slides figure:nth-of-type(3),
.mdl-gallery > input:nth-of-type(4):checked ~ .mdl-slides figure:nth-of-type(4),
.mdl-gallery > input:nth-of-type(5):checked ~ .mdl-slides figure:nth-of-type(5),
.mdl-gallery > input:nth-of-type(6):checked ~ .mdl-slides figure:nth-of-type(6) { display: block; }
.mdl-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.mdl-thumbs label { display: block; margin: 0; padding: 0; cursor: pointer; border: 2px solid transparent; border-radius: 0.2rem; background: #d8d0c2; overflow: hidden; }
.mdl-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mdl-gallery > input:nth-of-type(1):checked ~ .mdl-thumbs label:nth-of-type(1),
.mdl-gallery > input:nth-of-type(2):checked ~ .mdl-thumbs label:nth-of-type(2),
.mdl-gallery > input:nth-of-type(3):checked ~ .mdl-thumbs label:nth-of-type(3),
.mdl-gallery > input:nth-of-type(4):checked ~ .mdl-thumbs label:nth-of-type(4),
.mdl-gallery > input:nth-of-type(5):checked ~ .mdl-thumbs label:nth-of-type(5),
.mdl-gallery > input:nth-of-type(6):checked ~ .mdl-thumbs label:nth-of-type(6) { border-color: var(--blaze); }
.mdl-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.25rem; }
.mdl-boards figure, .mdl-wire figure { margin: 0; background: #d8d0c2; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mdl-boards img, .mdl-wire img { display: block; width: 100%; height: auto; }
.mdl-boards figcaption, .mdl-wire figcaption { padding: 0.5rem 0.75rem 0.7rem; font-size: 0.9rem; color: var(--muted); background: var(--basalt-raised); margin-top: auto; min-height: 3.6em; }
.mdl-wire { margin: 0 0 1.25rem; }
.mdl-dl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mdl-dl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.mdl-dl strong { display: block; color: var(--bone); }
.mdl-dl span { color: var(--muted); font-size: 0.95rem; }
.mdl-muted { color: var(--muted); font-size: 0.95rem; }
.mdl-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.mdl-card { display: flex; flex-direction: column; background: var(--basalt-raised); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; min-height: 100%; }
.mdl-card:hover { border-color: var(--rule-strong); }
.mdl-card-art { background: #d8d0c2; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.mdl-card-art img { width: 100%; height: 100%; object-fit: contain; }
.mdl-card-body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.mdl-card-body h2 { margin: 0 0 0.35rem; font-size: 1.55rem; }
.mdl-card-body p { margin: 0 0 0.7rem; color: var(--muted); }
.mdl-card .mdl-price { margin-top: auto; font-size: 1.7rem; }
@media (max-width: 860px) {
  .mdl-offers, .mdl-index-grid, .mdl-boards { grid-template-columns: 1fr; }
  .mdl-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.spec-table caption { caption-side: top; text-align: left; padding: 0 0 0.45rem; color: var(--muted); font-size: 0.95rem; }

/* Pyrovane concept renders and specs (avionics page) */
.pyro-section .pyro-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0.5rem; }
.pyro-model { margin: 2rem 0 0.25rem; }
.pyro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; align-items: start; margin-top: 0.75rem; }
.pyro-drawings { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pyro-fig { margin: 0; background: var(--basalt-deep); border: 1px solid var(--rule); }
.pyro-fig a { display: block; }
.pyro-fig img { display: block; width: 100%; height: auto; }
.pyro-fig a:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; }
.pyro-fig figcaption { padding: 0.5rem 0.75rem; font-size: 0.88rem; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pyro-specs { min-width: 720px; }
.pyro-specs tbody th { white-space: normal; min-width: 8rem; }
@media (max-width: 640px) { .pyro-section .pyro-hero { grid-template-columns: 1fr; } }
