/* ============================================================
   INTERIOR PAGES
   ============================================================ */

/* --- Page hero (compact navy band for interior pages) --- */
.page-hero {
  background: var(--navy-bg);
  color: var(--navy-text);
  padding: calc(var(--space-16) + 64px) 0 var(--space-12);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient-spectrum);
}
.page-hero .eyebrow { color: var(--spectrum-cyan, #2fb6ce); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: var(--space-3) 0 var(--space-4);
  max-width: 18ch;
}
.page-hero p.lede {
  font-size: var(--text-md);
  color: var(--navy-muted);
  max-width: 58ch;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-muted);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-text); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

.technology-article > p,
.technology-article > ul,
.technology-article > ol,
.technology-article > h2,
.application-article > p,
.application-article > ul,
.application-article > ol,
.application-article > h2 {
  max-width: 68ch;
}
.figure-grid {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-8) 0;
  align-items: start;
}
.figure-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.figure-grid--single {
  grid-template-columns: minmax(0, 0.72fr);
}
.figure-grid figure {
  margin: 0;
  min-width: 0;
}
.figure-grid img {
  display: block;
  width: 100%;
  margin: 0;
  background: var(--color-surface);
}
.figure-grid figcaption {
  line-height: 1.45;
}
.application-article .figure-grid--pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.application-article .figure-grid img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: var(--space-2);
}

.stent-media-layout {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  margin: var(--space-8) 0;
}
.stent-media-layout figure {
  margin: 0;
}
.stent-media-layout img {
  display: block;
  width: 100%;
  margin: 0;
}
.stent-media-layout__sample {
  display: grid;
  justify-items: center;
}
.stent-media-layout__sample img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.stent-media-layout__detail {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}
.stent-media-layout__pair {
  margin: 0;
}
.stent-media-layout .dl-list {
  margin: 0;
}

/* --- Product layout: sticky summary + content --- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-12);
  align-items: start;
}
.product-aside {
  position: sticky;
  top: 88px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.product-aside h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
}
.product-aside .btn { width: 100%; justify-content: center; margin-bottom: var(--space-3); }
.product-aside dl { margin: 0 0 var(--space-5); }
.product-aside dt {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-3);
}
.product-aside dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: var(--text-sm);
}

/* --- Spec table --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--space-6) 0;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 500;
  white-space: nowrap;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table--striped tbody tr:nth-child(odd) { background: var(--color-bg); }

/* --- Download list --- */
.dl-list { display: grid; gap: var(--space-3); margin: var(--space-6) 0; }
.dl-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dl-item:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.dl-item svg { flex-shrink: 0; color: var(--color-primary); }
.dl-item strong { display: block; font-size: var(--text-sm); }
.dl-item span { font-size: var(--text-xs); color: var(--color-muted); }

/* --- Software release history --- */
.release-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.release-search {
  display: grid;
  gap: var(--space-2);
  width: min(100%, 560px);
}
.release-search span,
.release-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.release-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  box-shadow: var(--shadow-sm);
}
.release-search input:focus {
  border-color: var(--color-primary);
  outline: 3px solid var(--color-primary-highlight);
}
.release-count {
  margin: 0 0 var(--space-3);
  white-space: nowrap;
}
.release-timeline {
  display: grid;
  gap: var(--space-5);
  position: relative;
}
.release-card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.release-card::before {
  content: '';
  position: absolute;
  inset-block: var(--space-6);
  left: 0;
  width: 4px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--gradient-spectrum);
}
.release-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.release-card h2 {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}
.release-version {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.release-card time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}
.release-card ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.release-tags span {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.release-empty {
  padding: var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

/* --- FAQ accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4em;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding-top: var(--space-4); max-width: 68ch; color: var(--color-muted); line-height: 1.65; }


/* --- Hardened contact form --- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-8);
  align-items: start;
}
.contact-form {
  display: grid;
  gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2);
}
.contact-form p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field--full {
  grid-column: 1 / -1;
}
.field span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field em {
  color: var(--color-primary);
  font-style: normal;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0 var(--space-4);
  font: inherit;
}
.field textarea {
  min-height: 180px;
  padding-top: var(--space-3);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid var(--color-primary-highlight);
}
.contact-field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.form-actions p {
  font-size: var(--text-sm);
}
.contact-aside {
  display: grid;
  gap: var(--space-5);
}
.contact-result .page-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .contact-form {
    padding: var(--space-5);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* --- Page CTA strip (reusable on interior pages) --- */
.page-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-16);
}
.page-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  margin: 0 0 var(--space-1);
}
.page-cta p { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
  /* Keep the MProbe 20 table inside its scrolling container. */
  .product-layout--mprobe-20 { grid-template-columns: minmax(0, 1fr); }
  .product-aside { position: static; }
  .figure-grid--pair,
  .figure-grid--single,
  .stent-media-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .release-toolbar,
  .release-card__head {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-3);
  }
  .release-count {
    margin: 0;
    white-space: normal;
  }
  .release-card {
    padding: var(--space-5);
  }
  .release-card time {
    white-space: normal;
  }
}

