/* ============================================================
   Stain and Sheen: warm editorial woodshop skin
   Maple cream surfaces, deep mahogany ink, honey-amber accents
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  --sf-color-primary:#7A2E1F;
  --sf-color-primary-deep:#5A2013;
  --sf-color-accent:#E0A243;
  --sf-color-accent-ink:#8A5A12;
  --sf-color-text:#2B1A12;
  --sf-color-text-soft:#5C4638;
  --sf-color-background:#FAF4EA;
  --sf-color-surface:#FFFDF8;
  --sf-color-surface-tint:#F3E8D8;
  --sf-color-surface-dark:#241109;
  --sf-color-surface-dark-2:#31180C;
  --sf-color-on-dark:#F6EADB;
  --sf-color-on-dark-soft:#D9C2A8;
  --sf-color-line:#E3D2BC;
  --sf-color-line-dark:#4A2C18;
  --sf-font-heading:"Roboto Slab",Georgia,"Times New Roman",serif;
  --sf-font-base:"Source Sans Pro","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --sf-radius:14px;
  --sf-radius-sm:10px;
  --sf-space-sm:1rem;
  --sf-space-md:1.75rem;
  --sf-space-lg:3rem;
  --sf-space-xl:5rem;
  --sf-maxwidth:1180px;
  --sf-shadow-sm:0 2px 10px rgba(43,20,8,.08);
  --sf-shadow-md:0 14px 34px -12px rgba(43,20,8,.22);
  --sf-scrim:linear-gradient(180deg,rgba(28,12,5,.25) 0%,rgba(28,12,5,.72) 100%);
  --sf-logo-height:64px;
  --sf-logo-height-scrolled:52px;
  --sf-ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
html{scroll-behavior:smooth}
body{
  background-color:var(--sf-color-background);
  background-image:
    radial-gradient(900px 500px at 110% -5%,rgba(224,162,67,.10),transparent 60%),
    radial-gradient(700px 420px at -10% 30%,rgba(122,46,31,.06),transparent 60%);
  color:var(--sf-color-text);
  font-family:var(--sf-font-base);
  font-size:1.0625rem;
  line-height:1.65;
  overflow-x:hidden;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--sf-font-heading);
  color:var(--sf-color-primary-deep);
  letter-spacing:-.015em;
  line-height:1.18;
}
h2{font-size:clamp(1.75rem,3.4vw,2.5rem);font-weight:700}
h3{font-size:1.25rem;font-weight:700}
p{max-width:70ch}
a{color:var(--sf-color-primary);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--sf-color-primary-deep)}
img{max-width:100%;height:auto}
::selection{background:var(--sf-color-accent);color:#241109}
:focus-visible{outline:3px solid var(--sf-color-accent);outline-offset:2px;border-radius:2px}

/* ---------- Header (Kadence-safe: colours and typography only) ---------- */
#masthead.site-header{
  background:rgba(250,244,234,.94);
  border-bottom-color:var(--sf-color-line);
}
html.sf-scrolled #masthead.site-header{
  background:rgba(250,244,234,.98);
}
@media (min-width:1025px){
  #main-header .main-navigation a{
    font-family:var(--sf-font-base);
    font-weight:600;
    font-size:.98rem;
    letter-spacing:.01em;
    color:var(--sf-color-text);
  }
  #main-header .main-navigation a:hover{color:var(--sf-color-primary)}
  #main-header .main-navigation .current-menu-item > a,
  #main-header .main-navigation .current_page_item > a{color:var(--sf-color-primary)}
}

/* Reading progress strip */
.sf-progress{height:4px;background:rgba(36,17,9,.12)}
.sf-progress__bar{height:4px;background:linear-gradient(90deg,var(--sf-color-primary),var(--sf-color-accent))}

/* ---------- Buttons ---------- */
.wp-block-button__link,.wp-element-button{
  font-family:var(--sf-font-base);
  font-weight:700;
  font-size:1rem;
  letter-spacing:.02em;
  color:#FFF8EC;
  background:linear-gradient(180deg,#8A3A26,var(--sf-color-primary) 55%,#66251A);
  border:1px solid #4E1B10;
  border-radius:999px;
  padding:.85em 1.9em;
  box-shadow:0 6px 18px -6px rgba(122,46,31,.5),inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .18s var(--sf-ease),box-shadow .18s var(--sf-ease),background .18s var(--sf-ease);
}
.wp-block-button__link:hover,.wp-element-button:hover{
  color:#FFF8EC;
  background:linear-gradient(180deg,#96422C,#7A2E1F 55%,#5F2417);
  transform:translateY(-2px);
  box-shadow:0 12px 24px -8px rgba(122,46,31,.55),inset 0 1px 0 rgba(255,255,255,.2);
}
.wp-block-button__link:active,.wp-element-button:active{transform:translateY(0)}
.is-style-outline .wp-block-button__link{
  background:transparent;color:var(--sf-color-primary);
  border:2px solid var(--sf-color-primary);box-shadow:none;
}
.is-style-outline .wp-block-button__link:hover{
  background:var(--sf-color-primary);color:#FFF8EC;
}

/* ---------- Sections ---------- */
.sf-section{position:relative}
.sf-section--tint{
  background:
    linear-gradient(180deg,rgba(255,255,255,.4),rgba(255,255,255,0) 40%),
    var(--sf-color-surface-tint);
}
.sf-section--dark{
  background:
    radial-gradient(1000px 500px at 85% -10%,rgba(224,162,67,.14),transparent 55%),
    radial-gradient(700px 500px at -5% 110%,rgba(122,46,31,.35),transparent 55%),
    linear-gradient(180deg,var(--sf-color-surface-dark),#1B0C05);
  color:var(--sf-color-on-dark);
}
.sf-section--dark h1,.sf-section--dark h2,.sf-section--dark h3,
.sf-section--dark h4,.sf-section--dark h5,.sf-section--dark h6{color:#FBEFDD}
.sf-section--dark p,.sf-section--dark li{color:var(--sf-color-on-dark-soft)}
.sf-section--dark a{color:var(--sf-color-accent)}

.sf-eyebrow{
  display:inline-block;
  font-family:var(--sf-font-base);
  font-weight:800;
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--sf-color-accent-ink);
  margin-bottom:.6rem;
}
.sf-eyebrow::before{
  content:"";
  display:inline-block;
  width:26px;height:3px;
  background:var(--sf-color-accent);
  border-radius:2px;
  margin-right:.55em;
  vertical-align:middle;
}
.sf-section--dark .sf-eyebrow{color:var(--sf-color-accent)}

/* Scroll-reveal: visible by default; motion only when JS flags the document */
@media (prefers-reduced-motion:no-preference){
  html.js .sf-animate{opacity:0;transform:translateY(22px);transition:opacity .6s var(--sf-ease),transform .6s var(--sf-ease)}
  html.js .sf-animate.sf-visible{opacity:1;transform:none}
}

/* ---------- Hero (split) ---------- */
.sf-hero{
  position:relative;
  background:
    radial-gradient(1100px 600px at 100% 0%,rgba(224,162,67,.16),transparent 55%),
    linear-gradient(180deg,#FBF6EC,var(--sf-color-background));
}
.sf-hero::before{
  content:"";
  position:absolute;left:0;right:0;bottom:0;height:6px;
  background:linear-gradient(90deg,var(--sf-color-primary) 0%,var(--sf-color-accent) 55%,transparent 100%);
  opacity:.85;
  pointer-events:none;
}
.sf-hero__heading{
  font-size:clamp(2.3rem,5.2vw,3.9rem);
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1.08;
  color:var(--sf-color-primary-deep);
  text-wrap:balance;
}
.sf-hero__heading strong,.sf-hero__heading em{color:var(--sf-color-primary)}
.sf-hero__tagline{
  font-size:clamp(1.1rem,1.6vw,1.3rem);
  color:var(--sf-color-text-soft);
  max-width:34ch;
}
.sf-hero__content{text-align:left}
.sf-hero__media{position:relative;min-width:0;max-width:100%}
.sf-hero__media img{
  border-radius:var(--sf-radius);
  box-shadow:var(--sf-shadow-md);
  max-width:100%;height:auto;
}
.sf-hero__media::after{
  content:"";
  position:absolute;right:14px;bottom:-10px;
  width:60%;height:60%;
  border:3px solid var(--sf-color-accent);
  border-radius:var(--sf-radius);
  z-index:-1;
  opacity:.55;
  pointer-events:none;
}
.sf-hero--overlay .sf-hero__inner{text-shadow:0 2px 14px rgba(20,8,3,.55)}
.sf-hero--overlay::after{background:var(--sf-scrim)}

/* ---------- Feature grid / cards ---------- */
.sf-feature-card{
  position:relative;
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.6rem 1.5rem 1.5rem;
  box-shadow:var(--sf-shadow-sm);
  transition:transform .2s var(--sf-ease),box-shadow .2s var(--sf-ease),border-color .2s var(--sf-ease);
  overflow:hidden;
}
.sf-feature-card::before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,var(--sf-color-primary),var(--sf-color-accent));
}
.sf-feature-card:hover{
  transform:translateY(-4px);
  border-color:#D8BE97;
  box-shadow:var(--sf-shadow-md);
}
.sf-feature-card h3{margin-top:.35rem;color:var(--sf-color-primary-deep)}
.sf-feature-card p{color:var(--sf-color-text-soft);margin-bottom:0}
.sf-section--dark .sf-feature-card{
  background:rgba(255,244,226,.05);
  border-color:var(--sf-color-line-dark);
}
.sf-section--dark .sf-feature-card h3{color:#FBEFDD}
.sf-section--dark .sf-feature-card p{color:var(--sf-color-on-dark-soft)}

/* ---------- Media + text ---------- */
.sf-media-text__media img{
  border-radius:var(--sf-radius);
  box-shadow:var(--sf-shadow-md);
  max-width:100%;height:auto;
}
.sf-media-text__content h2{margin-top:.2rem}
.sf-media-text__content p{color:var(--sf-color-text-soft)}
.sf-section--dark .sf-media-text__content p{color:var(--sf-color-on-dark-soft)}

/* ---------- Stats ---------- */
.sf-stats__item{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.4rem 1.2rem;
  box-shadow:var(--sf-shadow-sm);
  text-align:center;
}
.sf-stats__value{
  font-family:var(--sf-font-heading);
  font-weight:800;
  font-size:clamp(2rem,3.6vw,2.9rem);
  letter-spacing:-.02em;
  color:var(--sf-color-primary);
  line-height:1.1;
}
.sf-stats__label{
  font-size:.92rem;font-weight:600;
  color:var(--sf-color-text-soft);
  letter-spacing:.02em;
}
.sf-section--dark .sf-stats__item{background:rgba(255,244,226,.05);border-color:var(--sf-color-line-dark)}
.sf-section--dark .sf-stats__value{color:var(--sf-color-accent)}
.sf-section--dark .sf-stats__label{color:var(--sf-color-on-dark-soft)}

/* ---------- Steps ---------- */
.sf-steps{counter-reset:sf-step}
.sf-steps__item{
  position:relative;
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.4rem 1.4rem 1.3rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-steps__item::before{
  counter-increment:sf-step;
  content:counter(sf-step);
  display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;
  margin-bottom:.9rem;
  font-family:var(--sf-font-heading);
  font-weight:800;font-size:1.15rem;
  color:#FFF8EC;
  background:linear-gradient(160deg,#8A3A26,var(--sf-color-primary));
  border-radius:50%;
  box-shadow:0 4px 10px -3px rgba(122,46,31,.5),inset 0 1px 0 rgba(255,255,255,.25);
}
.sf-steps__item h3{margin-top:0}
.sf-steps__item p{color:var(--sf-color-text-soft);margin-bottom:0}
.sf-section--dark .sf-steps__item{background:rgba(255,244,226,.05);border-color:var(--sf-color-line-dark)}
.sf-section--dark .sf-steps__item p{color:var(--sf-color-on-dark-soft)}

/* ---------- Tabs ---------- */
.sf-tabs__nav{
  display:flex;flex-wrap:wrap;gap:.4rem;
  border-bottom:2px solid var(--sf-color-line);
  margin-bottom:1.4rem;
}
.sf-tabs__link{
  display:inline-block;
  padding:.7em 1.2em;
  font-weight:700;font-size:.98rem;
  color:var(--sf-color-text-soft);
  border-radius:10px 10px 0 0;
  border:1px solid transparent;border-bottom:0;
  text-decoration:none;
  transition:background .15s var(--sf-ease),color .15s var(--sf-ease);
}
.sf-tabs__link:hover{background:rgba(224,162,67,.14);color:var(--sf-color-primary)}
.sf-tabs__link--active{
  color:var(--sf-color-primary-deep);
  background:var(--sf-color-surface);
  border-color:var(--sf-color-line);
  box-shadow:0 2px 0 var(--sf-color-surface);
  position:relative;
}
.sf-tabs__link--active::before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:3px;
  background:var(--sf-color-accent);
  border-radius:3px 3px 0 0;
}
.sf-tabs__panel{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.5rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-section--dark .sf-tabs__panel{background:rgba(255,244,226,.05);border-color:var(--sf-color-line-dark)}
.sf-section--dark .sf-tabs__nav{border-color:var(--sf-color-line-dark)}
.sf-section--dark .sf-tabs__link{color:var(--sf-color-on-dark-soft)}
.sf-section--dark .sf-tabs__link--active{background:rgba(255,244,226,.07);color:#FBEFDD;border-color:var(--sf-color-line-dark);box-shadow:none}

/* ---------- Marquee ---------- */
.sf-marquee{
  background:linear-gradient(180deg,#F6EBD9,var(--sf-color-surface-tint));
  border-top:1px solid var(--sf-color-line);
  border-bottom:1px solid var(--sf-color-line);
  padding:.85rem 0;
}
.sf-marquee__item{
  font-family:var(--sf-font-heading);
  font-weight:700;
  font-size:1rem;
  letter-spacing:.04em;
  color:var(--sf-color-primary);
}
.sf-marquee__item::after{
  content:"|";
  color:var(--sf-color-accent-ink);
  margin:0 1.1rem;
}
@media (prefers-reduced-motion:reduce){
  .sf-marquee__item[aria-hidden="true"]{display:none}
}

/* ---------- FAQ ---------- */
.sf-faq-item{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius-sm);
  margin-bottom:.7rem;
  box-shadow:var(--sf-shadow-sm);
  overflow:hidden;
}
.sf-faq-item summary{
  font-family:var(--sf-font-heading);
  font-weight:700;
  font-size:1.05rem;
  color:var(--sf-color-primary-deep);
  padding:1rem 1.2rem;
  cursor:pointer;
  transition:background .15s var(--sf-ease);
}
.sf-faq-item summary:hover{background:rgba(224,162,67,.1)}
.sf-faq-item[open]{border-color:#D8BE97}
.sf-faq-item[open] summary{border-bottom:1px solid var(--sf-color-line)}
.sf-faq-item p{padding:0 1.2rem;color:var(--sf-color-text-soft)}
.sf-section--dark .sf-faq-item{background:rgba(255,244,226,.05);border-color:var(--sf-color-line-dark)}
.sf-section--dark .sf-faq-item summary{color:#FBEFDD}

/* ---------- CTA blocks ---------- */
.sf-cta{
  position:relative;
  background:
    radial-gradient(700px 300px at 50% -30%,rgba(224,162,67,.22),transparent 60%),
    linear-gradient(160deg,var(--sf-color-primary-deep),#3E1509);
  border-radius:calc(var(--sf-radius) + 6px);
  padding:clamp(2.2rem,5vw,3.6rem);
  color:var(--sf-color-on-dark);
  box-shadow:var(--sf-shadow-md);
  overflow:hidden;
}
.sf-cta::after{
  content:"";
  position:absolute;right:-60px;bottom:-60px;
  width:220px;height:220px;
  border:3px solid rgba(224,162,67,.35);
  border-radius:50%;
  pointer-events:none;
}
.sf-cta h2{color:#FBEFDD;margin-top:0}
.sf-cta p{color:var(--sf-color-on-dark-soft);max-width:52ch}
.sf-cta .wp-block-button__link{
  background:linear-gradient(180deg,#EFB35A,var(--sf-color-accent));
  color:#2A1406;border-color:#9A6B1E;
  box-shadow:0 8px 20px -6px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.4);
}
.sf-cta .wp-block-button__link:hover{background:linear-gradient(180deg,#F4BE6C,#E7A94E);color:#2A1406}

/* ---------- Secondary blocks ---------- */
.sf-intro{font-size:1.15rem;color:var(--sf-color-text-soft)}
.sf-toc{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-left:5px solid var(--sf-color-primary);
  border-radius:var(--sf-radius-sm);
  padding:1.2rem 1.4rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-toc a{color:var(--sf-color-primary);text-decoration:none}
.sf-toc a:hover{text-decoration:underline}
.sf-toc__link--active{font-weight:800;color:var(--sf-color-primary-deep)}
.sf-toc__link--active::before{content:">";color:var(--sf-color-accent-ink);margin-right:.35em}

.sf-key-takeaways{
  background:linear-gradient(180deg,#FDF6E8,#F8EDD9);
  border:1px solid #E4CDA4;
  border-radius:var(--sf-radius);
  padding:1.4rem 1.6rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-key-takeaways h2,.sf-key-takeaways h3{color:var(--sf-color-primary-deep)}

.sf-stat-card{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.4rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-stat-card__value{
  font-family:var(--sf-font-heading);
  font-weight:800;font-size:2.2rem;
  color:var(--sf-color-primary);letter-spacing:-.02em;
}
.sf-stat-card__source{font-size:.85rem;color:var(--sf-color-text-soft)}

.sf-pros-cons{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.4rem 1.6rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-sources{font-size:.92rem;color:var(--sf-color-text-soft)}
.sf-sources a{color:var(--sf-color-primary)}

.sf-contact-info{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.6rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-contact__org{font-family:var(--sf-font-heading);font-weight:700;color:var(--sf-color-primary-deep)}

/* ---------- Article components ---------- */
.sf-statistic-grid__item{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.3rem 1.2rem;
  box-shadow:var(--sf-shadow-sm);
  text-align:center;
}
.sf-statistic-grid__value{
  font-family:var(--sf-font-heading);
  font-weight:800;font-size:clamp(1.8rem,3vw,2.5rem);
  color:var(--sf-color-primary);letter-spacing:-.02em;line-height:1.1;
}
.sf-statistic-grid__label{font-weight:600;color:var(--sf-color-text)}
.sf-statistic-grid__source{font-size:.82rem;color:var(--sf-color-text-soft)}

.sf-chart-block{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.5rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-chart-block h2,.sf-chart-block h3{margin-top:0}
.sf-chart--bar .sf-chart__label{font-weight:600;color:var(--sf-color-text)}
.sf-chart--bar .sf-chart__track{
  background:#EFE2CC;
  border-radius:6px;
  height:16px;
  overflow:hidden;
}
.sf-chart--bar .sf-chart__bar{
  height:16px;
  border-radius:6px;
  background:linear-gradient(90deg,var(--sf-color-primary),#A0512F);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}
.sf-chart--bar .sf-chart__value{font-weight:700;color:var(--sf-color-primary-deep)}
.sf-chart--line .sf-chart__point{
  width:12px;height:12px;
  background:var(--sf-color-accent);
  border:2px solid var(--sf-color-primary-deep);
  border-radius:50%;
  box-shadow:0 1px 4px rgba(43,20,8,.3);
}
.sf-chart--line .sf-chart__segment{background:var(--sf-color-primary);height:3px;border-radius:2px}
.sf-chart--line .sf-chart__tick{font-size:.82rem;color:var(--sf-color-text-soft)}
.sf-chart__source,.sf-data-source{
  font-size:.85rem;
  color:var(--sf-color-text-soft);
  border-top:1px dashed var(--sf-color-line);
  padding-top:.6rem;
  margin-top:1rem;
}
.sf-chart-block table{width:100%;border-collapse:collapse;font-size:.95rem;margin-top:1rem}
.sf-chart-block th,.sf-chart-block td{padding:.5em .7em;border-bottom:1px solid var(--sf-color-line);text-align:left}
.sf-chart-block thead th{background:var(--sf-color-surface-tint);color:var(--sf-color-primary-deep);font-weight:700}

.sf-timeline{border-left:3px solid var(--sf-color-line);padding-left:0}
.sf-timeline ol{list-style:none;margin:0;padding:0}
.sf-timeline li{
  position:relative;
  padding:0 0 1.6rem 2rem;
}
.sf-timeline li::before{
  content:"";
  position:absolute;left:-9px;top:.3rem;
  width:13px;height:13px;
  background:var(--sf-color-accent);
  border:3px solid var(--sf-color-primary);
  border-radius:50%;
}
.sf-timeline__date{
  font-weight:800;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--sf-color-accent-ink);
}
.sf-timeline__title{font-family:var(--sf-font-heading);font-weight:700;color:var(--sf-color-primary-deep)}
.sf-timeline__text{color:var(--sf-color-text-soft)}

.sf-methodology{
  background:var(--sf-color-surface-tint);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.4rem 1.6rem;
}
.sf-methodology__details dt{font-weight:700;color:var(--sf-color-primary-deep)}
.sf-methodology__details dd{margin:0 0 .7rem;color:var(--sf-color-text-soft)}

.sf-related li{margin-bottom:.5rem}
.sf-related__link{font-weight:700;color:var(--sf-color-primary);text-decoration:none}
.sf-related__link:hover{text-decoration:underline;color:var(--sf-color-primary-deep)}
.sf-related__description{color:var(--sf-color-text-soft);font-size:.95rem}

.sf-affiliate-cta,.sf-newsletter-cta{
  background:linear-gradient(160deg,#FDF6E8,#F5E7CE);
  border:1px solid #E4CDA4;
  border-radius:var(--sf-radius);
  padding:1.8rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-affiliate-cta h2,.sf-newsletter-cta h2{margin-top:0}
.sf-affiliate-cta__disclosure{
  font-size:.82rem;
  color:var(--sf-color-text-soft);
  border-top:1px dashed #D8BE97;
  padding-top:.7rem;
  margin-top:1rem;
}
.sf-newsletter-cta__note{font-size:.88rem;color:var(--sf-color-text-soft)}

/* ---------- Calculator ---------- */
.sf-calculator{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-radius:var(--sf-radius);
  padding:1.8rem;
  box-shadow:var(--sf-shadow-md);
}
.sf-calculator__title{font-family:var(--sf-font-heading);color:var(--sf-color-primary-deep);margin-top:0}
.sf-calculator__intro{color:var(--sf-color-text-soft)}
.sf-calculator__field{margin-bottom:1rem}
.sf-calculator__label{display:block;font-weight:700;font-size:.95rem;margin-bottom:.35rem;color:var(--sf-color-text)}
.sf-calculator__unit{font-weight:600;color:var(--sf-color-text-soft);font-size:.85rem}
.sf-calculator__input{
  width:100%;
  font:inherit;
  color:var(--sf-color-text);
  background:#FFFDF8;
  border:1.5px solid #CBB593;
  border-radius:8px;
  padding:.6em .8em;
  transition:border-color .15s var(--sf-ease),box-shadow .15s var(--sf-ease);
}
.sf-calculator__input:hover{border-color:var(--sf-color-primary)}
.sf-calculator__input:focus{
  outline:3px solid var(--sf-color-accent);
  outline-offset:1px;
  border-color:var(--sf-color-primary);
  box-shadow:0 0 0 3px rgba(224,162,67,.25);
}
.sf-calculator__result{
  margin-top:1.2rem;
  background:linear-gradient(160deg,var(--sf-color-primary-deep),#3E1509);
  border-radius:var(--sf-radius-sm);
  padding:1.1rem 1.3rem;
  color:var(--sf-color-on-dark);
}
.sf-calculator__result-label{font-size:.85rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sf-color-on-dark-soft)}
.sf-calculator__value{
  font-family:var(--sf-font-heading);
  font-weight:800;font-size:2rem;
  color:var(--sf-color-accent);
  letter-spacing:-.01em;
}
.sf-calculator__result-unit{color:var(--sf-color-on-dark-soft)}

/* ---------- Data components ---------- */
.sf-breadcrumbs{font-size:.85rem}
.sf-breadcrumbs__list{
  display:flex;flex-wrap:wrap;gap:.35rem .5rem;
  list-style:none;margin:0;padding:0;
  max-width:100%;
}
.sf-breadcrumbs__item{overflow-wrap:anywhere}
.sf-breadcrumbs__item a{color:var(--sf-color-primary);text-decoration:none}
.sf-breadcrumbs__item a:hover{text-decoration:underline}
.sf-breadcrumbs__item + .sf-breadcrumbs__item::before{
  content:"/";
  color:var(--sf-color-text-soft);
  margin-right:.5rem;
}
.sf-breadcrumbs__current{color:var(--sf-color-text-soft);font-weight:600}

.sf-data-table__scroll{overflow-x:auto;border:1px solid var(--sf-color-line);border-radius:var(--sf-radius-sm);background:var(--sf-color-surface)}
.sf-data-table__scroll:focus-visible{outline:3px solid var(--sf-color-accent);outline-offset:2px}
.sf-data-table__table{border-collapse:collapse;font-size:.95rem;min-width:100%}
.sf-data-table__table caption{
  text-align:left;font-weight:700;
  font-family:var(--sf-font-heading);
  color:var(--sf-color-primary-deep);
  padding:.8rem 1rem;
}
.sf-data-table__table th,.sf-data-table__table td{
  padding:.65em 1em;
  border-bottom:1px solid var(--sf-color-line);
  text-align:left;
  vertical-align:top;
}
.sf-data-table__table thead th{
  background:linear-gradient(180deg,#F4E7D1,var(--sf-color-surface-tint));
  color:var(--sf-color-primary-deep);
  font-weight:800;
  border-bottom:2px solid #D8BE97;
  white-space:nowrap;
}
.sf-data-table__table tbody tr:hover{background:rgba(224,162,67,.08)}
.sf-data-table__num{text-align:right;font-variant-numeric:tabular-nums}
.sf-data-table__row--flagged{background:#FBF1DC}
.sf-data-table__flag{
  display:inline-block;
  color:#FFF8EC;background:var(--sf-color-accent-ink);
  border-radius:50%;width:1.1em;height:1.1em;
  font-size:.72rem;font-weight:800;line-height:1.1em;text-align:center;
  margin-left:.35em;vertical-align:middle;
}
.sf-data-table__note{font-size:.88rem;color:var(--sf-color-text-soft);margin-top:.6rem}
.sf-data-table__sort{
  font:inherit;font-weight:800;color:var(--sf-color-primary-deep);
  background:none;border:0;padding:0;cursor:pointer;
}
.sf-data-table__sort:focus-visible{outline:3px solid var(--sf-color-accent);outline-offset:2px;border-radius:2px}
.sf-data-table__sort::after{content:"^";margin-left:.35em;color:var(--sf-color-accent-ink);font-size:.85em}
th[aria-sort="ascending"] .sf-data-table__sort::after{content:"^"}
th[aria-sort="descending"] .sf-data-table__sort::after{content:"v"}

.sf-key-figures__item{
  background:var(--sf-color-surface);
  border:1px solid var(--sf-color-line);
  border-top:4px solid var(--sf-color-accent);
  border-radius:var(--sf-radius);
  padding:1.3rem 1.2rem;
  box-shadow:var(--sf-shadow-sm);
}
.sf-key-figures__value{
  font-family:var(--sf-font-heading);
  font-weight:800;font-size:clamp(1.9rem,3.2vw,2.6rem);
  color:var(--sf-color-primary);letter-spacing:-.02em;line-height:1.1;
}
.sf-key-figures__label{font-weight:700;color:var(--sf-color-text)}
.sf-key-figures__context{font-size:.9rem;color:var(--sf-color-text-soft)}

.sf-ranking ol{margin:0;padding-left:1.6rem}
.sf-ranking li{padding:.4rem 0;border-bottom:1px dashed var(--sf-color-line)}
.sf-ranking li::marker{font-family:var(--sf-font-heading);font-weight:800;color:var(--sf-color-primary)}
.sf-ranking__name{font-weight:700;color:var(--sf-color-text)}
.sf-ranking__value{font-variant-numeric:tabular-nums;font-weight:800;color:var(--sf-color-primary-deep)}

.sf-page-links__list{
  columns:1;
  column-gap:2.2rem;
  list-style:none;margin:0;padding:0;
}
@media (min-width:781px){.sf-page-links__list{columns:2}}
@media (min-width:1024px){.sf-page-links__list{columns:3}}
.sf-page-links__item{break-inside:avoid;margin-bottom:.6rem}
.sf-page-links__item a{font-weight:600;color:var(--sf-color-primary);text-decoration:none}
.sf-page-links__item a:hover{text-decoration:underline;color:var(--sf-color-primary-deep)}
.sf-page-links__description{font-size:.88rem;color:var(--sf-color-text-soft)}

/* ---------- Images ---------- */
figure.wp-block-image img{border-radius:var(--sf-radius-sm)}
figure.wp-block-image figcaption{font-size:.88rem;color:var(--sf-color-text-soft);font-style:italic}

/* ---------- Footer ---------- */
.sf-footer{
  position:relative;
  background:
    radial-gradient(800px 400px at 90% 0%,rgba(224,162,67,.12),transparent 55%),
    linear-gradient(180deg,var(--sf-color-surface-dark-2),#1B0C05);
  color:var(--sf-color-on-dark);
  margin-top:var(--sf-space-xl);
}
.sf-footer::before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:5px;
  background:linear-gradient(90deg,var(--sf-color-primary),var(--sf-color-accent) 60%,rgba(224,162,67,.2));
}
.sf-footer__grid{
  max-width:var(--sf-maxwidth);
  margin:0 auto;
  padding:3rem 1.25rem 2rem;
  display:grid;
  gap:2rem;
  grid-template-columns:1fr;
}
@media (min-width:781px){
  .sf-footer__grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:2.5rem}
}
.sf-footer__title{
  font-family:var(--sf-font-heading);
  font-size:.95rem;font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--sf-color-accent);
  margin:0 0 .9rem;
  padding-bottom:.5rem;
  border-bottom:1px solid var(--sf-color-line-dark);
}
.sf-footer__widget p,.sf-footer__widget li{color:var(--sf-color-on-dark-soft);font-size:.95rem}
.sf-footer__widget ul{list-style:none;margin:0;padding:0}
.sf-footer__widget li{margin-bottom:.45rem}
.sf-footer__widget a{color:var(--sf-color-on-dark);text-decoration:none}
.sf-footer__widget a:hover{color:var(--sf-color-accent);text-decoration:underline}
.sf-footer__bottom{
  border-top:1px solid var(--sf-color-line-dark);
  padding:1rem 1.25rem;
  text-align:center;
  font-size:.85rem;
  color:var(--sf-color-on-dark-soft);
  background:rgba(0,0,0,.25);
}

/* ---------- Blog/article chrome (class-scoped) ---------- */
.wp-block-post-title,.entry-title{
  font-size:clamp(1.9rem,3.8vw,2.8rem);
  letter-spacing:-.02em;
}
.wp-block-post-date,.post-meta,.entry-meta{font-size:.88rem;color:var(--sf-color-text-soft)}
.wp-block-quote{
  border-left:5px solid var(--sf-color-accent);
  background:var(--sf-color-surface);
  border-radius:0 var(--sf-radius-sm) var(--sf-radius-sm) 0;
  padding:1.1rem 1.4rem;
  box-shadow:var(--sf-shadow-sm);
  font-family:var(--sf-font-heading);
  color:var(--sf-color-primary-deep);
}
.wp-block-pullquote{border-top:3px solid var(--sf-color-primary);border-bottom:3px solid var(--sf-color-primary);color:var(--sf-color-primary-deep)}
.wp-block-separator{border:0;height:3px;background:linear-gradient(90deg,var(--sf-color-primary),var(--sf-color-accent),transparent);max-width:120px;margin-left:0;border-radius:2px}
.wp-block-code,code{
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  background:var(--sf-color-surface-tint);
  border:1px solid var(--sf-color-line);
  border-radius:6px;
  padding:.1em .4em;
  font-size:.92em;
  color:var(--sf-color-primary-deep);
}
table{width:100%;border-collapse:collapse}
th,td{padding:.6em .8em;border-bottom:1px solid var(--sf-color-line);text-align:left}
thead th{background:var(--sf-color-surface-tint);color:var(--sf-color-primary-deep);font-weight:700}

/* ---------- Responsive safeguards ---------- */
@media (max-width:780px){
  body{font-size:1rem}
  .sf-hero{grid-template-columns:1fr}
  .sf-hero > *,.sf-hero__inner > *,.sf-hero__content > *{min-width:0;max-width:100%}
  .sf-hero__heading{font-size:clamp(2rem,8vw,2.5rem)}
  h1,h2,h3,p,li,a,td,th{overflow-wrap:break-word}
  .sf-cta::after{width:140px;height:140px;right:-50px;bottom:-50px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .wp-block-button__link,.wp-element-button,.sf-feature-card,.sf-tabs__link,.sf-faq-item summary{transition:none}
}

/* Kadence header integrity */
#masthead.site-header{display:block;padding:0;gap:0;min-height:0;height:auto}
#masthead > #main-header,#masthead > #mobile-header{width:100%;max-width:none;flex:none;margin:0;border:0;overflow:visible}
#masthead .site-branding a{border:0;border-radius:0;background:none;padding:0;box-shadow:none}
#masthead .site-branding img.custom-logo{height:44px;width:auto;max-height:none}
#masthead #main-header .site-main-header-inner-wrap{min-height:72px}
#masthead #mobile-header .site-main-header-inner-wrap{min-height:60px}
@media (max-width:1024px){#masthead .site-branding img.custom-logo{height:36px}}