/* =====================================================================
   Dimension Equipment — package-focused detail layout
   Shared by the redesigned equipment pages. Loads after
   equipment-detail.css and reuses its hero, related and CTA styles.
   ===================================================================== */

[id] { scroll-margin-top: 140px; }

/* ---- KEY FIGURES STRIP (directly under the hero) ---- */
.pk-figures {
  background: var(--navy-dark);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pk-figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pk-figure {
  padding: 26px 24px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.pk-figure:first-child { border-left: 0; padding-left: 0; }
.pk-figure-v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--teal-light);
}
.pk-figure-l {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* ---- STICKY JUMP NAV ---- */
.pk-jump {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pk-jump-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pk-jump-inner::-webkit-scrollbar { display: none; }
.pk-jump a {
  flex: 0 0 auto;
  padding: 16px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.pk-jump a:hover { color: var(--navy); }
.pk-jump a.is-current { color: var(--navy-dark); border-bottom-color: var(--teal); }
.pk-jump a.pk-jump-cta {
  margin-left: auto;
  color: var(--teal);
}

/* ---- SECTION HEAD WITH INTRO ---- */
.pk-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.pk-intro h2 { font-size: clamp(30px, 3.6vw, 44px); }
.pk-intro .lede { font-size: 16px; line-height: 1.7; }

/* ---- PACKAGE CARDS (range at a glance) ---- */
.pk-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pk-cards:has(> .pk-card:nth-child(2):last-child),
.pk-cards:has(> .pk-card:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.pk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms;
}
.pk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal);
}
.pk-card-img {
  aspect-ratio: 16 / 10;
  background: #1c2127;
  overflow: hidden;
}
.pk-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
.pk-card:hover .pk-card-img img { transform: scale(1.03); }
.pk-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border-radius: 20px;
}
.pk-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.pk-card-body h3 {
  font-size: 26px;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.pk-card-sub {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.5;
  margin-bottom: 20px;
}
.pk-keyspecs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0 22px;
}
.pk-keyspecs div {
  background: var(--bg-subtle);
  padding: 12px 14px;
}
.pk-keyspecs dt {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg3);
  font-weight: 600;
  margin-bottom: 3px;
}
.pk-keyspecs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.8px;
  color: var(--navy-dark);
  line-height: 1.1;
}
.pk-card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}
.pk-card-link::after { content: ' ↓'; color: var(--teal); }
.pk-card-link::before { content: ''; position: absolute; inset: 0; }

/* ---- COMPARISON TABLE ---- */
.pk-compare-wrap {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--bg);
}
.pk-compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.pk-compare caption {
  caption-side: top;
  text-align: left;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.4px;
  color: var(--navy-dark);
  border-bottom: 1px solid var(--border);
}
.pk-compare th,
.pk-compare td {
  padding: 13px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.pk-compare thead th {
  background: var(--navy-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1.2px;
}
.pk-compare thead th:first-child {
  width: 28%;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.pk-compare tbody th {
  font-weight: 600;
  color: var(--navy-dark);
  font-size: 13px;
}
.pk-compare tbody td {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg1);
}
.pk-compare tbody tr:nth-child(even) { background: var(--bg-subtle); }
.pk-compare tbody tr:last-child th,
.pk-compare tbody tr:last-child td { border-bottom: 0; }

/* ---- PACKAGE DETAIL BLOCKS ---- */
.pk-detail + .pk-detail {
  margin-top: 88px;
  padding-top: 88px;
  border-top: 1px solid var(--border);
}
.pk-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.pk-detail:nth-child(even) .pk-detail-media { order: 2; }
.pk-detail-media {
  position: sticky;
  top: 150px;
}
.pk-detail-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #1c2127;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pk-detail-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 10px;
}
.pk-detail h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 14px;
}
.pk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pk-tags li {
  list-style: none;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.pk-tags { padding: 0; margin-top: 0; }
.pk-detail p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg2);
  margin-bottom: 22px;
}
.pk-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.pk-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg1);
}
.pk-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* Collapsible full specification */
.pk-spec {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.pk-spec summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-dark);
  list-style: none;
}
.pk-spec summary::-webkit-details-marker { display: none; }
.pk-spec summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
}
.pk-spec[open] summary::after { content: '−'; }
.pk-spec[open] summary { border-bottom: 1px solid var(--border); }
.pk-spec table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pk-spec th,
.pk-spec td {
  padding: 11px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.pk-spec tr:last-child th,
.pk-spec tr:last-child td { border-bottom: 0; }
.pk-spec th {
  width: 44%;
  font-weight: 600;
  color: var(--navy-dark);
}
.pk-spec td {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg2);
}
.pk-spec tbody tr:nth-child(even) { background: var(--bg-subtle); }

/* ---- SHARED PLATFORM FEATURES ---- */
.pk-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pk-feature {
  background: var(--bg);
  padding: 30px 28px;
}
.pk-feature h4 {
  font-size: 19px;
  letter-spacing: 1.1px;
  margin-bottom: 10px;
}
.pk-feature h4::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 16px;
}
.pk-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg2);
}

.pk-features + .pk-spec { margin-top: 32px; }

/* Portrait or small renders: show the whole image instead of cropping */
.pk-img-contain img { object-fit: contain; background: #fff; }

/* Two portrait images side by side in a package detail */
.pk-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pk-media-pair .eq-gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: #1c2127;
}
.pk-media-pair .eq-gallery-item img {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.pk-media-pair figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 12px 9px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,34,60,0.85), transparent);
}

/* Inline links inside body copy */
.pk-detail p a,
.pk-ref-also a { color: var(--teal); text-decoration: underline; }

/* ---- PROJECT REFERENCE ---- */
.pk-ref {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.pk-ref-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pk-ref-gallery .eq-gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: #1c2127;
}
.pk-ref-gallery .eq-gallery-item:first-child { grid-column: 1 / -1; }
.pk-ref-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
.pk-ref-gallery .eq-gallery-item:first-child img { aspect-ratio: 16 / 8; }
.pk-ref-gallery .eq-gallery-item:hover img { transform: scale(1.03); }
.pk-ref-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,34,60,0.85), transparent);
}
.pk-ref-body h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin-bottom: 14px;
}
.pk-ref-body > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg2);
  margin-bottom: 24px;
}
.pk-ref-meta {
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
}
.pk-ref-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.pk-ref-meta dt {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fg3);
  font-weight: 700;
  padding-top: 2px;
}
.pk-ref-meta dd { margin: 0; color: var(--navy-dark); font-weight: 500; }
.pk-ref-also {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
}

/* ---- APPLICATIONS (compact chips) ---- */
.pk-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pk-apps li {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--navy-dark);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pk-cards { grid-template-columns: 1fr 1fr; }
  .pk-features { grid-template-columns: 1fr 1fr; }
  .pk-detail-grid,
  .pk-ref { grid-template-columns: 1fr; gap: 36px; }
  .pk-detail:nth-child(even) .pk-detail-media { order: 0; }
  .pk-detail-media { position: static; }
  .pk-intro { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  [id] { scroll-margin-top: 120px; }
  .pk-jump { top: 62px; }
  .pk-figures-grid { grid-template-columns: 1fr 1fr; }
  .pk-figure { padding: 20px 16px; }
  .pk-figure:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pk-figure:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .pk-cards,
  .pk-cards:has(> .pk-card:nth-child(2):last-child),
  .pk-cards:has(> .pk-card:nth-child(4):last-child),
  .pk-features { grid-template-columns: 1fr; }
  .pk-detail + .pk-detail { margin-top: 56px; padding-top: 56px; }
  .pk-compare th, .pk-compare td { padding: 11px 14px; }
  .pk-ref-meta div { grid-template-columns: 90px 1fr; }
}
