/*
 Theme Name: YURI POWER
 Theme URI: https://yuripower.com
 Description: Lightweight, Astra-inspired WordPress theme for YURI POWER - solar, BESS and hybrid microgrid solutions. Brand palette derived from the YURI POWER logo: green #00A050, navy #002050, white.
 Version: 1.1.16
 Requires at least: 6.0
 Tested up to: 6.6
 Requires PHP: 7.4
 Author: YURI POWER
 Author URI: https://yuripower.com
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: yuripower
*/

:root{
  /* Brand palette (from logo) */
  --brand:#00A050;        /* logo green - primary accent / actions */
  --brand-dark:#00803F;   /* green hover */
  --ink:#002050;          /* logo navy - dark / headings / dark bands */
  --ink-2:#0A3A66;        /* navy gradient partner */
  --ink-soft:#475569;     /* body text (slate) */
  --white:#ffffff;
  --bg:#ffffff;
  --bg-soft:#F4F7FA;      /* light section background */
  --bg-tint:#EAF2F8;      /* light blue tint */
  --line:#E2E8F0;         /* borders */
  --muted:#64748B;        /* muted text */
  --maxw:1200px;
  --radius:14px;
  --shadow:0 10px 30px -12px rgba(0,32,80,.18);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink-soft);
  background:var(--white);
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;height:auto;}
a{color:var(--brand-dark);text-decoration:none;transition:color .18s ease;}
a:hover{color:var(--brand);}

h1,h2,h3,h4,h5{
  font-family:'Manrope','Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);line-height:1.2;font-weight:800;margin:0 0 .5em;letter-spacing:-.02em;
}
h1{font-size:40px;}
h2{font-size:30px;}
h3{font-size:23px;}
h4{font-size:19px;}
h5{font-size:16px;}
p{margin:0 0 1.2em;}

.container{max-width:var(--maxw);margin:0 auto;padding:0 20px;}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;height:72px;}
.site-branding .site-title{font-family:'Manrope',sans-serif;font-size:22px;font-weight:800;color:var(--ink);letter-spacing:-.5px;}
.site-branding .site-title:hover{color:var(--brand-dark);}
.site-branding img{max-height:60px;width:auto;display:block;}
.custom-logo-link{display:inline-flex;align-items:center;}

.primary-nav ul{display:flex;gap:30px;list-style:none;margin:0;padding:0;align-items:center;}
.primary-nav li a{font-weight:600;color:var(--ink);font-size:15px;padding:6px 0;position:relative;}
.primary-nav li a::after{
  content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--brand);
  transition:width .2s ease;
}
.primary-nav li a:hover{color:var(--brand-dark);}
.primary-nav li a:hover::after,.primary-nav li.current-menu-item>a::after{width:100%;}
.primary-nav li.current-menu-item>a{color:var(--brand-dark);}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px;}
.nav-toggle span{width:26px;height:3px;background:var(--ink);border-radius:2px;display:block;}

/* ===== Content ===== */
.site-content{padding:56px 0 72px;min-height:60vh;}
.page-id-1381 .site-content{padding:0;}
.page-id-1386 .entry-header{display:none;}
.page-id-1386 .site-content{padding-top:0;}
.page-id-1381 .entry-header{display:none;}
.entry-content{font-size:16px;}
.entry-title{margin-bottom:.3em;}
.entry-meta{color:var(--muted);font-size:13px;margin-bottom:1em;}
.content-area{flex:1 1 auto;}
.post-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:0 0 20px;overflow:hidden;margin-bottom:28px;box-shadow:var(--shadow);
  transition:transform .2s ease,box-shadow .2s ease;
}
.post-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px -14px rgba(0,32,80,.28);}
.post-card img{width:100%;}
.post-card .entry-header,.post-card .entry-meta,.post-card .entry-summary{padding:0 22px;}
.post-card h2{font-size:22px;margin-top:18px;}
.layout-with-sidebar{display:flex;gap:40px;align-items:flex-start;}
.sidebar{flex:0 0 300px;}

/* ===== Footer (redesign) ===== */
.site-footer{
  background:linear-gradient(180deg,var(--ink) 0%, #001833 100%);
  color:#AEBED2;
  margin-top:0;
  padding:64px 0 30px;
  font-size:15px;
}
.site-footer a{color:#AEBED2;transition:color .18s ease;}
.site-footer a:hover{color:#fff;}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
.yp-footer-grid{
  display:grid;
  grid-template-columns:1.7fr 1fr 1fr 1fr 1.25fr;
  gap:40px;
  padding-bottom:38px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.yp-footer-brand .yp-footer-logo{
  font-family:'Manrope',sans-serif;font-weight:800;font-size:22px;color:#fff;letter-spacing:-.02em;
}
.yp-footer-logo span{color:var(--brand);}
.yp-footer-tag{margin:16px 0 22px;color:#94A6BE;font-size:14px;line-height:1.7;max-width:330px;}
.yp-footer-social{display:flex;gap:12px;}
.yp-footer-social a{
  width:38px;height:38px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.07);color:#C7D3E3;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.yp-footer-social a:hover{background:var(--brand);color:#fff;transform:translateY(-2px);}
.yp-footer-col h4{
  color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;
  margin:0 0 16px;font-family:'Manrope',sans-serif;
}
.yp-footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:11px;}
.yp-footer-col ul a{color:#AEBED2;font-size:14px;}
.yp-footer-col ul a:hover{color:#fff;}
.yp-footer-info li{display:flex;gap:11px;align-items:flex-start;color:#AEBED2;font-size:14px;line-height:1.5;}
.yp-footer-info .yp-ico{flex:0 0 auto;width:18px;height:18px;margin-top:2px;color:var(--brand);}
.yp-footer-info a{color:#AEBED2;}
.yp-footer-info a:hover{color:#fff;}
.yp-footer-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  padding-top:22px;font-size:13px;color:#7E92AD;
}
.yp-footer-legal{display:flex;gap:20px;}
.yp-footer-legal a{color:#7E92AD;}
.yp-footer-legal a:hover{color:#fff;}
@media (max-width:980px){
  .yp-footer-grid{grid-template-columns:1fr 1fr;gap:34px 32px;}
  .yp-footer-brand{grid-column:1/-1;}
}
@media (max-width:560px){
  .yp-footer-grid{grid-template-columns:1fr;gap:30px;}
  .yp-footer-bottom{flex-direction:column;align-items:flex-start;}
}

/* ===== Widgets ===== */
.widget{margin-bottom:22px;}
.widget-title{font-size:16px;color:var(--ink);margin-bottom:10px;font-family:'Manrope',sans-serif;}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}

/* ===== Global entry-content typographic polish (helps all pages) ===== */
.entry-content :where(h1,h2,h3,h4){color:var(--ink);}
.entry-content img{border-radius:10px;}
.entry-content ul,.entry-content ol{padding-left:1.3em;}
.entry-content li{margin:0 0 .5em;}

/* ===== Responsive ===== */
@media (max-width:900px){
  .layout-with-sidebar{flex-direction:column;}
  .sidebar{flex:1 1 auto;width:100%;}
  .nav-toggle{display:flex;}
  .primary-nav{
    position:absolute;top:72px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);
    max-height:0;overflow:hidden;transition:max-height .25s ease;
  }
  .primary-nav.open{max-height:80vh;overflow:auto;}
  .primary-nav ul{flex-direction:column;gap:0;padding:10px 20px;}
  .primary-nav li{border-bottom:1px solid var(--line);}
  .primary-nav li a{display:block;padding:12px 0;}
  .primary-nav li a::after{display:none;}
}

/* ===== Dropdown submenu support ===== */
.primary-nav li{position:relative;}
.primary-nav ul ul{
  position:absolute;top:calc(100% + 6px);left:0;min-width:236px;
  background:var(--white);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 12px 32px rgba(0,32,80,.14);padding:8px 0;
  display:flex;flex-direction:column;gap:0;
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;z-index:200;
}
.primary-nav li:hover>ul,.primary-nav li:focus-within>ul{opacity:1;visibility:visible;transform:translateY(0);}
.primary-nav ul ul li{border:0;}
.primary-nav ul ul li a{display:block;padding:9px 18px;font-weight:500;font-size:14px;white-space:nowrap;}
.primary-nav ul ul li a::after{display:none;}
.primary-nav ul ul li a:hover{background:var(--bg-soft);color:var(--brand-dark);}
.primary-nav .menu-item-has-children>a::after{
  content:"";display:inline-block;width:5px;height:5px;margin-left:7px;vertical-align:middle;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);
}

/* ===== GET A QUOTE button (last nav item) ===== */
.primary-nav>div>ul>li:last-child>a{
  background:var(--brand);color:#fff;padding:9px 18px;border-radius:6px;font-weight:700;
  transition:background .2s ease,transform .2s ease;
}
.primary-nav>div>ul>li:last-child>a::after{display:none;}
.primary-nav>div>ul>li:last-child>a:hover{background:var(--brand-dark);color:#fff;transform:translateY(-1px);}
@media (max-width:900px){
  .primary-nav ul ul{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;border-radius:0;padding:0 0 8px 16px;min-width:0;background:transparent;}
  .primary-nav .menu-item-has-children>a::after{display:none;}
  .primary-nav>div>ul>li:last-child>a{background:transparent;color:var(--ink);padding:12px 0;border-radius:0;}
  .primary-nav>div>ul>li:last-child>a:hover{color:var(--brand-dark);transform:none;}
}

/* ===== Homepage v5 custom layout ===== */

.yp-v5{overflow-x:clip;font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#475569;line-height:1.6;}
.yp-v5 *,.yp-v5 *::before,.yp-v5 *::after{box-sizing:border-box;}
.yp-v5 img{max-width:100%;display:block;height:auto;}
.yp-v5 a{text-decoration:none;color:inherit;}
.yp-v5 h1,.yp-v5 h2,.yp-v5 h3,.yp-v5 h4{margin:0 0 .35em;font-family:'Manrope','Inter',sans-serif;font-weight:800;color:#002050;line-height:1.15;}
.yp-v5 p{margin:0 0 .8em;}
.yp-v5 ul{margin:0;padding:0 0 0 1.1em;}
.yp-v5 li{margin:0 0 .35em;}
.yp-band{width:100vw;margin-left:calc(50% - 50vw);position:relative;}
.yp-inner{max-width:1200px;margin:0 auto;padding:0 24px;position:relative;}
.yp-eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#00A050;margin-bottom:.6rem;}
.yp-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-family:'Manrope','Inter',sans-serif;font-weight:700;font-size:.9rem;padding:.7rem 1.4rem;border-radius:6px;transition:.2s;cursor:pointer;border:0;}
.yp-btn-primary{background:#00A050;color:#fff;}
.yp-btn-primary:hover{background:#00803F;}
.yp-btn-outline{border:2px solid #fff;color:#fff;background:transparent;}
.yp-btn-outline:hover{background:rgba(255,255,255,.1);}

.yp-hero{background:linear-gradient(135deg,#002050 0%,#0A3A66 100%);color:#fff;padding:0;min-height:560px;display:flex;align-items:center;}
.yp-hero .yp-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding-top:72px;padding-bottom:72px;}
.yp-hero h1{font-size:clamp(2rem,4.2vw,3.2rem);color:#fff;}
.yp-hero h1 .ac{color:#00A050;}
.yp-hero .lead{font-size:clamp(1rem,1.4vw,1.15rem);color:#cbd5e1;max-width:560px;}
.yp-hero .cta-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:1.4rem;}
.yp-hero .hero-meta{display:flex;gap:28px;margin-top:1.6rem;flex-wrap:wrap;}
.yp-hero .hero-meta div{font-size:.85rem;color:#cbd5e1;}
.yp-hero .hero-meta strong{display:block;color:#fff;font-size:1.25rem;font-family:'Manrope',sans-serif;}
.yp-hero .hero-card{background:rgba(255,255,255,.08);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:26px;}
.yp-hero .hero-card h3{color:#fff;font-size:1.05rem;margin-bottom:.7rem;}
.yp-hero .hero-card .chain{display:flex;flex-wrap:wrap;gap:8px;}
.yp-hero .hero-card .chain span{background:rgba(0,160,80,.18);color:#fff;font-size:.78rem;font-weight:600;padding:.35rem .7rem;border-radius:99px;border:1px solid rgba(0,160,80,.35);}

.yp-sec{padding:54px 0;}
.yp-sec.ink{background:#002050;color:#fff;}
.yp-sec.ink h2,.yp-sec.ink h3,.yp-sec.ink h4{color:#fff;}
.yp-sec.sky{background:#fff;}
.yp-sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px;flex-wrap:wrap;}
.yp-sec-head h2{font-size:clamp(1.6rem,2.6vw,2.1rem);max-width:720px;}
.yp-sec-head p{max-width:520px;color:#64748b;margin:0;}
.yp-sec.ink .yp-sec-head p{color:#cbd5e1;}
.yp-link{font-weight:700;color:#00A050;white-space:nowrap;}
.yp-link:hover{color:#00803F;}

.solve-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.solve-card{display:flex;gap:14px;align-items:flex-start;padding:18px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.solve-card .ic{width:42px;height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;background:#F0F7FA;color:#00A050;border-radius:8px;}
.solve-card h4{font-size:1rem;margin-bottom:.25rem;}
.solve-card p{font-size:.86rem;color:#64748b;margin:0;}

.sol-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;}
.sol-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px;transition:.2s;display:flex;flex-direction:column;}
.sol-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,32,80,.1);border-color:#cbd5e1;}
.sol-card .ic{width:46px;height:46px;border-radius:10px;background:linear-gradient(135deg,#002050,#0A3A66);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:14px;}
.sol-card h4{font-size:1.15rem;margin-bottom:.5rem;line-height:1.25;}
.sol-card ul{font-size:.84rem;color:#64748b;margin-bottom:.9rem;flex:1;}
.sol-card .yp-link{font-size:.82rem;}

.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.prod-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:18px;transition:.2s;}
.prod-card:hover{border-color:#00A050;box-shadow:0 8px 22px rgba(0,160,80,.1);}
.prod-card .ic{width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:#F0F7FA;color:#002050;border-radius:8px;margin-bottom:12px;}
.prod-card h4{font-size:.95rem;margin-bottom:.35rem;}
.prod-card p{font-size:.82rem;color:#64748b;margin:0;}

.arch-flow{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:8px;}
.arch-node{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:.55rem .85rem;font-size:.82rem;font-weight:700;color:#002050;box-shadow:0 2px 4px rgba(0,0,0,.04);}
.arch-arrow{color:#00A050;font-weight:800;font-size:1.1rem;}

.app-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.app-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:18px;text-align:center;transition:.2s;}
.app-card:hover{background:rgba(255,255,255,.12);}
.app-card .ic{width:40px;height:40px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:rgba(0,160,80,.18);color:#fff;border-radius:50%;}
.app-card h4{font-size:.9rem;color:#fff;margin-bottom:.25rem;}
.app-card p{font-size:.78rem;color:#cbd5e1;margin:0;}

.config-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.08);}
.config-table th,.config-table td{padding:12px 14px;text-align:left;font-size:.85rem;border-bottom:1px solid #e2e8f0;}
.config-table th{background:#002050;color:#fff;font-weight:700;}
.config-table tr:last-child td{border-bottom:0;}
.config-table td:first-child{font-weight:700;color:#002050;}

.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.why-item{display:flex;gap:12px;}
.why-item .ic{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;background:#F0F7FA;color:#00A050;border-radius:8px;}
.why-item h4{font-size:.98rem;margin-bottom:.2rem;}
.why-item p{font-size:.84rem;color:#64748b;margin:0;}

.yp-final{background:#00A050;color:#fff;text-align:center;padding:62px 0;}
.yp-final h2{color:#fff;font-size:clamp(1.5rem,2.4vw,2rem);margin-bottom:.6rem;}
.yp-final p{color:#e0f2e9;max-width:680px;margin:0 auto 1.4rem;}
.yp-final .yp-btn-outline{border-color:#fff;color:#fff;}

@media (max-width:1020px){
.yp-hero .yp-inner{grid-template-columns:1fr;gap:36px;}
.yp-hero--banner .hero-card{position:static;max-width:none;margin-top:28px;}
.solve-grid,.sol-grid,.prod-grid,.why-grid{grid-template-columns:repeat(2,1fr);}
.app-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:640px){
.yp-hero{min-height:auto;}
.yp-hero .yp-inner{padding-top:48px;padding-bottom:48px;}
.solve-grid,.sol-grid,.prod-grid,.app-grid,.why-grid{grid-template-columns:1fr;}
.yp-sec-head{flex-direction:column;align-items:flex-start;}
}


/* ===== Homepage v6 fixes ===== */
.prod-card h4 a,.app-card h4 a{color:inherit;transition:color .18s ease;}
.prod-card h4 a:hover,.app-card h4 a:hover{color:#00A050;}
.yp-hero .yp-inner h1{color:#fff !important;}
.yp-hero .yp-inner h1 .ac{color:#00A050 !important;}

/* ===== Homepage v6 applications fix ===== */
.app-card h4 a{color:#fff !important;}
.app-card h4 a:hover{color:#00A050 !important;}

/* ===== Hero banner (uploaded banner image as full-bleed background) ===== */
/* Add class "yp-hero--banner" + inline style "--hero-img:url('...')" to any .yp-hero section. */
.yp-hero--banner{
  background:var(--hero-img) center 32% / cover no-repeat var(--ink);
  min-height:clamp(540px,74vh,780px);
}
.yp-hero--banner::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(90deg, rgba(0,32,80,.92) 0%, rgba(0,32,80,.80) 32%, rgba(0,32,80,.46) 64%, rgba(0,32,80,.20) 100%);
}
/* Centered banner hero (Products hub) – shorter & lighter overlay so the image isn't drowned in blue */
.yp-hero--banner.yp-hero--center{
  box-sizing:border-box;
  min-height:clamp(420px,52vh,560px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.yp-hero--banner.yp-hero--center::before{
  background:linear-gradient(180deg, rgba(0,32,80,.50) 0%, rgba(0,32,80,.22) 100%) !important;
}
.yp-hero--banner.yp-hero--center > div{
  text-shadow:0 2px 14px rgba(0,32,80,.55);
}
.yp-hero--banner > *{position:relative;z-index:1;}
/* What We Deliver card pinned to top-right corner so it never covers the banner product */
.yp-hero--banner > .yp-inner{position:static;}
.yp-hero--banner .hero-card{
  position:absolute;
  top:18px;
  right:max(42px, calc((100vw - 1200px)/2 + 42px));
  z-index:3;
  max-width:300px;
  background:rgba(0,32,80,.42);
  border-color:rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
}

/* ===== Unified hero & CTA colors to match the homepage (deep navy hero / green CTA) ===== */
/* Non-banner heroes: same deep-navy gradient + white text as the homepage .yp-hero */
.yp-hero:not(.yp-hero--banner),
.hero,
.jxp-hero-section{
  background:linear-gradient(135deg,#002050 0%,#0A3A66 100%) !important;
  color:#fff;
  padding:80px 0 60px;
  text-align:center;
}
.yp-hero:not(.yp-hero--banner) h1,
.hero h1,
.jxp-hero-section h1{color:#fff !important;}
.yp-hero:not(.yp-hero--banner) h1 .ac,
.hero h1 .ac,
.jxp-hero-section h1 .ac{color:#00A050 !important;}
.hero p,
.jxp-hero-section p{color:#cbd5e1;}
/* CTA bands: same brand-green background + white text as the homepage .yp-final */
.yp-final,
.ctasec,
.jxp-cta-section{
  background:#00A050 !important;
  color:#fff;
  text-align:center;
  padding:60px 0;
}
.yp-final h2,
.ctasec h2,
.jxp-cta-section h2{color:#fff !important;}
.yp-final p,
.ctasec p,
.jxp-cta-section p{color:#e0f2e9 !important;}

/* ==========================================================================
   YURI Polish Layer (v1.1.16)
   Site-wide depth, type refinement & micro-interactions.
   Additive only — safe on inline-styled content pages (no layout overrides).
   ========================================================================== */

/* --- type smoothing & legibility --- */
body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{text-wrap:balance;}
p{text-wrap:pretty;}

/* --- brand selection & accessible focus --- */
::selection{background:rgba(0,160,80,.18);color:var(--ink);}
:focus-visible{outline:3px solid rgba(0,160,80,.55);outline-offset:2px;border-radius:4px;}

/* --- refined scrollbar --- */
::-webkit-scrollbar{width:12px;height:12px;}
::-webkit-scrollbar-track{background:#eef2f6;}
::-webkit-scrollbar-thumb{background:#c3cedb;border-radius:8px;border:3px solid #eef2f6;}
::-webkit-scrollbar-thumb:hover{background:var(--brand);}

/* --- media --- */
img{max-width:100%;height:auto;}

/* --- in-content text links: subtle animated underline --- */
.entry-content p a{color:var(--brand-dark);text-decoration:underline;
  text-decoration-color:rgba(0,128,63,.32);text-underline-offset:3px;
  transition:color .18s ease,text-decoration-color .18s ease;}
.entry-content p a:hover{color:var(--brand);text-decoration-color:var(--brand);}

/* --- brand buttons & CTA: lift + glow on hover --- */
.yp-btn,.cta-row a,.jxp-cta-section a,.ctasec a,.yp-final a{
  transition:transform .2s ease,box-shadow .2s ease,background .18s ease;}
.yp-btn:hover,.cta-row a:hover,.jxp-cta-section a:hover,.ctasec a:hover,.yp-final a:hover{
  transform:translateY(-2px);box-shadow:0 14px 26px -12px rgba(0,32,80,.4);}
.yp-btn:active,.cta-row a:active{transform:translateY(0);}

/* --- related/cards: consistent depth + hover lift --- */
.yp-related-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;}
.yp-related-card:hover{transform:translateY(-4px);border-color:rgba(0,160,80,.45);box-shadow:var(--shadow);}
.jxp-card{border-radius:var(--radius);}

/* --- tables: clean striped look --- */
.entry-content table{border-collapse:collapse;border-radius:10px;overflow:hidden;}
.entry-content table th{background:var(--ink-2);color:#fff;}
.entry-content table tr:nth-child(even) td{background:var(--bg-soft);}

/* --- lists & form accents --- */
.entry-content ul li::marker{color:var(--brand);}
input,select,textarea,progress{accent-color:var(--brand);}
hr{border:0;height:1px;background:var(--line);margin:40px 0;}

/* --- image placeholders (.yp-ph): gentle lift on hover --- */
.yp-ph{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;will-change:transform;}
.yp-ph:hover{transform:translateY(-3px);border-color:var(--brand-dark);box-shadow:var(--shadow);}

/* --- mobile type scale: shrink oversized inline headings on small screens --- */
@media (max-width:640px){
  section h1{font-size:30px !important;line-height:1.2 !important;}
  section h2{font-size:24px !important;}
}

/* --- reduced motion: respect user preference --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.001ms !important;animation-duration:.001ms !important;}
}
