/* ================================================================
   27_product_detail.css
   Product Detail — Signal Digest layout.
   Ported from the Life Science Pro design system bundle
   (project/product_detail/styles.css).  Narrative structure:
     Header -> SIGNALS (urgent tiles + ambient list) -> REFERENCE DATA
     (Substitution group + Nordic comparison) -> Footer.
   ================================================================ */

/* Scoped tokens — do not spill into other pages. */
:root {
  --pd-page-bg:  #f7f8fa;
  --pd-surface:  #ffffff;
  --pd-border:   #e5e7eb;
  --pd-hairline: #eef0f4;

  --pd-hd:       #0f172a;
  --pd-body:     #334155;
  --pd-muted:    #64748b;
  --pd-subtle:   #94a3b8;

  --pd-brand:     #00509e;
  --pd-brand-600: #003c8f;
  --pd-brand-50:  #eaf2fb;
  --pd-link:      #0066cc;

  --pd-red:    #d55e00;
  --pd-orange: #e57c00;
  --pd-blue:   #0284c7;
  --pd-green:  #009e8f;
  --pd-amber:  #e57c00;
}

/* Page-level light surface (matches Nordics' ls-page-root pattern). */
.pd-page {
  background: var(--pd-page-bg);
  min-height: 100vh;
  color: var(--pd-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.pd-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 60px;
}

/* ------------------------------------------------------------------
   Header — breadcrumb + title + chips + meta + right-side price/actions
   ------------------------------------------------------------------ */
.pd-header-wrap {
  background: #fff;
  border-bottom: 1px solid var(--pd-border);
}

.pd-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 28px 18px;
}

.pd-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pd-muted);
  margin-bottom: 8px;
}

.pd-crumb__sep {
  font-size: 9px;
  opacity: 0.6;
}

.pd-crumb a {
  color: var(--pd-muted);
  text-decoration: none;
  cursor: pointer;
}

.pd-crumb a:hover,
.pd-crumb a:focus-visible { color: var(--pd-link); }

.pd-crumb__current {
  color: var(--pd-hd);
  font-weight: 500;
}

.pd-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-header__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.pd-header__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-header__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--pd-hd);
  letter-spacing: -0.015em;
}

.pd-header__meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--pd-body);
}

.pd-header__ids {
  margin-top: 4px;
  font-size: 12px;
  color: var(--pd-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pd-header__ids b {
  font-weight: 600;
  color: var(--pd-body);
}

.pd-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  white-space: nowrap;
}

.pd-price__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-price__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--pd-hd);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  margin-top: 2px;
}

.pd-price__ccy {
  font-size: 13px;
  color: var(--pd-muted);
  font-weight: 500;
}

/* Rendered when the pack has no published PPP (vaccines, indexed-only
   packs, etc.) — show a single muted label instead of "nan DKK". */
.pd-price--empty {
  align-items: flex-end;
  line-height: 1.15;
  white-space: nowrap;
}
.pd-price--empty .pd-price__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pd-subtle);
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}

/* ------------------------------------------------------------------
   Chips (one family) + deltas
   ------------------------------------------------------------------ */
.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pd-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pd-chip--red     { background: #fdecea;             color: #b3261e; }
.pd-chip--orange  { background: #fef4e6;             color: #9a5200; }
.pd-chip--blue    { background: var(--pd-brand-50);  color: var(--pd-brand-600); }
.pd-chip--neutral { background: #f1f5f9;             color: #475569; }
.pd-chip--green   { background: #e6f7f5;             color: #047e72; }

.pd-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pd-delta .tri { font-size: 0.82em; }
.pd-delta.pos  { color: var(--pd-green); }
.pd-delta.neg  { color: var(--pd-red); }
.pd-delta.neu  { color: var(--pd-muted); }

/* ------------------------------------------------------------------
   Buttons (header utility actions)
   ------------------------------------------------------------------ */
.pd-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--pd-border);
  background: #fff;
  color: var(--pd-body);
  cursor: pointer;
  line-height: 1;
  transition: all 0.14s;
  white-space: nowrap;
  flex: 0 0 auto;
  text-decoration: none;
}
.pd-btn:hover    { border-color: #cbd5e1; background: #f8fafc; }
.pd-btn.primary  { background: var(--pd-brand); border-color: var(--pd-brand); color: #fff; font-weight: 600; }
.pd-btn.primary:hover { background: #00427f; border-color: #00427f; }
.pd-btn.ghost    { border: none; background: transparent; color: var(--pd-muted); }
.pd-btn.ghost:hover { color: var(--pd-hd); background: transparent; }
.pd-btn[disabled], .pd-btn.disabled { cursor: not-allowed; opacity: 0.6; }

/* ------------------------------------------------------------------
   Section header (label + meta)
   ------------------------------------------------------------------ */
.pd-section { margin-top: 28px; }
.pd-section__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.pd-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin: 0;
  white-space: nowrap;
}
.pd-section__meta {
  font-size: 12px;
  color: var(--pd-subtle);
  text-align: right;
}

/* ------------------------------------------------------------------
   Signal tiles — metric-forward, corner-gradient severity, no left rule
   ------------------------------------------------------------------ */
.pd-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pd-signals[data-count="1"],
.pd-signals[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .pd-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .pd-signals,
  .pd-signals[data-count="1"],
  .pd-signals[data-count="2"] { grid-template-columns: 1fr; }
}

.pd-sig {
  position: relative;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.pd-sig:hover,
.pd-sig:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Severity skins — radial gradient from top-right, no left stripe. */
.pd-sig--red     { background: radial-gradient(circle at top right, #fee4d3 0%, #fff4ec 22%, #fff 55%); }
.pd-sig--orange  { background: radial-gradient(circle at top right, #fde8c0 0%, #fff7e4 22%, #fff 55%); }
.pd-sig--blue    { background: radial-gradient(circle at top right, #d5e6f7 0%, #eaf2fb 22%, #fff 55%); }
.pd-sig--neutral { background: radial-gradient(circle at top right, #e5e9ef 0%, #f4f6fa 22%, #fff 55%); }

.pd-sig__mod {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.pd-sig__mod-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pd-sig__mod-dot.red     { background: var(--pd-red); }
.pd-sig__mod-dot.orange  { background: var(--pd-orange); }
.pd-sig__mod-dot.blue    { background: var(--pd-blue); }
.pd-sig__mod-dot.neutral { background: #94a3b8; }

.pd-sig__mod-meta {
  margin-left: auto;
  color: var(--pd-subtle);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.pd-sig__metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 2px 0 0;
}
.pd-sig__metric .val {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pd-hd);
}
.pd-sig--red    .pd-sig__metric .val { color: var(--pd-red); }
.pd-sig--orange .pd-sig__metric .val { color: var(--pd-orange); }
.pd-sig--blue   .pd-sig__metric .val { color: var(--pd-blue); }
.pd-sig__metric .unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pd-sig__headline {
  font-size: 14px;
  font-weight: 650;
  color: var(--pd-hd);
  line-height: 1.3;
}
.pd-sig__detail {
  font-size: 12.5px;
  color: var(--pd-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-sig__foot {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  color: var(--pd-link);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pd-sig__foot i { font-size: 10px; transition: transform 0.15s; }
.pd-sig:hover .pd-sig__foot i,
.pd-sig:focus-visible .pd-sig__foot i { transform: translateX(2px); }

/* ------------------------------------------------------------------
   Ambient row (compact one-line signals for neutral / low-priority)
   ------------------------------------------------------------------ */
.pd-ambient {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  overflow: hidden;
}
.pd-ambient__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fafbfc;
  border-bottom: 1px solid var(--pd-border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.pd-amb-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-top: 1px solid var(--pd-hairline);
  text-decoration: none;
  color: inherit;
}
.pd-amb-row:first-of-type { border-top: none; }
.pd-amb-row:hover { background: #fafbfc; }
.pd-amb-row__mod {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pd-muted);
  width: 80px;
}
.pd-amb-row__headline {
  font-size: 13px;
  color: var(--pd-hd);
  font-weight: 550;
}
.pd-amb-row__detail {
  font-size: 12px;
  color: var(--pd-muted);
}
.pd-amb-row__metric {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pd-hd);
  letter-spacing: -0.01em;
}
.pd-amb-row__metric-label {
  font-size: 10.5px;
  color: var(--pd-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-left: 4px;
}
.pd-amb-row__cta {
  color: var(--pd-subtle);
  font-size: 12px;
}
.pd-amb-row__cta i { transition: transform 0.15s; }
.pd-amb-row:hover .pd-amb-row__cta { color: var(--pd-link); }
.pd-amb-row:hover .pd-amb-row__cta i { transform: translateX(2px); }

@media (max-width: 700px) {
  .pd-amb-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .pd-amb-row__mod { grid-column: 1 / -1; width: auto; }
  .pd-amb-row__detail { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   No-signals hero
   ------------------------------------------------------------------ */
.pd-nosignals {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pd-nosignals__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e6f7f5;
  color: var(--pd-green);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: 0 0 auto;
}
.pd-nosignals h3 {
  margin: 0;
  font-size: 15px;
  color: var(--pd-hd);
  font-weight: 650;
}
.pd-nosignals p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--pd-muted);
}

/* ------------------------------------------------------------------
   Reference tables — Substitution group + Nordic comparison
   ------------------------------------------------------------------ */
.pd-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pd-ref {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  padding: 16px 20px;
}
.pd-ref__hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pd-ref__hd > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.pd-ref__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--pd-muted);
  white-space: nowrap;
}
.pd-ref__meta {
  font-size: 11px;
  color: var(--pd-subtle);
}

.pd-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.pd-tbl th, .pd-tbl td {
  padding: 7px 8px;
  text-align: left;
}
.pd-tbl th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--pd-muted);
  border-bottom: 1px solid var(--pd-border);
}
.pd-tbl td {
  border-bottom: 1px solid var(--pd-hairline);
  color: var(--pd-body);
}
.pd-tbl th:first-child, .pd-tbl td:first-child { padding-left: 0; }
.pd-tbl th:last-child,  .pd-tbl td:last-child  { padding-right: 0; }
.pd-tbl td.num, .pd-tbl th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pd-tbl tr.this td {
  font-weight: 600;
  color: var(--pd-hd);
  background: #fafcff;
}
.pd-tbl tr:last-child td { border-bottom: none; }

/* Supply banner inside subgroup card */
.pd-supply-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff7f3;
  border: 1px solid #fadbc9;
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--pd-body);
  line-height: 1.4;
}
.pd-supply-banner i {
  margin-top: 2px;
  font-size: 14px;
  flex: 0 0 auto;
  color: var(--pd-red);
}
.pd-supply-banner b {
  color: var(--pd-hd);
  font-weight: 650;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.pd-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--pd-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--pd-muted);
}
.pd-footer a {
  color: var(--pd-link);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}
.pd-footer a:hover,
.pd-footer a:focus-visible { text-decoration: underline; }
.pd-footer .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Focus visible — shared */
.pd-btn:focus-visible,
.pd-sig:focus-visible,
.pd-amb-row:focus-visible { outline: 2px solid var(--pd-link); outline-offset: 2px; }

/* Acronym tooltip primitive stays — dotted underline + tooltip copy */
.acronym {
  border-bottom: 1px dotted var(--pd-muted);
  cursor: help;
  padding-bottom: 1px;
  outline: none;
}
.acronym:hover,
.acronym:focus-visible {
  border-bottom-color: var(--pd-link);
  color: var(--pd-link);
}
.acronym-tooltip .tooltip-inner {
  max-width: 280px;
  text-align: left;
  font-size: 0.8rem;
}

/* ================================================================
   Product switcher — title-button popover.  Ports the design bundle's
   .pd-title-switch + .pd-switcher styles so the chevron-button next
   to the product title opens a typeahead with three scoped sections
   (same substitution group · related groups · recently viewed) and
   a Results section that fills clientside as the user types.
   ================================================================ */

.pd-title-anchor {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.pd-title-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  padding: 2px 8px 2px 6px;
  margin: -2px -8px -2px -6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  font: inherit;
  color: inherit;
}
.pd-title-switch:hover { background: #f1f5f9; }
.pd-title-switch:hover .bi-chevron-down { color: var(--pd-hd) !important; }
.pd-title-switch.is-open {
  background: #fff;
  border-color: var(--pd-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.pd-title-switch.is-open .bi-chevron-down { transform: rotate(180deg); }
.pd-title-switch:focus-visible {
  outline: 2px solid var(--pd-link);
  outline-offset: 2px;
}

.pd-switcher {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  width: 560px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14),
              0 2px 6px rgba(15, 23, 42, 0.06);
  z-index: 50;
  display: none;
  flex-direction: column;
  max-height: 540px;
  font-size: 13px;
  overflow: hidden;
}
.pd-switcher.is-open { display: flex; }

.pd-switcher__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pd-hairline);
}
.pd-switcher__search .bi { color: var(--pd-muted); font-size: 14px; }
.pd-switcher__search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--pd-font);
  font-size: 13.5px;
  color: var(--pd-hd);
  padding: 2px 0;
}
.pd-switcher__search input::placeholder { color: var(--pd-subtle); }

.pd-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--pd-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pd-muted);
  background: #fafbfc;
  font-family: var(--pd-font);
}

.pd-switcher__body { overflow-y: auto; padding: 4px 0; flex: 1; }
.pd-switcher__sec { padding: 4px 0 6px; }
.pd-switcher__sec + .pd-switcher__sec { border-top: 1px solid var(--pd-hairline); }
.pd-switcher__sec.is-accent {
  background: linear-gradient(to bottom, rgba(0, 80, 158, 0.025), transparent 80%);
}

.pd-switcher__sec-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--pd-muted);
  white-space: nowrap;
}
.pd-switcher__sec-meta {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--pd-subtle);
}
.pd-switcher__empty {
  padding: 8px 14px 10px;
  color: var(--pd-subtle);
  font-style: italic;
  font-size: 12.5px;
}

.pd-switcher__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}
.pd-switcher__row.is-active {
  background: var(--pd-brand-50);
  border-left-color: var(--pd-brand);
}
.pd-switcher__row.is-current { background: rgba(0, 80, 158, 0.04); }
.pd-switcher__row-main { flex: 1; min-width: 0; }
.pd-switcher__row-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pd-hd);
  min-width: 0;
}
.pd-switcher__row-title .name { white-space: nowrap; flex-shrink: 0; }
.pd-switcher__row-title .mfr {
  color: var(--pd-muted);
  font-weight: 500;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pd-switcher__row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--pd-muted);
}
.pd-switcher__atc {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  color: var(--pd-subtle);
  padding: 1px 5px;
  background: #f4f6f9;
  border-radius: 3px;
}
.pd-switcher__ago {
  margin-left: auto;
  color: var(--pd-subtle);
  font-size: 11px;
}
.pd-switcher__row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pd-switcher__price {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-hd);
  min-width: 80px;
  text-align: right;
}

.pd-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}
.pd-tier--a { background: #e6f7f5;            color: #047e72;            border-color: rgba(4, 126, 114, 0.15); }
.pd-tier--b { background: var(--pd-brand-50); color: var(--pd-brand-600); border-color: rgba(0, 80, 158, 0.15); }
.pd-tier--c { background: #fef4e6;            color: #9a5200;            border-color: rgba(154, 82, 0, 0.15); }

.pd-pstat {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.pd-pstat--ok    { background: #e6f7f5; color: #047e72; }
.pd-pstat--amber { background: #fef4e6; color: #9a5200; }
.pd-pstat--red   { background: #fdecea; color: #b3261e; }

.pd-switcher__row--group .pd-switcher__row-title { font-weight: 500; }

.pd-switcher__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-top: 1px solid var(--pd-hairline);
  background: #fafbfc;
  font-size: 11px;
  color: var(--pd-muted);
}

/* When typing into the search, the static sections are hidden and
   only the Results section renders.  The JS toggles these states. */
.pd-switcher.is-typing [data-sec="same-group"],
.pd-switcher.is-typing [data-sec="related"],
.pd-switcher.is-typing [data-sec="recent"] { display: none; }
.pd-switcher.is-typing [data-sec="results"] { display: block !important; }

/* ================================================================
   Print preview (.pd-page--print on screen) + @media print
   Ports product_detail/index-print.html overrides from the design
   bundle so Save-as-PDF output is tight, paginated cleanly, and
   strips chrome that doesn't make sense on paper.
   ================================================================ */

.pd-page--print {
  background: #fff !important;
  font-size: 13px;
}
.pd-page--print .pd-shell { max-width: 820px; padding: 0 24px 32px; }
.pd-page--print .pd-header-inner { max-width: 820px; padding: 16px 24px 14px; }

.pd-page--print .pd-btn,
.pd-page--print .pd-footer .links,
.pd-page--print .pd-switcher,
.pd-page--print .pd-title-switch .bi-chevron-down { display: none !important; }
.pd-page--print .pd-title-switch {
  pointer-events: none;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  margin: 0;
  padding: 0;
}

.pd-page--print .pd-header__row > .pd-header__right {
  justify-content: flex-end;
}

.pd-page--print .pd-sig:hover,
.pd-page--print .pd-amb-row:hover {
  transform: none !important;
  box-shadow: none !important;
  background: inherit;
}
.pd-page--print .pd-sig,
.pd-page--print .pd-amb-row,
.pd-page--print button { transition: none !important; cursor: default !important; }

.pd-page--print .pd-sig {
  min-height: 130px;
  padding: 14px 16px 12px;
}
.pd-page--print .pd-sig__metric .val { font-size: 28px; }

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 10mm 12mm;
  }
  /* Force backgrounds + gradients to render in print so the severity
     wash on signal tiles is preserved. */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body, .pd-page, .pd-page--print { background: #fff !important; }
  .pd-shell { max-width: none; padding: 0; }
  .pd-header-wrap { border-bottom: 1px solid var(--pd-border); }
  .pd-header-inner { max-width: none; padding: 0 0 10px; }

  /* Don't break inside content the eye reads as one block. */
  .pd-section,
  .pd-sig,
  .pd-ambient,
  .pd-ref,
  .pd-supply-banner,
  table, tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h1, h2, h3, .pd-section__title { break-after: avoid; }

  /* Reference cards stack on the printed page width. */
  .pd-ref-grid { grid-template-columns: 1fr !important; }
  .pd-ref + .pd-ref { margin-top: 12px; }

  /* Keep the signals grid at three columns; let the browser drop to
     two when it has to. */
  .pd-signals { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .pd-signals[data-count="1"],
  .pd-signals[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Don't truncate the detail line on paper. */
  .pd-sig__detail {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
  }

  /* Hide chrome that doesn't belong on paper. */
  .pd-btn,
  .pd-footer .links,
  .pd-switcher,
  .pd-title-switch .bi-chevron-down { display: none !important; }
  .pd-title-switch {
    pointer-events: none;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
  }
  .pd-footer { color: var(--pd-muted); }
}
