/* Shared catalog detail. Deliberately separate from legacy .btn/.card rules. */
body:has(.rf-detail){margin:0;background:#fafcfb}
body:has(.rf-detail) *,body:has(.rf-detail) *::before,body:has(.rf-detail) *::after{box-sizing:border-box}
.rf-detail{--rf-ink:#162b24;--rf-muted:#566760;--rf-line:#dce6e0;box-sizing:border-box;width:min(900px,calc(100% - 40px));margin:0 auto;padding:38px 0 40px;color:var(--rf-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.rf-detail *{box-sizing:border-box}
.rf-detail [hidden]{display:none!important}
.rf-detail .rf-intro{padding:0;margin:0 0 28px;background:none;border:0;box-shadow:none;position:static}
.rf-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;font-size:13px;line-height:1.5;color:var(--rf-muted);margin-bottom:20px}
.rf-crumb a{color:#256048;text-decoration:none;font-weight:600}
.rf-detail h1{margin:0 0 12px;max-width:800px;font-size:clamp(30px,4.3vw,44px);font-weight:750;line-height:1.13;letter-spacing:-.035em;color:var(--rf-ink);overflow-wrap:anywhere}
.rf-description{font-size:17px;line-height:1.6;color:var(--rf-muted);max-width:680px;margin:0 0 15px}
.rf-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 22px;padding:0;list-style:none;font-size:13px;color:var(--rf-muted)}
.rf-meta li+li{padding-left:14px;border-left:1px solid #c8d8ce}
.rf-actions{display:flex;flex-wrap:wrap;gap:10px}
.rf-detail .rf-action{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;max-width:100%;padding:12px 20px;border:1px solid transparent;border-radius:10px;font:650 15px/1.4 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .15s,border-color .15s}
.rf-detail .rf-action--primary{background:#176b47;color:#fff;border-color:#176b47}
.rf-detail .rf-action--primary:hover{background:#125638;border-color:#125638}
.rf-detail .rf-action--secondary{color:#245440;border-color:#bccfc4;background:#fff}
.rf-detail .rf-action--secondary:hover{background:#f0f7f3;border-color:#7eab93}
.rf-detail :is(a,button,summary):focus-visible{outline:3px solid #579f7a;outline-offset:4px}
.rf-next{font-size:13px;line-height:1.5;color:var(--rf-muted);margin:12px 0 0;max-width:560px}
.rf-panel{border:1px solid var(--rf-line);border-radius:12px;background:#fff;margin:0 0 12px;box-shadow:none;overflow:clip;scroll-margin-top:90px}
.rf-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;min-height:60px;cursor:pointer;list-style:none;color:var(--rf-ink);font-size:16px;font-weight:650;line-height:1.4}
.rf-panel>summary::-webkit-details-marker{display:none}
.rf-panel>summary small{font-size:12px;color:var(--rf-muted);font-weight:500;margin-left:6px}
.rf-chevron{width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin-right:3px;align-self:center}
.rf-panel[open]>summary .rf-chevron{transform:rotate(225deg)}
.rf-panel[open]>summary{border-bottom:1px solid var(--rf-line)}
.rf-preview-body{padding:0 20px 20px}
.rf-test-note{padding:12px 0;margin:0;font-size:13px;line-height:1.5;color:#456b57}
.rf-preview-frame{display:block;width:100%;height:500px;border:0;background:#fff}
.rf-preview-status,.rf-unavailable{font-size:14px;line-height:1.55;color:var(--rf-muted);margin:16px 0}
.rf-after-preview{border-top:1px solid var(--rf-line);padding-top:20px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.rf-after-preview p{margin:0;font-size:16px;font-weight:600}
.rf-fields ol{margin:0;padding:8px 20px 12px 44px;color:var(--rf-muted);font-size:15px;line-height:1.5}
.rf-fields li{padding:9px 0 9px 4px;border-bottom:1px solid #edf1ee}
.rf-fields li:last-child{border:0}
.rf-fields li::marker{color:#80948a;font-size:12px}
.rf-fields>p{padding:0 20px}
.rf-browse{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:#315a45;text-decoration:none}
.rf-browse:hover,.rf-related a:hover,.rf-crumb a:hover{text-decoration:underline;text-underline-offset:3px}
.rf-related{border-top:1px solid var(--rf-line);padding:20px 0 0;margin-top:18px;font-size:14px;line-height:1.5}
.rf-related p{margin:0 0 4px;color:var(--rf-muted)}
.rf-related a{color:#315a45;font-weight:600;text-decoration:none}
/* Only the existing interactive renderer embedded by this detail gets this class. */
html:has(body.rf-preview-document){height:auto!important;min-height:0!important}
body.rf-preview-document{height:auto!important;min-height:0!important;background:#fff!important;padding:0!important;margin:0!important}
body.rf-preview-document .wrap{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.rf-preview-document .interactive-preview-note,body.rf-preview-document .rf-embedded-title{display:none!important}
/* Consent remains available in the parent page, instead of a second banner in the embed. */
body.rf-preview-document .ecofyx-cc-bar{display:none!important}
body.rf-preview-document .q{margin:0!important;padding:18px 0!important;border:0!important;border-bottom:1px solid #e7ede9!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
body.rf-preview-document .q h3{font-size:16px!important;line-height:1.45!important;color:#20352b}
body.rf-preview-document .q :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px}
body.rf-preview-document .help{font-size:13px;line-height:1.5}
body.rf-preview-document .opt{min-height:44px}
body.rf-preview-document .card{box-shadow:none!important}
@media(max-width:760px){
  .rf-detail{width:calc(100% - 32px);padding:24px 0 28px}
  .rf-detail h1{font-size:32px;line-height:1.14}
  .rf-crumb{font-size:12px;margin-bottom:16px;gap:4px 7px}
  .rf-description{font-size:16px;margin-bottom:12px}
  .rf-meta{margin-bottom:18px}
  .rf-actions{display:grid;grid-template-columns:1fr}
  .rf-actions .rf-action{width:100%}
  .rf-panel>summary{padding:16px;min-height:56px;font-size:15px}
  .rf-preview-body{padding:0 14px 16px}
  .rf-after-preview{display:grid;gap:12px}
  .rf-after-preview .rf-action{width:100%}
  .rf-fields ol{padding-left:38px;padding-right:16px}
}
@media(prefers-reduced-motion:reduce){.rf-detail .rf-action{transition:none}}
