/* V234 layout fixes, from the local browser audit (166 pages x 390/768/1440 px), 2026-11-28 */

/* 1. Older pantry pages: a later rule forced the dark "band" to cream, which hid the cream headline text. */
html body main.cr137-rail > div.band.band, html body main.cr137-rail .band.band {background-color:#2d1c24 !important;}
html body main.cr137-rail .band.band :is(.commerce-intro, .review-lead, .wrap, .section, .shell, .container, .reading-intro, .page-hero, .story-head) {background-color:transparent !important;}
html body main .band .cr19-evidence :is(p, li, strong, em, small, span, a:not(.button)) {color:#2d2426 !important;}

/* 2. Bathroom and Kitchen & Pantry room heroes: the text column was 1280px wide inside a 427px column, so the intro ran off the screen. */
html body main.cr137-rail .cr-v6-room-hero > .cr-v6-room-copy.wrap {width:auto !important; max-width:100% !important; min-width:0 !important;}

/* 3. Buying guide jump links: on phones the middle button was squeezed to a sliver and its words overlapped. */
@media (max-width:700px) {
  html body main .cr-product-jumps {grid-template-columns:repeat(auto-fit, minmax(96px, 1fr)) !important;}
  html body main .cr-product-jumps a {min-width:0; overflow-wrap:anywhere;}
}

/* 4. Large headings sat directly on the next line of text (no space, letters touching). */
html body main :is(.cr-section, .cr-v233-advice, .cr-check-help, .cr-editorial-shopping, .band, .shop-header, .shell, .block) > :is(h1, h2):not(:last-child) {margin-bottom:max(.3em, 12px) !important;}
html body main p.eyebrow:has(+ :is(h1, h2)), html body main .cr-tools-kicker {margin-bottom:.75em !important;}
html body main .cr-check-help {margin-block:clamp(20px, 3vw, 36px) !important;}
html body main .cr-check-help > * + h2 {margin-top:clamp(24px, 3vw, 40px) !important;}

/* 5. "AI-generated room concept" labels were 9-10px on phones; keep them readable. */
html body .cr-v6-room-label, html body main .scene > figcaption {font-size:11px !important;}

/* 6. Phones: the floating "Larger text" pill covered page content. Make it a compact 44px "A+" button and keep the page end clear of it. */
@media (max-width:700px) {
  html body .cr-reading-toggle {width:44px !important; height:44px !important; min-height:44px !important; padding:0 !important; font-size:0 !important; line-height:0 !important; bottom:12px !important; right:12px !important; display:flex; align-items:center; justify-content:center; opacity:.94;}
  html body .cr-reading-toggle::before {content:"A+"; font:700 16px/1 Arial, sans-serif; letter-spacing:-.02em;}
  html body .cr-reading-toggle[aria-pressed="true"]::before {content:"A\2212";}
  html body:has(.cr-reading-toggle) {padding-bottom:64px;}
}

/* 7. Phones (mobile-first pass, 320-430px + landscape). */
@media (max-width:700px) {
  /* Bigger tap areas for plain text links in breadcrumbs, link lists and short link lines (layout unchanged). */
  html body :is(main, footer) li > a:only-child:not([class]) {display:block; padding-block:6px;}
  html body :is(main, footer) ol.cr-breadcrumb li > a:only-child {display:inline-block;}
  html body :is(main, footer) :is(p, aside, dd, td, nav, div) > a:not([class]) {padding-block:3px;}
  html body main :is(a.cr-help-go, a.arrow, a.pill, a.compare-more) {display:inline-block; padding-block:7px;}
  html body main :is(h2, h3, h4) > a:only-child {display:inline-block; padding-block:3px;}
  html body main summary {padding-block:8px;}
  html body main :is(input[type=checkbox], input[type=radio]) {width:24px !important; height:24px !important; min-width:24px;}
  html body main li > a:not([class]):not(:only-child) {padding-block:4px;}
  html body main ol.cr-breadcrumb a {padding-block:6px;}
  /* Small print readable without zooming: product card descriptions, bylines, disclosures, notes, sources. */
  html body main :is(.cr-product-info p, p.byline, .article-note, .cr-disclosure, p.note, .cr-tools-note, .cr-honesty, .cr-v70-sources, .cr-v70-related, .cr19-privacy, .cr-help-source, .cr-help-tip, .our-pick, .cr-v81-name-search, .shopping-disclaimer, .hero-deck, .cr-buying-check p, .pantry-card p, .fit-tool fieldset p, nav.contents li, .shelf-status, .fit-privacy, .evidence-note) {font-size:15px !important; line-height:1.5 !important;}
  /* iPhones zoom the page when a form field is under 16px. */
  html body :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]), select, textarea) {font-size:16px !important;}
  /* Small Closet product art was a fixed width wider than its frame on small phones. */
  html body main .cr-closet-product-art img {width:100% !important; max-width:100% !important; height:auto !important;}
}

/* 8. Placeholder box until a product illustration is ready. */
html body main .cr-image-soon {margin:0;}
html body main .cr-image-soon > div {display:flex; align-items:center; justify-content:center; aspect-ratio:1 / 1; width:100%; max-width:420px; margin-inline:auto; background:#fff7ed; border:1px solid #ebc9a5; color:#2d2426; font:600 17px/1.3 Arial, sans-serif; letter-spacing:.02em;}
@media (max-width:700px) {html body main .cr-image-soon > div {aspect-ratio:16 / 9;}}

/* 9. Cream product-art frames (copy of v233-product-art-cream.css, which the server blocked with a 403 permission). */
:root {
  --cr-product-art-cream: #fff7ed;
}

.cr-product img[src],
.cr-product .cr-closet-product-art {
  background-color: var(--cr-product-art-cream);
}

.cr-product .cr-closet-product-art img[src] {
  background-color: transparent;
}

/* 10. "Shop this room" product picks on Shop-by-Room pages (phone-first). */
html body main .cr-room-picks {box-sizing:border-box; width:min(100% - 32px, 1120px); margin:clamp(28px, 5vw, 56px) auto; padding:0; color:#2d2426;}
html body main .cr-room-picks-head {max-width:760px; margin-bottom:18px;}
html body main .cr-room-picks-kicker {margin:0 0 .5em; font:700 12px/1.3 Arial, sans-serif; letter-spacing:.14em; text-transform:uppercase; color:#8a4f3c;}
html body main .cr-room-picks h2 {margin:0 0 12px !important; font-family:var(--cr-display, Georgia, serif); font-weight:400; font-size:clamp(28px, 4.2vw, 44px); line-height:1.08; color:#2d2426;}
html body main .cr-room-picks-note {margin:0; font-size:15px; line-height:1.5; color:#5b4a46;}
html body main .cr-room-picks-grid {display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px;}
@media (min-width:701px) {html body main .cr-room-picks-grid {grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px;}}
html body main .cr-room-pick {display:flex; flex-direction:column; min-width:0; padding:10px; background:#fffaf3; border:1px solid #ebc9a5;}
html body main .cr-room-pick-art {display:flex; align-items:center; justify-content:center; aspect-ratio:1 / 1; background:#fff7ed; margin-bottom:10px; overflow:hidden;}
html body main .cr-room-pick-art img {width:100%; height:100%; object-fit:contain; display:block;}
html body main .cr-room-pick h3 {margin:0 0 6px !important; font:700 15px/1.3 Arial, sans-serif !important; letter-spacing:0 !important; color:#2d2426; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
html body main .cr-room-pick p {margin:0 0 10px; font-size:15px; line-height:1.45; color:#4a3d3a; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;}
html body main .cr-room-pick-btn {margin-top:auto; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:48px; padding:8px 10px; background:#2d2426; color:#fff7ec !important; font:700 15px/1.2 Arial, sans-serif; text-align:center; text-decoration:none !important; border-radius:2px;}
html body main .cr-room-pick-btn:focus-visible {outline:3px solid #cf9767; outline-offset:2px;}
html body main .cr-room-pick-btn .cr-paid-label {display:block; margin-top:3px; font:600 12px/1.2 Arial, sans-serif; color:#ebc9a5;}
html body main .cr-room-picks-more {margin:16px 0 0; font-size:16px;}
html body main .cr-room-picks-more a {display:inline-block; padding-block:8px; color:#2d2426; font-weight:700; text-decoration:underline;}

/* 11. Two-menu header: keep the left side (Shop by Room, Buying Guides) evenly spaced instead of pushed to the edges. */
@media (min-width:701px) {
  html body #cr-global-header .crh-left {justify-content:space-evenly !important;}
  html body #cr-global-header details:has(> summary[aria-label="Open Buying Guides menu"]) .crh-mega {width:min(640px, 92vw) !important; max-width:none !important;}
  html body #cr-global-header details:has(> summary[aria-label="Open Buying Guides menu"]) .crh-mega-links {grid-template-columns:repeat(4, minmax(0, 1fr)) !important;}
}

/* 12. Picks inside an already-padded wrapper (homepage) use the wrapper's width. */
html body main .cr-wrap > .cr-room-picks {width:100%;}
