/* YAS-RD25-CP3-FIX-001: approved CP3 review fixes. Same layer as existing CP3, loaded last. */
@layer rd25cp3 {
/* Retire legacy item placement; seven offers really share one desktop row. */
html#rd25-page[data-rd25-template="T1"] .offer-index > a,
html#rd25-page[data-rd25-template="T1"] .final-links > a {
  grid-column:auto !important; grid-row:auto !important; min-width:0 !important;
}
@media(min-width:1100px){
  html#rd25-page[data-rd25-template="T1"] .offer-index {grid-template-columns:repeat(7,minmax(0,1fr)) !important;}
}
html#rd25-page[data-rd25-template="T1"] .home-comparison {position:relative !important; isolation:isolate;}
html#rd25-page[data-rd25-template="T1"] .rd25-browser-frame {
  position:absolute !important; left:0; top:42px; width:92%; z-index:-1;
  background:var(--paper); border-radius:14px; overflow:hidden; border:1px solid var(--navy-border);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.6); pointer-events:none;
}
html#rd25-page[data-rd25-template="T1"] .rd25-browser-chrome {height:28px;background:var(--sand);display:flex;gap:6px;align-items:center;padding:0 12px;}
html#rd25-page[data-rd25-template="T1"] .rd25-browser-chrome i {width:8px;height:8px;background:var(--line);border-radius:50%;}
html#rd25-page[data-rd25-template="T1"] .rd25-browser-frame img {display:block !important;width:100% !important;height:auto !important;aspect-ratio:1440/1000;object-fit:cover !important;object-position:top !important;}
html#rd25-page[data-rd25-template="T1"] .home-comparison .shot-link {align-self:flex-end !important;margin-left:auto !important;margin-right:4% !important;}
/* The Brain card is a stack, not another two-column grid inside a card. */
html#rd25-page[data-rd25-template="T1"] #work-details .brain-evidence > article {display:flex !important;flex-direction:column !important;gap:16px !important;padding:24px !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .brain-evidence > article > * {min-width:0 !important;width:100% !important;max-width:none !important;box-sizing:border-box !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .brain-sample {padding:20px !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .work-scope,
html#rd25-page[data-rd25-template="T1"] #work-details .lead-definition {padding:24px !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .work-scope .evidence-refund {padding-inline:8px !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy p.lead {width:100% !important;max-width:none !important;}
/* Place the existing caption beside the covers without changing source text order or URLs. */
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip {grid-template-columns:repeat(4,minmax(0,1fr)) minmax(300px,3.5fr) !important;gap:18px !important;align-items:center !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .book-covers,
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book {display:contents !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book > img {grid-column:1 !important;grid-row:1/3 !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .book-covers > a:not(.new-book) {grid-row:1/3 !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .book-covers > a:nth-child(2) {grid-column:2 !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .book-covers > a:nth-child(3) {grid-column:3 !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .book-covers > a:nth-child(4) {grid-column:4 !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book-caption {grid-column:5 !important;grid-row:1 !important;align-self:end !important;margin:0 !important;padding:22px !important;border:1px solid #FFD2B0;border-radius:18px;background:#FFF1E6;color:var(--navy) !important;font:400 28px/1.15 var(--font-display) !important;letter-spacing:-.02em;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip > div:last-child {grid-column:5 !important;grid-row:2 !important;align-self:start !important;}
html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book:focus-visible > * {outline:3px solid var(--orange-text) !important;outline-offset:4px !important;}
/* Only the inner founder/FAQ grid has two content children. Outer sections are containers. */
html#rd25-page[data-rd25-template="T1"] main > .founder,
html#rd25-page[data-rd25-template="T1"] main > .faq {display:block !important;}
html#rd25-page[data-rd25-template="T1"] .founder .founder-grid {display:grid !important;grid-template-columns:minmax(0,45fr) minmax(0,55fr) !important;gap:48px !important;align-items:center !important;}
html#rd25-page[data-rd25-template="T1"] .founder-grid > img.founder-portrait {margin:0 !important;width:100% !important;max-width:none !important;height:auto !important;aspect-ratio:4/5 !important;object-fit:cover !important;border-radius:28px !important;}
html#rd25-page[data-rd25-template="T1"] .founder-grid > div {min-width:0 !important;}
html#rd25-page[data-rd25-template="T1"] .credentials {grid-template-columns:repeat(auto-fit,minmax(150px,1fr)) !important;}
html#rd25-page[data-rd25-template="T1"] .founder-grid .credentials > div {min-width:0 !important;}
html#rd25-page[data-rd25-template="T1"] main > .wf-proof {width:100% !important;max-width:none !important;margin-inline:0 !important;box-sizing:border-box !important;padding:var(--section-y) max(40px,calc((100% - 1160px)/2)) !important;}
html#rd25-page[data-rd25-template="T1"] main > .wf-proof .wf-proof-volume {font:400 clamp(44px,5vw,76px)/1 var(--font-display) !important;letter-spacing:-.02em;max-width:100% !important;color:var(--paper) !important;}
html#rd25-page[data-rd25-template="T1"] .faq .faq-layout {grid-template-columns:minmax(0,40fr) minmax(0,60fr) !important;gap:48px !important;}
html#rd25-page[data-rd25-template="T1"] .final-links {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)) !important;align-items:stretch !important;}
html#rd25-page[data-rd25-template="T1"] .final-links > a {width:auto !important;margin-inline:0 !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy .text-link {display:inline-flex !important;align-items:center;min-height:56px !important;padding:0 26px !important;border-radius:12px !important;text-decoration:none !important;font:600 16px/1 var(--font-ui) !important;}
/* Pull-quote specificity must outrank the generic letter paragraph selector. */
html#rd25-page[data-rd25-template="T2"] main .mr-letter-section p.rd25-pull-quote,
html#rd25-page[data-rd25-template="T2"] main .mr-letter-section p.mr-call-quote {font:400 30px/1.25 var(--font-display) !important;color:var(--navy) !important;letter-spacing:-.02em;margin-block:32px !important;}
html#rd25-page[data-rd25-template="T2"] main .mr-letter-section p.rd25-pull-quote-orange {color:var(--orange-text) !important;}
html#rd25-page[data-rd25-template="T2"] main .mr-letter-section p.mr-call-quote {font-size:34px !important;color:var(--orange-text) !important;}
html#rd25-page[data-rd25-template="T2"] .mr-parts > ul {grid-template-columns:repeat(auto-fit,minmax(min(100%,332px),1fr)) !important;}
/* Keep the bathroom drain outcome in its original slot; the exterior owns the home section. */
html#rd25-page[data-rd25-template="T11-after"] .home-outcome {width:100% !important;max-width:1200px !important;margin-inline:auto !important;background:var(--sdc-cream) !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:56px !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .sdc-home-exterior {grid-column:1 !important;grid-row:1 !important;width:100% !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy {grid-column:2 !important;grid-row:1 !important;min-width:0 !important;padding:0 !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy h2 {color:var(--sdc-green) !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy p {color:var(--sdc-green) !important;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy p:not(.lead) {background:#EAE5D6 !important;color:var(--sdc-green) !important;padding:16px 18px !important;border-radius:12px;}
html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy .text-link {background:var(--sdc-green) !important;color:var(--sdc-cream) !important;}
html#rd25-page[data-rd25-template="T11-after"] .service-process {display:block !important;}
html#rd25-page[data-rd25-template="T11-after"] .service-process ol {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(min(100%,332px),1fr)) !important;gap:18px !important;width:100% !important;}
html#rd25-page[data-rd25-template="T11-after"] .service-process li {min-width:0 !important;padding:24px !important;height:100% !important;align-self:stretch !important;}
html#rd25-page[data-rd25-template="T11-after"] footer.wrap {display:block !important;width:100% !important;max-width:none !important;margin:0 !important;padding:48px 0 !important;}
html#rd25-page[data-rd25-template="T11-after"] footer .rd25-drain-footer-row {box-sizing:border-box !important;display:grid !important;grid-template-columns:auto minmax(280px,1fr) auto !important;align-items:center !important;gap:24px !important;max-width:1200px !important;padding:0 40px !important;margin:0 auto !important;}
html#rd25-page[data-rd25-template="T11-after"] footer .rd25-drain-footer-row > * {grid-row:auto !important;grid-column:auto !important;min-width:0 !important;margin:0 !important;max-width:none !important;}
html#rd25-page[data-rd25-template="T11-after"] footer > [data-ai-shortcut-featured] {box-sizing:border-box !important;width:100% !important;max-width:1200px !important;margin:28px auto 0 !important;padding:20px 40px 0 !important;}
@media(max-width:1000px){
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip {grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book > img,
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .book-covers > a:not(.new-book) {grid-row:1 !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book-caption {grid-column:1/-1 !important;grid-row:2 !important;align-self:start !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip > div:last-child {grid-column:1/-1 !important;grid-row:3 !important;}
  html#rd25-page[data-rd25-template="T1"] .comparison-columns,
  html#rd25-page[data-rd25-template="T2"] .mr-letter-section:has(#price-and-first-90-days) {display:flex !important;flex-direction:column !important;grid-template-columns:minmax(0,1fr) !important;}
  html#rd25-page[data-rd25-template="T1"] .founder .founder-grid,
  html#rd25-page[data-rd25-template="T1"] .faq .faq-layout {grid-template-columns:minmax(0,1fr) !important;}
  html#rd25-page[data-rd25-template="T1"] .founder-grid > img.founder-portrait {max-width:520px !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .brain-evidence {grid-column:1/-1 !important;}
  html#rd25-page[data-rd25-template="T11-after"] .home-outcome {grid-template-columns:minmax(0,1fr) !important;}
  html#rd25-page[data-rd25-template="T11-after"] .home-outcome .outcome-copy {grid-column:1 !important;grid-row:2 !important;}
  html#rd25-page[data-rd25-template="T11-after"] .service-process ol {grid-template-columns:minmax(0,1fr) !important;}
  html#rd25-page[data-rd25-template="T11-after"] footer .rd25-drain-footer-row {display:flex !important;flex-wrap:wrap !important;gap:20px !important;}
}
@media(max-width:767px){
  html#rd25-page[data-rd25-template="T1"] .rd25-browser-frame {display:none !important;}
  html#rd25-page[data-rd25-template="T1"] .home-comparison .shot-link {align-self:center !important;margin-inline:auto !important;}
  html#rd25-page[data-rd25-template="T1"] main > .wf-proof {padding-inline:20px !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip {gap:18px 12px !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .books-strip .new-book-caption {padding:18px !important;}
  html#rd25-page[data-rd25-template="T1"] #work-details .brain-sample {padding:10px !important;}
  html#rd25-page[data-rd25-template="T1"] .offer-commitments {padding:18px !important;}
  html#rd25-page[data-rd25-template="T1"] .compare-choice {padding:16px !important;}
  html#rd25-page[data-rd25-template="T2"] .mr-letter-section:has(#price-and-first-90-days) {padding:16px !important;}
  html#rd25-page[data-rd25-template="T2"] .mr-letter-section:has(#price-and-first-90-days) .mr-guarantee {padding:18px !important;}
  html#rd25-page[data-rd25-template="T2"] main .mr-letter-section p.rd25-pull-quote {font-size:30px !important;}
  html#rd25-page[data-rd25-template="T11-after"] .home-outcome {padding-inline:20px !important;}
  html#rd25-page[data-rd25-template="T11-after"] footer .rd25-drain-footer-row {padding-inline:20px !important;}
  html#rd25-page[data-rd25-template="T11-after"] footer > [data-ai-shortcut-featured] {padding-inline:20px !important;}
}
}
