/* Reference-detail refinement only. Shared header and model styles remain intact. */
.reference-detail{--rd-ink:#0b0b0c;--rd-paper:#f0eee8;--rd-muted:#c4beb4;--rd-fire:#ff754d;background:var(--rd-ink);color:var(--rd-paper)}
.reference-detail .rd-label{margin:0 0 14px;font-size:12px;line-height:1.5;letter-spacing:.09em;text-transform:uppercase;color:var(--rd-muted)}
.reference-detail :is(.rd-hero,.rd-context,.rd-evidence,.rd-contact,.rd-related) a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.reference-detail .rd-hero,.reference-detail .rd-context,.reference-detail .rd-evidence,.reference-detail .rd-contact,.reference-detail .rd-related{padding-inline:clamp(20px,6vw,100px)}
.reference-detail .rd-hero{padding-top:126px;padding-bottom:64px}
.reference-detail .rd-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;font-size:12px;line-height:1.5;margin-bottom:25px;color:var(--rd-muted)}
.reference-detail .rd-crumbs a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:5px;color:inherit}
.reference-detail .rd-hero-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:center;gap:clamp(28px,4vw,70px)}
.reference-detail .rd-intro{min-width:0}
.reference-detail .rd-intro h1{font-size:clamp(38px,4.6vw,66px);line-height:1.07;font-weight:750;letter-spacing:-.028em;margin:0 0 22px;text-transform:uppercase;max-width:none;overflow-wrap:normal}
.reference-detail .rd-lead{font-size:18px;line-height:1.6;max-width:49ch;margin:0 0 24px;color:var(--rd-muted)}
.reference-detail .rd-actions{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;margin-bottom:26px}
.reference-detail .rd-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:13px 18px;border:1px solid var(--rd-fire);background:var(--rd-fire);color:var(--rd-ink);font-size:14px;font-weight:650;line-height:1.5;text-decoration:none}
.reference-detail .rd-primary:hover{background:#ffa58b;border-color:#ffa58b}
.reference-detail .rd-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding-block:10px;font-size:14px;line-height:1.5;text-underline-offset:5px}
.reference-detail .rd-role{margin:0;padding-top:18px;border-top:1px solid #48443e;display:block}
.reference-detail .rd-role dt{margin-bottom:7px;font-size:12px;line-height:1.5;color:var(--rd-muted)}
.reference-detail .rd-role dd{margin:0;font-size:14px;line-height:1.5;max-width:48ch}
.reference-detail .rd-cover{margin:0;min-width:0}
.reference-detail .rd-cover>a{display:block;border:1px solid #4b4942}
.reference-detail .rd-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;filter:none;transform:none}
.reference-detail .rd-cover figcaption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;margin-top:12px;font-size:12px;line-height:1.5;color:var(--rd-muted)}
.reference-detail .rd-cover figcaption a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--rd-paper);text-underline-offset:5px}
.reference-detail .rd-paper{background:var(--rd-paper);color:var(--rd-ink)}
.reference-detail .rd-paper .rd-label{color:#61584f}
.reference-detail .rd-context{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:36px 7vw;padding-block:64px 40px}
.reference-detail .rd-context h2,.reference-detail .rd-evidence h2,.reference-detail .rd-contact h2{font-size:clamp(31px,3.8vw,54px);font-weight:550;line-height:1.1;letter-spacing:-.018em;margin:0;text-transform:none;overflow-wrap:normal}
.reference-detail .rd-paper h2 span{color:#74685d}
.reference-detail .rd-context-copy h3{font-size:16px;line-height:1.4;font-weight:650;margin:0 0 10px}
.reference-detail .rd-context-copy p{font-size:16px;line-height:1.7;margin:0 0 25px;max-width:60ch}
.reference-detail .rd-context-copy p:last-child{margin-bottom:0}
.reference-detail .rd-evidence{padding-block:32px 64px;scroll-margin-top:100px}
.reference-detail .rd-section-head{border-top:1px solid #bcb4aa;padding-top:40px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px 7vw;align-items:end;margin-bottom:32px}
.reference-detail .rd-section-head>p{font-size:16px;line-height:1.7;max-width:49ch;margin:0}
.reference-detail .rd-proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.reference-detail .rd-proof{margin:0;min-width:0}
.reference-detail .rd-proof-media{display:flex;justify-content:center;align-items:center;height:clamp(210px,24vw,340px);padding:12px;border:1px solid #c2bbb1;background:#e3e0d9}
.reference-detail .rd-proof-media img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;filter:none;transform:none}
.reference-detail .rd-proof figcaption{padding-top:20px}
.reference-detail .rd-proof figcaption .rd-label{margin-bottom:9px}
.reference-detail .rd-proof h3{font-size:clamp(21px,1.9vw,27px);line-height:1.2;font-weight:600;margin:0 0 12px;letter-spacing:-.01em}
.reference-detail .rd-proof figcaption>p:last-child{font-size:15px;line-height:1.7;margin:0;max-width:57ch}
.reference-detail .rd-evidence-note{font-size:12px;line-height:1.65;margin:28px 0;color:#5f574f;max-width:92ch}
.reference-detail .rd-output{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px;padding-top:28px;border-top:1px solid #bcb4aa}
.reference-detail .rd-output .rd-label{margin-bottom:8px}
.reference-detail .rd-output p:last-child{font-size:17px;line-height:1.65;margin:0;max-width:65ch}
.reference-detail .rd-contact{padding-block:64px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 7vw}
.reference-detail .rd-contact h2{max-width:21ch}
.reference-detail .rd-contact>div>p:not(.rd-label){font-size:17px;line-height:1.7;margin:0 0 24px;max-width:53ch}
.reference-detail .rd-contact .rd-primary{background:#111;color:#f0eee8;border-color:#111}
.reference-detail .rd-contact .rd-primary:hover{background:#34312c}
.reference-detail .rd-service{display:block;padding-block:13px;min-height:44px;font-size:13px;line-height:1.5;text-underline-offset:5px;margin-top:8px}
.reference-detail .rd-related{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px 7vw;padding-block:32px 48px;align-items:center}
.reference-detail .rd-back{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.5;text-underline-offset:5px;justify-self:start}
.reference-detail .rd-related-card{display:flex;align-items:center;gap:20px;min-width:0;text-decoration:none}
.reference-detail .rd-related-card img{width:128px;height:auto;aspect-ratio:16/9;object-fit:contain;filter:none;flex-shrink:0}
.reference-detail .rd-related-card>span{display:flex;flex-direction:column;gap:8px;min-width:0}
.reference-detail .rd-related-card .rd-label{margin:0;font-size:11px}
.reference-detail .rd-related-card strong{font-size:20px;line-height:1.2;font-weight:600}
.reference-detail .rd-related-card>span>span:last-child{font-size:13px;line-height:1.5;color:var(--rd-muted);max-width:48ch}
@media(max-width:900px){
 .reference-detail .rd-hero-grid{grid-template-columns:minmax(0,1fr);gap:32px}
 .reference-detail .rd-hero{padding-top:106px;padding-bottom:40px}
 .reference-detail .rd-intro h1{font-size:clamp(36px,7vw,58px)}
 .reference-detail .rd-hero .rd-lead{max-width:58ch}
 .reference-detail .rd-cover{max-width:780px}
 .reference-detail .rd-context,.reference-detail .rd-section-head,.reference-detail .rd-contact,.reference-detail .rd-related{grid-template-columns:minmax(0,1fr);gap:28px}
 .reference-detail .rd-context,.reference-detail .rd-contact{padding-block:44px}
 .reference-detail .rd-output{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:550px){
 .reference-detail .rd-hero,.reference-detail .rd-context,.reference-detail .rd-evidence,.reference-detail .rd-contact,.reference-detail .rd-related{padding-inline:20px}
 .reference-detail .rd-hero{padding-top:88px;padding-bottom:32px}
 .reference-detail .rd-crumbs{margin-bottom:20px;gap:0 9px;font-size:11px}
 .reference-detail .rd-intro h1{font-size:36px;line-height:1.1;margin-bottom:16px}
 .reference-detail .rd-lead{font-size:16px;line-height:1.6;margin-bottom:18px}
 .reference-detail .rd-actions{gap:4px 16px;margin-bottom:18px}
 .reference-detail .rd-primary,.reference-detail .rd-link{font-size:13px}
 .reference-detail .rd-role{padding-top:12px}
 .reference-detail .rd-role dt{font-size:11px;margin-bottom:5px}
 .reference-detail .rd-role dd{font-size:13px}
 .reference-detail .rd-label{font-size:11px;margin-bottom:12px}
 .reference-detail .rd-cover figcaption{font-size:11px;margin-top:5px}
 .reference-detail .rd-context-copy p{font-size:15px}
 .reference-detail .rd-proof-grid{grid-template-columns:minmax(0,1fr);gap:28px}
 .reference-detail .rd-proof-media{height:230px}
 .reference-detail .rd-evidence{padding-bottom:40px}
 .reference-detail .rd-section-head{padding-top:30px;margin-bottom:26px}
 .reference-detail .rd-related-card img{width:90px}
 .reference-detail .rd-related-card{gap:16px}
 .reference-detail .rd-related-card strong{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.reference-detail a{transition:none!important}}
html.motion-off .reference-detail a{transition:none!important}
