/*
Theme Name: Restful Sleep Guide Editorial
Theme URI: https://restfulsleepguide.com/
Author: Restful Sleep Guide
Description: Editorial pillow education website; requires owner verification before advertising.
Version: 1.2.0
Requires PHP: 7.4
Text Domain: restful-sleep-guide
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#183a3a;background:#fffdf9;font:16px/1.7 system-ui,-apple-system,Segoe UI,sans-serif}a{color:#17665e}a:hover{text-decoration-thickness:2px}.wrap{max-width:1100px;margin:auto;padding:0 24px}.nav{background:#fffdf9;border-bottom:1px solid #e2e9e5;position:sticky;top:0;z-index:10}.navin{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:75px}.logo{font-size:21px;font-weight:800;letter-spacing:-.7px;text-decoration:none;color:#183a3a}.links{display:flex;gap:22px;flex-wrap:wrap}.links a{text-decoration:none;color:#345957;font-size:14px}.hero{background:linear-gradient(130deg,#e6f0e8,#faf4e9);padding:85px 0}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:2px;font-weight:800;color:#357c6c}.hero h1{font:700 clamp(40px,6vw,68px)/1.08 Georgia,serif;letter-spacing:-1.5px;max-width:780px;margin:18px 0}.lead{font-size:20px;max-width:740px;color:#47635e}.btn{display:inline-block;border:0;border-radius:6px;background:#155c54;color:white!important;padding:14px 22px;text-decoration:none;font-weight:700;cursor:pointer;font-size:15px}.btn.secondary{background:transparent;border:1px solid #155c54;color:#155c54!important}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.section{padding:68px 0}.section.alt{background:#f3f6f1}.section h2{font:700 clamp(30px,4vw,44px)/1.2 Georgia,serif;margin:0 0 15px}.intro{max-width:780px;color:#49635e}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}.card{border:1px solid #dce6df;border-radius:12px;background:#fff;padding:26px}.card h3{font:700 24px/1.2 Georgia,serif;margin:5px 0 12px}.card p{color:#4b625e}.kicker{font-size:12px;letter-spacing:1.5px;color:#42816d;font-weight:800;text-transform:uppercase}.pill{display:inline-block;border-radius:30px;background:#e5f1e9;padding:4px 12px;font-size:13px}.feature{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:center}.visual{min-height:300px;border-radius:16px;background:radial-gradient(circle at 50% 48%,#fdfbf4 0 22%,#bfd5ca 23% 39%,#7da99a 40% 42%,#e4eee8 43% 100%);display:grid;place-items:center;text-align:center;padding:35px;color:#2e625a}.visual span{font:italic 31px Georgia,serif;max-width:300px}.note{background:#edf4ed;border-left:4px solid #438875;padding:16px 20px;margin:22px 0;color:#345750}.quiz{border:1px solid #cddfd5;background:white;border-radius:14px;padding:28px;margin-top:25px}.quiz label{display:block;font-weight:700;margin:15px 0 7px}.quiz select{width:100%;max-width:420px;padding:12px;border:1px solid #adc7ba;border-radius:7px;background:white;color:#183a3a}.result{padding:20px;margin-top:20px;background:#eef5ef;border-radius:8px}.article{max-width:790px}.article h2{margin-top:40px;font-size:31px}.article p,.article li{color:#425b56}.article ul{padding-left:24px}.article table{border-collapse:collapse;width:100%;margin:25px 0}.article th,.article td{padding:13px;border:1px solid #d9e5dd;text-align:left}.footer{background:#163b37;color:#e9f2eb;padding:45px 0}.footer a{color:#d4ebe0}.footergrid{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.small{font-size:13px;color:#5c746e}.footer .small{color:#c1d5cb}.disclosure{font-size:13px;background:#f5efe0;border-radius:7px;padding:12px 16px;margin:18px 0}.faq details{border-bottom:1px solid #dce5de;padding:16px 0}.faq summary{font-weight:700;cursor:pointer}@media(max-width:760px){.links{gap:11px}.links a{font-size:12px}.hero{padding:58px 0}.grid,.feature{grid-template-columns:1fr}.section{padding:45px 0}.visual{min-height:220px}.navin{align-items:flex-start;flex-direction:column;padding:14px 0;gap:8px}}
/* Enhanced editorial presentation */
.photohero{background:linear-gradient(90deg,rgba(15,39,48,.91),rgba(15,39,48,.72) 52%,rgba(15,39,48,.13)),url('assets/photo-482.webp') center 43%/cover no-repeat;color:white;min-height:490px;display:flex;align-items:center}
.photohero h1,.photohero .lead,.photohero .eyebrow{color:white;max-width:720px}
.photohero .btn.secondary{border-color:#fff;color:#fff;background:transparent}
.video-section{background:#f6f8f7}.video-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:42px;align-items:center}
.video-layout video{width:100%;aspect-ratio:16/9;object-fit:cover;background:#17252d;border-radius:18px;box-shadow:0 18px 48px #142b3030}
.video-layout .intro{max-width:470px}.textlink{font-weight:700;color:#256d60}
.product-photo{margin:0}.product-photo img{width:100%;height:360px;object-fit:cover;border-radius:18px}.product-photo figcaption{font-size:12px;color:#64716c;padding-top:8px}
@media(max-width:760px){.photohero{min-height:450px;background-position:60% center}.video-layout{grid-template-columns:1fr;gap:20px}.video-layout video{order:2}.product-photo img{height:270px}}

.topnote{text-align:center;padding:10px 20px;background:#e8eee7;font-size:12px;letter-spacing:.3px}.skip{position:absolute;left:-10000px}.skip:focus{left:12px;top:10px;background:white;padding:12px;z-index:99}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b66b25;outline-offset:4px}.quiz input,.quiz textarea{display:block;width:100%;padding:13px;border:1px solid #829f91;border-radius:6px;font:inherit}.honeypot{display:none}button:disabled,input:disabled,textarea:disabled{opacity:.55;cursor:not-allowed}h1{font:700 clamp(36px,5vw,60px)/1.12 Georgia,serif;letter-spacing:-1px}.card a{text-decoration:none}table{display:block;overflow-x:auto} @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}} @media(max-width:760px){.navin{padding:14px 24px}.links{gap:14px}.links a{font-size:13px}.hero h1{font-size:43px}.photohero{background-position:64% center}.article{overflow-wrap:anywhere}}
.photohero .btn.secondary{color:#fff!important;border-color:#fff;background:#123b3855}.photohero .btn.secondary:hover{background:#123b38}

/* Native WordPress editor content */
.rsg-editable-page {max-width:850px;margin-inline:auto;}
.rsg-editable-page h1 {margin-bottom:1.25rem;}
.rsg-editable-page img,.rsg-home-editor-content img {max-width:100%;height:auto;}
.rsg-editable-page .wp-block-button__link {background:#244c45;color:#fff;border-radius:8px;padding:.75rem 1.25rem;}
.rsg-editable-page .wp-block-table {overflow-x:auto;}

/* Editable content and narrow-screen accessibility. */
.rsg-editor-body img,.rsg-editable-page img{max-width:100%;height:auto}.rsg-editor-body video,.rsg-editable-page video{max-width:100%}.article table{display:block;max-width:100%;overflow-x:auto}.article input,.article textarea,.article select{max-width:100%}h1,h2,h3,a{overflow-wrap:break-word}.rsg-editor-body>.section>.wrap{max-width:1100px}.rsg-editable-page .wrap{padding:0}.rsg-editable-page .section{padding:24px 0}.rsg-editable-page .hero{padding:24px 0;background:none}.rsg-editable-page .hero:empty{display:none}

/* November 2026: product-led homepage and accessible buying paths. */
.rsg-shop-hero{padding:52px 0;background:#edf2eb}.rsg-shop-hero .feature{grid-template-columns:1.1fr 1fr;gap:38px}.rsg-shop-hero h1{font-size:clamp(36px,4.7vw,57px);max-width:610px;margin:14px 0 20px}.rsg-shop-hero .lead{font-size:18px}.rsg-shop-hero .product-photo img{height:auto;aspect-ratio:5/4;object-fit:cover}.rsg-shop-hero .disclosure{margin-bottom:0}.rsg-shop-hero .small{margin:12px 0}.rsg-buy{background:#a74525;color:#fff!important;box-shadow:0 4px 12px #a7452520}.rsg-buy:hover{background:#88361d}.rsg-fit{scroll-margin-top:100px}.rsg-fit .card{border-top:3px solid #4e7d66}.rsg-fit .card:last-child{border-top-color:#a77646}.rsg-next{border-top:1px solid #cbded0;margin-top:20px;padding-top:18px}.rsg-next h3{margin:0 0 8px;font:700 23px/1.3 Georgia,serif}.rsg-next .actions{margin-top:14px}#pillow-finder{scroll-margin-top:100px}.rsg-final{background:#e8eee4;border-top:1px solid #cedbcd}.rsg-final .wrap{max-width:850px}.rsg-final .actions{margin-bottom:14px}.rsg-mobile-buy{display:none}@media(max-width:760px){.rsg-shop-hero{padding:32px 0}.rsg-shop-hero .feature{grid-template-columns:1fr;gap:24px}.rsg-shop-hero h1{font-size:38px}.rsg-shop-hero .product-photo img{max-height:290px;object-fit:cover}.rsg-shop-hero .actions .btn{width:100%;text-align:center}.rsg-mobile-buy{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fffdf9;border-top:1px solid #cad8cb;box-shadow:0 -4px 16px #183a3a15}.rsg-mobile-buy span{font-size:12px;line-height:1.4}.rsg-mobile-buy .btn{padding:12px 16px;font-size:14px;white-space:nowrap}body:has(.rsg-mobile-buy){padding-bottom:100px}.rsg-fit,#pillow-finder{scroll-margin-top:140px}}
