/* Yi Vision 2030: base styles (THEME). Tokens, reset, typography, buttons, header, footer.
   Section styles live in sections.css (CONTENT). Plugin UI lives in yi-core.css (PLUGIN). */

:root{
	color-scheme:light;
	--sa:#F58220;--sa-d:#C85F00;--gr:#0B8F47;--gr-d:#06703A;--nv:#1F2A5C;--nv2:#151d45;
	--bg:#fff;--ink:#1F2A5C;--mute:#4f5878;--line:#e3e6ef;--soft:#fbf7f1;
	--sa-ink:#B35500;--gr-ink:#06703A;
	--yi-header-h:64px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
*{min-width:0}
html{scroll-padding-top:72px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%;height:auto}
p{margin:0}
h1,h2,h3,h4,h5,h6{font-family:Archivo,"Arial Narrow",Arial,sans-serif;line-height:1.08;text-wrap:balance;margin:0}
h1{font-size:clamp(34px,5vw,52px);font-weight:800}
h2{font-size:clamp(28px,3.6vw,40px);font-weight:800}
h3{font-size:20px;font-weight:700}
a{color:inherit}
@media (prefers-reduced-motion:reduce){
	html{scroll-behavior:auto}
	*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ---------- Helpers ---------- */
.wrap{max-width:1240px;margin-left:auto;margin-right:auto}
.lede{font-size:17px;color:var(--mute);max-width:62ch}
mark{background:linear-gradient(transparent 58%,rgba(245,130,32,.35) 58%);color:var(--sa-ink);padding:0 .08em}
mark.has-inline-color{background-color:transparent}
.yi-tri,.tri{
	display:block;height:6px;min-height:6px;padding:0!important;margin-top:0!important;margin-bottom:0!important;border:0;
	background:linear-gradient(90deg,var(--sa) 0 33.3%,#fff 33.3% 66.6%,var(--gr) 66.6%)!important;
}
hr.yi-tri,.wp-block-separator.yi-tri{width:100%;max-width:none;opacity:1}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus,.skip-link:focus{background:#fff;color:var(--nv);clip:auto!important;clip-path:none;display:block;height:auto;left:8px;top:8px;padding:12px 18px;width:auto;z-index:100000;border-radius:8px;font-weight:600;text-decoration:none}

/* ---------- Focus ---------- */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.btn:focus-visible,.wp-block-button__link:focus-visible,.wp-block-navigation-item__content:focus-visible{outline:3px solid var(--sa);outline-offset:2px}

/* ---------- Buttons (.btn classes and core/button block styles) ---------- */
.btn,
.wp-block-button .wp-block-button__link{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	min-height:48px;padding:0 22px;border-radius:999px;
	font:600 16px/1.2 Inter,system-ui,sans-serif;text-decoration:none;
	border:2px solid transparent;cursor:pointer;transition:transform .15s;
	text-align:center;
}
.btn:hover,.wp-block-button .wp-block-button__link:hover{transform:translateY(-1px)}
.btn.sa,
.wp-block-button.is-style-saffron .wp-block-button__link{background:var(--sa);color:#fff;border-color:var(--sa)}
.btn.gr,
.wp-block-button.is-style-green .wp-block-button__link{background:var(--gr);color:#fff;border-color:var(--gr)}
.btn.ghost,
.wp-block-button.is-style-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:inherit;border-color:currentColor}
.wp-block-button.is-style-saffron .wp-block-button__link:hover,
.wp-block-button.is-style-green .wp-block-button__link:hover{color:#fff}
.wp-block-button.is-style-ghost .wp-block-button__link:hover{color:inherit;background:transparent}
.wp-block-buttons{gap:12px}

/* ---------- Layout glue ---------- */
/* No block gap between header, main and footer. */
.wp-site-blocks>*{margin-block-start:0!important;margin-block-end:0}
/* Full-width sections inside post content sit flush against each other. */
body .wp-site-blocks>main>.wp-block-post-content>.alignfull,
body .wp-site-blocks>main>.wp-block-post-content>.yi-tri{margin-top:0;margin-block-start:0}
.yi-main{margin:0}
.wp-site-blocks>main>.wp-block-post-content{margin-top:0}

/* Pages with a visible title (page.html) */
.yi-pagehead{padding-top:clamp(40px,6vw,88px);padding-bottom:24px;background:var(--soft)}
.yi-pagebody{padding-top:32px;padding-bottom:clamp(40px,6vw,88px)}
.yi-404{padding-bottom:clamp(40px,6vw,88px);background:var(--soft)}
.yi-404>*+*{margin-top:18px}
.yi-404 .wp-block-buttons{margin-top:28px}

/* ---------- Header ---------- */
.wp-site-blocks>header.wp-block-template-part{position:sticky;top:0;z-index:50}
body.admin-bar .wp-site-blocks>header.wp-block-template-part{top:var(--wp-admin--admin-bar--height,32px)}
@media (max-width:600px){body.admin-bar .wp-site-blocks>header.wp-block-template-part{top:0}}
.yi-header{background:var(--nv);color:#fff;padding-top:10px;padding-bottom:10px}
.yi-header__row{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}
.yi-header .yi-brand{margin:0 auto 0 0;font:800 18px/1.2 Archivo,"Arial Narrow",Arial,sans-serif;color:#fff}
.yi-header .yi-brand a{color:#fff;text-decoration:none}
.yi-header .yi-brand a:hover{color:#fff;opacity:.9}
.yi-header .yi-nav{font-size:15px}
.yi-header .yi-nav .wp-block-navigation__container{gap:18px}
.yi-header .yi-nav .wp-block-navigation-item__content{color:#fff;text-decoration:none;opacity:.9;padding:6px 0}
.yi-header .yi-nav .wp-block-navigation-item__content:hover{opacity:1;color:#fff;text-decoration:underline;text-underline-offset:4px}
.yi-header .yi-header__cta{flex:none;margin:0}
.yi-header .wp-block-button .wp-block-button__link{min-height:44px;padding:0 18px;font-size:15px}
@media (max-width:760px){
	.yi-header .yi-nav{display:none}
	.yi-header .yi-brand{font-size:16px}
}

/* ---------- Footer ---------- */
.yi-footer{padding-top:28px;padding-bottom:28px;font-size:14px;color:var(--mute);border-top:1px solid var(--line);background:var(--bg)}
.yi-footer>*+*{margin-top:8px}
.yi-footer__links{font-size:13px}
.yi-footer__links a{color:var(--mute);text-underline-offset:3px}
.yi-footer__links a:hover{color:var(--sa-d)}

/* ---------- Logos (Yi + CII) ---------- */
.yi-logos{gap:10px;flex:none;margin:0}
.yi-logos .wp-block-image{margin:0;line-height:0}
.yi-logos img{display:block;width:auto;max-width:none}
.yi-header .yi-logos{background:#fff;border-radius:10px;padding:3px 12px;gap:12px}
.yi-header .yi-logo--yi img{height:50px}
.yi-header .yi-logo--cii img{height:28px}
.yi-header .yi-logos a{display:block;border-radius:6px}
.yi-header .yi-logos a:focus-visible{outline:3px solid var(--sa);outline-offset:3px}
.yi-header .yi-logo--cii{padding-left:12px;border-left:1px solid #e3e6ef}
.yi-header .yi-brand{margin-left:4px}
.yi-header .yi-logos{margin-right:auto}
@media (max-width:480px){.yi-header .yi-logo--yi img{height:36px}.yi-header .yi-logo--cii img{height:20px}.yi-header .yi-logos{padding:4px 8px;gap:8px}.yi-header .yi-logo--cii{padding-left:8px}}
.yi-footer__top{gap:20px 32px}
.yi-footer>.yi-footer__bottom{gap:8px 24px;margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}
.yi-footer .yi-logos--footer{gap:20px}
.yi-footer .yi-logo--yi img{height:84px}
.yi-footer .yi-logo--cii img{height:44px}
.yi-footer__credit{margin:0;max-width:58ch}
.yi-footer__dev{margin:0;font-size:13px}
@media (max-width:600px){.yi-footer .yi-logo--yi img{height:52px}.yi-footer .yi-logo--cii img{height:30px}}
