/* Resellfone Layout & Editorial Studio v1.0 — white canvas / #F4A707 accent.
   WordPress & GeneratePress compatible; no rewriting of post content or media files. */
body.rfls-site {
  --rfls-gold:#f4a707;--rfls-ink:#202833;--rfls-muted:#667180;--rfls-edge:#e9edf2;--rfls-white:#fff;
  background:#fff!important;background-image:none!important;color:var(--rfls-ink);
  overflow-x:clip;
}
body.rfls-site :is(#page,.site,.site-header,.site-content,.site-main,.inside-article,.site-footer,.footer-widgets,.site-info,.inside-site-info,.main-navigation){background-color:#fff!important;background-image:none!important;}
body.rfls-site .site-content.grid-container,body.rfls-site .site.grid-container{width:100%!important;max-width:100%!important;padding:0!important;}
body.rfls-site :is(.content-area,.site-main){width:100%;max-width:100%;}
body.rfls-site .site-main>article{margin:0;}
body.rfls-site .main-navigation a,body.rfls-site .site-header a {color:#222933;}
body.rfls-site :is(.main-navigation .main-nav .current-menu-item > a,.main-navigation a:hover){color:#a97200;}
body.rfls-site :is(.site-header,.main-navigation,.site-footer,.footer-widgets){border-color:var(--rfls-edge)!important;}
body.rfls-site :is(.inside-header,.inside-navigation,.inside-footer-widgets,.inside-site-info){max-width:1320px;margin-inline:auto;}
body.rfls-site :is(.site-content>.content-area,.site-content>.content-area>.site-main){box-sizing:border-box;}
body.rfls-site :is(.entry-content,.wp-block-post-content){overflow-wrap:break-word;}
body.rfls-site :is(.entry-content, .rf-editorial) a:not(.button):not(.gb-button){text-underline-offset:3px;text-decoration-color:#efbe59;}
body.rfls-site :is(.button,.wp-block-button__link,.gb-button,input[type=submit]){border-radius:12px;}
body.rfls-site :is(button[type=submit],input[type=submit],.wp-block-button__link){background:#f4a707;color:#1f252f;border-color:#e4a21a;}
body.rfls-site .entry-content :is(img,video,iframe){max-width:100%;}
body.rfls-site .entry-content :is(p,li){line-height:1.75;}
body.rfls-site :is(.entry-content,.rf-editorial) :is(h2,h3){line-height:1.28;letter-spacing:-.025em;scroll-margin-top:110px;}
/* GeneratePress pages retain screen-width sections while copy remains readable. */
body.rfls-page:not(.rf-app) .site-main>article>.inside-article{padding:0!important;background:#fff;}
body.rfls-page:not(.rf-app) .site-main>article>.inside-article>.entry-content{margin:0;}
body.rfls-page:not(.rf-app) .entry-content> :not(.alignfull):not(.alignwide):not(.gb-container):not(.wp-block-cover):not(.wp-block-group):not(.wp-block-columns):not(.wp-block-media-text):not(.rfls-page-intro):not(.rfls-blog-intro){max-width:1160px;margin-left:auto;margin-right:auto;}
body.rfls-page:not(.rf-app) :is(.gb-container,.wp-block-group,.wp-block-columns){box-sizing:border-box;}
body.rfls-page .rfls-page-intro{max-width:1160px;margin:0 auto 16px;padding:clamp(22px,4vw,50px) clamp(20px,4vw,44px) 0;background:#fff;}
body.rfls-page .rfls-page-intro h1{font-size:clamp(28px,4.3vw,54px);line-height:1.12;letter-spacing:-.04em;color:#1b2430;margin:0;}
/* Blog index: custom GeneratePress grid + legacy /blog/ GenerateBlocks query loop. */
body.rfls-blog-list:not(.rf-app) .site-main{max-width:1320px;margin:0 auto;padding:clamp(22px,4vw,56px) clamp(16px,3vw,36px);}
body.rfls-blog-list:not(.rf-app):not(.rfls-blog-page) .site-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
body.rfls-blog-list:not(.rf-app):not(.rfls-blog-page) .site-main> :not(article){grid-column:1/-1;}
body.rfls-blog-list:not(.rf-app) .site-main>article .inside-article{background:#fff!important;border:1px solid var(--rfls-edge);border-radius:20px;overflow:hidden;padding:0!important;box-shadow:0 10px 34px rgba(20,32,55,.045);transition:transform .2s ease,box-shadow .2s ease;}
body.rfls-blog-list:not(.rf-app) .site-main>article .inside-article:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(20,32,55,.09);}
body.rfls-blog-list:not(.rf-app) .site-main>article .inside-article :is(.entry-header,.entry-summary,.entry-content,.entry-meta){padding-inline:22px;}
body.rfls-blog-list:not(.rf-app) .site-main>article :is(.post-image,.featured-image,.post-image-aligned-center){margin:0 0 15px!important;}
body.rfls-blog-list:not(.rf-app) .site-main>article :is(.post-image,.featured-image) img{width:100%!important;height:176px!important;aspect-ratio:16/9!important;object-fit:cover;border-radius:0!important;display:block;}
body.rfls-blog-list:not(.rf-app) .site-main>article .entry-title{font-size:clamp(19px,1.8vw,23px);line-height:1.28;font-weight:760;letter-spacing:-.035em;}
body.rfls-blog-list:not(.rf-app) .site-main>article .entry-title a{color:#222a35;}
body.rfls-blog-list:not(.rf-app) .site-main>article .entry-summary{font-size:14px;color:#657180;}
body.rfls-blog-list:not(.rf-app) .site-main>article .entry-meta{color:#7b8492;font-size:12px;}
body.rfls-blog-list:not(.rf-app) .site-main>article:not(.has-post-thumbnail) .inside-article:before{content:"RESELLFONE  /  JOURNAL";height:174px;display:grid;place-items:center;background:#fff;border-bottom:1px solid #f2dfaa;letter-spacing:.19em;font-size:12px;color:#a97700;font-weight:800;}
body.rfls-blog-list .rfls-blog-intro{max-width:1250px;margin:auto;padding:clamp(22px,5vw,60px) 20px 35px;background:#fff;}
body.rfls-blog-list .rfls-eyebrow{font-size:11px;color:#b57900;letter-spacing:.18em;text-transform:uppercase;font-weight:850;margin-bottom:12px;}
body.rfls-blog-list .rfls-blog-intro h1{font-size:clamp(32px,5vw,60px);line-height:1.08;letter-spacing:-.05em;margin:0 0 12px;}
body.rfls-blog-list .rfls-blog-intro p:last-child{color:#657080;font-size:17px;max-width:640px;}
/* Blog landing page uses a GenerateBlocks query loop rather than archive.php. */
body.rfls-blog-page:not(.rf-app) .site-main>article>.inside-article{padding:0!important;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper{max-width:1290px;margin-inline:auto;padding:0 20px 40px;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper>.gb-grid-wrapper{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px!important;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper>.gb-grid-wrapper>.gb-grid-column{width:100%!important;flex-basis:100%!important;min-width:0;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper .gb-grid-column>article{border:1px solid var(--rfls-edge);border-radius:20px;overflow:hidden;background:#fff!important;box-shadow:0 10px 34px rgba(20,32,55,.045);height:100%;padding-bottom:16px;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper .gb-grid-column>article img{width:100%!important;height:176px!important;object-fit:cover!important;aspect-ratio:16/9;display:block;max-height:176px!important;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper .gb-grid-column>article :is(.gb-headline,h2,p){margin:12px 18px!important;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper .gb-grid-column>article h2{font-size:21px;line-height:1.3;}
/* Individual editorial pages: NO giant hero images, clean reading width, strong hierarchy. */
body.rfls-single-post:not(.rf-app) .site-main{max-width:940px;margin:0 auto;padding:clamp(28px,4vw,56px) clamp(16px,3.5vw,36px);}
body.rfls-single-post:not(.rf-app) .site-main>article>.inside-article{padding:0!important;}
body.rfls-single-post .entry-header{max-width:800px;margin:0 auto 22px;}
body.rfls-single-post .entry-title{font-size:clamp(33px,4.5vw,52px)!important;line-height:1.12!important;letter-spacing:-.045em!important;font-weight:800;}
body.rfls-single-post .entry-meta{font-size:13px;color:var(--rfls-muted);}
body.rfls-single-post:not(.rf-app) .site-main>article>.inside-article>.entry-content{max-width:810px;margin:0 auto;font-size:17px;line-height:1.85;}
/* Hide GeneratePress large duplicate banner only; our compact figure below takes its place. */
body.rfls-single-post:not(.rf-app) .site-main>article>.inside-article>.featured-image,
body.rfls-single-post:not(.rf-app) .site-main>article>.inside-article>.post-image,
body.rfls-single-post:not(.rf-app) .page-header-image-single{display:none!important;}
body.rfls-single-post .rfls-article-feature{margin:19px 0 29px!important;max-width:100%!important;border-radius:18px;overflow:hidden;background:#fff;}
body.rfls-single-post .rfls-article-feature img{width:100%;height:clamp(200px,28vw,280px);max-height:280px;object-fit:cover;display:block;}
body.rfls-single-post .rfls-story-meta{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;font-size:12px;color:#74808c;margin-bottom:14px;}
body.rfls-single-post .rfls-topic{color:#925c00;background:#fff;border:1px solid #f3d99d;border-radius:999px;padding:6px 10px;font-weight:760;}
body.rfls-single-post .entry-content :is(h2,h3){color:#202b36;margin-top:1.55em;margin-bottom:.55em;}
body.rfls-single-post .entry-content h2{font-size:clamp(24px,2.8vw,32px);}
body.rfls-single-post .entry-content h3{font-size:22px;}
body.rfls-single-post .entry-content :is(p,li){color:#3c4855;line-height:1.82;}
body.rfls-single-post .entry-content :is(ul,ol){padding-left:1.5em;}
body.rfls-single-post .entry-content blockquote{border-left:3px solid #f4a707;background:#fff;padding:14px 20px;font-size:19px;}
body.rfls-single-post .entry-content figure:not(.rfls-article-feature) img{border-radius:15px;max-width:100%;height:auto;}
body.rfls-single-post .entry-content :is(table){display:block;max-width:100%;overflow-x:auto;}
body.rfls-single-post .rfls-toc{margin:20px 0 26px;border:1px solid #f1e1bf;border-radius:16px;background:#fff;padding:18px 22px;}
body.rfls-single-post .rfls-toc strong{display:block;font-size:15px;margin-bottom:12px;}
body.rfls-single-post .rfls-toc ol{margin:0;padding-left:20px;}
body.rfls-single-post .rfls-toc a{color:#725000;text-decoration:none;}
body.rfls-single-post .rfls-related{margin:50px auto 0;border-top:1px solid #e8ebf0;padding-top:26px;}
body.rfls-single-post .rfls-related>h2{font-size:25px;margin-bottom:22px;}
body.rfls-single-post .rfls-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
body.rfls-single-post .rfls-related-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--rfls-edge);border-radius:14px;overflow:hidden;text-decoration:none;color:#242a33;font-weight:730;font-size:14px;line-height:1.38;padding-bottom:14px;}
body.rfls-single-post .rfls-related-card img,body.rfls-single-post .rfls-related-card .rfls-image-fallback{width:100%;aspect-ratio:16/9;max-height:110px;object-fit:cover;background:#fff;}
body.rfls-single-post .rfls-related-card span{padding:0 12px;}
body.rfls-single-post .rfls-image-fallback{display:grid;place-items:center;color:#a87600;font-size:24px;}
body.rfls-single-post .rfls-story-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #edd6a5;border-radius:18px;padding:22px 24px;margin-top:30px;background:#fff;}
body.rfls-single-post .rfls-story-cta p{margin:4px 0 0;font-size:14px;}
body.rfls-single-post .rfls-story-cta a{background:#f4a707;border-radius:10px;padding:12px 18px;text-decoration:none;font-weight:800;color:#1a1f28;white-space:nowrap;}
/* Cinematic v2.1 renders its own templates; optimize the existing image and post dimensions. */
body.rf-app.rfls-site .rf-post-card img{display:block;width:100%!important;max-height:176px!important;height:176px!important;aspect-ratio:16/9;object-fit:cover!important;border-radius:14px!important;}
body.rf-app.rfls-site .rf-post-grid{gap:24px!important;}
body.rf-app.rfls-site .rf-post-card{border:1px solid #e8ebf0!important;background:#fff!important;border-radius:20px!important;overflow:hidden;}
body.rf-app.rfls-site .rf-article{max-width:960px!important;}
body.rf-app.rfls-site .rf-article-cover{display:block!important;width:100%!important;max-width:850px!important;height:clamp(200px,28vw,280px)!important;max-height:280px!important;object-fit:cover!important;margin:28px auto 30px!important;border-radius:18px!important;}
body.rf-app.rfls-site .rf-article .rf-editorial{max-width:780px!important;width:100%;margin-inline:auto!important;line-height:1.85!important;}
body.rf-app.rfls-site .rf-article h1{max-width:860px;font-size:clamp(32px,4.8vw,55px)!important;letter-spacing:-.04em!important;}
body.rf-app.rfls-site .rf-article :is(h2,h3){line-height:1.3;}
/* Use simple motion with no layout shifts; reduced-motion preferences override. */
@media(hover:hover){body.rfls-blog-list .rfls-related-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(15,27,45,.06);}}
@media(max-width:1024px){
 body.rfls-blog-list:not(.rf-app):not(.rfls-blog-page) .site-main{grid-template-columns:repeat(2,minmax(0,1fr));}
 body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper>.gb-grid-wrapper{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
 body.rfls-blog-list:not(.rf-app):not(.rfls-blog-page) .site-main{grid-template-columns:1fr;padding:20px 16px;}
 body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper>.gb-grid-wrapper{grid-template-columns:1fr;}
 body.rfls-blog-list:not(.rf-app) .site-main>article :is(.post-image,.featured-image) img{height:170px!important;}
 body.rfls-single-post .rfls-related-grid{grid-template-columns:1fr;}
 body.rfls-single-post .rfls-related-card{display:grid;grid-template-columns:100px 1fr;align-items:center;padding-bottom:0;}
 body.rfls-single-post .rfls-related-card img,body.rfls-single-post .rfls-related-card .rfls-image-fallback{height:95px;max-height:none;}
 body.rfls-single-post .rfls-story-cta{display:block;}
 body.rfls-single-post .rfls-story-cta a{display:inline-block;margin-top:14px;}
 body.rfls-single-post .entry-content :is(p,li){font-size:16px;}
 body.rf-app.rfls-site .rf-post-card img{height:160px!important;max-height:160px!important;}
}
@media(prefers-reduced-motion:reduce){body.rfls-site *{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}
/* Legacy page illustrations: clean frames without stretching logos or screenshots. */
body.rfls-page:not(.rf-app) .entry-content .wp-block-image img{max-width:100%;max-height:460px;width:auto;height:auto;object-fit:contain;border-radius:16px;}
body.rfls-page:not(.rf-app) .entry-content .gb-image{max-width:100%;height:auto;border-radius:16px;}
/* The /blog/ page itself has an older generic featured image in the audit.
   Suppress that giant page banner; cards still use each post's own featured thumbnail. */
body.rfls-blog-page:not(.rf-app) :is(.page-header-image,.page-header-image-single,.inside-article>.featured-image,.inside-article>.post-image){display:none!important;}
body.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper .gb-grid-column>article:not(:has(img)):before{content:"RESELLFONE  /  JOURNAL";height:176px;display:grid;place-items:center;border-bottom:1px solid #f2dfaa;color:#a97700;letter-spacing:.16em;font-size:11px;font-weight:800;}
body.rf-app.rfls-site .rf-article>.rfls-related{width:100%;max-width:800px;margin-inline:auto;}
/* v1.2 editorial card repair — overrides Cinematic's global H2 typography. */
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:22px!important;
  max-width:1250px;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card {
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  background:#fff!important;
  border:1px solid #e9edf2!important;
  border-radius:20px!important;
  box-shadow:0 10px 30px rgba(18,31,50,.055)!important;
  overflow:hidden!important;
  transform:translateZ(0);
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card > a {
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  padding:0 0 20px!important;
  text-decoration:none!important;
  color:#202631!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card :is(img,.rf-placeholder) {
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:16 / 9!important;
  object-fit:cover!important;
  border-radius:0!important;
  margin:0!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card :is(h2,h3),
body.rf-app.rfls-site.rfls-refined-grid .rf-section .rf-post-grid .rf-post-card :is(h2,h3) {
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
  min-height:0!important;
  max-height:4.05em!important;
  font-size:clamp(18px,1.75vw,21px)!important;
  font-weight:760!important;
  line-height:1.34!important;
  letter-spacing:-.032em!important;
  color:#1c2430!important;
  margin:8px 20px 13px!important;
  padding:0!important;
  text-transform:none!important;
  overflow-wrap:break-word!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card .rf-post-date {
  display:block!important;
  color:#996500!important;
  font-size:11px!important;
  font-weight:750!important;
  letter-spacing:.04em!important;
  line-height:1.4!important;
  margin:17px 20px 3px!important;
  padding:0!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card p {
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  font-size:13px!important;
  line-height:1.6!important;
  color:#657080!important;
  margin:0 20px 15px!important;
  padding:0!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card .rf-link {
  display:block!important;
  margin:auto 20px 0!important;
  padding-top:2px!important;
  font-size:12.5px!important;
  font-weight:800!important;
  color:#a76b00!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card:hover {
  transform:translateY(-4px)!important;
  box-shadow:0 16px 38px rgba(18,31,50,.095)!important;
  border-color:#eccc89!important;
}
/* Legacy GenerateBlocks blog cards. */
body.rfls-site.rfls-refined-grid.rfls-blog-page:not(.rf-app) .gb-query-loop-wrapper .gb-grid-column>article :is(h2,h3,.gb-headline){
  font-size:clamp(18px,1.75vw,21px)!important;
  line-height:1.34!important;
  font-weight:760!important;
  letter-spacing:-.025em!important;
  color:#202631!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
  max-height:4.05em!important;
  margin:12px 18px!important;
}
body.rfls-site.rfls-refined-grid.rfls-blog-list:not(.rf-app) .site-main>article .entry-title,
body.rfls-site.rfls-refined-grid.rfls-blog-list:not(.rf-app) .site-main>article .entry-title a {
  font-size:clamp(18px,1.75vw,21px)!important;
  line-height:1.34!important;
  font-weight:760!important;
  letter-spacing:-.025em!important;
  color:#202631!important;
}
body.rf-app.rfls-site.rfls-refined-grid .rf-article-cover {
  height:clamp(170px,24vw,240px)!important;
  max-height:240px!important;
  width:100%!important;
  max-width:810px!important;
  margin:24px auto 30px!important;
  object-fit:cover!important;
  border-radius:17px!important;
}
@media(max-width:980px){
 body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
 body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid{grid-template-columns:1fr!important;gap:17px!important;}
 body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card :is(h2,h3){font-size:19px!important;line-height:1.33!important;}
 body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card :is(img,.rf-placeholder){aspect-ratio:16/9!important;height:auto!important;}
}
@media(prefers-reduced-motion:reduce){
 body.rf-app.rfls-site.rfls-refined-grid .rf-post-grid .rf-post-card{transform:none!important;transition:none!important;}
}
