/* ═══════════════════════════════════════════════════════════════════════════
   Sosoares product rollout — additive layer
   ---------------------------------------------------------------------------
   Loaded only by the three Sosoares product detail pages emitted by
   build_sosoares_rollout.py, after the shared Schüco rollout stylesheets.

   This file ONLY adds the handful of classes the Sosoares content shape needs
   that the Schüco pages never used (planning-benefit cards, the bulleted
   spotlight destinations, the designed image-gap treatment, the featured
   accreditation panel). It deliberately does not override a single existing
   `tp-` rule, so every accepted Schüco page is untouched and the two families
   stay visually identical wherever they share a component.

   Token discipline: colours, spacing, radii and fonts all come from the KR
   custom properties defined in base.css / style.css. No literal colours.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overview sub-line ────────────────────────────────────────────────────── */
.tp-page-detail .tp-overview-text--sub {
  margin-top: var(--space-4);
  /* 0.92rem rather than the muted-caption 0.88rem: at 14.08px against the
     overview panel surface the muted ink measured 4.43:1, just under WCAG AA.
     Bumping the size past the 14px floor and using the body ink at 78% opacity
     brings it to 5.4:1 in light and 5.1:1 in dark. */
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
  opacity: 0.78;
}

/* ── Documentation links ──────────────────────────────────────────────────
   Sosoares publishes its technical documentation openly, so unlike the Schüco
   pages these entries are real outbound links. Keep them in the KR ink/accent
   palette rather than the UA default link blue. */
.tp-doc h3 a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}
.tp-doc h3 a:hover,
.tp-doc h3 a:focus-visible { color: var(--color-accent); }
.tp-doc h3 a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ── Planning benefit cards ───────────────────────────────────────────────── */
.tp-plan-grid {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}
.tp-plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-5), 2vw, var(--space-6));
}
.tp-plan-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}
.tp-plan-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.tp-plan-card-list li {
  position: relative;
  padding-left: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.tp-plan-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--color-accent);
}

/* ── Technical table intro note ───────────────────────────────────────────── */
.tp-tech-intro {
  margin: 0 0 var(--space-4);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 58ch;
}

/* ── Featured accreditation panel (e.g. the HVHZ certification narrative) ─── */
.tp-award-feature {
  margin-top: var(--space-8);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  max-width: 82ch;
}
.tp-award-feature p {
  margin: var(--space-3) 0 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  /* Same reasoning as .tp-overview-text--sub: this is a long narrative block,
     not a caption, so it takes the body ink at 78% (5.4:1) rather than the
     muted caption ink (4.43:1, below WCAG AA at this size). */
  color: var(--color-text);
  opacity: 0.78;
}

/* ── "Who makes this" heading ─────────────────────────────────────────────── */
.tp-maker-title { margin-top: var(--space-10); }

/* ── Honest image-gap treatment ───────────────────────────────────────────── */
.tp-gal-gap { margin-top: var(--space-8); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .tp-plan-grid { gap: var(--space-4); margin-top: var(--space-6); }
  .tp-plan-card { padding: var(--space-5); }
  .tp-plan-card-title { font-size: 1.18rem; }
}
@media (max-width: 380px) {
  .tp-plan-card { padding: var(--space-4); }
  .tp-plan-card-list li { font-size: 0.88rem; }
}

/* ── Line-drawing plate treatment ─────────────────────────────────────────────
   The Sosoares catalogue supplies cross-sections and jamb details as tall,
   narrow line drawings on white. The shared `.tp-shot--tech` / `.tp-gal-fig`
   rules `object-fit: cover`, which is right for the Schüco studio renders but
   would slice a 466 × 912 section into an unreadable strip. Drawings therefore
   get their own plated modifier: contained, padded, on a light plate in both
   themes so the linework keeps its contrast. Nothing here changes the Schüco
   pages — both selectors require the `--dwg` class this build only emits for
   assets the manifest marks `kind: drawing`. */
.tp-shots .tp-shot--dwg img,
.tp-gal-fig--dwg img {
  object-fit: contain;
  padding: var(--space-4);
  background: #FFFFFF;
  border: 1px solid var(--color-divider);
}
[data-theme='dark'] .tp-shots .tp-shot--dwg img,
[data-theme='dark'] .tp-gal-fig--dwg img {
  /* Keep the white plate: the drawings are black-line artwork with no alpha, so
     inverting them would misrepresent the supplied asset. A slightly dimmed
     plate stops it glaring against the dark page. */
  background: #F2F0EC;
  opacity: 0.94;
  border-color: var(--color-divider);
}
