/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT PAGES — shared rules (g-Platform, g-Space, g-Viewer)
   2026 design system — Geomage Website (www.geomage.com)

   Loaded by every product template ALONGSIDE main.css. Everything the three
   product pages share but that is not a design-system component lives here:

     · .hero-title      — the <p> the SSR layer demotes the product H1 to
     · .stats .container— full-bleed stats band (replaces a concept inline style)
     · .mod__topics     — deep-URL links inside a module card
     · .panel__sub--stack — small gap left by the components
     · .topic-detail    — the per-topic panel seo.py injects at <!-- TOPIC_DETAIL -->

   Page-unique rules go in pages/<page>.css, never here.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── HERO TITLE, DEMOTED ─────────────────────────────────────────────────────
   On a deep URL the topic fragment owns the page's single <h1>, so the SSR
   layer (backend/app/routes/seo.py) demotes the hero heading to a paragraph.
   Both spellings of that swap are supported: a tag-only replacement keeps
   .hero__title (styled by components/hero.css); the alternative rewrites the
   class to .hero-title, which this rule styles identically. */
.hero-title {
  font-family: var(--font-head); font-size: clamp(34px, 4vw, 54px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.025em;
  color: #fff; margin-bottom: 20px;
}
.hero-title .accent { color: var(--orange); }

/* The phone-width `.hero__eyebrow { white-space: normal }` override that used to
   live here (and in pages/home.css) now sits with its root cause, next to
   `.eyebrow { white-space: nowrap }` in components/section-head.css. */

/* ── STATS BAND ──────────────────────────────────────────────────────────────
   The blue stats band's grid spans the full container width — the concept
   zeroes the container padding with an inline style; this replaces it. */
.stats .container { padding: 0; }

/* ── MODULE-CARD TOPIC LINKS ─────────────────────────────────────────────────
   Every module card links to the deep URLs it covers: the first (primary) is
   the card's own page, the rest are the sibling topics grouped into that card.
   data-topic on each anchor is the SSR module-switcher's hook. */
.mod__topics {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.mod__topic {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1.35;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px; padding: 5px 13px;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.mod__topic:hover { color: var(--orange); border-color: var(--orange); background: var(--orange-light); }
.mod__topic--primary {
  font-weight: 700; color: var(--orange);
  background: var(--orange-light); border-color: var(--orange-border);
}
.mod__topic--primary:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.mod__topic svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; flex-shrink: 0; }
/* `.fam__link svg` moved to components/mod-cards.css — that file owns .fam__link. */

/* ── PANELS ──────────────────────────────────────────────────────────────────
   A second sub-label inside a .panel (e.g. "Geometry" under the format chips).
   Replaces the concept's inline margins. */
.panel__sub--stack { margin-top: 16px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TOPIC DETAIL
   The panel the SSR layer injects at <!-- TOPIC_DETAIL --> (directly under the
   module grid) when a deep URL is requested. Visually it is an expanded,
   permanently highlighted module card: white surface, orange border and top
   rule, the same radius and rhythm as .mod.
   Markup contract (frontend/slides/<product>/<topic>.html):
     <article class="topic-detail" data-url="…"><h1>…</h1>…</article>
   ═══════════════════════════════════════════════════════════════════════════ */
.topic-detail {
  position: relative; overflow: hidden;
  margin-top: 20px;                    /* matches .modules__grid gap */
  background: var(--bg-white);
  border: 1px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--orange-border), var(--shadow-md);
  padding: 34px 34px 30px;
  scroll-margin-top: 132px;            /* clears the fixed header + subnav */
}
.topic-detail::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), #ff9240 50%, var(--orange));
}
.topic-detail__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; }
/* Both columns stretch to the taller of the two, so the actions can be pushed
   to the foot of the copy column (topics vary from two bullets to sixteen). */
.topic-detail__copy { display: flex; flex-direction: column; }

/* Copy column */
.topic-detail__eyebrow { margin-bottom: 14px; }
.topic-detail__title {
  font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700; line-height: 1.18; letter-spacing: -.02em;
  color: var(--text-dark); margin-bottom: 14px;
}
.topic-detail__copy p { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.topic-detail__copy p strong { color: var(--text-dark); font-weight: 600; }
/* Sub-heading paragraph inside the copy column. The selector has to out-rank
   `.topic-detail__copy p` above (0,1,1) or its colour and margin never land. */
.topic-detail__copy p.topic-detail__sub { font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.topic-detail__list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.topic-detail__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text); line-height: 1.6; }
.topic-detail__list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 7px;
}
.topic-detail__list b { color: var(--text-dark); font-weight: 600; }
.topic-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* Media column */
.topic-detail__media { display: flex; flex-direction: column; gap: 14px; }
.topic-detail__fig {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: #0d1117;
}
.topic-detail__fig img { width: 100%; height: auto; display: block; }
.topic-detail__cap {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light); background: var(--bg-white);
  padding: 8px 12px; border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .topic-detail__inner { grid-template-columns: 1fr; gap: 26px; }
  .topic-detail__media { order: -1; }
}
@media (max-width: 720px) {
  .topic-detail { padding: 26px 20px 24px; scroll-margin-top: 120px; }
  .topic-detail__actions .btn { flex: 1; justify-content: center; }
}
