/*
 * Shawa — blog article page (child theme, single-post.php). 2026-11-29
 * Dark brand palette, JUST Sans (Brand Fonts module), yellow #FAB207 accents.
 * Covers the hero, layout, every content element (Gutenberg + classic), sidebar tools and article footer.
 */
.shawa-article-page {
	--sa-bg: #18191b;
	--sa-panel: #131416;
	--sa-panel-2: #1d1f22;
	--sa-line: rgba(255, 255, 255, .08);
	--sa-line-2: rgba(255, 255, 255, .14);
	--sa-text: #c9cbcf;
	--sa-muted: #9a9da3;
	--sa-white: #ffffff;
	--sa-accent: #FAB207;
	--sa-accent-soft: rgba(250, 178, 7, .12);
	--sa-header: 80px;
}

/* ---------- Reading progress ---------- */
.shawa-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 10050; pointer-events: none; background: transparent; }
.shawa-progress span { display: block; height: 100%; background: var(--sa-accent); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .shawa-progress { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .shawa-progress { top: 46px; } }

/* ---------- Hero ---------- */
.shawa-article-page #subheader.shawa-post-hero {
	position: relative; display: flex; align-items: center; box-sizing: border-box; min-height: 360px;
	padding: var(--sa-header) 0 0 !important; margin: 0 !important;
	background-color: #0f1012; background-size: cover !important; background-position: center !important; background-attachment: scroll !important;
}
.shawa-article-page #subheader.shawa-post-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, .82) 0%, rgba(10, 11, 13, .9) 100%); }
.shawa-post-hero .container { position: relative; z-index: 2; flex: 0 1 auto; margin-left: auto; margin-right: auto; max-width: 100%; }
.shawa-post-hero .row { margin: 0; }
.shawa-post-hero .col-md-12 { display: flex; flex-direction: column; align-items: flex-start; float: none; padding-top: 46px; padding-bottom: 46px; }
.shawa-post-hero .title-wrap { float: none; width: 100%; max-width: 920px; }
.shawa-post-hero .crumb { display: block !important; float: none !important; order: -1; margin: 0 0 22px !important; padding: 0; text-align: left; font-size: 10px; line-height: 1.6; }
.shawa-post-hero .crumb, .shawa-post-hero .crumb li, .shawa-post-hero .crumb a { color: #fff !important; }
.shawa-post-hero .crumb a:hover { color: var(--sa-accent) !important; }
.shawa-post-hero .crumb li.active { color: var(--sa-accent) !important; display: inline; }
.shawa-post-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.shawa-post-cats li { margin: 0; padding: 0; }
.shawa-post-cats a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(250, 178, 7, .55); color: var(--sa-accent); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; line-height: 1.3; text-decoration: none; transition: background-color .25s, color .25s; }
.shawa-post-cats a:hover { background: var(--sa-accent); color: #111; }
.shawa-article-page #subheader h1.shawa-post-title {
	margin: 0 !important; padding: 0 !important; text-align: left !important; color: #fff;
	font-family: "JUST Sans", Arial, Helvetica, sans-serif !important; font-weight: 800 !important;
	font-size: 42px; line-height: 1.18; letter-spacing: .2px; text-transform: none !important; -webkit-text-stroke: 0 !important;
}
.shawa-post-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; color: #d9dadc; font-size: 13px; letter-spacing: .5px; }
.shawa-post-meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.shawa-post-meta .sa-ico { width: 15px; height: 15px; color: var(--sa-accent); }

/* ---------- Layout ---------- */
.shawa-article-page #content.shawa-post-wrap { padding: 0 0 110px; background: var(--sa-bg); }
.shawa-post-grid { display: grid; grid-template-columns: minmax(0, 760px) 320px; justify-content: space-between; gap: 64px; padding-top: 80px; }
.shawa-post { min-width: 0; }
.shawa-post-aside { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* The theme's #wrapper has overflow:hidden, which disables position:sticky inside it. "clip" crops the same way without that side effect. */
@supports (overflow: clip) { .shawa-article-page #wrapper { overflow: clip !important; } }
@media screen and (min-width: 992px) {
	.shawa-post-aside .shawa-cta-card.shawa-cta-sticky { position: -webkit-sticky; position: sticky; top: calc(var(--sa-header) + 30px); z-index: 2; }
	.admin-bar .shawa-post-aside .shawa-cta-card.shawa-cta-sticky { top: calc(var(--sa-header) + 62px); }
}

/* ---------- Cover image ---------- */
.shawa-post-cover { position: relative; margin: 0 0 54px; }
.shawa-post-cover:before { content: ""; position: absolute; left: -16px; top: -16px; width: 120px; height: 120px; border-left: 2px solid var(--sa-accent); border-top: 2px solid var(--sa-accent); pointer-events: none; }
.shawa-post-cover img { position: relative; display: block; width: 100%; height: auto; box-shadow: 0 25px 60px rgba(0, 0, 0, .45); }
.shawa-post-cover figcaption { margin-top: 12px; color: var(--sa-muted); font-size: 13px; line-height: 1.6; }

/* ---------- Table of contents ---------- */
.shawa-toc-side { padding: 28px 26px; background: var(--sa-panel); border: 1px solid var(--sa-line); border-top: 2px solid var(--sa-accent); }
.shawa-toc-title { display: block; margin: 0 0 16px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.shawa-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.shawa-toc-list li { margin: 0; padding: 0; }
.shawa-toc-list a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid var(--sa-line-2); color: var(--sa-muted); font-size: 14px; line-height: 1.5; text-decoration: none; transition: color .2s, border-color .2s; }
.shawa-toc-list .shawa-toc-h3 a { padding-left: 30px; font-size: 13px; }
.shawa-toc-list a:hover { color: #fff; }
.shawa-toc-list a.is-active { color: var(--sa-accent); border-left-color: var(--sa-accent); }
.shawa-toc-inline { margin: 0 0 44px; background: var(--sa-panel); border: 1px solid var(--sa-line); border-top: 2px solid var(--sa-accent); }
.shawa-toc-inline summary { position: relative; cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.shawa-toc-inline summary::-webkit-details-marker { display: none; }
.shawa-toc-inline summary:after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--sa-accent); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .25s; }
.shawa-toc-inline[open] summary:after { transform: translateY(-50%) rotate(45deg); }
.shawa-toc-inline .shawa-toc-list { max-height: none; padding: 0 22px 20px; }

/* ---------- Sidebar boxes ---------- */
.shawa-side-box { padding: 28px 26px; background: var(--sa-panel); border: 1px solid var(--sa-line); border-top: 2px solid var(--sa-accent); }
.shawa-side-box h2.shawa-side-title { margin: 0 0 18px; padding: 0; color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 3px; text-transform: uppercase; }
.shawa-side-posts, .shawa-side-cats { list-style: none; margin: 0; padding: 0; }
.shawa-side-posts li, .shawa-side-cats li { margin: 0; padding: 0; border-bottom: 1px solid var(--sa-line); }
.shawa-side-posts li:last-child, .shawa-side-cats li:last-child { border-bottom: 0; }
.shawa-side-posts a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; text-decoration: none !important; }
.shawa-side-posts li:first-child a { padding-top: 0; }
.shawa-side-posts li:last-child a { padding-bottom: 0; }
.shawa-side-thumb { display: block; width: 76px; height: 76px; overflow: hidden; background: #0f1012; }
.shawa-side-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shawa-side-text { display: block; min-width: 0; }
.shawa-side-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; transition: color .2s; }
.shawa-side-meta { display: block; margin-top: 6px; color: var(--sa-muted); font-size: 12px; line-height: 1.4; letter-spacing: .5px; }
.shawa-side-posts a:hover .shawa-side-name, .shawa-side-posts a:focus-visible .shawa-side-name { color: var(--sa-accent); }
.shawa-side-posts a:hover .shawa-side-thumb img { transform: scale(1.06); }
.shawa-side-cats a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; color: var(--sa-text); font-size: 14px; line-height: 1.4; text-decoration: none !important; transition: color .2s; }
.shawa-side-cats li:last-child a { padding-bottom: 0; }
.shawa-side-cats li:first-child a { padding-top: 0; }
.shawa-side-count { flex: 0 0 auto; min-width: 30px; padding: 4px 8px; border: 1px solid var(--sa-line-2); color: var(--sa-muted); font-size: 12px; line-height: 1.2; text-align: center; }
.shawa-side-cats a:hover, .shawa-side-cats .is-current a { color: var(--sa-accent); }
.shawa-side-cats .is-current .shawa-side-count { border-color: var(--sa-accent); color: var(--sa-accent); }

/* ---------- Project card ---------- */
.shawa-cta-card { position: relative; padding: 30px 26px; background: var(--sa-panel); border: 1px solid var(--sa-line); overflow: hidden; }
.shawa-cta-card:after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border: 2px solid rgba(250, 178, 7, .18); border-radius: 50%; pointer-events: none; }
.shawa-cta-eyebrow { display: block; color: var(--sa-accent); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.shawa-cta-title { display: block; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.shawa-cta-card p { color: var(--sa-text); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.shawa-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; background: var(--sa-accent); color: #111 !important; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none !important; transition: background-color .25s, color .25s; }
.shawa-cta-btn .sa-ico { width: 16px; height: 16px; }
.shawa-cta-btn:hover { background: #fff; }
.shawa-cta-link { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff !important; font-size: 13px; text-decoration: none !important; }
.shawa-cta-link .sa-ico { width: 16px; height: 16px; color: #25D366; }
.shawa-cta-link:hover { color: var(--sa-accent) !important; }

/* =====================================================================
   ARTICLE CONTENT — every element
   ===================================================================== */
.shawa-article { color: var(--sa-text); font-size: 18px; line-height: 1.85; font-weight: 400; word-wrap: break-word; overflow-wrap: break-word; }
.shawa-article > *:first-child { margin-top: 0 !important; }
.shawa-article > *:last-child { margin-bottom: 0 !important; }
.shawa-article p { margin: 0 0 1.45em; font-size: inherit; line-height: inherit; color: inherit; }
.shawa-article > p:first-of-type { font-size: 1.12em; line-height: 1.75; color: #e3e4e6; }
.shawa-article strong, .shawa-article b { color: #fff; font-weight: 700; }
.shawa-article em, .shawa-article i:not([class]) { font-style: italic; }
.shawa-article small { font-size: .82em; }
.shawa-article mark, .shawa-article .has-inline-color { padding: 0 .2em; }
.shawa-article mark { background: var(--sa-accent); color: #111; }
.shawa-article sup, .shawa-article sub { font-size: .7em; line-height: 0; }
.shawa-article abbr[title] { text-decoration: underline dotted; cursor: help; }
.shawa-article kbd { padding: 2px 7px; border: 1px solid var(--sa-line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--sa-panel-2); color: #fff; font-size: .82em; }

/* Links */
.shawa-article a { color: var(--sa-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(250, 178, 7, .45); transition: color .2s, text-decoration-color .2s; }
.shawa-article a:hover, .shawa-article a:focus-visible { color: #fff; text-decoration-color: #fff; }
.shawa-article a:focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 2px; }

/* Headings */
.shawa-article h1, .shawa-article h2, .shawa-article h3, .shawa-article h4, .shawa-article h5, .shawa-article h6 {
	color: #fff; font-family: "JUST Sans", Arial, Helvetica, sans-serif; font-weight: 800; text-transform: none; letter-spacing: .2px; scroll-margin-top: calc(var(--sa-header) + 30px); -webkit-text-stroke: 0;
}
.shawa-article h1 { font-size: 2em; line-height: 1.2; margin: 1.6em 0 .7em; }
.shawa-article h2 { position: relative; font-size: 1.72em; line-height: 1.25; margin: 2.2em 0 .8em; padding-top: 22px; }
.shawa-article h2:before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 2px; background: var(--sa-accent); }
.shawa-article h3 { font-size: 1.36em; line-height: 1.3; margin: 1.9em 0 .7em; }
.shawa-article h4 { font-size: 1.14em; line-height: 1.4; margin: 1.7em 0 .6em; }
.shawa-article h5, .shawa-article h6 { font-size: .8em; line-height: 1.5; margin: 1.6em 0 .6em; color: var(--sa-accent); letter-spacing: 2.5px; text-transform: uppercase; }
.shawa-article h2 + h3, .shawa-article h3 + h4 { margin-top: .6em; }
.shawa-article h2 a, .shawa-article h3 a, .shawa-article h4 a { color: inherit; text-decoration: none; }

/* Lists */
.shawa-article ul, .shawa-article ol { margin: 0 0 1.5em; padding: 0; list-style: none; }
.shawa-article li { position: relative; margin: 0 0 .6em; padding-left: 30px; line-height: 1.75; }
.shawa-article li:last-child { margin-bottom: 0; }
.shawa-article ul > li:before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; background: var(--sa-accent); transform: rotate(45deg); }
.shawa-article ol { counter-reset: sa-ol; }
.shawa-article ol > li { counter-increment: sa-ol; padding-left: 40px; }
.shawa-article ol > li:before { content: counter(sa-ol, decimal-leading-zero); position: absolute; left: 0; top: .12em; color: var(--sa-accent); font-size: .78em; font-weight: 700; letter-spacing: 1px; line-height: 1.85; }
.shawa-article ol[start] { counter-reset: none; }
.shawa-article li > ul, .shawa-article li > ol { margin: .6em 0 0; }
.shawa-article li > ul > li:before { width: 6px; height: 6px; background: transparent; border: 1px solid var(--sa-accent); top: .78em; }
.shawa-article li p { margin-bottom: .4em; }
.shawa-article dl { margin: 0 0 1.5em; }
.shawa-article dt { color: #fff; font-weight: 700; margin-top: .9em; }
.shawa-article dd { margin: .25em 0 0; padding-left: 18px; border-left: 2px solid var(--sa-line-2); }

/* Quotes */
.shawa-article blockquote, .shawa-article .wp-block-quote {
	position: relative; margin: 2.2em 0; padding: 30px 34px 30px 38px; border: 0; border-left: 3px solid var(--sa-accent);
	background: var(--sa-panel); color: #fff; font-size: 1.16em; line-height: 1.65;
}
.shawa-article blockquote p { margin: 0 0 .7em; color: #fff; }
.shawa-article blockquote p:last-of-type { margin-bottom: 0; }
.shawa-article blockquote cite, .shawa-article blockquote footer, .shawa-article .wp-block-quote cite {
	display: block; margin-top: 16px; color: var(--sa-accent); font-size: 12px; font-style: normal; letter-spacing: 2.5px; text-transform: uppercase;
}
.shawa-article .wp-block-pullquote { margin: 2.4em 0; padding: 34px 0; border-top: 2px solid var(--sa-accent); border-bottom: 2px solid var(--sa-accent); text-align: center; }
.shawa-article .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: 1.5em; line-height: 1.4; font-weight: 700; }

/* Separators */
.shawa-article hr, .shawa-article .wp-block-separator {
	position: relative; height: 1px; margin: 3em auto; border: 0; background: var(--sa-line-2); opacity: 1; max-width: 100%; overflow: visible;
}
.shawa-article hr:after, .shawa-article .wp-block-separator:after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--sa-accent); border-radius: 50%; }
.shawa-article .wp-block-separator.is-style-dots { height: auto; background: none; text-align: center; }
.shawa-article .wp-block-separator.is-style-dots:after { display: none; }
.shawa-article .wp-block-separator.is-style-dots:before { color: var(--sa-accent); letter-spacing: 1.5em; }

/* Images, figures, galleries */
.shawa-article img { max-width: 100%; height: auto; }
.shawa-article figure { max-width: 100%; margin: 2.2em 0; }
.shawa-article .wp-block-image img, .shawa-article figure > img { display: block; width: 100%; height: auto; }
.shawa-article .wp-block-image.alignleft, .shawa-article .alignleft { float: left; max-width: 46%; margin: .4em 28px 1.2em 0; }
.shawa-article .wp-block-image.alignright, .shawa-article .alignright { float: right; max-width: 46%; margin: .4em 0 1.2em 28px; }
.shawa-article .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.shawa-article .alignwide, .shawa-article .alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.shawa-article figcaption, .shawa-article .wp-caption-text, .shawa-article .wp-element-caption {
	margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--sa-accent); color: var(--sa-muted); font-size: 13px; line-height: 1.6; text-align: left;
}
.shawa-article .wp-caption { max-width: 100%; }
.shawa-article .wp-block-gallery { gap: 12px; }
.shawa-article .wp-block-gallery .wp-block-image { margin: 0; }
.shawa-article .wp-block-gallery figcaption { border-left: 0; padding-left: 0; }
.shawa-article .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 2em 0; }
.shawa-article .gallery-item { margin: 0; width: auto !important; }
.shawa-article .wp-block-media-text { margin: 2.2em 0; gap: 28px; }
.shawa-article .wp-block-cover { margin: 2.2em 0; }

/* Tables */
.shawa-article .shawa-table, .shawa-article .wp-block-table {
	position: relative; margin: 2.2em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--sa-line); background: var(--sa-panel); scrollbar-width: thin;
}
.shawa-article .shawa-table:focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.shawa-article table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; border-spacing: 0; font-size: 15px; line-height: 1.6; color: var(--sa-text); background: transparent; }
.shawa-article .wp-block-table table { margin: 0; }
.shawa-article th, .shawa-article td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--sa-line); text-align: left; vertical-align: top; }
.shawa-article thead th, .shawa-article table tr:first-child th { background: var(--sa-accent); color: #111; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 0; white-space: nowrap; }
.shawa-article tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.shawa-article tbody tr:hover td { background: rgba(250, 178, 7, .06); }
.shawa-article tbody td:first-child { color: #fff; font-weight: 600; }
.shawa-article tbody tr:last-child td { border-bottom: 0; }
.shawa-article tfoot td { color: #fff; font-weight: 700; border-top: 1px solid var(--sa-line-2); }
.shawa-article .wp-block-table figcaption, .shawa-article table caption { padding: 12px 18px; margin: 0; border-left: 0; caption-side: bottom; text-align: left; }
.shawa-article .shawa-table.is-scrollable { box-shadow: inset -24px 0 18px -18px rgba(0, 0, 0, .7); }
.shawa-article .wp-block-table.is-style-stripes { border-bottom: 1px solid var(--sa-line); }

/* Code */
.shawa-article code { padding: 2px 7px; background: rgba(255, 255, 255, .07); color: var(--sa-accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; border-radius: 3px; }
.shawa-article pre, .shawa-article .wp-block-code { margin: 2em 0; padding: 22px 24px; background: #0e0f11; border: 1px solid var(--sa-line); border-left: 3px solid var(--sa-accent); color: #e6e6e6; font-size: 14px; line-height: 1.7; overflow-x: auto; white-space: pre; border-radius: 0; }
.shawa-article pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.shawa-article .wp-block-preformatted { white-space: pre-wrap; }

/* Buttons */
.shawa-article .wp-block-buttons { margin: 2em 0; gap: 12px; }
.shawa-article .wp-block-button__link, .shawa-article .wp-element-button {
	display: inline-block; padding: 14px 26px; border: 1px solid var(--sa-accent); border-radius: 0; background: var(--sa-accent); color: #111 !important;
	font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none !important; transition: background-color .25s, color .25s, border-color .25s;
}
.shawa-article .wp-block-button__link:hover { background: #fff; border-color: #fff; }
.shawa-article .is-style-outline .wp-block-button__link { background: transparent; color: var(--sa-accent) !important; }
.shawa-article .is-style-outline .wp-block-button__link:hover { background: var(--sa-accent); color: #111 !important; }

/* FAQ / details */
.shawa-article details { margin: 0; border-bottom: 1px solid var(--sa-line); }
.shawa-article details:first-of-type { border-top: 1px solid var(--sa-line); }
.shawa-article details > summary { position: relative; cursor: pointer; list-style: none; padding: 20px 44px 20px 0; color: #fff; font-weight: 700; font-size: 1em; line-height: 1.5; }
.shawa-article details > summary::-webkit-details-marker { display: none; }
.shawa-article details > summary:after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--sa-accent); font-size: 26px; font-weight: 400; transition: transform .25s; }
.shawa-article details[open] > summary:after { transform: translateY(-50%) rotate(45deg); }
.shawa-article details > *:not(summary) { margin-bottom: 1.1em; }
.shawa-article .wp-block-details + .wp-block-details { border-top: 0; }

/* Embeds */
.shawa-article .shawa-embed, .shawa-article .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; margin: 2.2em 0; }
.shawa-article .shawa-embed { aspect-ratio: 16 / 9; }
.shawa-article .shawa-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shawa-article .wp-block-embed { margin: 2.2em 0; }
.shawa-article video, .shawa-article audio { display: block; width: 100%; margin: 2em 0; }

/* Columns, groups, notes */
.shawa-article .wp-block-columns { gap: 32px; margin: 2em 0; }
.shawa-article .wp-block-group.has-background { padding: 28px 30px; }
.shawa-article .wp-block-group.has-background > *:last-child { margin-bottom: 0; }
.shawa-article .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--sa-line); background: var(--sa-panel); }
.shawa-article .wp-block-file .wp-block-file__button { background: var(--sa-accent); color: #111; border-radius: 0; padding: 10px 18px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }
.shawa-article .wp-block-footnotes { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--sa-line); font-size: 14px; color: var(--sa-muted); }
.shawa-article .wp-block-footnotes li:before { color: var(--sa-accent); }
.shawa-article::after { content: ""; display: table; clear: both; }
.shawa-pages { display: flex; gap: 10px; margin-top: 2em; font-size: 14px; }

/* ---------- Article footer: tags, share, author ---------- */
.shawa-post-footer { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--sa-line); }
.shawa-post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.shawa-post-tags li { margin: 0; }
.shawa-post-tags a { display: inline-block; padding: 7px 13px; background: var(--sa-panel-2); color: var(--sa-text); font-size: 13px; line-height: 1.3; text-decoration: none; border: 1px solid transparent; transition: border-color .2s, color .2s; }
.shawa-post-tags a:hover { border-color: var(--sa-accent); color: #fff; }
.shawa-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--sa-line); border-bottom: 1px solid var(--sa-line); }
.shawa-share-label { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.shawa-share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.shawa-share-links a, .shawa-share-copy {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--sa-line-2); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; text-decoration: none; transition: background-color .25s, border-color .25s, color .25s;
}
.shawa-share-links .sa-ico { width: 17px; height: 17px; }
.shawa-share-links a:hover, .shawa-share-copy:hover, .shawa-share-links a:focus-visible, .shawa-share-copy:focus-visible { background: var(--sa-accent); border-color: var(--sa-accent); color: #111; outline: none; }
.shawa-share-copy.is-copied { background: var(--sa-accent); border-color: var(--sa-accent); color: #111; }
.shawa-share-copied { position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap; padding: 4px 10px; background: #fff; color: #111; font-size: 11px; letter-spacing: 1px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.shawa-share-copy.is-copied .shawa-share-copied { opacity: 1; }
.shawa-share-copied:empty { display: none; }
.shawa-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 30px; padding: 26px 28px; background: var(--sa-panel); border: 1px solid var(--sa-line); }
.shawa-author-mark { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sa-accent); border-radius: 50%; color: var(--sa-accent); font-size: 24px; font-weight: 800; }
.shawa-author-label { display: block; color: var(--sa-muted); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.shawa-author-name { display: inline-block; margin: 4px 0 8px; color: #fff !important; font-size: 18px; font-weight: 800; text-decoration: none !important; }
.shawa-author-name:hover { color: var(--sa-accent) !important; }
.shawa-author p { margin: 0; color: var(--sa-text); font-size: 14px; line-height: 1.7; }

/* ---------- Previous / next ---------- */
.shawa-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 90px; }
.shawa-post-nav a { display: block; padding: 26px 28px; border: 1px solid var(--sa-line); background: var(--sa-panel); text-decoration: none !important; transition: border-color .25s, transform .25s; }
.shawa-post-nav a:hover { border-color: var(--sa-accent); transform: translateY(-2px); }
.shawa-post-nav-next { text-align: right; }
.shawa-post-nav-label { display: block; margin-bottom: 8px; color: var(--sa-accent); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.shawa-post-nav-label:before { content: "\2190\00a0\00a0"; }
.shawa-post-nav-next .shawa-post-nav-label:before { content: none; }
.shawa-post-nav-next .shawa-post-nav-label:after { content: "\00a0\00a0\2192"; }
.shawa-post-nav-title { display: block; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.45; }

/* ---------- Related ---------- */
.shawa-related { margin-top: 90px; }
.shawa-related-title { position: relative; margin: 0 0 34px; padding-top: 20px; color: #fff; font-size: 26px; font-weight: 800; text-transform: none; letter-spacing: .2px; }
.shawa-related-title:before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 2px; background: var(--sa-accent); }
.shawa-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.shawa-related-card { display: flex; flex-direction: column; background: var(--sa-panel); border: 1px solid var(--sa-line); text-decoration: none !important; transition: border-color .25s, transform .25s; }
.shawa-related-card:hover { border-color: var(--sa-accent); transform: translateY(-3px); }
.shawa-related-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0f1012; }
.shawa-related-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shawa-related-card:hover .shawa-related-media img { transform: scale(1.05); }
.shawa-related-body { display: block; padding: 22px 22px 26px; }
.shawa-related-meta { display: block; margin-bottom: 10px; color: var(--sa-muted); font-size: 12px; letter-spacing: 1px; }
.shawa-related-name { display: block; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.45; }

/* ---------- Comments (theme markup) ---------- */
.shawa-comments { margin-top: 90px; max-width: 760px; color: var(--sa-text); }
.shawa-comments h3, .shawa-comments h4, .shawa-comments .comment-reply-title { color: #fff; font-size: 22px; font-weight: 800; text-transform: none; letter-spacing: .2px; }
.shawa-comments input[type="text"], .shawa-comments input[type="email"], .shawa-comments input[type="url"], .shawa-comments textarea {
	width: 100%; padding: 14px 16px; background: var(--sa-panel); border: 1px solid var(--sa-line-2); color: #fff; font-size: 15px; border-radius: 0; transition: border-color .2s;
}
.shawa-comments input:focus, .shawa-comments textarea:focus { border-color: var(--sa-accent); outline: none; }
.shawa-comments input[type="submit"], .shawa-comments .submit { padding: 14px 26px; background: var(--sa-accent); border: 0; color: #111; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.shawa-comments input[type="submit"]:hover { background: #fff; }

/* ---------- Overrides of theme rules with higher specificity (quote, code) ---------- */
.shawa-article-page .shawa-article blockquote, .shawa-article-page .shawa-article .wp-block-quote {
	border: 0 !important; border-left: 3px solid var(--sa-accent) !important; padding: 30px 34px 30px 38px !important; font-style: normal !important; background: var(--sa-panel) !important;
}
.shawa-article-page .shawa-article .wp-block-pullquote blockquote { border: 0 !important; padding: 0 !important; background: none !important; }
.shawa-article-page .shawa-article blockquote:before { display: none !important; }
.shawa-article-page .shawa-article blockquote cite { color: var(--sa-accent) !important; font-weight: 700 !important; font-style: normal !important; margin: 16px 0 0 !important; display: block !important; }
.shawa-article-page .shawa-article code { display: inline !important; border: 0 !important; white-space: normal !important; }
.shawa-article-page .shawa-article pre code { display: block !important; white-space: pre !important; padding: 0 !important; background: none !important; color: inherit !important; }
@media screen and (max-width: 767px) {
	.shawa-article-page .shawa-article blockquote, .shawa-article-page .shawa-article .wp-block-quote { padding: 22px 20px 22px 24px !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media screen and (min-width: 992px) { .shawa-toc-inline { display: none !important; } }

@media screen and (max-width: 1199px) {
	.shawa-post-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; }
	.shawa-article-page #subheader h1.shawa-post-title { font-size: 38px; }
}

@media screen and (max-width: 991px) {
	.shawa-article-page { --sa-header: 80px; }
	.shawa-article-page #subheader.shawa-post-hero { min-height: 300px; }
	.shawa-post-hero .col-md-12 { padding-top: 34px; padding-bottom: 34px; }
	.shawa-article-page #subheader h1.shawa-post-title { font-size: 32px; }
	.shawa-post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 60px; max-width: 760px; margin: 0 auto; }
	.shawa-toc-side { display: none !important; }
	.shawa-post-aside { margin-top: 48px; }
	.shawa-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shawa-related-grid > :nth-child(3) { display: none; }
	.shawa-post-nav, .shawa-related, .shawa-comments { max-width: 760px; margin-left: auto; margin-right: auto; }
	.shawa-comments { margin-top: 70px; }
	.shawa-post-nav { margin-top: 70px; }
	.shawa-related { margin-top: 70px; }
}

@media screen and (max-width: 767px) {
	.shawa-article-page #subheader.shawa-post-hero { min-height: 0; }
	.shawa-post-hero .col-md-12 { padding-top: 30px; padding-bottom: 30px; }
	.shawa-post-hero .crumb { display: none !important; }
	.shawa-article-page #subheader h1.shawa-post-title { font-size: 26px; line-height: 1.25; }
	.shawa-post-meta { margin-top: 16px; gap: 8px 18px; font-size: 12px; }
	.shawa-article-page #content.shawa-post-wrap { padding-bottom: 80px; }
	.shawa-post-grid { padding-top: 40px; }
	.shawa-post-cover { margin-bottom: 36px; }
	.shawa-post-cover:before { left: -8px; top: -8px; width: 70px; height: 70px; }
	.shawa-article { font-size: 17px; line-height: 1.8; }
	.shawa-article > p:first-of-type { font-size: 1.06em; }
	.shawa-article h2 { font-size: 1.45em; padding-top: 18px; }
	.shawa-article h3 { font-size: 1.22em; }
	.shawa-article h4 { font-size: 1.08em; }
	.shawa-article blockquote, .shawa-article .wp-block-quote { padding: 22px 20px 22px 24px; font-size: 1.06em; }
	.shawa-article .wp-block-pullquote blockquote { font-size: 1.25em; }
	.shawa-article .wp-block-image.alignleft, .shawa-article .wp-block-image.alignright, .shawa-article .alignleft, .shawa-article .alignright { float: none; max-width: 100%; margin: 1.6em 0; }
	.shawa-article th, .shawa-article td { padding: 12px 14px; }
	.shawa-article table { font-size: 14px; }
	.shawa-article pre, .shawa-article .wp-block-code { padding: 18px; font-size: 13px; }
	.shawa-article .wp-block-columns { gap: 0; }
	.shawa-share { flex-direction: column; align-items: flex-start; }
	.shawa-author { padding: 22px 20px; gap: 16px; }
	.shawa-author-mark { flex-basis: 46px; width: 46px; height: 46px; font-size: 20px; }
	.shawa-post-nav { grid-template-columns: 1fr; gap: 14px; margin-top: 60px; }
	.shawa-post-nav-next { text-align: left; }
	.shawa-post-nav-empty { display: none; }
	.shawa-related { margin-top: 60px; }
	.shawa-related-grid { grid-template-columns: 1fr; gap: 20px; }
	.shawa-related-grid > :nth-child(3) { display: flex; }
	.shawa-related-title { font-size: 22px; }
}

@media screen and (max-width: 360px) {
	.shawa-article-page #subheader h1.shawa-post-title { font-size: 23px; }
	.shawa-article { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.shawa-related-card, .shawa-post-nav a, .shawa-related-media img, .shawa-toc-inline summary:after, .shawa-article details > summary:after { transition: none; }
}

@media print {
	.shawa-progress, .shawa-post-aside, .shawa-share, .shawa-post-nav, .shawa-related, .shawa-comments { display: none !important; }
	.shawa-post-grid { display: block; }
	.shawa-article { color: #000; }
}
