/* ══════════════════════════════════════════════════════════════════════════
   Solutions / Windows & Doors — integration layer for the approved Schüco
   summary cards. Everything else the cards need comes from the approved
   pages/test-as-fd-75.css + pages/schuco-rollout-base.css + schuco-rollout.css.
   Scoped to #page-windows-doors (plus the shared comparison overlay), so no
   other route can be affected.
   ══════════════════════════════════════════════════════════════════════════ */

/* The cards sit inside the existing tab panel, not on their own page. */
#page-windows-doors .tp-page-listing {
  background: transparent;
}
#page-windows-doors .wd-tp {
  margin-top: var(--space-8);
}
#page-windows-doors .wd-tp .tp-card + .tp-card {
  margin-top: var(--space-10);
}
#page-windows-doors .wd-tp--grouped .tp-group {
  padding-block: 0 0;
  /* The group heading sits flush against the top of the section, so a deep link
     landing on it would tuck the first ~18px of the title behind the 82px sticky
     header. html{scroll-padding-top} contributes 64px; the extra 82px here lands
     the title at the same 146px offset as every padded section on this page. */
  scroll-margin-top: 82px;
}
#page-windows-doors .wd-tp--grouped .tp-group + .tp-group {
  margin-top: var(--space-16);
  padding-top: 0;
}
#page-windows-doors .wd-tp--grouped .tp-group-head {
  margin-bottom: var(--space-6);
}

/* ── Compare chip ──────────────────────────────────────────────────────────
   The chip carries both .tp-act (approved action-row look) and .kr-cmp-toggle
   (drives the existing site comparison tray). The site rule makes the toggle a
   full-width block, which would break the action row, so the approved chip
   geometry is restated here. */
#page-windows-doors .tp-actions .tp-act.kr-cmp-toggle {
  width: auto;
  margin-bottom: 0;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
}
#page-windows-doors .tp-actions .tp-act.kr-cmp-toggle svg {
  opacity: 1;
}
#page-windows-doors .tp-actions .tp-act.kr-cmp-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: transparent;
}
#page-windows-doors .tp-actions .tp-act.kr-cmp-toggle--active,
#page-windows-doors .tp-actions .tp-act.kr-cmp-toggle[aria-pressed='true'] {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(140, 110, 69, 0.10);
}
[data-theme='dark'] #page-windows-doors .tp-actions .tp-act.kr-cmp-toggle--active,
[data-theme='dark'] #page-windows-doors .tp-actions .tp-act.kr-cmp-toggle[aria-pressed='true'] {
  background: rgba(140, 110, 69, 0.18);
}
@media (max-width: 700px) {
  #page-windows-doors .tp-actions .tp-act.kr-cmp-toggle {
    padding: 6px 9px;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 480px) {
  #page-windows-doors .tp-actions .tp-act.kr-cmp-toggle {
    padding: 5px 7px;
    font-size: 0.61rem;
    letter-spacing: 0.04em;
    gap: 4px;
  }
}

/* ── Comparison overlay additions ────────────────────────────────────────── */
.kr-cmp-scope-note {
  margin: 0 0 var(--space-4);
  max-width: 78ch;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.55;
  /* The overlay is dark in both themes, so this is a fixed cream — not a token. */
  color: rgba(232, 228, 220, 0.72);
}
.kr-cmp-col-footer .kr-cmp-details {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #C8A778;
}
.kr-cmp-col-footer .kr-cmp-details:hover,
.kr-cmp-col-footer .kr-cmp-details:focus-visible {
  text-decoration: underline;
}

/* Section break between shared fields and family-specific fields. Fixed height
   in every column keeps the label column and the value columns in step. */
.kr-cmp-row-sub {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  color: rgba(140, 110, 69, 0.95);
  border-top: 1px solid rgba(140, 110, 69, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.kr-cmp-row-sub--spacer {
  border-top-color: rgba(140, 110, 69, 0.28);
}
.kr-cmp-na {
  color: rgba(232, 228, 220, 0.42);
}
@media (max-width: 768px) {
  .kr-cmp-row-sub { height: 34px; padding: 0 0.6rem; font-size: 0.55rem; letter-spacing: 0.08em; }
}
