/* Additions for family pages, model pages, finder, guide. Uses the existing design tokens. */
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
.pt-sm{padding-top:8px;}
.lead-sm{font-size:16px; color:var(--color-text); margin:10px 0 14px; max-width:760px;}
.muted{font-size:13px; color:var(--color-text-muted); margin:6px 0 18px;}
.mt{margin-top:16px;} .mt-lg{margin-top:48px;}
.section-head.wide{max-width:820px;}
.card-tag{font-size:14px; margin-bottom:12px;}
.check-list{list-style:none; display:grid; gap:10px; margin:12px 0 18px; max-width:820px;}
.check-list li{padding-left:26px; position:relative; color:var(--color-text); font-size:15px;}
.check-list li::before{content:"\2713"; position:absolute; left:0; color:var(--color-success); font-weight:700;}
.num-list{margin:12px 0 18px 22px; display:grid; gap:10px; max-width:820px; font-size:15px; color:var(--color-text);}
.table-wrap{overflow-x:auto; margin-bottom:24px; border-radius:var(--radius-sm);}
.model-table{font-size:13px; min-width:760px;}
.model-table td a{font-weight:700; color:var(--color-secondary);}
.model-table td a:hover{text-decoration:underline;}
tr[hidden]{display:none;}
.stat-row{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:28px 0 40px;}
.stat{background:#fff; border:1px solid var(--color-border); border-radius:var(--radius-md); padding:18px;}
.stat strong{display:block; font-size:26px; color:var(--color-primary); line-height:1.1;}
.stat span{font-size:13px; color:var(--color-text-muted);}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:40px;}
.two-col h2{font-size:20px; margin-bottom:8px;}
.frame-pills{display:flex; gap:8px; flex-wrap:wrap; margin:16px 0;}
.frame-pill{padding:8px 16px; border-radius:20px; border:1px solid var(--color-border); background:#fff; font:inherit; font-size:14px; font-weight:600; color:var(--color-text); cursor:pointer;}
.frame-pill:hover{border-color:var(--color-secondary); color:var(--color-secondary);}
.frame-pill.active{background:var(--color-secondary); border-color:var(--color-secondary); color:#fff;}
.frame-pill:focus-visible, .variant-pill:focus-visible{outline:3px solid rgba(0,85,167,.4); outline-offset:2px;}
.finder-grid.three{grid-template-columns:repeat(3,1fr) auto;}
.spec-finder h2{color:#fff; font-size:18px; margin-bottom:4px;}
.field input{width:100%; padding:12px 14px; border-radius:var(--radius-sm); border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff;}
.field input::placeholder{color:#C9D3EA;}
.steps.four{grid-template-columns:repeat(4,1fr);}
.prose{max-width:860px;}
.prose h2{margin:40px 0 12px; font-size:24px;}
.prose p{margin-bottom:14px; color:var(--color-text); font-size:15px;}
.prose a:not(.btn){color:var(--color-secondary); font-weight:600;}
.toc{display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; padding:14px 18px; background:#fff; border:1px solid var(--color-border); border-radius:var(--radius-md); margin:18px 0 6px; font-size:14px;}
.toc a{color:var(--color-secondary); font-weight:600;}
.finder-form{background:#fff; border:1px solid var(--color-border); border-radius:var(--radius-md); padding:24px; margin-bottom:20px;}
.form-row-4{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; align-items:end;}
.form-row-4 + .form-row-4{margin-top:4px;}
.form-row-4 .span-2{grid-column:span 2;}
.finder-form .form-field input, .finder-form .form-field select{background:var(--color-bg); color:var(--color-text); border:1px solid var(--color-border);}
.count-line{font-size:14px; font-weight:600; color:var(--color-text); margin:6px 0 10px;}
.lead-sm + .variant-links{margin-top:6px;}
.head-tools{display:flex; align-items:center; gap:16px;}
.filter-title{font-size:15px; margin-bottom:16px;}
.filter-group h3{font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--color-text-muted); margin-bottom:12px;}
.product-title h1{font-size:clamp(24px,3vw,32px);}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible{outline:3px solid rgba(0,85,167,.4); outline-offset:2px;}

@media (max-width:900px){
  .stat-row{grid-template-columns:repeat(2,1fr);}
  .two-col{grid-template-columns:1fr; gap:24px;}
  .steps.four{grid-template-columns:repeat(2,1fr);}
  .finder-grid.three{grid-template-columns:1fr 1fr;}
  .form-row-4{grid-template-columns:1fr 1fr;}
  .form-row-4 .span-2{grid-column:span 2;}
}
@media (max-width:560px){
  .steps.four, .finder-grid.three, .form-row-4{grid-template-columns:1fr;}
  .form-row-4 .span-2{grid-column:auto;}
  .head-tools{flex-wrap:wrap;}
}

/* Hero text must line up with the header container (the shorthand padding in styles.css removed the side padding) */
.hero-content{padding-left:24px; padding-right:24px;}

/* Footer paragraphs inherited the dark body-text grey; keep them light on the navy footer */
footer p{color:#B9C3D6;}
footer .footer-contact a{color:#DCE3F1; text-decoration:underline;}

/* ---- fixes from visual review ---- */
/* family cards: buttons side by side, and the family code styled like the product-card label */
.result-card .actions{display:flex; gap:10px; flex-wrap:wrap;}
.result-card .actions .btn{flex:1; padding:11px 14px; font-size:14px; white-space:nowrap;}
.result-card .model{display:block; font-size:12px; font-weight:700; color:var(--color-muted-text); letter-spacing:.04em; text-transform:uppercase;}
.result-card h3{margin:4px 0 8px;}
/* finder form lives on a page that does not load contact.css */
.finder-form .form-field label{display:block; font-size:13px; font-weight:600; color:var(--color-text); margin-bottom:6px;}
.finder-form .form-field input, .finder-form .form-field select{width:100%; padding:11px 14px; border-radius:var(--radius-sm); font:inherit; font-size:14px;}
/* tab panels: breathing room under headings and between paragraphs */
.tab-panel h2{margin-bottom:12px;}
.tab-panel h3{margin:22px 0 10px; font-size:17px;}
.tab-panel p{margin-bottom:14px;}
/* prose pages: align text with the breadcrumb instead of floating in the centre */
.prose{max-width:none;}
.prose > *{max-width:860px;}
@media (max-width:560px){ .product-actions .btn{width:100%;} }
