:root{
	--ruta-primary:#07182D;
	--ruta-secondary:#0D2B4D;
	--ruta-accent:#FFB800;
	--ruta-bg:#F4F6F8;
	--ruta-text:#4B5563;
	--ruta-black:#111827;
	--ruta-white:#FFFFFF;
	--ruta-border:#D8DEE7;
	--ruta-radius:8px;
	--ruta-shadow:0 18px 50px rgba(7,24,45,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ruta-text);font-family:Arial,Helvetica,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
body.admin-bar.has-sticky-header .site-header{top:32px}
a{color:var(--ruta-secondary);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{color:var(--ruta-primary)}
img{max-width:100%;height:auto}
h1,h2,h3,h4{color:var(--ruta-black);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.15;margin:0 0 .65em;font-weight:850;letter-spacing:0}
h1{font-size:clamp(2rem,4vw,4rem)}
h2{font-size:clamp(1.55rem,2.2vw,2.4rem)}
h3{font-size:1.25rem}
p{margin:0 0 1.1rem}
.container{width:min(1270px,calc(100% - 32px));margin-inline:auto}
.narrow{width:min(820px,calc(100% - 32px))}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--ruta-accent);color:var(--ruta-black);padding:.6rem 1rem;z-index:999}
.skip-link:focus{left:8px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid var(--ruta-accent);outline-offset:3px}
.site-header{background:#020d1a;color:var(--ruta-white);z-index:100;box-shadow:0 6px 30px rgba(0,0,0,.22)}
.has-sticky-header .site-header{position:sticky;top:0}
.header-inner{min-height:88px;display:flex;align-items:center;gap:24px}
.site-brand{display:flex;align-items:center;gap:10px;min-width:260px}
.brand-mark{text-decoration:none}
.brand-icon{position:relative;display:grid;place-items:center;width:62px;height:62px;color:var(--ruta-white);font-weight:900}
.brand-icon .gear{font-size:58px;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
.brand-icon .needle{position:absolute;width:23px;height:4px;background:var(--ruta-accent);border-radius:99px;transform:rotate(-42deg);transform-origin:right center;right:18px;top:29px}
.custom-logo{max-width:72px;height:auto}
.site-title{display:block;color:var(--ruta-white);font-size:1.72rem;font-weight:900;text-decoration:none;text-transform:uppercase;line-height:.95;letter-spacing:-.02em}
.site-title span{display:block;color:#fff}
.site-title strong{display:block;color:var(--ruta-accent)}
.site-tagline{display:none}
.header-slogan{width:210px;margin:0;color:#fff;font-size:.92rem;line-height:1.35}
.primary-nav{margin-left:auto}
.primary-nav ul{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0}
.primary-nav a{display:block;color:var(--ruta-white);font-size:.86rem;font-weight:900;text-transform:uppercase;text-decoration:none;padding:34px 13px 27px;border-bottom:3px solid transparent;white-space:nowrap}
.primary-nav a:hover,.primary-nav .current-menu-item>a{border-color:var(--ruta-accent);color:var(--ruta-accent)}
.menu-toggle,.search-toggle{border:0;background:transparent;color:var(--ruta-white);cursor:pointer}
.menu-toggle{display:none;width:44px;height:44px}
.menu-toggle span:not(.screen-reader-text){display:block;height:3px;background:var(--ruta-white);margin:6px;border-radius:9px}
.search-toggle{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--ruta-radius);font-size:1.7rem}
.header-search{background:var(--ruta-secondary);padding:16px 0}
.search-form{display:flex;gap:8px}
.search-field,.subscribe-form input{width:100%;min-height:48px;border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:0 14px;font:inherit}
button,.button,.search-form button,.subscribe-form button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:0;border-radius:var(--ruta-radius);padding:0 18px;background:var(--ruta-secondary);color:var(--ruta-white);font-weight:850;text-decoration:none;cursor:pointer}
.button-accent,.search-form button,.subscribe-form button{background:var(--ruta-accent);color:var(--ruta-black)}
.hero{position:relative;min-height:315px;background-size:cover;background-position:center right;display:flex;align-items:center;color:var(--ruta-white)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,8,17,.94),rgba(0,8,17,.58),rgba(0,8,17,.1))}
.hero-content{position:relative;max-width:560px;margin-left:calc((100vw - min(1270px,calc(100vw - 32px)))/2);padding-block:34px}
.hero h1,.hero p{color:var(--ruta-white)}
.hero h1{font-size:2.72rem;line-height:1.05;margin-bottom:18px;letter-spacing:-.03em}
.hero p{font-size:1rem;max-width:440px;margin-bottom:24px}
.eyebrow,.post-category{display:inline-block;color:var(--ruta-accent);font-size:.78rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;margin-bottom:.8rem}
.section{padding-block:42px}
.section-muted{background:#EAEFF5}
.section-heading{margin-bottom:24px;max-width:760px}
.section-heading--row{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:none;margin-bottom:16px}
.section-heading h2,.latest-row-heading h2{display:flex;align-items:center;gap:12px;font-size:1.18rem;text-transform:uppercase;letter-spacing:.01em;margin:0}
.heading-icon{color:var(--ruta-accent);font-size:1.18rem}
.view-all{color:#0068d9;text-transform:uppercase;text-decoration:none;font-size:.82rem;font-weight:900}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.card-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.post-card{display:flex;flex-direction:column;min-width:0;background:var(--ruta-white);border:1px solid #e5e7eb;border-radius:5px;overflow:hidden;box-shadow:0 10px 25px rgba(17,24,39,.06);transition:transform .2s ease,box-shadow .2s ease}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--ruta-shadow)}
.post-card-media-link{display:block;flex:0 0 auto;color:inherit;text-decoration:none}
.post-card-media{aspect-ratio:16/10;background:var(--ruta-secondary);overflow:hidden}
.post-thumb{width:100%;height:100%;object-fit:cover;display:block}
.post-thumb--placeholder{display:grid;place-items:center;color:var(--ruta-white);background:linear-gradient(135deg,var(--ruta-primary),var(--ruta-secondary))}
.post-card-body{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;flex:1 1 auto;flex-direction:column;height:auto!important;min-height:0;padding:18px;background:var(--ruta-white)!important;color:var(--ruta-text)!important;overflow:visible!important}
.post-card-title{display:block!important;margin:0 0 .55rem;font-size:1.15rem;color:var(--ruta-black)!important}
.post-card-title-link{display:block;color:var(--ruta-black)!important;text-decoration:none}
.post-card-title-link:hover{color:var(--ruta-secondary)!important}
.post-card-excerpt{display:block!important;visibility:visible!important;opacity:1!important;margin:0 0 1rem;color:var(--ruta-text)!important;line-height:1.5}
.post-card-body .post-category{display:inline-block!important;visibility:visible!important;opacity:1!important;align-self:flex-start}
.post-card-body .post-meta{display:flex!important;visibility:visible!important;opacity:1!important;margin-top:auto;padding-top:4px}
.post-meta{display:flex;flex-wrap:wrap;gap:10px;color:#667085;font-size:.86rem;font-weight:700}
.content-sidebar{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}
.sidebar,.sidebar-card{background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:22px;box-shadow:0 8px 24px rgba(17,24,39,.05)}
.popular-link{display:block;text-decoration:none;padding:12px 0;border-bottom:1px solid var(--ruta-border);font-weight:800}
.category-strip{margin-bottom:48px}
.benefits{background:#fff;padding:0 0 34px}
.benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#f8fafc;border:1px solid #edf0f4;border-radius:4px;box-shadow:0 12px 35px rgba(17,24,39,.05)}
.benefit{display:flex;align-items:center;gap:16px;padding:20px 28px;border-right:1px solid #edf0f4}
.benefit:last-child{border-right:0}
.benefit span{display:grid;place-items:center;width:42px;height:42px;color:#07182d;font-weight:900;font-size:1.8rem}
.benefit h2{color:var(--ruta-black);font-size:.95rem;margin:0 0 3px}
.benefit p{font-size:.83rem;margin:0;color:#4b5563;line-height:1.35}
.subscribe{margin-block:64px;background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:34px;box-shadow:var(--ruta-shadow)}
.subscribe-form{display:flex;gap:10px;max-width:640px}
.breadcrumbs{font-size:.9rem;margin-bottom:24px;color:#667085}
.breadcrumbs a{text-decoration:none;font-weight:800}
.breadcrumbs span{margin-inline:8px}
.archive-header,.article-header{background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:32px;margin-bottom:30px}
.category-hero{background:linear-gradient(135deg,var(--ruta-primary),var(--ruta-secondary));color:var(--ruta-white)}
.category-hero h1,.category-hero p{color:var(--ruta-white)}
.entry-summary-card{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:18px;margin-bottom:18px}
.entry-summary-thumb{width:100%;height:150px;object-fit:cover;border-radius:var(--ruta-radius)}
.single-article{background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:32px}
.article-subtitle{font-size:1.25rem;color:var(--ruta-text)}
.article-featured img{width:100%;border-radius:var(--ruta-radius)}
.article-layout{display:grid;grid-template-columns:230px minmax(0,780px);gap:34px;align-items:start}
.article-layout--no-toc{grid-template-columns:minmax(0,820px)}
.toc{position:sticky;top:110px;border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:14px;background:#FAFBFC}
.toc-toggle{width:100%;justify-content:space-between;background:var(--ruta-primary);color:var(--ruta-white);min-height:40px}
.toc ol{margin:14px 0 0;padding-left:20px}
.toc a{display:block;text-decoration:none;padding:4px 0;font-size:.92rem}
.toc a.is-active{color:var(--ruta-primary);font-weight:900}
.entry-content{font-size:1.05rem}
.entry-content h2{margin-top:2rem}
.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--ruta-border);padding:10px;text-align:left}
.info-box,.warning-box{border-radius:var(--ruta-radius);padding:18px;margin:24px 0}
.info-box{background:#E8F2FF;border-left:5px solid #2C7BE5}
.warning-box{background:#FFF4CC;border-left:5px solid var(--ruta-accent)}
.author-bio,.related-posts,.comments-area{margin-top:34px;background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:var(--ruta-radius);padding:24px}
.post-navigation{display:flex;justify-content:space-between;gap:16px;margin-top:28px}
.ad-slot{min-height:110px;margin:24px auto;border:1px dashed #AEB8C5;border-radius:var(--ruta-radius);display:grid;place-items:center;background:#F8FAFC;max-width:980px}
.ad-slot--empty::before{content:"";display:block}
.site-footer{background:#020d1a;color:#DDE6F1;padding-top:46px}
.site-footer h2,.site-footer .site-title{color:var(--ruta-white)}
.site-footer a{color:#DDE6F1;text-decoration:none}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px}
.footer-grid ul{list-style:none;padding:0;margin:0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14);padding:16px;text-align:center;margin-top:30px}
.category-suggestions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.category-suggestions a{background:var(--ruta-white);border:1px solid var(--ruta-border);border-radius:999px;padding:8px 14px;text-decoration:none;font-weight:800}
@media (max-width:1024px){
	.card-grid,.card-grid--4,.card-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
	.content-sidebar,.article-layout,.footer-grid{grid-template-columns:1fr}
	.toc{position:static}
	.benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.header-slogan{display:none}
}
@media (max-width:768px){
	body{font-size:16px}
	.header-inner{min-height:72px}
	.menu-toggle{display:block;margin-left:auto}
	.primary-nav{position:absolute;left:0;right:0;top:72px;background:var(--ruta-primary);border-top:1px solid rgba(255,255,255,.14);display:none}
	.primary-nav.is-open{display:block}
	.primary-nav ul{display:block;width:min(100%,420px);margin-inline:auto;padding:8px 16px 18px}
	.primary-nav a{padding:14px 0}
	.search-toggle{margin-left:0}
	.site-tagline{display:none}
	.hero{min-height:520px}
	.hero-content{margin-left:auto;padding-block:70px}
	.card-grid,.card-grid--4,.card-grid--3,.benefit-grid{grid-template-columns:1fr}
	.entry-summary-card{grid-template-columns:1fr}
	.subscribe-form,.search-form{flex-direction:column}
	.single-article,.archive-header{padding:22px}
	.footer-grid{gap:18px}
}

.magazine-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;padding:26px 0 28px}
.featured-demo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.demo-card{background:#fff;border:1px solid #e5e7eb;border-radius:4px;overflow:hidden;box-shadow:0 10px 25px rgba(17,24,39,.08)}
.demo-card a{display:block;color:inherit;text-decoration:none}
.demo-card-image{height:128px;overflow:hidden;position:relative}
.demo-card-image .post-thumb,.demo-card-image .post-thumb--placeholder{height:128px}
.demo-card-body{padding:12px 13px 16px}
.demo-cat{display:inline-block;color:#fff;font-size:.67rem;font-weight:900;text-transform:uppercase;border-radius:3px;padding:4px 7px;margin-bottom:8px}
.cat-red{background:#ff9f1c}.cat-blue{background:#2680d9}.cat-green{background:#48a868}.cat-purple{background:#7859c8}
.demo-card h3{font-size:1rem;line-height:1.22;margin-bottom:9px}
.demo-card p{font-size:.84rem;line-height:1.38;margin-bottom:16px;color:#4b5563}
.latest-row-heading{margin:26px 0 12px}
.latest-demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.latest-demo{display:grid;grid-template-columns:170px 1fr;gap:18px;align-items:center}
.latest-demo a{display:contents;color:inherit;text-decoration:none}
.latest-demo h3{font-size:1rem;margin-bottom:8px}
.latest-demo p{font-size:.9rem;line-height:1.35;margin-bottom:14px}
.latest-image{height:115px;border-radius:3px;overflow:hidden;position:relative}
.latest-image .post-thumb,.latest-image .post-thumb--placeholder{height:115px}
.magazine-sidebar{display:flex;flex-direction:column;gap:12px}
.popular-panel{background:#fff;border:1px solid #e5e7eb;border-radius:5px;overflow:hidden;box-shadow:0 10px 25px rgba(17,24,39,.08)}
.popular-panel h2{background:#06162b;color:#fff;text-transform:uppercase;font-size:1rem;padding:10px 14px;margin:0}
.popular-item{display:grid;grid-template-columns:82px 1fr;gap:11px;padding:10px 12px;color:#111827;text-decoration:none}
.popular-thumb{height:55px;border-radius:4px;overflow:hidden;position:relative}
.popular-thumb .post-thumb,.popular-thumb .post-thumb--placeholder{height:55px}
.popular-item strong{display:block;font-size:.84rem;line-height:1.25}
.popular-item small{display:block;color:#4b5563;font-size:.74rem;margin-top:4px}
.popular-item small::before{content:"◷ ";font-size:.65rem}
.email-panel{background:#06162b;color:#fff;border-radius:5px;padding:22px 16px;text-align:center;box-shadow:0 10px 25px rgba(17,24,39,.12)}
.email-panel h2{color:#fff;font-size:.98rem;text-transform:uppercase;margin-bottom:8px}
.email-panel p{font-size:.82rem;line-height:1.35;margin-bottom:12px;color:#fff}
.mail-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--ruta-accent);color:#111827;font-weight:900;margin:-2px auto 10px;font-size:1.3rem}
.email-panel--unconfigured{background:#fff3cd;color:#664d03;border:1px dashed #997404}
.email-panel--unconfigured h2,.email-panel--unconfigured p{color:#664d03}
.newsletter-embed{text-align:left}
.newsletter-embed input[type="email"],.newsletter-embed input[type="text"]{min-width:0;height:38px;border:0;border-radius:3px;padding:0 10px;font-size:.78rem;width:100%;margin-bottom:8px}
.newsletter-embed button,.newsletter-embed input[type="submit"]{height:38px;min-height:38px;border-radius:3px;background:var(--ruta-accent);color:#111827;text-transform:uppercase;font-size:.72rem;padding:0 12px;width:100%}
.email-inline{display:grid;grid-template-columns:1fr 104px;gap:0}
.email-inline input{min-width:0;height:38px;border:0;border-radius:3px 0 0 3px;padding:0 10px;font-size:.78rem}
.email-inline button{height:38px;min-height:38px;border-radius:0 3px 3px 0;background:var(--ruta-accent);color:#111827;text-transform:uppercase;font-size:.72rem;padding:0 8px}
.real-posts-section,.category-sections{display:none}
@media (max-width:1100px){
	.magazine-wrap{grid-template-columns:1fr}
	.magazine-sidebar{display:grid;grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
	.magazine-wrap{padding-top:20px}
	.featured-demo-grid,.latest-demo-grid,.magazine-sidebar{grid-template-columns:1fr}
	.latest-demo{grid-template-columns:1fr}
	.demo-card-image{height:190px}
	.latest-image{height:180px}
	.benefit{border-right:0;border-bottom:1px solid #edf0f4}
	.email-inline{grid-template-columns:1fr}
	.email-inline input,.email-inline button{border-radius:3px}
}
@media (prefers-reduced-motion:reduce){
	*{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}

/* ================================================================
   Article layout and responsive safety fixes — v1.0.1
   Keeps the original visual identity while preventing narrow columns,
   off-centre featured images and horizontal scrolling.
   ================================================================ */
html,
body{
	width:100%;
	max-width:100%;
	overflow-x:hidden;
}
@supports (overflow:clip){
	html,
	body{overflow-x:clip}
}

.header-inner > *,
.content-sidebar > *,
.magazine-wrap > *,
.article-layout > *,
.footer-grid > *{
	min-width:0;
}

figure{margin:0}

/* The article should read as a centred editorial page, not a full-width box. */
main.section.container{
	padding-top:30px;
}
.single-article{
	width:100%;
	max-width:1120px;
	margin-inline:auto;
}
.article-header{
	width:100%;
	max-width:920px;
	margin:0 auto 28px;
}
.article-header h1{
	font-size:clamp(2.15rem,4.6vw,3.75rem);
	line-height:1.08;
	overflow-wrap:break-word;
	word-break:normal;
}
.article-featured{
	display:block;
	width:100%;
	max-width:1040px;
	margin:0 auto 32px;
}
.article-featured img{
	display:block;
	width:100%;
	max-width:100%;
	height:auto;
	margin-inline:auto;
	object-fit:contain;
}
.single-article > .info-box,
.single-article > .warning-box,
.single-article > .ad-slot{
	width:100%;
	max-width:780px;
	margin-inline:auto;
}

/* Named grid areas prevent the content from falling into the narrow TOC
   column if the table of contents is empty or hidden by JavaScript. */
.article-layout{
	width:100%;
	max-width:1040px;
	margin-inline:auto;
	display:grid;
	grid-template-columns:minmax(210px,240px) minmax(0,760px);
	grid-template-areas:"toc content";
	justify-content:center;
	gap:34px;
	align-items:start;
}
.article-layout .toc{grid-area:toc}
.article-layout .entry-content{grid-area:content}
.article-layout--no-toc{
	max-width:780px;
	grid-template-columns:minmax(0,780px);
	grid-template-areas:"content";
	gap:0;
}
.article-layout:has(.toc[hidden]){
	max-width:780px;
	grid-template-columns:minmax(0,780px);
	grid-template-areas:"content";
	gap:0;
}

.entry-content{
	width:100%;
	max-width:760px;
	min-width:0;
	font-size:1.075rem;
	line-height:1.75;
	overflow-wrap:break-word;
	word-break:normal;
}
.entry-content > *{
	max-width:100%;
}
.entry-content > p,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > section,
.entry-content > div,
.entry-content > figure{
	width:100%!important;
	max-width:100%!important;
	float:none!important;
	white-space:normal!important;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content p,
.entry-content li,
.entry-content a{
	overflow-wrap:break-word;
	word-break:normal;
	white-space:normal;
}
.entry-content h1{font-size:clamp(2rem,4vw,3rem)}
.entry-content h2{font-size:clamp(1.55rem,2.5vw,2.15rem)}
.entry-content h3{font-size:clamp(1.25rem,2vw,1.55rem)}
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object{
	display:block;
	max-width:100%!important;
	margin-left:auto!important;
	margin-right:auto!important;
}
.entry-content img,
.entry-content video{height:auto!important}
.entry-content iframe{width:100%;aspect-ratio:16/9}
.entry-content .alignwide,
.entry-content .alignfull,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-cover,
.entry-content .wp-block-group{
	width:100%!important;
	max-width:100%!important;
	margin-left:0!important;
	margin-right:0!important;
}
.entry-content table{
	max-width:100%;
	white-space:normal;
}
.entry-content pre,
.entry-content code{
	max-width:100%;
	overflow-x:auto;
	white-space:pre-wrap;
	word-break:break-word;
}

/* Header controls must always fit on a phone. */
.menu-toggle,
.search-toggle{
	flex:0 0 44px;
}
.brand-text{min-width:0}

@media (max-width:1024px){
	.article-layout,
	.article-layout--no-toc,
	.article-layout:has(.toc[hidden]){
		max-width:780px;
		grid-template-columns:minmax(0,780px);
		grid-template-areas:"toc" "content";
		gap:22px;
	}
	.article-layout--no-toc,
	.article-layout:has(.toc[hidden]){
		grid-template-areas:"content";
		gap:0;
	}
	.toc{
		position:static;
		width:100%;
	}
}

@media (max-width:768px){
	.container{
		width:calc(100% - 24px);
	}
	.header-inner{
		min-height:72px;
		gap:7px;
		padding-block:7px;
	}
	.site-brand{
		min-width:0;
		max-width:none;
		flex:1 1 auto;
		gap:7px;
		overflow:hidden;
	}
	.brand-mark{
		flex:0 0 auto;
	}
	.brand-icon{
		width:48px;
		height:48px;
	}
	.brand-icon .gear{font-size:46px}
	.brand-icon .needle{
		width:19px;
		right:14px;
		top:23px;
	}
	.custom-logo{
		width:auto;
		max-width:52px;
		max-height:52px;
	}
	.site-title{
		font-size:1.28rem;
		line-height:.98;
		white-space:nowrap;
	}
	.menu-toggle,
	.search-toggle{
		flex:0 0 40px;
		width:40px;
		height:40px;
		margin:0;
	}
	.search-toggle{font-size:1.45rem}
	.primary-nav{top:72px}

	main.section.container{
		padding-top:18px;
		padding-bottom:30px;
	}
	.breadcrumbs{
		font-size:.78rem;
		line-height:1.45;
		margin-bottom:14px;
		overflow-wrap:anywhere;
	}
	.single-article{
		width:100%;
		max-width:100%;
		padding:16px;
		border-radius:6px;
	}
	.article-header{
		max-width:100%;
		padding:20px 18px;
		margin-bottom:20px;
	}
	.article-header h1{
		font-size:clamp(1.9rem,8.7vw,2.55rem);
		line-height:1.08;
		margin-bottom:.7em;
	}
	.article-subtitle{font-size:1.08rem}
	.post-meta{
		display:grid;
		grid-template-columns:1fr;
		gap:7px;
		font-size:.88rem;
	}
	.article-featured{
		max-width:100%;
		margin-bottom:24px;
	}
	.article-layout,
	.article-layout--no-toc,
	.article-layout:has(.toc[hidden]){
		display:block;
		width:100%;
		max-width:100%;
	}
	.toc{
		width:100%;
		max-width:100%;
		margin:0 0 22px;
	}
	.entry-content{
		width:100%;
		max-width:100%;
		font-size:1.03rem;
		line-height:1.72;
	}
	.entry-content h1{font-size:1.85rem}
	.entry-content h2{font-size:1.48rem;line-height:1.2}
	.entry-content h3{font-size:1.25rem;line-height:1.25}
	.entry-content p{margin-bottom:1.05rem}
	.single-article > .info-box,
	.single-article > .warning-box,
	.single-article > .ad-slot{
		max-width:100%;
	}
	.post-navigation{
		flex-direction:column;
	}
	.author-bio,
	.related-posts,
	.comments-area{
		padding:18px;
	}
}

@media (max-width:420px){
	.container{width:calc(100% - 18px)}
	.header-inner{gap:4px}
	.brand-icon{
		width:44px;
		height:44px;
	}
	.brand-icon .gear{font-size:42px}
	.brand-icon .needle{
		width:18px;
		right:13px;
		top:21px;
	}
	.custom-logo{
		max-width:46px;
		max-height:46px;
	}
	.site-title{font-size:1.16rem}
	.menu-toggle,
	.search-toggle{
		flex-basis:38px;
		width:38px;
		height:38px;
	}
	.single-article{padding:13px}
	.article-header{padding:18px 15px}
	.article-header h1{font-size:clamp(1.8rem,9vw,2.25rem)}
}

/* ================================================================
   Header layout fix — v1.0.2
   Keeps the brand, tagline, navigation and controls in independent
   grid areas so they can never overlap or disappear off-screen.
   ================================================================ */
.site-header{
	position:relative;
}
.header-inner{
	display:grid;
	grid-template-columns:auto minmax(180px,1fr) auto;
	grid-template-areas:
		"brand slogan actions"
		"nav nav nav";
	align-items:center;
	column-gap:28px;
	row-gap:0;
	min-height:0;
	padding-top:12px;
}
.site-brand{
	grid-area:brand;
	min-width:0;
	max-width:330px;
	flex:none;
}
.header-slogan{
	grid-area:slogan;
	width:auto;
	max-width:310px;
	margin:0;
	font-size:.9rem;
	line-height:1.35;
	justify-self:start;
}
.header-actions{
	grid-area:actions;
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:4px;
}
.site-header .primary-nav{
	grid-area:nav;
	width:100%;
	min-width:0;
	margin:10px 0 0;
	border-top:1px solid rgba(255,255,255,.11);
}
.site-header .primary-nav ul{
	display:flex;
	align-items:center;
	justify-content:center;
	flex-wrap:wrap;
	gap:0 2px;
	width:100%;
	margin:0;
	padding:0;
}
.site-header .primary-nav li{
	min-width:0;
}
.site-header .primary-nav a{
	padding:13px 10px 12px;
	font-size:clamp(.69rem,.74vw,.82rem);
	line-height:1.2;
	text-align:center;
}
.site-header .menu-toggle{
	display:none;
}
.site-header .search-toggle,
.site-header .menu-toggle{
	flex:0 0 44px;
	width:44px;
	height:44px;
	padding:0;
	border-radius:6px;
}
.site-header .search-toggle:hover,
.site-header .menu-toggle:hover{
	background:rgba(255,255,255,.1);
}

@media (max-width:1100px){
	.header-inner{
		grid-template-columns:minmax(0,1fr) auto;
		grid-template-areas:"brand actions";
		column-gap:10px;
		padding-block:8px;
	}
	.header-slogan{
		display:none;
	}
	.header-actions{
		position:relative;
		z-index:1002;
	}
	.site-header .menu-toggle{
		display:grid!important;
		place-items:center;
		align-content:center;
	}
	.site-header .menu-toggle span{
		display:block;
		width:24px;
		height:3px;
		margin:2.5px 0;
		border-radius:999px;
		background:#fff;
		transition:transform .2s ease,opacity .2s ease;
	}
	.site-header .menu-toggle[aria-expanded="true"] span:nth-child(1){
		transform:translateY(8px) rotate(45deg);
	}
	.site-header .menu-toggle[aria-expanded="true"] span:nth-child(2){
		opacity:0;
	}
	.site-header .menu-toggle[aria-expanded="true"] span:nth-child(3){
		transform:translateY(-8px) rotate(-45deg);
	}
	.site-header .primary-nav{
		position:absolute;
		z-index:1001;
		left:0;
		right:0;
		top:100%;
		width:100%;
		max-height:calc(100vh - 72px);
		overflow-y:auto;
		display:none;
		margin:0;
		padding:8px 0 16px;
		background:#020d1a;
		border-top:1px solid rgba(255,255,255,.14);
		box-shadow:0 18px 35px rgba(0,0,0,.35);
	}
	.site-header .primary-nav.is-open{
		display:block;
	}
	.site-header .primary-nav ul{
		display:block;
		width:min(100% - 28px,520px);
		margin-inline:auto;
		padding:0;
	}
	.site-header .primary-nav li{
		width:100%;
		border-bottom:1px solid rgba(255,255,255,.1);
	}
	.site-header .primary-nav li:last-child{
		border-bottom:0;
	}
	.site-header .primary-nav a{
		display:block;
		width:100%;
		padding:14px 8px;
		font-size:.92rem;
		text-align:left;
		border-bottom:0;
	}
	.site-header .primary-nav a:hover,
	.site-header .primary-nav .current-menu-item>a{
		background:rgba(255,184,0,.1);
		color:var(--ruta-accent);
	}
}

@media (max-width:520px){
	.header-inner{
		width:calc(100% - 24px);
		column-gap:6px;
	}
	.site-brand{
		max-width:calc(100vw - 118px);
	}
	.site-title{
		font-size:1.2rem;
	}
	.brand-icon{
		width:46px;
		height:46px;
	}
	.brand-icon .gear{
		font-size:44px;
	}
	.custom-logo{
		max-width:50px;
		max-height:50px;
	}
	.site-header .search-toggle,
	.site-header .menu-toggle{
		flex-basis:40px;
		width:40px;
		height:40px;
	}
}


/* Complete homepage article index. */
.all-posts-section{padding-top:22px;padding-bottom:52px;scroll-margin-top:150px}
.all-posts-heading{margin-bottom:20px}
.all-posts-count{color:#667085;font-size:.88rem;font-weight:800}
.all-posts-grid .post-card{min-width:0}
.all-posts-grid .post-card-media{aspect-ratio:16/9}
.all-posts-grid .post-card-body p{color:var(--ruta-text);line-height:1.55}
@media (max-width:768px){
	.all-posts-section{scroll-margin-top:86px;padding-top:10px;padding-bottom:38px}
	.all-posts-heading{align-items:flex-start;gap:10px}
	.all-posts-count{display:none}
}


/* Permanent homepage article feed — v1.0.5 */
.latest-feed-heading{margin-top:30px;margin-bottom:18px}
.latest-feed-count{color:#667085;font-size:.88rem;font-weight:800}
.latest-feed-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.latest-feed-grid .post-card{min-width:0;height:100%}
.latest-feed-grid .post-card-body{display:flex;flex-direction:column;flex:1}
.latest-feed-grid .post-card-body .post-meta{margin-top:auto;padding-top:12px}
.latest-feed-grid .post-card-media{aspect-ratio:16/9}
@media (max-width:900px){
	.latest-feed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
	.latest-feed-grid{grid-template-columns:1fr}
	.latest-feed-count{display:none}
}
.featured-demo-grid .demo-card{height:100%}
.featured-demo-grid .demo-card>a{display:flex;flex-direction:column;height:100%}
.featured-demo-grid .demo-card-body{display:flex;flex-direction:column;flex:1}
.featured-demo-grid .demo-card-body .post-meta{margin-top:auto}
