/* Technology — mockup proportions, dense top-packed cells (no stretch) */
html:has(.page-technology) {
  overflow: hidden;
}

.page-technology.page-shell {
  overflow: hidden;
}

.page-shell .fq-main.tech-screen {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  /* main grid + compact strip — strip must not dominate */
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--insp-bg);
}

.tech-rule {
  border: none;
  border-top: 1px solid rgba(42, 40, 36, 0.2);
  margin: 8px 0 10px;
  width: 48px;
  flex-shrink: 0;
}

/* Mockup: intro ~22% | dims ~40% | specs ~38%; top ~58% / bottom ~42% of content */
.tech-grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(240px, 1.35fr) minmax(210px, 1.15fr);
  grid-template-rows: minmax(0, 1.38fr) minmax(0, 0.9fr);
  border-bottom: 1px solid rgba(42, 40, 36, 0.16);
}

.tech-intro,
.tech-dims,
.tech-specs,
.tech-base,
.tech-mount,
.tech-compat {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, 1.4vh, 16px) clamp(12px, 1.2vw, 18px);
  border-right: 1px solid rgba(42, 40, 36, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

/* Same pin as Materials: BACK at column top */
.tech-intro {
  justify-content: flex-start;
  align-items: stretch;
}

.tech-intro__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-specs,
.tech-compat {
  border-right: none;
}

.tech-base,
.tech-mount,
.tech-compat {
  border-top: 1px solid rgba(42, 40, 36, 0.16);
}

.tech-back {
  display: inline-block;
  flex-shrink: 0;
  align-self: flex-start;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--insp-muted);
  text-decoration: none;
}

.tech-back:hover { color: var(--insp-ink); }

.tech-intro__head {
  flex-shrink: 0;
  margin: 0 0 2px;
}

.tech-intro h1 {
  display: block;
  margin: 0;
  font-family: var(--insp-serif);
  font-size: clamp(1.45rem, 3.2vh, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}

.tech-intro__lead {
  margin: 0;
  flex-shrink: 0;
  max-width: 32ch;
  font-size: clamp(0.6rem, 1.05vh, 0.72rem);
  line-height: 1.45;
  color: var(--insp-muted);
}

.tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: clamp(12px, 1.6vh, 18px);
  flex-shrink: 0;
}

.tech-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--insp-ink);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tech-action__icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(42, 40, 36, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tech-action__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.tech-action:hover .tech-action__icon {
  background: var(--insp-ink);
  color: var(--insp-bg);
  border-color: var(--insp-ink);
}

.tech-dims h2,
.tech-specs h2,
.tech-base h2,
.tech-mount h2,
.tech-compat h2 {
  margin: 0 0 8px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Drawings: fill width, limited height — do not stretch empty flex */
.tech-draw {
  margin: 0;
  flex: 0 1 auto;
  width: 100%;
  color: var(--insp-ink);
  display: block;
}

.tech-draw svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(42vh, 340px);
}

.tech-draw--dims svg {
  max-height: min(46vh, 360px);
}

.tech-draw--base svg,
.tech-draw--mount svg {
  max-height: min(18vh, 140px);
}

/* Specs: compact rows, table height = content, not stretched */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.58rem, 1.05vh, 0.7rem);
  flex: 0 0 auto;
  margin: 0;
}

.tech-table th,
.tech-table td {
  padding: 4px 0;
  border-bottom: 1px solid rgba(42, 40, 36, 0.14);
  vertical-align: baseline;
  line-height: 1.25;
}

.tech-table tr:first-child th,
.tech-table tr:first-child td {
  border-top: 1px solid rgba(42, 40, 36, 0.14);
}

.tech-table th {
  width: 48%;
  font-weight: 500;
  color: var(--insp-muted);
  padding-right: 8px;
  text-align: left;
}

.tech-table td {
  font-weight: 500;
  color: var(--insp-ink);
  text-align: right;
}

/* Bottom cells: drawing + text side by side, top-aligned */
.tech-base__row,
.tech-mount__row {
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  align-items: start;
}

.tech-base__row p,
.tech-mount__copy p {
  margin: 0;
  font-size: clamp(0.58rem, 1.05vh, 0.7rem);
  line-height: 1.4;
  color: var(--insp-muted);
}

.tech-mount__rec {
  margin-top: 8px !important;
  color: var(--insp-ink) !important;
}

.tech-mount__rec strong {
  font-weight: 700;
}

.tech-compat__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-compat__list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  font-size: clamp(0.58rem, 1.05vh, 0.7rem);
  font-weight: 500;
}

.tech-compat__icon {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.tech-compat__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-compat__ok {
  font-size: 11px;
  color: var(--insp-ink);
  opacity: 0.75;
}

.tech-compat h2 + .tech-std,
.tech-compat h2:nth-of-type(2) {
  margin-top: 0;
}

.tech-std {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.tech-std li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(42, 40, 36, 0.12);
  font-size: clamp(0.55rem, 1vh, 0.66rem);
}

.tech-std li span:first-child {
  font-weight: 600;
  color: var(--insp-ink);
}

.tech-std li span:last-child {
  color: var(--insp-muted);
  text-align: right;
}

/* Strip: photo | CTA | 3 feats — compact height like mockup */
.tech-strip {
  display: grid;
  grid-template-columns:
    56px
    minmax(160px, 0.9fr)
    repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 8px clamp(10px, 1.2vw, 16px);
  background: rgba(42, 40, 36, 0.055);
  border-bottom: 1px solid rgba(42, 40, 36, 0.12);
}

.tech-strip__photo {
  margin: 0;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: #cfc8be;
}

.tech-strip__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-strip__cta {
  padding: 0 clamp(12px, 1.5vw, 20px);
  border-right: 1px solid rgba(42, 40, 36, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.tech-strip__cta p {
  margin: 0;
  font-size: clamp(0.52rem, 0.95vh, 0.64rem);
  line-height: 1.35;
  color: var(--insp-muted);
}

.tech-strip__cta a {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--insp-ink);
  text-decoration: none;
}

.tech-strip__cta a:hover {
  text-decoration: underline;
}

.tech-strip__feat {
  padding: 0 clamp(10px, 1.2vw, 16px);
  border-right: 1px solid rgba(42, 40, 36, 0.12);
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.tech-strip__feat:last-child {
  border-right: none;
}

.tech-strip__icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  opacity: 0.88;
}

.tech-strip__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-strip__feat h3 {
  margin: 0 0 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tech-strip__feat p {
  margin: 0;
  font-size: clamp(0.5rem, 0.9vh, 0.6rem);
  line-height: 1.35;
  color: var(--insp-muted);
}

@media (max-width: 1100px) {
  .page-shell .fq-main.tech-screen {
    overflow-y: auto;
    display: block;
    height: auto;
    max-height: 100%;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .tech-intro,
  .tech-dims,
  .tech-specs,
  .tech-base,
  .tech-mount,
  .tech-compat {
    border-right: none;
    border-bottom: 1px solid rgba(42, 40, 36, 0.16);
    overflow: visible;
  }

  .tech-actions {
    margin-top: 16px;
  }

  .tech-draw svg {
    max-height: 280px;
  }

  .tech-strip {
    grid-template-columns: 48px 1fr;
    row-gap: 10px;
  }

  .tech-strip__feat {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid rgba(42, 40, 36, 0.1);
    padding: 8px 0 0;
  }
}

@media (max-width: 780px) {
  .tech-grid,
  .tech-base__row,
  .tech-mount__row {
    grid-template-columns: 1fr;
  }

  .tech-strip {
    grid-template-columns: 1fr;
  }

  .tech-strip__photo {
    display: none;
  }

  .tech-strip__cta {
    border-right: none;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(42, 40, 36, 0.12);
  }
}
