/* ============================================================
   Single Product — dark premium 3D visualizer.
   Layout after the client-approved reference, recoloured to
   "The Quiet Foundry": navy surfaces, white text, one gold accent
   used for state + primary actions. Tokens from tokens.css.
   ============================================================ */

.pv2 {
  background: var(--navy-900);
  color: var(--white);
  padding-top: calc(var(--header-h, 116px) + var(--space-3));
  padding-bottom: var(--space-7);
}
/* Keep images/canvas within their column WITHOUT clipping the section itself —
   clipping .pv2 forces overflow-y:auto and breaks the touch drag-to-rotate. The
   min-width:0 on grid/flex children is what actually prevents the mobile
   horizontal overflow (grid items default to min-width:auto and can blow out). */
.pv2 img,
.pv2 canvas { max-width: 100%; }
.pv2-main,
.pv2-main > *,
.pv2-carousel { min-width: 0; }

/* ---------- Header ---------- */
.pv2-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-5); margin-bottom: var(--space-5);
}
.pv2-eyebrow {
  font-family: var(--font-heading); font-size: 24px; letter-spacing: 0.02em;
  color: var(--white); line-height: 1.05;
}
.pv2-sub { color: rgba(255,255,255,0.6); font-size: 15px; margin-top: var(--space-2); max-width: 60ch; }
.pv2-arrows { display: flex; gap: var(--space-3); flex: none; }
.pv2-arrow {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark); background: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none;
  transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
}
.pv2-arrow svg { width: 20px; height: 20px; }
.pv2-arrow:hover { border-color: var(--gold); color: var(--gold); }
.pv2-arrow.is-disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Main split ---------- */
.pv2-main {
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
  margin-bottom: var(--space-6);
}
@media (min-width: 1000px) {
  .pv2-main { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

/* ---------- Stage ---------- */
.pv2-stage-wrap {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #16233A 0%, #0B1522 78%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  min-height: clamp(360px, 56vh, 540px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pv2-chip {
  position: absolute; top: var(--space-4); left: var(--space-4); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(11,21,34,0.7); border: 1px solid var(--border-dark);
  font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}
.pv2-expand {
  position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(11,21,34,0.7); border: 1px solid var(--border-dark);
  color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: border-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.pv2-expand:hover { border-color: var(--gold); color: var(--gold); }
.pv2-expand svg { width: 18px; height: 18px; }

.pv2-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none; padding: var(--space-6);
}
.pv2-stage:active { cursor: grabbing; }
/* soft glow that warms up behind the product as you interact */
.pv2-stage::before {
  content: ""; position: absolute; inset: 12% 18%; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(227,167,18,0.16), rgba(227,167,18,0) 70%);
  opacity: 0; transition: opacity var(--duration-base) var(--ease-standard);
  pointer-events: none;
}
.pv2-stage.is-hovering::before { opacity: 1; }

/* 3D canvas mount fills the stage; no photo overlay (photos live in Overview). */
.pv2-stage-3d { position: absolute; inset: 0; }
.pv2-stage-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.pv2-stage-msg {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  max-width: 34ch; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.5;
}
.pv2-stage-msg svg { color: rgba(255,255,255,0.35); }
.pv2-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.pv2-stage img {
  position: relative; z-index: 1;
  max-width: 82%; max-height: min(78%, 400px); object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,0.6));
  transition: transform 0.18s var(--ease-out-quart);
  will-change: transform;
}
.pv2-photo-pending { color: rgba(255,255,255,0.45); font-size: 14px; text-align: center; }

.pv2-toolbar {
  position: absolute; bottom: var(--space-5); left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: var(--space-2);
  background: rgba(11,21,34,0.8); border: 1px solid var(--border-dark);
  border-radius: 999px; padding: 8px;
  backdrop-filter: blur(6px);
}
.pv2-tool {
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: none; color: rgba(255,255,255,0.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.pv2-tool svg { width: 19px; height: 19px; }
.pv2-tool:hover { background: rgba(227,167,18,0.15); color: var(--gold); }

/* ---------- Info panel ---------- */
.pv2-info {
  background: var(--navy-700);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column;
}
.pv2-name { font-size: var(--text-h1); color: var(--white); line-height: 1.05; }
.pv2-tagline { color: var(--gold); font-size: 14px; margin-top: var(--space-2); }

.pv2-tabs {
  display: flex; gap: var(--space-5); margin-top: var(--space-5);
  border-bottom: 1px solid var(--border-dark);
  /* On mobile the 4 tabs are wider than the viewport; let the BAR scroll
     horizontally in its own box instead of overflowing the page (which caused
     the white gutter on the right). overflow-y:hidden keeps it a single row. */
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.pv2-tabs::-webkit-scrollbar { display: none; }
.pv2-tab {
  background: none; border: none; cursor: pointer;
  flex: none; white-space: nowrap;
  padding: var(--space-3) 0; position: relative;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-base) var(--ease-standard);
}
.pv2-tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out-quart);
}
.pv2-tab:hover { color: rgba(255,255,255,0.85); }
.pv2-tab.is-active { color: var(--white); }
.pv2-tab.is-active::after { transform: scaleX(1); }
.pv2-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.pv2-panels { padding-top: var(--space-5); flex: 1; }
.pv2-panel { display: none; }
.pv2-panel.is-active { display: block; animation: pv2-fade 0.3s var(--ease-out-quart); }
@keyframes pv2-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pv2-panel.is-active { animation: none; } }

/* Overview product-photo gallery */
.pv2-photos {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.pv2-photo {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border-dark);
  background: var(--navy-900); flex: none;
  transition: border-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-out-quart);
}
.pv2-photo:hover { border-color: var(--gold); transform: translateY(-2px); }
.pv2-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pv2-desc { color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.7; }
.pv2-desc p { margin-bottom: var(--space-3); }
.pv2-heading {
  font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin: var(--space-5) 0 var(--space-3);
}
.pv2-panel > .pv2-heading:first-child { margin-top: 0; }

.pv2-features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.pv2-features li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.85); }
.pv2-features svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 1px; }

.pv2-spec-table { width: 100%; border-collapse: collapse; }
.pv2-spec-table tr { border-bottom: 1px solid var(--border-dark); }
.pv2-spec-table tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.pv2-spec-table th, .pv2-spec-table td { text-align: left; padding: 11px 12px; font-size: 13.5px; }
.pv2-spec-table th { color: rgba(255,255,255,0.55); font-weight: 500; width: 46%; }
.pv2-spec-table td { color: var(--white); }

.pv2-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.pv2-app-item { display: flex; align-items: center; gap: var(--space-2); font-size: 13.5px; color: rgba(255,255,255,0.85); }
.pv2-app-item .pv2-ico { width: 16px; height: 16px; color: var(--gold); flex: none; }

.pv2-industries { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pv2-ind-pill {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  background: rgba(227,167,18,0.12); color: var(--gold);
}

.pv2-quickinfo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.pv2-qi-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.pv2-qi-circle {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
}
.pv2-qi-circle .pv2-ico { width: 15px; height: 15px; color: var(--gold); }
.pv2-qi-item span { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.85); }

.pv2-block-btn { width: 100%; }
.pv2-muted { color: rgba(255,255,255,0.45); font-size: 13.5px; }

.pv2-cta { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.pv2-cta .btn { flex: 1; }
.pv2-wa { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.pv2-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.pv2-fulldetails {
  display: inline-block; margin-top: var(--space-4);
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13.5px;
}
.pv2-fulldetails:hover { color: var(--gold); }

/* ---------- Product carousel ---------- */
.pv2-carousel {
  display: flex; gap: var(--space-3); overflow-x: auto;
  padding-bottom: var(--space-3); margin-bottom: var(--space-6);
  scroll-snap-type: x proximity;
}
.pv2-carousel::-webkit-scrollbar { height: 6px; }
.pv2-carousel::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 999px; }
.pv2-thumb {
  position: relative; flex: 0 0 128px; scroll-snap-align: start;
  background: var(--navy-700); border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm); padding: var(--space-3);
  text-decoration: none; text-align: center;
  transition: border-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-out-quart);
}
.pv2-thumb:hover { transform: translateY(-3px); border-color: rgba(227,167,18,0.5); }
.pv2-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pv2-thumb-num {
  position: absolute; top: 8px; left: 8px;
  width: 20px; height: 20px; border-radius: 5px;
  background: rgba(11,21,34,0.85); border: 1px solid var(--border-dark);
  font-size: 11px; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
}
.pv2-thumb.is-active .pv2-thumb-num { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.pv2-thumb-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; margin-bottom: var(--space-2);
  background: var(--navy-900); border-radius: 6px; overflow: hidden;
}
.pv2-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.pv2-thumb-name {
  display: block; font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); line-height: 1.3;
}
.pv2-thumb.is-active .pv2-thumb-name { color: var(--white); }

/* ---------- Trust band ---------- */
.pv2-trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-6);
}
.pv2-trust-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.pv2-trust-item svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.pv2-trust-item b { display: block; font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.03em; color: var(--white); }
.pv2-trust-item span { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }

@media (max-width: 560px) {
  .pv2-app-grid, .pv2-quickinfo { grid-template-columns: 1fr; }
  .pv2-cta { flex-direction: column; }
  .pv2-head { flex-direction: column; }
}

/* ============================================================
   Standard product detail page (.pd) — no 3D visualizer.
   Same navy family as the catalog/visualizer.
   ============================================================ */
.pd {
  background: var(--navy-900); color: var(--white);
  padding-top: calc(var(--header-h, 116px) + var(--space-5));
  padding-bottom: var(--space-9);
  min-height: 100vh;
}
.pd-breadcrumb-current { color: rgba(255,255,255,0.5); }
.pd-section-lead { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: var(--space-3); }
.pd-breadcrumb {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: var(--space-6);
}
.pd-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--gold); }

.pd-main {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 900px) {
  .pd-main { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
}

/* Gallery */
.pd-hero-img {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-md);
  overflow: hidden; background: var(--navy-700); border: 1px solid var(--border-dark);
}
.pd-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero-pending { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-size: 13px; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.pd-thumb {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; padding: 0;
  border: 1px solid var(--border-dark); background: var(--navy-700); cursor: pointer;
  transition: border-color var(--duration-base);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active, .pd-thumb:hover { border-color: var(--gold); }

/* Info */
.pd-cat-pill {
  display: inline-block; margin-bottom: var(--space-4);
  padding: 5px 13px; border-radius: 999px; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
  color: var(--gold); border: 1px solid rgba(227,167,18,0.4); background: rgba(227,167,18,0.08);
}
.pd-cat-pill:hover { background: rgba(227,167,18,0.16); }
.pd-name { font-family: var(--font-heading); font-size: 40px; line-height: 1.05; color: var(--white); }
.pd-tagline { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.6; margin-top: var(--space-3); max-width: 52ch; }
.pd-features { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pd-features li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 14.5px; color: rgba(255,255,255,0.85); }
.pd-features svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 1px; }
.pd-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.pd-datasheet {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4);
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13.5px;
}
.pd-datasheet:hover { color: var(--gold); }
.pd-datasheet svg { color: var(--gold); }

/* Body sections */
.pd-body { max-width: 880px; }
.pd-section { padding-top: var(--space-7); margin-top: var(--space-7); border-top: 1px solid var(--border-dark); }
.pd-body .pd-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.pd-heading { font-family: var(--font-heading); font-size: 22px; letter-spacing: 0.02em; color: var(--white); margin-bottom: var(--space-4); }
.pd-desc { color: rgba(255,255,255,0.78); font-size: 15.5px; line-height: 1.8; }
.pd-desc p { margin-bottom: var(--space-4); max-width: 70ch; }
.pd-desc h2:not(.pd-heading), .pd-desc h3 { color: var(--white); font-family: var(--font-heading); margin: var(--space-5) 0 var(--space-3); }
.pd-desc a { color: var(--gold); }

.pd-spec-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border-dark); border-radius: var(--radius-sm); overflow: hidden;
}
.pd-spec-table th, .pd-spec-table td {
  text-align: left; padding: 14px 18px; font-size: 14.5px; vertical-align: top;
  border-bottom: 1px solid var(--border-dark); line-height: 1.5;
}
.pd-spec-table tr:last-child th, .pd-spec-table tr:last-child td { border-bottom: 0; }
.pd-spec-table tr:nth-child(even) th, .pd-spec-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.pd-spec-table th {
  color: rgba(255,255,255,0.62); font-weight: 500; width: 38%;
  border-right: 1px solid var(--border-dark); background: rgba(255,255,255,0.015);
}
.pd-spec-table td { color: var(--white); }

.pd-app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.pd-app-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border-dark); border-radius: var(--radius-sm); background: var(--navy-700); }
.pd-app-item .pd-ico { width: 24px; height: 24px; color: var(--gold); flex: none; }
.pd-app-item span { font-size: 14px; color: rgba(255,255,255,0.85); }
.pd-industries { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pd-ind-pill { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border-dark); background: var(--navy-700); font-size: 13px; color: rgba(255,255,255,0.8); }

.pd-cta-band {
  margin-top: var(--space-8); padding: var(--space-8) var(--space-6);
  background: var(--navy-700); border: 1px solid var(--border-dark);
  border-radius: var(--radius-md); text-align: center;
}
.pd-cta-band h2 { font-family: var(--font-heading); font-size: 26px; color: var(--white); }
.pd-cta-band p { color: rgba(255,255,255,0.65); font-size: 15px; margin-top: var(--space-2); }
.pd-cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }

/* FAQ accordion */
.pd-faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.pd-faq-item {
  border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
  background: var(--navy-700); overflow: hidden;
}
.pd-faq-item summary {
  list-style: none; cursor: pointer; padding: var(--space-4) var(--space-5);
  font-size: 15px; font-weight: 500; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.pd-faq-item summary::-webkit-details-marker { display: none; }
.pd-faq-item summary::after {
  content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--gold);
  transition: transform var(--duration-base) var(--ease-standard);
}
.pd-faq-item[open] summary::after { content: "\2212"; }
.pd-faq-item summary:hover { color: var(--gold); }
.pd-faq-answer { padding: 0 var(--space-5) var(--space-4); }
.pd-faq-answer p { color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.75; max-width: 72ch; }

/* Related products (internal linking) */
.pd-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}
.pd-related-card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
  background: var(--navy-700); overflow: hidden;
  transition: border-color var(--duration-base), transform var(--duration-base) var(--ease-out-quart);
}
.pd-related-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.pd-related-img { display: block; aspect-ratio: 4 / 3; background: var(--navy-900); }
.pd-related-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-related-name { padding: var(--space-3) var(--space-4); font-size: 13.5px; line-height: 1.35; color: var(--white); }
.pd-related-card:hover .pd-related-name { color: var(--gold); }
.pd-related-all {
  display: inline-block; margin-top: var(--space-5);
  color: var(--gold); text-decoration: none; font-size: 13.5px; letter-spacing: 0.02em;
}
.pd-related-all:hover { color: var(--white); }

/* Bottom "Download Datasheet" band — shown on every product page (detail + visualizer) */
.pd-datasheet-band {
  margin-top: var(--space-7);
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-6);
  background: var(--navy-700); border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}
.pd-datasheet-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(227,167,18,0.1); color: var(--gold);
  border: 1px solid rgba(227,167,18,0.3);
}
.pd-datasheet-text { flex: 1; min-width: 0; }
.pd-datasheet-text h3 { font-family: var(--font-heading); font-size: 18px; letter-spacing: 0.02em; color: var(--white); margin-bottom: 4px; }
.pd-datasheet-text p { font-size: 13.5px; color: rgba(255,255,255,0.6); max-width: 60ch; }
.pd-datasheet-btn { flex: none; white-space: nowrap; }

@media (max-width: 640px) {
  .pd-datasheet-band { flex-direction: column; text-align: center; }
  .pd-datasheet-btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .pd-name { font-size: 30px; }
  .pd-cta { flex-direction: column; }
  .pd-cta .btn { width: 100%; }
  .pd-spec-table th, .pd-spec-table td { padding: 12px 14px; }
}

/* ============================================================
   Resource Center utility pages: Datasheets Directory + Calculator.
   Reuse the .pd-* components above (breadcrumb, cat pill, name, tagline).
   ============================================================ */
.calc-hero { max-width: 720px; margin-bottom: var(--space-7); }

/* Datasheets directory */
.datasheet-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-dark); border-radius: var(--radius-sm); overflow: hidden; }
.datasheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 14px 18px; background: var(--navy-700);
}
.datasheet-row-name { color: var(--white); text-decoration: none; font-size: 14.5px; }
.datasheet-row-name:hover { color: var(--gold); }
.datasheet-row-dl {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(227,167,18,0.4);
  background: rgba(227,167,18,0.08); color: var(--gold);
  text-decoration: none; font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase;
}
.datasheet-row-dl:hover { background: rgba(227,167,18,0.16); }

/* Calculator page layout (used if a future calculator needs the two-column
   form + notes layout; the current client-supplied PVC calculator is a
   self-contained widget and doesn't need these). */
.calc-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 900px) {
  .calc-layout { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.calc-card { background: var(--navy-700); border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: var(--space-6); }
.calc-field { margin-bottom: var(--space-4); }
.calc-field label { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: var(--space-2); }
.calc-field input, .calc-field select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-dark);
  background: var(--navy-900); color: var(--white); font-family: var(--font-body); font-size: 15px;
}
.calc-submit { width: 100%; margin-top: var(--space-2); }
.calc-result { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--navy-900); border: 1px solid var(--border-dark); }
.calc-result-row, .pvc-calc-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-dark); font-size: 14px; }
.calc-result-row:last-child, .pvc-calc-row:last-child { border-bottom: 0; }
.calc-wa { width: 100%; margin-top: var(--space-4); justify-content: center; }
.calc-notes { background: var(--navy-700); border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: var(--space-6); }

/* Shared extras for the 5 engineering calculators (gland packing, insulation,
   gasket sheet, PTFE weight, heat loss) built on top of the .calc-* base. */
.calc-card h2, .calc-notes h2 { font-family: var(--font-heading); font-size: 18px; color: var(--white); margin-bottom: var(--space-4); }
.calc-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 560px) {
  .calc-row-2 { grid-template-columns: 1fr 1fr; }
}
.calc-field select { appearance: auto; }
.calc-field-hint { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; }
.calc-toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-toggle-btn {
  flex: 1 1 auto; min-width: 84px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark); background: var(--navy-900); color: rgba(255,255,255,0.75);
  font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center; transition: all var(--duration-base);
}
.calc-toggle-btn:hover { border-color: var(--gold); color: var(--white); }
.calc-toggle-btn.is-active { border-color: var(--gold); background: rgba(227,167,18,0.12); color: var(--gold); }
.calc-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(227,167,18,0.12); border: 1px solid rgba(227,167,18,0.35); color: var(--gold);
  font-size: 12.5px; font-weight: 600; margin-bottom: var(--space-3);
}
.calc-result-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.45); margin-bottom: var(--space-3); }
.calc-result-row .calc-result-label { color: rgba(255,255,255,0.65); }
.calc-result-row .calc-result-value { color: var(--white); font-weight: 700; }
.calc-result-row.calc-result-highlight .calc-result-value { color: var(--gold); font-size: 17px; }
.calc-recommend { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-sm); background: rgba(227,167,18,0.08); border: 1px solid rgba(227,167,18,0.3); }
.calc-recommend a { color: var(--gold); }
.calc-notes ul { padding-left: 1.2em; }
.calc-notes li { font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: var(--space-2); line-height: 1.6; }
.calc-notes li:last-child { margin-bottom: 0; }

/* ============================================================
   Reference charts (Chemical Compatibility, Heat Resistance).
   Dark .pd theme, horizontally-scrollable data tables.
   ============================================================ */
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }
.chart-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.chart-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-dark); margin-bottom: var(--space-7); }
.chart-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.chart-table th, .chart-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border-dark); border-right: 1px solid var(--border-dark); white-space: nowrap; }
.chart-table th:last-child, .chart-table td:last-child { border-right: 0; }
.chart-table thead th { background: var(--navy-700); color: var(--white); font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em; }
.chart-table td:first-child, .chart-table th:first-child {
  text-align: left; position: sticky; left: 0; background: var(--navy-900); color: var(--white);
  font-weight: 600; white-space: normal; min-width: 200px;
}
.chart-table thead th:first-child { background: var(--navy-900); z-index: 2; }
.chart-table tbody tr:last-child td { border-bottom: 0; }
.chart-table td a { color: inherit; text-decoration: none; }
.chart-table td:first-child a:hover { color: var(--gold); }
.chart-rating {
  display: inline-flex; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.chart-rating-excellent { background: rgba(74,222,128,0.15); color: #4ade80; }
.chart-rating-good { background: rgba(56,189,248,0.15); color: #38bdf8; }
.chart-rating-fair { background: rgba(227,167,18,0.15); color: var(--gold); }
.chart-rating-poor { background: rgba(248,113,113,0.15); color: #f87171; }
.chart-section-title { font-family: var(--font-heading); font-size: 20px; color: var(--white); margin: var(--space-7) 0 var(--space-4); }
.chart-section-title:first-of-type { margin-top: 0; }
.chart-note { font-size: 13.5px; color: rgba(255,255,255,0.55); margin-bottom: var(--space-3); }
