/* Product-family pages. Shared brand styles and existing CAD framing are retained. */
.family-page { background: #eef3f4; }
.family-page::before { opacity: .035; }
.family-page::after { opacity: .35; }
.family-page .wrap { width: min(1200px, 92vw); }
.family-page h1 { max-width: 22ch; font-size: clamp(2.1rem, 4.2vw, 3.7rem); letter-spacing: -.035em; }
.family-page h2 { font-size: clamp(1.6rem, 2.3vw, 2.15rem); letter-spacing: -.025em; }
.family-page h3 { font-size: 1.15rem; }
.family-page .panel { background: #fff; box-shadow: 0 7px 24px #17364a08; }
.family-page .section { padding: 2.3rem 0; }
.family-page .eyebrow { color: #08735e; }
.family-nav-short { display: none; }
.family-nav { display: flex; gap: .45rem; flex-wrap: wrap; padding: 1.2rem 0 0; }
.family-nav a { padding: .45rem .8rem; border: 1px solid #bfd2d8; border-radius: 6px; text-decoration: none; font-size: .88rem; background: #ffffffb3; }
.family-nav a[aria-current="page"] { color: #fff; background: #164c66; border-color: #164c66; }
.family-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2.5rem; padding: 2.3rem 0 3rem; }
.family-hero .sub { font-size: 1.12rem; max-width: 56ch; }
.family-hero figure { margin: 0; background: #fff; border: 1px solid #cbd9dd; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 38px #123a4e0c; }
.family-hero figcaption { padding: 1rem 1.2rem; border-top: 1px solid #dce6e8; font-size: .84rem; color: var(--muted); }
.family-image-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; }
.family-image-frame img { position: absolute; display: block; max-width: none; height: auto; }
.family-pills { display: flex; gap: .45rem; flex-wrap: wrap; list-style: none; margin: 1.1rem 0; padding: 0; }
.family-pills li { border: 1px solid #bdd5d5; background: #f9fffc; border-radius: 4px; padding: .3rem .55rem; font-size: .85rem; }
.family-page .hero-actions { margin-top: 1.2rem; }
.family-page .hero-actions .btn { margin-top: 0; }
.family-lead { max-width: 76ch; margin-bottom: 1.4rem; }
.family-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.family-step { padding: 1.35rem; background: #fff; border: 1px solid #cbd9dd; border-radius: 12px; }
.family-step .step-number { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 1rem; border-radius: 50%; background: #e4f4ee; color: #0b6652; font-size: .88rem; font-weight: 700; }
.family-step p:last-child { margin-bottom: 0; }
.family-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.family-table-wrap { overflow-x: auto; border: 1px solid #cbd9dd; border-radius: 12px; background: white; }
.family-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.family-table th, .family-table td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #d7e3e6; }
.family-table thead { background: #e6f0f1; }
.family-table tbody tr:last-child > * { border-bottom: 0; }
.family-table small { display: block; color: var(--muted); }
.family-note { padding: 1.1rem 1.25rem; background: #e5f2ee; border-left: 4px solid #13856d; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.family-checklist { padding-left: 1.25rem; }
.family-checklist li { margin: .6rem 0; }
.family-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.family-link-card { display: flex; flex-direction: column; padding: 1.45rem; background: #fff; border: 1px solid #c3d5db; border-radius: 12px; text-decoration: none; }
.family-link-card p { color: var(--muted); flex: 1; }
.family-link-card > span:last-child { color: #08699c; font-weight: 600; }
.family-link-card:hover { border-color: #0d8c75; box-shadow: 0 8px 28px #174d6112; }
.family-drawing { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; background: #173b50; color: #fff; border-radius: 14px; padding: 1.8rem; align-items: center; }
.family-drawing p { color: #daeaef; }
.family-drawing .eyebrow { color: #8de0c5; }
.family-drawing .btn { color: #06392c; }
.family-outline { width: 100%; min-height: 160px; color: #b7d8e3; }
.family-outline svg { display: block; width: 100%; height: 180px; }
.family-outline p { font-size: .8rem; text-align: center; margin: .2rem 0 0; }
.family-faq details { background: #fff; border: 1px solid #cbd9dd; border-radius: 8px; padding: 1rem 1.25rem; margin: .7rem 0; }
.family-faq summary { cursor: pointer; font-weight: 600; }
.family-faq details p { max-width: 90ch; color: var(--muted); }
.family-page :is(section, article)[id] { scroll-margin-top: 115px; }
.family-page .cad-card-head { border-bottom: 1px solid #dce6e8; padding-bottom: .6rem; }
.family-page .cad-card-head h3 { font-size: 1.3rem; }
.family-page .cad-cards { gap: 1.5rem; }
[data-cad-gallery] .cad-card[hidden] { display: none; }
.gallery-filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; padding: 1rem; margin: 1.2rem 0; border: 1px solid #bed1d8; border-radius: 10px; background: #fff; align-items: end; }
.gallery-filters label { font-size: .9rem; font-weight: 600; }
.gallery-filters select { display: block; width: 100%; padding: .6rem; margin-top: .35rem; border: 1px solid #9db9c6; border-radius: 5px; background: #fff; color: var(--text); font: inherit; }
.gallery-filters button { min-height: 42px; padding: .6rem 1rem; background: #e7f4ee; border: 1px solid #abc9bf; border-radius: 5px; color: #155240; font: inherit; cursor: pointer; }
.gallery-filters p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .85rem; }
.cad-legacy-note { background: #fff4da; border-left: 4px solid #b97708; padding: .8rem 1rem; border-radius: 0 6px 6px 0; font-size: .92rem; }
.visual-explorer { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1.5rem; align-items: start; }
.image-viewer { background: #fff; border: 1px solid #bdcfd7; border-radius: 14px; padding: 1rem; min-width: 0; }
.image-viewer-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; border: 1px solid #e1e8eb; border-radius: 7px; touch-action: pan-y; }
.image-viewer-stage[data-zoomed="true"] { touch-action: none; cursor: grab; }
.image-viewer-stage[data-dragging="true"] { cursor: grabbing; }
.image-viewer-canvas { position: absolute; inset: 0; transform-origin: center; }
.image-viewer-canvas img { position: absolute; max-width: none; height: auto; pointer-events: none; user-select: none; }
.image-viewer-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.image-viewer button { padding: .45rem .75rem; border: 1px solid #a9c2cb; border-radius: 5px; background: #fff; color: #173b50; font: inherit; font-size: .87rem; cursor: pointer; }
.image-viewer button[aria-pressed="true"] { background: #174d66; color: #fff; border-color: #174d66; }
.image-viewer button:hover { border-color: #07806a; }
.image-viewer button:disabled { opacity: .45; cursor: default; }
.image-viewer button:focus-visible, .family-nav a:focus-visible, .family-link-card:focus-visible { outline: 3px solid #22a58b; outline-offset: 3px; }
.image-viewer-status { color: var(--muted); font-size: .85rem; margin: .8rem 0 .2rem; min-height: 1.5em; }
.image-viewer-caption { color: var(--muted); font-size: .82rem; }
.family-footer-links { margin-top: 1.5rem; }
.family-footer-links a { display: inline-block; min-height: 44px; padding-block: .6rem; }
.family-related { margin: 2rem 0; }
.family-related h2 { font-size: 1.4rem; }
.family-related .family-link-card { box-shadow: none; }
.family-page .family-lead .eyebrow { margin-bottom: .6rem; }
.section-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; border-block: 1px solid #c1d4d9; padding: .85rem 0; }
.section-links a { color: #155b76; font-size: .9rem; font-weight: 600; text-underline-offset: .2em; }
.system-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; counter-reset: stage; }
.system-flow li { position: relative; background: #fff; border: 1px solid #c3d5db; border-top: 4px solid #18856e; padding: 1.2rem; border-radius: 9px; }
.system-flow h3 { margin-top: .65rem; }
.system-flow p { font-size: .94rem; margin-bottom: 0; color: var(--muted); }
.flow-index { display: inline-grid; place-items: center; border-radius: 50%; width: 30px; height: 30px; background: #e6f3ee; color: #09654f; font-weight: 700; }
.reference-caption { color: #496674; font-size: .87rem; max-width: 95ch; }
.integration-levels, .ion-path-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.integration-levels article, .path-card { border: 1px solid #bbd0d8; border-radius: 12px; padding: 1.4rem; background: #fff; min-width: 0; }
.integration-levels article:last-child { background: #eaf5f1; }
.scope-label { display: inline-block; padding: .3rem .65rem; border-radius: 4px; background: #174e67; color: #fff; font-size: .85rem; }
.integration-levels h3 { font-size: 1.3rem; }
.integration-levels li { margin: .6rem 0; }
.source-selection { margin-top: 1.5rem; }
.path-card svg { display: block; width: 100%; height: auto; margin: 1rem 0; }
.path-card svg rect { fill: #edf7f3; stroke: #75a99b; stroke-width: 1.5; }
.path-card svg path { stroke: #127965; stroke-width: 4; fill: none; }
.path-card svg text { fill: #163f54; text-anchor: middle; font: 20px system-ui,sans-serif; }
.path-card svg .path-label { fill: #096b55; font-size: 18px; }
.path-sequence { display: none; }
.reference-elevations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.family-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.reference-elevations figure { margin: 0; background: #fff; border: 1px solid #bdcfd7; border-radius: 10px; overflow: hidden; }
.reference-elevations a { display: block; }
.reference-elevations figcaption { border-top: 1px solid #d7e4e6; padding: .85rem 1rem; font-weight: 600; }
.reference-elevations figcaption span { float: right; color: #186387; font-size: .8rem; font-weight: 400; }
.elevation-reference:focus-visible, .section-links a:focus-visible { outline: 3px solid #13866f; outline-offset: -3px; }
@media (max-width: 900px) {
  .family-hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .family-hero figure { max-width: 720px; width: 100%; }
  .family-hero h1 { max-width: 24ch; }
  .family-split, .visual-explorer { grid-template-columns: 1fr; }
  .family-step-grid, .family-link-grid { grid-template-columns: 1fr 1fr; }
  .family-drawing { grid-template-columns: 1fr; }
  .system-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ion-path-grid { grid-template-columns: 1fr; }
  .path-card svg { max-width: 620px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .family-page .links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .family-page .crumbs { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .family-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .family-nav a { display: flex; justify-content: center; align-items: center; min-height: 46px; padding: .4rem .25rem; font-size: .78rem; line-height: 1.25; text-align: center; }
  .family-nav-full { display: none; }
  .family-nav-short { display: inline; }
  .family-hero { display: flex; flex-direction: column; align-items: stretch; padding: 1.4rem 0 1.8rem; gap: .8rem; }
  .family-hero > div { display: contents; }
  .family-hero > div > .eyebrow { order: 0; margin: 0; }
  .family-hero h1 { order: 1; margin: 0; }
  .family-hero > div > .sub { order: 2; margin: 0; font-size: 1rem; }
  .family-hero > figure { order: 3; }
  .family-hero .family-pills { order: 4; margin: .2rem 0; }
  .family-hero .family-pills li { font-size: .75rem; padding: .2rem .4rem; }
  .family-hero .hero-actions { order: 5; margin-top: .2rem; }
  .family-page .section { padding: 1.55rem 0; }
  .family-step-grid, .family-link-grid { grid-template-columns: 1fr; }
  .family-table th, .family-table td { padding: .7rem; font-size: .85rem; }
  .family-table { min-width: 0; display: block; }
  .family-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .family-table tbody, .family-table tr { display: block; }
  .family-table tr { border-bottom: 1px solid #c4d5dc; }
  .family-table tr:last-child { border-bottom: 0; }
  .family-table th[scope="row"] { display: block; background: #e6f0f1; font-size: 1rem; }
  .family-table td { display: grid; grid-template-columns: 1fr 1.25fr; gap: .5rem; }
  .family-table td::before { content: attr(data-label); font-weight: 600; }
  .family-drawing { padding: 1.25rem; }
  .family-page .hero-actions .btn { width: 100%; text-align: center; }
  .family-page .panel { padding: 1rem; }
  .gallery-filters { grid-template-columns: 1fr; }
  .image-viewer { padding: .65rem; }
  .image-viewer button { min-height: 44px; padding: .45rem .65rem; }
  .family-page :is(section, article)[id] { scroll-margin-top: 170px; }
  .section-links { gap: .65rem 1rem; }
  .system-flow, .integration-levels, .reference-elevations, .family-document-grid { grid-template-columns: 1fr; }
  .system-flow li { padding: 1rem 1rem 1rem 3.8rem; }
  .flow-index { position: absolute; left: 1rem; top: 1rem; }
  .system-flow h3 { margin-top: 0; }
  .integration-levels article, .path-card { padding: 1rem; }
  .path-card svg { display: none; }
  .path-sequence { display: grid; gap: .5rem; padding: .9rem 1rem .9rem 2.7rem; background: #edf7f3; border-radius: 7px; }
  .path-sequence li { font-size: 1rem; padding-left: .2rem; }
  .reference-elevations figcaption { font-size: .9rem; }
  .reference-elevations figcaption span { font-size: .76rem; }
}
@media (max-width: 350px) {
  .family-page .links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ardara-pass5-families start */
/* Keep sticky navigation, focus and captions consistent across the three families. */
.family-page :is(section,article,main)[id]{scroll-margin-top:var(--header-offset)}
.family-page :is(a,button,select,summary,[tabindex="0"]):focus-visible{outline:3px solid var(--focus);outline-offset:3px;box-shadow:0 0 0 2px #fff}
.family-page .elevation-reference:focus-visible,.family-page .cad-view:focus-visible,.family-page .image-viewer-stage:focus-visible{outline-offset:-3px}
.family-link-card>span:not(.sr-only){color:#0b5687;font-weight:600}
.image-viewer-stage:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.gallery-filters button{min-height:44px}
.family-page .archive-access-note{margin-top:1rem}
.family-page #documentation .reference-caption a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;vertical-align:middle}
/* ardara-pass5-families end */

/* ardara-pass7-merge start */
/* Probe anatomy and legacy links use the established family layout. */
.representative-parts{padding-top:0}
.representative-parts .family-step{min-width:0}
.legacy-probe-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.legacy-probe-links p{margin:0}
.legacy-probe-links a{display:flex;align-items:center;min-height:60px;padding:1rem;background:var(--panel);border:1px solid var(--line);border-radius:12px;font-weight:600;text-underline-offset:.2em}
@media(max-width:680px){.legacy-probe-links{grid-template-columns:1fr}}
/* ardara-pass7-merge end */
