/*
Theme Name: Snug House USA
Version: 0.2.0
Author: Snug House USA
Text Domain: snug-house
*/
:root{--cream:#f8f5ee;--paper:#fffdf8;--ink:#29251f;--muted:#827a6e;--gold:#a38455;--line:#e4ddd1;--dark:#29261f}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:155px}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.6 Georgia,'Times New Roman',serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}a:hover,button:hover{color:var(--gold)}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{color:inherit}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,h4,p{margin:0}button.story-open{border:0;background:none;padding:0;text-align:left;width:100%}.topline{text-align:center;background:var(--dark);color:#d7ccbb;font:10px/30px Arial,sans-serif;letter-spacing:1.6px}.site-header{position:sticky;top:0;z-index:20;background:rgba(255,253,248,.98)}.admin-bar .site-header{top:32px}.masthead{display:flex;align-items:center;justify-content:space-between;padding:22px 30px;gap:28px;max-width:1500px;margin:auto}.brand{font-size:28px;line-height:1.1;letter-spacing:-.8px;white-space:nowrap}.brand span{display:block;color:var(--gold);font:12px/1.8 Georgia,serif;letter-spacing:4px}.primary{display:flex;gap:30px}.primary a,.secondary a,.header-tools{font:12px Arial,sans-serif;letter-spacing:.6px;text-transform:uppercase}.header-tools{display:flex;gap:19px;align-items:center}.icon-button{border:0;background:none;width:23px;padding:0}.icon-button svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.5}.solid-button{display:inline-flex;gap:20px;padding:12px 20px;background:var(--gold);color:white;font:bold 11px Arial,sans-serif;letter-spacing:.6px;text-transform:uppercase}.solid-button:hover{background:#806640;color:white}.secondary{border-block:1px solid var(--line);padding:12px 30px;display:flex;gap:28px}.secondary a{font-size:10px;color:var(--muted)}.secondary .last{margin-left:auto}.trending{display:flex;gap:23px;align-items:center;overflow:hidden;background:var(--dark);color:#f3ecdf;height:40px;padding:0 28px;font:11px Arial,sans-serif}.trending strong{white-space:nowrap;color:#ceb17e;letter-spacing:1px;border-right:1px solid #635943;padding-right:19px}.trending button.story-open{color:inherit;min-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px Arial,sans-serif}.trending span{color:#968b79;margin-right:8px}.editorial-banner{display:grid;grid-template-columns:60% 40%;margin:18px 28px 0;border-left:3px solid var(--gold);height:190px;background:#eee9df;overflow:hidden}.editorial-banner>div{padding:24px 32px}.eyebrow{display:block;font:bold 9px/1.6 Arial,sans-serif;letter-spacing:1.7px;text-transform:uppercase;color:var(--gold)}.editorial-banner h2{font-size:24px;line-height:1.15;font-weight:400;margin:10px 0 16px}.editorial-banner img{width:100%;height:190px}.hero{height:590px;position:relative;overflow:hidden;color:white}.hero-image{width:100%;height:100%;object-position:center}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,22,17,.80),rgba(24,22,17,.30) 65%,rgba(24,22,17,.1))}.hero-copy{position:absolute;inset:55px auto auto 6.5%;max-width:650px}.hero .eyebrow{color:#e0c8a0}.hero h1{font-size:clamp(38px,4.2vw,62px);line-height:1.1;font-weight:400;letter-spacing:-1.5px;margin:24px 0}.hero p{max-width:550px;font:14px/1.8 Arial,sans-serif;color:#eee8dd}.hero-meta{font:9px Arial,sans-serif;letter-spacing:1px;margin-top:25px}.hero-meta span{padding:0 12px}.hero button.hero-button{font:bold 11px Arial,sans-serif;letter-spacing:1px;text-transform:uppercase;border-bottom:1px solid #c6aa7c;width:auto;padding:16px 0;color:white;margin-top:18px;display:flex;gap:60px}.scroll-note{position:absolute;bottom:28px;right:26px;font:9px Arial,sans-serif;letter-spacing:2px}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);background:var(--paper);padding:0 28px}.feature-strip .mini-story{display:flex;padding:20px;gap:16px;border-right:1px solid var(--line)}.mini-story img{width:80px;height:80px;flex-shrink:0}.mini-story h3{font-size:16px;font-weight:400;line-height:1.3;margin:6px 0}.mini-story small:not(.eyebrow){font:10px Arial,sans-serif;color:var(--muted)}.category-bar{display:flex;align-items:center;gap:28px;padding:22px 28px;font:10px Arial,sans-serif;text-transform:uppercase;color:var(--muted)}.category-bar>span{border-right:1px solid var(--line);padding-right:20px}.category-bar .all-stories{margin-left:auto;color:var(--gold)}.section{max-width:1440px;margin:auto;padding:55px 28px}.section-heading{margin-bottom:30px}.section-heading h2,.planning>h2{font-size:34px;line-height:1.3;font-weight:400;margin-top:8px}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.category-tile{position:relative;height:220px;overflow:hidden}.category-tile img{height:100%;width:100%;transition:transform .3s}.category-tile:hover img{transform:scale(1.04)}.category-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,rgba(20,20,15,.6))}.category-tile span{position:absolute;z-index:1;bottom:18px;left:18px;right:18px;color:white;font-size:21px;display:flex;justify-content:space-between}.category-tile b{font-size:15px;font-weight:400}.editorial-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(250px,1fr);gap:44px;border-top:1px solid var(--line);padding-top:32px}.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 24px}.article-card{border-bottom:1px solid var(--line);padding-bottom:25px}.image-link img{width:100%;aspect-ratio:1.5}.card-body{padding-top:18px}.article-card h3{font-weight:400;font-size:25px;line-height:1.22;margin:8px 0 13px}.article-card p{font:13px/1.8 Arial,sans-serif;color:var(--muted)}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:20px;font:10px Arial,sans-serif;color:var(--muted)}.save-story{border:0;background:none;font:10px Arial,sans-serif;white-space:nowrap}.sidebar-feature{border:1px solid var(--line);background:var(--paper)}.sidebar-feature img{width:100%;height:170px}.sidebar-feature>div{padding:20px}.sidebar-feature h3{font-size:24px;font-weight:400;line-height:1.3;margin:10px 0 15px}.text-button{border:0;background:none;padding:0;text-align:left;color:var(--gold);font:bold 10px/1.8 Arial,sans-serif;text-transform:uppercase;letter-spacing:.8px}.aside-heading{font:12px Georgia,serif;letter-spacing:1px;border-bottom:1px solid var(--line);padding-bottom:12px;margin:34px 0 16px}.sidebar-story{display:flex!important;gap:14px;margin-bottom:19px}.sidebar-story img{width:87px;height:80px}.sidebar-story h4{font-size:16px;line-height:1.3;font-weight:400;margin-top:5px}.category-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font:12px Arial,sans-serif}.aside-note{margin-top:35px;padding:25px;background:#ede7da}.aside-note h3{font-size:29px;font-weight:400;margin:14px 0}.aside-note p{font:13px/1.8 Arial,sans-serif}.preview-note{font:11px/1.7 Arial,sans-serif;color:var(--muted);margin-top:12px}.amazon-rug-banner{margin:0 0 28px;background:var(--paper);border:1px solid var(--line);overflow:hidden}.amazon-rug-banner a{display:block}.amazon-rug-banner img{width:100%;height:auto;aspect-ratio:1.91/1;object-fit:cover}.amazon-rug-banner__label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;color:var(--ink);font:bold 10px/1.5 Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase}.single-story>.amazon-rug-banner{margin:28px 0}.single-story>.amazon-rug-banner img{max-height:360px}.planning{background:#efe9de;max-width:none;padding:50px max(28px,calc((100vw - 1384px)/2))}.planning-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:28px}.planning-grid a{display:block;background:var(--paper);border:1px solid var(--line);padding:32px}.planning-grid span,.planning-grid b{font:10px Arial,sans-serif;letter-spacing:1px;color:var(--gold)}.planning-grid h3{font-weight:400;font-size:29px;margin:16px 0}.planning-grid p{font:13px Arial,sans-serif;color:var(--muted);margin-bottom:30px}footer{background:var(--dark);color:#eee7da;padding:55px 30px 0}.footer-grid{max-width:1384px;margin:auto;display:grid;grid-template-columns:1.3fr .8fr .8fr 1.2fr;gap:55px}.footer-grid h4{font:10px Arial,sans-serif;letter-spacing:1.5px;color:#c8b595;margin-bottom:22px}.footer-grid p{font:13px/1.9 Arial,sans-serif;color:#bcb3a5;margin:20px 0}.footer-grid>div>a:not(.brand){display:block;font:12px/2.6 Arial,sans-serif;color:#c7bcab}.footer-grid small{font:10px/1.8 Arial,sans-serif;color:#a79b88}.footer-bottom{max-width:1384px;margin:45px auto 0;border-top:1px solid #4a443a;padding:20px 0;display:flex;justify-content:space-between;font:10px Arial,sans-serif;color:#a79b88}.search-form{display:flex;gap:15px;align-items:center;padding:20px 28px;background:#eee7da;font:12px Arial,sans-serif}.search-form input{flex:1;min-width:0;padding:12px;border:1px solid var(--line)}.search-form button{padding:12px 20px;border:0;background:var(--dark);color:white}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;z-index:999;background:white;padding:12px}[hidden]{display:none!important}dialog{border:0;padding:0;max-width:700px;width:90%;max-height:90vh;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#0009}dialog>img{width:100%;height:280px}.dialog-copy{padding:30px}.dialog-copy h2{font-size:32px;line-height:1.2;font-weight:400;margin:12px 0}.dialog-copy>p{margin-top:15px}.dialog-close{position:absolute;right:12px;top:12px;background:var(--paper);border:0;width:36px;height:36px;font-size:25px}.article{max-width:800px;padding:50px 25px;margin:auto}.article h1{font-size:42px;line-height:1.2}.article p{margin:20px 0}.article img{max-width:100%;height:auto}@media(max-width:1050px){.primary{gap:15px}.primary a{font-size:10px}.header-tools .solid-button{display:none}.hero-copy{max-width:580px}.category-tile{height:180px}}@media(max-width:760px){html{scroll-padding-top:130px}.topline{font-size:8px;letter-spacing:1px}.masthead{padding:16px 20px}.brand{font-size:26px}.primary{display:none}.secondary{overflow:auto;gap:22px;white-space:nowrap;padding:12px 20px}.secondary .last{display:none}.trending{padding:0 20px}.editorial-banner{margin:14px 16px 0;grid-template-columns:62% 38%;height:175px}.editorial-banner>div{padding:18px 16px}.editorial-banner h2{font-size:20px}.editorial-banner .eyebrow{font-size:7px}.editorial-banner .solid-button{font-size:8px;padding:11px;gap:8px}.editorial-banner img{height:175px}.hero{height:520px}.hero-copy{inset:42px 24px auto;max-width:none}.hero h1{font-size:42px;letter-spacing:-1px}.hero p{font-size:13px}.hero-shade{background:linear-gradient(90deg,#17160ecc,#17160e40)}.hero-meta{font-size:8px}.feature-strip{grid-template-columns:1fr;padding:0 20px}.feature-strip .mini-story{border-right:0;border-bottom:1px solid var(--line);padding:16px 0}.mini-story img{width:70px;height:70px}.category-bar{overflow:auto;white-space:nowrap;gap:22px;padding:20px}.category-bar>span,.category-bar .all-stories{display:none}.section{padding:38px 20px}.section-heading h2{font-size:29px}.category-grid{grid-template-columns:repeat(2,1fr);gap:12px}.category-tile{height:190px}.category-tile:last-child{grid-column:1/-1;height:160px}.category-tile span{font-size:20px;left:14px;right:14px}.editorial-layout{grid-template-columns:1fr;gap:45px}.article-grid{gap:28px 15px}.article-card h3{font-size:21px}.article-card p{font-size:12px}.card-meta{align-items:flex-start;flex-direction:column;gap:12px}.article-card .eyebrow{font-size:8px}.planning{padding:35px 20px}.planning-grid{grid-template-columns:1fr}.planning-grid a{padding:25px}.footer-grid{grid-template-columns:1fr 1fr;gap:30px}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}footer{padding:35px 20px 0}.footer-bottom{gap:18px;line-height:1.6}.search-form{flex-wrap:wrap}.search-form label{width:100%}.admin-bar .site-header{top:46px}}@media(max-width:420px){.article-grid{grid-template-columns:1fr}.article-card h3{font-size:26px}.card-meta{flex-direction:row}.hero h1{font-size:38px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.tool-card{background:var(--paper);padding:30px;border:1px solid var(--line)}.tool-card h3{font-size:28px;font-weight:400;margin:12px 0}.tool-card p,.tool-card small{font:12px/1.8 Arial,sans-serif;color:var(--muted)}.tool-card label{display:block;margin:16px 0;font:12px Arial,sans-serif}.tool-card input,.tool-card select{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid var(--line);background:white;color:var(--ink);font:14px Arial,sans-serif}.tool-card button{border:0;margin:10px 0 18px}.tool-card small{display:block}.tool-result{padding:20px;background:#eee8dd;margin-bottom:20px;font:14px/1.8 Arial,sans-serif}.tool-result h4{font:24px Georgia,serif;margin-bottom:15px}.breadcrumbs{font:12px Arial,sans-serif;margin-bottom:30px;color:var(--muted)}.section-heading h1{font:42px Georgia,serif;margin:15px 0}.category-articles{grid-template-columns:repeat(3,1fr)}.category-articles img{width:100%;aspect-ratio:1.5}.category-articles h2{font-size:26px;font-weight:400;line-height:1.2}.category-articles p{margin:15px 0}.single-story h1{margin:20px 0}.single-cover{width:100%;margin:30px 0}.draft-message{padding:25px;background:#eee8dd;margin:25px 0}.draft-message h2{font-weight:400}@media(max-width:760px){.category-articles{grid-template-columns:1fr}.tool-card{padding:22px}.single-story h1{font-size:34px}}
.story-open{text-decoration:none;color:inherit}.article-content{font-size:1.08rem;line-height:1.85}.article-content h2{margin-top:2.2rem;line-height:1.3;scroll-margin-top:2rem}.article-content p{margin-bottom:1.2rem}.article-toc,.related-stories{padding:1.4rem 1.7rem;background:#f6f0e6;border:1px solid #e5dacc;margin:2rem 0}.article-toc ul,.related-stories ul{padding-left:1.3rem}.article-toc a,.related-stories a,.article-content a{color:#65513a;text-decoration:underline;text-underline-offset:3px}.article-figure{margin:1.5rem 0}.article-figure figcaption{font-size:.8rem;color:#736b61;margin-top:.5rem}.article-content .article-lead{font-size:1.2rem;line-height:1.7}

.institution-links{display:flex;flex-wrap:wrap;justify-content:center;gap:1.1rem;padding:1.5rem;background:#eee5d7}.institution-links a{color:#584934;text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8b6e43;outline-offset:4px}.article-card[hidden]{display:none!important}

/* Related article image banners, editorial standard October 2026. */
.related-stories.related-banners{padding:0;border:0;background:transparent;margin:3rem 0}.related-banners>h2{font-size:1.8rem;margin-bottom:1.2rem}.related-banner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.related-banners .related-banner-card{display:flex;flex-direction:column;overflow:hidden;background:#f6f0e6;border:1px solid #e5dacc;border-radius:8px;text-decoration:none;color:var(--ink);transition:box-shadow .2s}.related-banner-card:hover{box-shadow:0 5px 18px #221a111a}.article .related-banner-card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin:0}.related-banner-copy{display:flex;flex-direction:column;flex:1;padding:16px}.related-banner-copy .eyebrow{font-size:9px;letter-spacing:1.2px}.related-banner-copy h3{font:normal 21px/1.25 Georgia,serif;margin:10px 0 20px;overflow-wrap:anywhere}.related-banner-cta{margin-top:auto;font:600 12px/1.4 Arial,sans-serif;color:#65513a}.article-sources{margin-top:2rem;padding-top:1rem;border-top:1px solid #e5dacc}.article-sources ul{padding-left:1.3rem}.article-content h3{font-size:1.2rem;line-height:1.4;margin-top:1.8rem}.article-toc li{margin:.4rem 0}@media(max-width:620px){.related-banner-grid{grid-template-columns:1fr}.related-banner-copy h3{font-size:24px}.related-banner-copy{padding:20px}}

/* Shared ebook entry cards and article sidebar. */
.ebook-banner .related-banner-grid{grid-template-columns:1fr}.ebook-banner .related-banner-card{border-radius:0;box-shadow:none;transition:none}.ebook-banner .related-banner-card:hover{box-shadow:none}.ebook-banner .related-banner-copy h2{font:400 28px/1.15 Georgia,serif;letter-spacing:-.8px;margin:12px 0}.ebook-banner .related-banner-copy p{font:14px/1.7 Arial,sans-serif;margin:0 0 14px}.ebook-banner .ebook-banner-price{font-weight:700}.ebook-banner .related-banner-cta{font-weight:700;letter-spacing:.6px}.ebook-banner .related-banner-card img.ebook-banner-cover{width:120px;max-width:40%;height:auto;aspect-ratio:auto;object-fit:contain;align-self:center;margin:20px}.ebook-banner--inline .related-banner-card,.ebook-banner--end .related-banner-card{flex-direction:row;align-items:center}.ebook-banner .related-banner-copy{min-width:0}
.post-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:44px;max-width:1240px;margin:0 auto;padding:40px 24px}.post-layout>.single-story{max-width:none;min-width:0;width:100%;padding:0;margin:0;text-align:left}.post-sidebar{display:flex;flex-direction:column;gap:28px;min-width:0}.post-sidebar>.ebook-banner{order:-1;position:static;margin:0}.post-sidebar .related-banner-grid{grid-template-columns:1fr}.post-sidebar .related-banner-card{border-radius:0;box-shadow:none}.post-sidebar .related-banner-card img{width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}.post-sidebar .aside-heading{font:400 22px/1.25 Georgia,serif;letter-spacing:-.8px}.post-sidebar .ebook-banner-cover{max-width:150px!important}.post-sidebar .related-banner-copy h3{font-size:22px}.post-category-banner{display:block;margin-bottom:14px;border:1px solid var(--line);background:var(--paper)}.post-category-banner img{width:100%;height:110px;object-fit:cover}.post-category-banner span{display:block;padding:12px 16px;font:400 21px Georgia,serif}
@media(min-width:1000px){.post-layout{grid-template-columns:minmax(0,1fr) 300px;gap:48px}.post-sidebar{align-self:stretch}.post-sidebar>.ebook-banner--sidebar{position:sticky;top:2rem;z-index:21;align-self:stretch}}
@media(max-width:520px){.ebook-banner--inline .related-banner-card,.ebook-banner--end .related-banner-card{flex-direction:column}.post-layout{padding-inline:18px}}

/* Compact ebook cards and contained article sidebar. */
.ebook-banner-product-layout .related-banner-card{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);align-items:center;gap:12px;padding:0;background:var(--paper)}
.ebook-banner-product-layout .ebook-banner-visual{min-width:0;align-self:center}
.ebook-banner-product-layout .ebook-banner-book{width:100%}
.ebook-banner-product-layout .ebook-banner-book img.ebook-banner-product{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;margin:0}
.ebook-banner-product-layout .related-banner-copy{padding:12px 12px 12px 0;min-width:0}
.ebook-banner-product-layout .related-banner-copy h2{font-size:27px;line-height:1.15;margin:8px 0 12px;overflow-wrap:normal}
.ebook-banner-product-layout .related-banner-copy p{font-size:13px;line-height:1.6;margin:0 0 12px}
.ebook-banner-offer{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:0 0 14px}
.ebook-banner-product-layout .related-banner-copy .ebook-banner-price{font:400 26px/1.2 Georgia,serif;margin:0}
.ebook-banner-price small{font:11px Arial,sans-serif}.ebook-banner-delivery{font:11px/1.5 Arial,sans-serif;color:var(--muted)}
.ebook-banner-product-layout .related-banner-cta{align-self:flex-start;margin:0;padding:11px 14px;background:var(--gold);color:white;font:700 10px/1.4 Arial,sans-serif;letter-spacing:.6px}
.ebook-banner-product-layout a:hover .related-banner-cta{background:#806640}
.post-sidebar{align-self:start;display:block;width:100%;min-width:0}
.post-sidebar>.ebook-banner--sidebar{position:static;z-index:auto;width:100%;margin:0 0 28px}
.post-sidebar-content{min-width:0;width:100%}
.post-sidebar-content>section:first-child>.aside-heading{margin-top:0}
.post-sidebar .ebook-banner-product-layout .related-banner-card{grid-template-columns:minmax(0,1fr);gap:0;padding:0;align-items:start}
.post-sidebar .ebook-banner-visual{align-self:start;width:100%}.post-sidebar .ebook-banner-product-layout .related-banner-copy{padding:12px}
.post-sidebar .ebook-banner-product-layout .related-banner-copy h2{font-size:22px}
.post-sidebar .ebook-banner-product-layout .related-banner-copy .eyebrow{font-size:8px;letter-spacing:1px}
.post-sidebar .ebook-banner-product-layout .related-banner-copy p{font-size:12px}
.post-sidebar .ebook-banner-offer{display:block}.post-sidebar .ebook-banner-delivery{display:block;margin-top:5px}
.post-sidebar .ebook-banner-product-layout .related-banner-cta{font-size:9px;padding:10px}
@media(max-width:520px){.ebook-banner-product-layout .related-banner-copy{padding:12px}.ebook-banner-product-layout .related-banner-card{grid-template-columns:minmax(0,1fr);gap:0;padding:0;align-items:start}.ebook-banner-product-layout .ebook-banner-visual{align-self:start}.ebook-banner-product-layout .related-banner-copy h2{font-size:23px}.ebook-banner-product-layout .related-banner-copy p{font-size:12px}}

/* Keep ebook spacing separate from the larger related-stories sections. */
.related-stories.related-banners.ebook-banner{margin-block:16px}.post-sidebar>.ebook-banner--sidebar{margin:0 0 16px}.ebook-banner-product-layout .related-banner-copy h2{margin:6px 0 8px}.ebook-banner-product-layout .related-banner-copy p{margin-bottom:8px}.ebook-banner-product-layout .ebook-banner-offer{margin-bottom:10px}

/* Fit in-article ebook banners to their content instead of the full article column. */
.article .ebook-banner--inline,.article .ebook-banner--end{width:100%;max-width:580px;margin-inline:0}
.article .ebook-banner--inline .related-banner-card,.article .ebook-banner--end .related-banner-card{grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:12px;align-items:center}
.article .ebook-banner--inline .related-banner-copy,.article .ebook-banner--end .related-banner-copy{padding:12px 12px 12px 0}
.article .ebook-banner--inline .related-banner-copy p,.article .ebook-banner--end .related-banner-copy p{font-size:14px;line-height:1.5}
@media(max-width:600px){.article .ebook-banner--inline,.article .ebook-banner--end{max-width:360px}.article .ebook-banner--inline .related-banner-card,.article .ebook-banner--end .related-banner-card{grid-template-columns:minmax(0,1fr);gap:0}.article .ebook-banner--inline .related-banner-copy,.article .ebook-banner--end .related-banner-copy{padding:12px}}

/* Inline promotion: control adjacent article margins, not just the card margin. */
.article-content > p:has(+ .ebook-banner--inline){margin-bottom:8px}
.article-content > .related-stories.related-banners.ebook-banner--inline{margin-block:0;padding:0}
.article-content > .ebook-banner--inline + :is(h2,h3,p){margin-top:8px}
.article-content .ebook-banner--inline .related-banner-card{align-items:start}
.article-content .ebook-banner--inline .ebook-banner-visual{align-self:start;margin:0;padding:0}
.article-content .ebook-banner--inline .related-banner-grid{gap:0;margin:0;padding:0}

/* Central ebook card: compact as a whole, including cover and copy. */
.article-content > .ebook-banner.ebook-banner--inline{width:100%;max-width:858px;height:auto;min-height:0;margin-block:8px;padding:0}
.article-content .ebook-banner--inline .related-banner-grid{display:block;height:auto;min-height:0}
.article-content .ebook-banner--inline .related-banner-card{display:flex;flex-direction:row;align-items:center;gap:12px;padding:10px;height:auto;min-height:0}
.article-content .ebook-banner--inline .ebook-banner-visual{flex:0 0 120px;width:120px;align-self:center}
.article-content .ebook-banner--inline .ebook-banner-book img.ebook-banner-product{width:120px;height:155px;max-width:100%;object-fit:contain;aspect-ratio:auto;margin:0}
.article-content .ebook-banner--inline .related-banner-copy{display:block;flex:1;min-width:0;padding:0}
.article-content .ebook-banner--inline .related-banner-copy h2{font-size:25px;line-height:1.15;margin:5px 0 7px}
.article-content .ebook-banner--inline .related-banner-copy p{font:14px/1.5 Arial,sans-serif;margin:0 0 7px}
.article-content .ebook-banner--inline .related-banner-copy .ebook-banner-price{font:400 24px/1.15 Georgia,serif;margin:0}
.article-content .ebook-banner--inline .ebook-banner-offer{gap:4px 8px;margin:0 0 8px}
.article-content .ebook-banner--inline .ebook-banner-delivery{font-size:12px}
.article-content .ebook-banner--inline .related-banner-cta{display:inline-block;font-size:11px;padding:10px 12px}
@media(max-width:420px){.article-content .ebook-banner--inline .related-banner-card{gap:10px;padding:8px}.article-content .ebook-banner--inline .ebook-banner-visual{flex-basis:90px;width:90px}.article-content .ebook-banner--inline .ebook-banner-book img.ebook-banner-product{width:90px;height:117px}.article-content .ebook-banner--inline .related-banner-copy h2{font-size:22px}}

/* Shorter sidebar ebook card; central article banner remains independent. */
.post-sidebar .ebook-banner--sidebar .related-banner-card{padding:12px;gap:10px}
.post-sidebar .ebook-banner--sidebar .ebook-banner-visual{width:100%;display:flex;justify-content:center}
.post-sidebar .ebook-banner--sidebar .ebook-banner-book{width:124px}
.post-sidebar .ebook-banner--sidebar .ebook-banner-book img.ebook-banner-product{width:124px;height:160px;object-fit:contain;margin:0}
.post-sidebar .ebook-banner--sidebar .related-banner-copy{padding:0}
.post-sidebar .ebook-banner--sidebar .related-banner-copy h2{font-size:22px;margin:5px 0 7px}
.post-sidebar .ebook-banner--sidebar .related-banner-copy p{margin-bottom:7px;line-height:1.4}
.post-sidebar .ebook-banner--sidebar .ebook-banner-offer{display:flex;gap:4px 8px;align-items:baseline;flex-wrap:wrap;margin:0 0 8px}
.post-sidebar .ebook-banner--sidebar .ebook-banner-delivery{margin:0}

/* Final ebook card: match the approved central card. */
.article > .ebook-banner.ebook-banner--end{width:100%;max-width:858px;height:auto;min-height:0;margin-block:8px;padding:0}
.article .ebook-banner--end .related-banner-grid{display:block;height:auto;min-height:0}
.article .ebook-banner--end .related-banner-card{display:flex;flex-direction:row;align-items:center;gap:12px;padding:10px;height:auto;min-height:0}
.article .ebook-banner--end .ebook-banner-visual{flex:0 0 120px;width:120px;align-self:center}
.article .ebook-banner--end .ebook-banner-book img.ebook-banner-product{width:120px;height:155px;max-width:100%;object-fit:contain;aspect-ratio:auto;margin:0}
.article .ebook-banner--end .related-banner-copy{display:block;flex:1;min-width:0;padding:0}
.article .ebook-banner--end .related-banner-copy h2{font-size:25px;line-height:1.15;margin:5px 0 7px}
.article .ebook-banner--end .related-banner-copy p{font:14px/1.5 Arial,sans-serif;margin:0 0 7px}
.article .ebook-banner--end .related-banner-copy .ebook-banner-price{font:400 24px/1.15 Georgia,serif;margin:0}
.article .ebook-banner--end .ebook-banner-offer{gap:4px 8px;margin:0 0 8px}
.article .ebook-banner--end .ebook-banner-delivery{font-size:12px}
.article .ebook-banner--end .related-banner-cta{display:inline-block;font-size:11px;padding:10px 12px}
@media(max-width:420px){.article .ebook-banner--end .related-banner-card{gap:10px;padding:8px}.article .ebook-banner--end .ebook-banner-visual{flex-basis:90px;width:90px}.article .ebook-banner--end .ebook-banner-book img.ebook-banner-product{width:90px;height:117px}.article .ebook-banner--end .related-banner-copy h2{font-size:22px}}

