/*
 * Blog — blog page (live's Elementor page 41), archives/search (Convex "classic 3"), single posts (Convex
 * "single style-3" + sidebar), table-of-contents chips (new), 404. Values measured from live at 1440/1024/768/390
 * (see docs/sessions/blog.md). Breakpoints: Convex 1279/1023/767/479, Elementor 1024/880/767.
 */

/* Live's card gradient (blog cards, archive tiles). */
.sg-card, .sg-entry {
	background: #2e2e2e linear-gradient(to bottom, #323232 0%, #2d2d2d 27%, #1e1e1e 76%, #1a1a1a 100%);
}

/* ── Shared: Convex's meta separator (a small dot after an item: 10.36px before it, 7px after) ────── */
.sg-post__author::after,
.sg-entry__cats::after,
.sg-recent__cat::after {
	content: ""; display: inline-block; width: .28em; height: .28em; margin: 0 .5em 0 .74em; border-radius: 50%;
	background: #94959b; vertical-align: middle;
}
.sg-entry__cats::after { margin: 0 .75em; }

/* ── Blog page /blog/ ─────────────────────────────────────────────────────────────────────────── */
.sg-blog { padding: 308px 0 140.7px; background: var(--c-bg); color: var(--c-white); }
.sg-blog__inner { width: calc(100% - 120px); max-width: 1400px; margin-inline: auto; }
.sg-blog__head { position: relative; display: flow-root; padding: 0 20px; }
.sg-blog__letters { margin: 0 0 -40px; line-height: 0; }
.sg-blog__letters img { width: 842px; max-width: 100%; height: auto; }
.sg-blog__title { position: relative; margin: 0 0 10px -4px; font-size: 50px; font-weight: 500; line-height: 1.2; color: var(--c-white); }
.sg-blog__grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 30px;
	margin-top: 60px; position: relative; z-index: 2;
}
.sg-blog__none { margin-top: 60px; color: var(--c-white); }

/* Card: category, title, first 20 words; "Read More" pinned to the bottom. */
.sg-card { position: relative; display: flex; flex-direction: column; padding: 30px 30px 90px; color: var(--c-white); font-size: 17px; line-height: 1.68; }
.sg-card__cats { margin: 0; font-weight: 500; line-height: 1.68; color: #96999f; }
.sg-card__cats a:hover { color: var(--c-white); }
.sg-card__title { padding: 20px 0; font-size: 22px; font-weight: 500; line-height: 1.5; color: var(--c-white); }
.sg-card__title a:hover { color: var(--c-grey); }
.sg-card__excerpt { margin: 0 0 1em; line-height: 2em; word-break: break-word; }
.sg-card__more { position: absolute; left: 30px; right: 30px; bottom: 30px; }
.sg-card__btn {
	display: inline-block; padding: 15px 50px; border: 1px solid var(--c-white); background: transparent;
	color: var(--c-white); font-size: 16px; font-weight: 400; line-height: 1; transition: color .3s, background-color .3s;
}
.sg-card__btn:hover, .sg-card__btn:focus-visible { background: var(--c-white); color: #000; }

/* Cards rise 400px into place one after another (live custom code: 1s ease-out, 300ms apart). toc.js adds .is-up. */
.js .sg-card { opacity: 0; transform: translateY(400px); }
.js .sg-card.is-up { animation: sgCardUp 1s ease-out forwards; }
@keyframes sgCardUp { from { opacity: 0; transform: translateY(400px); } to { opacity: 1; transform: translateY(0); } }

/* Pagination (blog page): 45px boxes. */
.sg-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 50px; }
.sg-pagination--boxes .page-numbers {
	display: flex; align-items: center; justify-content: center; min-width: 45px; min-height: 45px; margin: 0 7.5px;
	padding: 5px; border: 1px solid var(--c-white); color: var(--c-white); font-size: 16px; line-height: 33px;
}
.sg-pagination--boxes .page-numbers:first-child { margin-left: 0; }
.sg-pagination--boxes .page-numbers:last-child { margin-right: 0; }
.sg-pagination--boxes .page-numbers.current, .sg-pagination--boxes a.page-numbers:hover { background: var(--c-white); color: #000; }
.sg-pagination--boxes .page-numbers.current { font-weight: 600; }
.sg-pagination--boxes .page-numbers.dots { min-width: 0; min-height: 0; border: 0; background: transparent; color: var(--c-white); }

@media (max-width: 1280px) {
	.sg-blog { padding: 287px 0 120px; }
	.sg-blog__inner { width: calc(100% - 40px); }
	.sg-blog__title { font-size: 40px; }
	.sg-blog__letters { margin-bottom: -15px; }
	.sg-blog__letters img { width: calc((100% + 40px) / 2 - 50px); }
}
@media (max-width: 1024px) {
	.sg-blog { padding: 270px 0 140px; }
	.sg-blog__title { font-size: 35px; }
	.sg-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 50px; }
	.sg-card { font-size: 16px; }
}
@media (max-width: 880px) {
	.sg-blog { padding: 260px 0 130px; }
	.sg-blog__head { padding: 0; }
	.sg-blog__letters img { width: calc(50% - 30px); }
	.sg-blog__grid { margin-top: 30px; }
	.sg-card__title { font-size: 20px; }
}
@media (max-width: 767px) {
	.sg-blog { padding: 153px 0 100px; }
	.sg-blog__letters { margin-bottom: -10px; }
	.sg-blog__letters img { width: 300px; }
	.sg-blog__title { margin: 0 0 16px; font-size: 36px; }
	.sg-blog__grid { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
	.sg-card { padding: 30px 20px; }
	.sg-card__title { padding: 10px 0; }
	.sg-card__more { position: static; margin-top: 10px; }
	.sg-card__btn { padding: 13px 66px; font-size: 14px; }
	/* Live: the cards don't rise on phones' first screen any differently; keep the same effect. */
}

/* ── Archives and search (Convex classic 3) ─────────────────────────────────────────────────── */
.sg-archive { padding: 121px 0; background: var(--c-bg); }
.sg-archive__inner { width: 1290px; max-width: calc(100% - 40px); margin-inline: auto; }
.sg-archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 20px; }
.sg-entry { display: flex; flex-direction: column; min-width: 0; padding: 30px; color: var(--c-text); }
.sg-entry__media { position: relative; display: block; margin-bottom: 17px; overflow: hidden; line-height: 0; }
.sg-entry__media img { width: 100%; aspect-ratio: 890 / 664; object-fit: cover; transform: scale(1.01); }
.sg-entry__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .35s ease-in-out; }
.sg-entry__media:hover::after { opacity: 1; }
.sg-entry__meta { margin: 0; font-size: 14px; line-height: 21px; color: #94959b; }
.sg-entry__cats a { font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--c-white); }
.sg-entry__comma { color: var(--c-white); }
.sg-entry__cats, .sg-entry__date { display: inline-block; }
.sg-entry__date { color: #94959b; white-space: nowrap; }
.sg-entry__cats a:hover, .sg-entry__date:hover { color: var(--c-grey); }
.sg-entry__title { margin-top: 12px; font-size: 28px; font-weight: 500; line-height: 1.036; color: var(--c-white); }
.sg-entry__title a:hover { color: var(--c-grey); }

/* Pagination (archives): round numbers and ">". */
.sg-pagination--circles { justify-content: flex-start; margin-top: 33px; }
.sg-pagination--circles .page-numbers {
	display: inline-block; width: 52px; height: 52px; margin: 2px 5px 2px 0; border: 1px solid #e1e3e3; border-radius: 50%;
	color: var(--c-white); font-size: 17px; font-weight: 500; line-height: 49px; text-align: center;
	transition: color .3s, background-color .3s, border-color .3s;
}
.sg-pagination--circles .page-numbers.current, .sg-pagination--circles a.page-numbers:hover { background: #0a0a0a; border-color: #0a0a0a; }
.sg-pagination--circles .page-numbers.dots { width: auto; padding: 0 12px; border: 0; }

@media (max-width: 1439px) {
	.sg-archive { padding: 100px 0; }
	.sg-pagination--circles { margin-top: 38px; }
}
@media (max-width: 1024px) {
	.sg-archive { padding: 90px 0; }
	.sg-pagination--circles { margin-top: 47px; }
	.sg-entry { padding: 20px; }
	.sg-entry__title { margin-top: 10px; font-size: 22px; }
}
@media (max-width: 880px) {
	.sg-archive { padding: 80px 0; }
	.sg-pagination--circles { margin-top: 43px; }
	.sg-entry__title { margin-top: 8px; font-size: 20px; line-height: 1.35; }
	.sg-pagination--circles .page-numbers { width: 42px; height: 42px; line-height: 39px; }
}
@media (max-width: 767px) {
	.sg-archive { padding: 50px 0; }
	.sg-archive__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.sg-entry { padding-bottom: 30px; }
	.sg-pagination--circles { margin-top: 21px; }
	.sg-entry__meta { font-size: 13px; line-height: 19.5px; }
	.sg-entry__title { margin-top: 6px; line-height: 1.1; }
	.sg-pagination--circles .page-numbers { width: 40px; height: 40px; line-height: 37px; }
}

/* Nothing found (empty search/archive): live's Convex block — 70% wide heading, text, 410px search field. */
.sg-archive--empty { padding: 102px 0; }
.sg-none { max-width: 70%; margin: 0 auto; text-align: center; color: var(--c-white); }
.sg-none__title { font-size: 57px; font-weight: 500; line-height: 1; }
.sg-none__text { margin: 39px 0 43px; padding: 0 17%; font-size: 19px; line-height: 2.25em; color: var(--c-text); }
.sg-none__text a { color: var(--c-link); }
.sg-none__text a:hover { color: var(--c-white); }
.sg-none__search { max-width: 410px; margin: 0 auto; text-align: left; }
.sg-none .sg-searchform__field { margin: 0; padding-left: 52.8px; border-color: #e1e3e3; color: #94959b; }
.sg-none .sg-searchform__field::placeholder { color: #94959b; }
.sg-none .sg-searchform__submit { width: 52px; }
.sg-none .sg-searchform__submit svg { width: 22px; height: 22px; }
@media (max-width: 1279px) { .sg-archive--empty { padding: 4.5em 0; } .sg-none__text { font-size: 18px; } }
@media (max-width: 1023px) {
	.sg-archive--empty { padding: 4em 0; }
	.sg-none__title { font-size: 42px; }
	.sg-none__text { margin: 26px 0 30px; padding: 0 10%; }
}
@media (max-width: 767px) {
	.sg-archive--empty { padding: 3.8em 0 4em; }
	.sg-none { max-width: none; }
	.sg-none__title { font-size: 26px; }
	.sg-none__text { margin: 18px 0 22px; padding: 0; font-size: 16px; line-height: 2.57em; }
	.sg-none__search { max-width: none; }
	.sg-none .sg-searchform__field { height: 43px; padding: 9px 18px 9px 45px; font-size: 15px; }
}

/* ── Search form (sidebar, empty search) ─────────────────────────────────────────────────────── */
.sg-searchform { position: relative; display: block; }
.sg-searchform__field {
	display: block; width: 100%; height: 51px; margin: 1px 0 0; padding: 12.32px 19.2px 12.32px 48px;
	border: 1px solid #4a4a4a; border-radius: 0; background: transparent; color: var(--c-light);
	font-size: 16px; line-height: 24px; -webkit-appearance: none; appearance: none;
}
.sg-searchform__field::placeholder { color: var(--c-light); opacity: 1; }
.sg-searchform__field:focus { outline: none; border-color: var(--c-light); }
.sg-searchform__field::-webkit-search-cancel-button { -webkit-appearance: none; }
.sg-searchform__submit { position: absolute; top: 0; left: 0; width: 48px; height: 100%; display: grid; place-items: center; color: var(--c-white); }
.sg-searchform__submit:hover { color: var(--c-grey); }

/* ── Single post ─────────────────────────────────────────────────────────────────────────────── */
.sg-post { background: var(--c-bg); }
.sg-post__hero { position: relative; height: 612px; overflow: hidden; background: #111; }
.sg-post__hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sg-post__hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }

.sg-post__head { position: relative; max-width: 1060px; margin: 0 auto; padding: 55px; background: var(--c-bg); text-align: center; }
.sg-post:not(.sg-post--hero) .sg-post__head { margin-top: calc(var(--header-h) + 68px); }
.sg-post__cats { margin: 0 0 24px; font-size: 17px; line-height: 1.68; }
.sg-post__cat {
	display: inline-block; margin: 3px 0; padding: 4px 17px 5px; background: #58626c; color: var(--c-white);
	font-size: 11px; font-weight: 500; line-height: 14px; letter-spacing: .8px; text-transform: uppercase;
}
.sg-post__cat + .sg-post__cat { margin-left: 4px; }
.sg-post__cat:hover { background: var(--c-white); color: #000; }
.sg-post__title { max-width: 85%; margin: 0 auto; font-size: 50px; font-weight: 500; line-height: 1.2; color: var(--c-white); }
.sg-post__meta { margin: 28px 0 0; font-size: 14px; line-height: 21px; color: #94959b; }
.sg-post__author { display: inline-flex; align-items: center; letter-spacing: .8px; text-transform: uppercase; line-height: 24.5px; vertical-align: middle; }
.sg-post__author:hover { color: var(--c-white); }
.sg-post__avatar { width: 32px; height: 32px; margin: -3px .85em 0 0; border-radius: 50%; }
.sg-post__date { line-height: 24.5px; vertical-align: middle; }

.sg-post__body {
	display: grid; grid-template-columns: minmax(0, 68.76%) minmax(0, 28.45%); column-gap: 2.72%; align-items: start;
	width: 1290px; max-width: calc(100% - 40px); margin: 0 auto; padding: 51px 0 120.7px;
}
.sg-post__main { min-width: 0; }

/* Content typography: the owner's refined scale (the H1 title clearly largest; H2 34 / H3 26 / H4 20 on desktop),
   a comfortable measure (about 75 characters) and calmer line spacing. Montserrat, site colours. */
.sg-post__content { max-width: 760px; color: var(--c-white); font-size: 17px; line-height: 1.68; overflow-wrap: break-word; }
.sg-post__content > :first-child { margin-top: 0; }
.sg-post__content p { margin: 0 0 1.35em; line-height: 1.95; }
.sg-post__content h2, .sg-post__content h3, .sg-post__content h4, .sg-post__content h5, .sg-post__content h6 { color: var(--c-white); font-weight: 500; }
.sg-post__content h2 { margin: 1.5em 0 .55em; font-size: 34px; line-height: 1.24; letter-spacing: -.01em; }
.sg-post__content h3 { margin: 1.4em 0 .5em; font-size: 26px; line-height: 1.3; }
.sg-post__content h4 { margin: 1.4em 0 .45em; font-size: 20px; line-height: 1.4; }
.sg-post__content h5 { margin: 1.4em 0 .4em; font-size: 17px; line-height: 1.45; letter-spacing: .02em; }
.sg-post__content h6 { margin: 1.4em 0 .4em; font-size: 15px; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; }
.sg-post__content h2:first-child, .sg-post__content h3:first-child { margin-top: 0; }
.sg-post__content :is(h2, h3)[id] { scroll-margin-top: var(--sg-toc-offset, 150px); }
.sg-post__content a { color: #96999f; }
.sg-post__content a:hover { color: var(--c-white); }
.sg-post__content strong { font-weight: 700; }
.sg-post__content small { font-size: 11px; }
.sg-post__content p:has(> small:only-child) { font-size: 11px; }
.sg-post__content p:has(> small:only-child) small { font-size: inherit; }
.sg-post__content ul, .sg-post__content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.sg-post__content li { line-height: 1.8; }
.sg-post__content li + li { margin-top: .35em; }
.sg-post__content li > ul, .sg-post__content li > ol { margin: .2em 0 0; }
.sg-post__content blockquote {
	margin: 1.8em 0; padding: 2.75em 2.9em; background: var(--c-white); color: #0a0a0a;
}
.sg-post__content blockquote p { margin: 0; font-size: 19px; line-height: 2.25em; color: #0a0a0a; }
.sg-post__content blockquote cite { position: relative; display: block; margin: 25.65px 0 3px; padding-left: 60px; font-size: 19px; font-style: normal; font-weight: 500; line-height: 28px; color: #0a0a0a; }
.sg-post__content blockquote cite::before { content: ""; position: absolute; left: 0; top: 14px; width: 40px; height: 2px; background: var(--c-link); }
.sg-post__content img { height: auto; }
.sg-post__content p > img, .sg-post__content p > a > img { display: inline-block; vertical-align: top; }
.sg-post__content .alignleft { float: left; margin: .4em 2em 1em 0; }
.sg-post__content .alignright { float: right; margin: .4em 0 1em 2em; }
.sg-post__content .aligncenter { display: block; margin-inline: auto; }
.sg-post__content p:has(> img.aligncenter), .sg-post__content p:has(> a > img.aligncenter) { text-align: center; }
.sg-post__content .has-text-align-center { text-align: center; }
.sg-post__content .has-text-align-right { text-align: right; }
.sg-post__content figure { margin: 0 0 1.7em; }
.sg-post__content figure > p { margin: 0; }
.sg-post__content figcaption { margin-top: .6em; font-size: 14px; line-height: 1.5; color: var(--c-light); text-align: center; }
.sg-post__content figure.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 25px; padding-bottom: 17px; margin-bottom: 0; }
.sg-post__content figure.gallery.columns-1 { grid-template-columns: minmax(0, 1fr); }
.sg-post__content figure.gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-post__content figure.gallery figure { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
.sg-post__content figure.gallery img { width: auto; max-width: 100%; height: auto; }
.sg-post__content figure.gallery > figcaption { grid-column: 1 / -1; }
.sg-post__content table { width: 100%; margin: 0 0 1.7em; border-collapse: collapse; font-size: 16px; }
.sg-post__content td, .sg-post__content th { padding: 1em .8em; border: 1px solid #292929; vertical-align: top; text-align: left; color: var(--c-light); }
.sg-post__content td:first-child { white-space: nowrap; color: var(--c-white); }
.sg-post__content hr { clear: both; height: 1px; margin: 2em 0; border: 0; background: #292929; }
.sg-post__content::after { content: ""; display: table; clear: both; }
.sg-embed { position: relative; margin: 0 0 1.7em; aspect-ratio: 16 / 9; background: #111; }
.sg-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg-post__content p:has(> .sg-embed) { margin: 0; }

/* Previous / next. */
.sg-postnav { display: flex; margin-top: 53px; }
.sg-postnav__link { display: block; flex: 0 0 50%; min-width: 0; padding-right: 15px; color: var(--c-white); }
.sg-postnav__link--next { margin-left: auto; padding: 0 0 0 15px; text-align: right; }
.sg-postnav__link--next .sg-postnav__label { justify-content: flex-end; }
.sg-postnav__label { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: #94959b; }
.sg-postnav__arrow { width: 9px; height: 9px; stroke-width: 3; }
.sg-postnav__link--prev .sg-postnav__arrow { transform: rotate(180deg); }
.sg-postnav__title { display: block; margin-top: 12px; font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--c-white); transition: color .3s; }
.sg-postnav__link:hover .sg-postnav__title { color: var(--c-grey); }

/* "You May Also Like" (off on live). */
.sg-related { margin-top: 85px; }
.sg-related__title { margin-bottom: 30px; font-size: 35px; font-weight: 500; }
.sg-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }

/* Sidebar (sticky, grey). */
.sg-sidebar { position: sticky; top: 0; align-self: start; color: var(--c-light); }
.admin-bar .sg-sidebar { top: 32px; }
.sg-sidebar__inner { padding: 69.7px 0; background: #292929; }
.sg-widget { padding: 0 40px; }
.sg-widget + .sg-widget { margin-top: 40.8px; }
.sg-widget__title { margin: -7px 0 28.5px; font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--c-white); }
/* Categories, recent posts (image above the text) and tags on one calm rhythm. */
.sg-widget__cats { list-style: none; margin: 0; padding: 0; color: var(--c-white); font-size: 15px; line-height: 1.5; }
.sg-widget__cats li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #383838; }
.sg-widget__cats li:first-child { padding-top: 0; }
.sg-widget__cats a { color: var(--c-white); }
.sg-widget__cats a:hover { color: var(--c-grey); }
.sg-widget__count { color: #94959b; font-size: 13px; }
.sg-recent { list-style: none; margin: 0; padding: 0; }
.sg-recent__item + .sg-recent__item { margin-top: 26px; }
.sg-recent__thumb { display: block; margin: 0 0 12px; overflow: hidden; line-height: 0; }
.sg-recent__thumb img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.sg-recent__thumb:hover img { transform: scale(1.03); }
.sg-recent__meta { margin: 0; font-size: 11px; line-height: 16px; color: #96999f; }
.sg-recent__cat { letter-spacing: .8px; text-transform: uppercase; color: #96999f; }
.sg-recent__cat::after { margin: 0 .7em; }
.sg-recent__date { display: inline-block; white-space: nowrap; }
.sg-recent__cat:hover { color: var(--c-white); }
.sg-recent__title { margin: 5px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--c-white); }
.sg-recent__title a:hover { color: var(--c-grey); }
.sg-widget__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sg-tag {
	display: inline-block; padding: 6px 14px; border: 1px solid #4a4a4a; background: transparent;
	color: var(--c-light); font-size: 12px; line-height: 18px; letter-spacing: .02em;
}
.sg-tag:hover { background: var(--c-white); border-color: var(--c-white); color: #000; }

/* Convex 1100px container below 1440 (archives, single). */
@media (max-width: 1439px) {
	.sg-archive__inner, .sg-post__body { width: 1100px; }
	.sg-post__body { padding-bottom: 100px; }
	.sg-sidebar__inner { padding: 40px 0; }
	.sg-widget { padding: 0 30px; }
	.sg-widget + .sg-widget { margin-top: 39.6px; }
	.sg-widget__title { margin: -5px 0 20.9px; }
	.sg-post__hero { height: 578px; }
	.sg-post__title { font-size: 44px; }
}
@media (max-width: 1279px) {
	.sg-post__hero { height: 480px; }
}
@media (max-width: 1024px) {
	.sg-post__head { margin-inline: 30px; padding: 40px; }
	.sg-post__title { font-size: 40px; }
	.sg-post__meta { margin-top: 21px; }
	.sg-post__body { padding: 32px 0 90px; }
	.sg-post__cats { margin-bottom: 15px; font-size: 16px; }
	.sg-postnav { margin-top: 62px; }
	.sg-post__content { font-size: 16px; }
	.sg-post__content h2 { font-size: 30px; }
	.sg-post__content h3 { font-size: 23px; }
	.sg-post__content h4 { font-size: 19px; }
	.sg-sidebar__inner { padding: 40px 0; }
	.sg-widget { padding: 0 30px; }
	.sg-widget__title { margin: -5px 0 20.9px; }
	.sg-widget + .sg-widget { margin-top: 30px; }
}
@media (max-width: 1023px) {
	.sg-post__hero { height: 400px; }
	.sg-post__body { grid-template-columns: minmax(0, 1fr); }
	.sg-sidebar { position: static; margin-top: 80px; }
	.sg-sidebar__inner { padding: 35px 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 0; }
	.sg-widget + .sg-widget { margin-top: 0; }
	.sg-widget { padding: 0 15px; }
	.sg-widget__title { margin-top: -3px; }
	.sg-post__meta { margin-top: 14px; }
	.sg-post__head { padding: 30px; }
	.sg-post__content { max-width: none; }
}
@media (max-width: 767px) {
	.sg-post__hero { height: 256px; }
	.sg-post__head { margin-inline: 20px; padding: 20px; }
	.sg-post__title { max-width: none; font-size: 32px; line-height: 1.22; }
	.sg-post__meta { margin-top: 9px; font-size: 13px; line-height: 19.5px; }
	.sg-post__avatar { width: 26px; height: 26px; }
	.sg-post__body { padding: 24px 0 50px; }
	.sg-post__content p { line-height: 1.85; }
	.sg-post__content h2 { font-size: 26px; line-height: 1.27; }
	.sg-post__content h3 { font-size: 21px; }
	.sg-post__content h4 { font-size: 18px; }
	.sg-post__content .alignleft, .sg-post__content .alignright { float: none; margin: 0 0 1em; }
	.sg-post__content blockquote { margin: 22.4px 0; padding: 25px; }
	.sg-post__content blockquote p { font-size: 17px; line-height: 2.57em; }
	.sg-post__content blockquote cite { margin: 10px 0 1px; padding-left: 42px; font-size: 17px; line-height: 24px; }
	.sg-post__content blockquote cite::before { top: 11px; width: 28px; }
	.sg-post__content td:first-child { white-space: normal; }
	.sg-postnav__label { gap: 8px; }
	.sg-postnav__title { margin-top: 5px; font-size: 17px; line-height: 1.4; }
	.sg-postnav__link { padding-right: 8px; }
	.sg-postnav__link--next { padding: 0 0 0 8px; }
	.sg-sidebar { margin-top: 50px; }
	.sg-sidebar__inner { display: block; padding: 25px; }
	.sg-widget { padding: 0; }
	.sg-widget + .sg-widget { margin-top: 25px; }
	.sg-widget__title { margin-bottom: 18px; font-size: 18px; }
	.sg-searchform__field { height: 48px; padding: 11.55px 18px 11.55px 45px; font-size: 15px; }
	.sg-searchform__submit { width: 39px; }
	.sg-related__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) { .sg-post:not(.sg-post--hero) .sg-post__head { margin-top: 122px; } }
@media (max-width: 880px) { .sg-post__body { padding-bottom: 80px; } .sg-post__cats { margin-bottom: 10px; } }
@media (max-width: 767px) { .sg-post:not(.sg-post--hero) .sg-post__head { margin-top: 106px; padding: 15px; } .sg-post__body { padding-bottom: 50px; } .sg-post__cats { margin-bottom: 6px; } }

/* ── Contents widget (the owner's improvement; not on live) ─────────────────────────────────────
   A round button at the bottom left (mirroring back-to-top at the bottom right) that opens a small panel of the
   post's headings; a bottom sheet on phones. toc.js shows it once the first section is reached. */
.sg-tocw__btn {
	position: fixed; z-index: 990; left: 34px; bottom: 34px;
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(10, 10, 10, .92); color: var(--c-white); box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden; transform: translateY(14px);
	transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background-color .3s, color .3s;
}
.sg-tocw.is-shown .sg-tocw__btn { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background-color .3s, color .3s; }
.sg-tocw.is-open .sg-tocw__btn { background: var(--c-white); color: #000; }
.sg-tocw__icon { position: relative; width: 20px; height: 20px; }
/* The outline is a ring: a 2px track, and over it a white arc that grows clockwise from 12 o'clock as the post is read. */
.sg-tocw__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.sg-tocw__ring circle { fill: none; stroke-width: 2; }
.sg-tocw__track { stroke: #5a5a5a; transition: stroke .3s; }
.sg-tocw__progress { stroke: var(--c-white); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear, stroke .3s; }
.sg-tocw__btn:hover .sg-tocw__track, .sg-tocw__btn:focus-visible .sg-tocw__track { stroke: #9a9a9a; }
.sg-tocw.is-open .sg-tocw__track { stroke: #d0d0d0; }
.sg-tocw.is-open .sg-tocw__progress { stroke: #000; }
.admin-bar .sg-tocw__panel { max-height: min(60vh, 520px); }

.sg-tocw__scrim { display: none; }
.sg-tocw__panel {
	position: fixed; z-index: 991; left: 34px; bottom: 94px;
	display: flex; flex-direction: column; width: 340px; max-width: calc(100vw - 68px); max-height: min(64vh, 560px);
	background: var(--c-panel); border: 1px solid #2a2a2a; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
	opacity: 0; transform: translateY(10px) scale(.98); transform-origin: 0 100%;
	transition: opacity .25s, transform .25s var(--ease);
}
.sg-tocw.is-open .sg-tocw__panel { opacity: 1; transform: none; }
.sg-tocw__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 10px 24px; }
.sg-tocw__title { margin: 0; font-size: 12px; line-height: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: #94959b; }
.sg-tocw__close { display: grid; place-items: center; width: 36px; height: 36px; color: #94959b; }
.sg-tocw__close:hover, .sg-tocw__close:focus-visible { color: var(--c-white); }
.sg-tocw__nav { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px 24px; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.sg-tocw__list, .sg-tocw__sub { list-style: none; margin: 0; padding: 0; }
.sg-tocw__link {
	display: block; padding: 7px 0 7px 14px; border-left: 1px solid #2f2f2f;
	color: var(--c-light); font-size: 14px; line-height: 1.4; transition: color .2s, border-color .2s;
}
.sg-tocw__link:hover { color: var(--c-white); }
.sg-tocw__link:focus-visible { outline-offset: -1px; color: var(--c-white); }
.sg-tocw__link[aria-current="true"] { border-left-color: var(--c-white); color: var(--c-white); font-weight: 500; }
.sg-tocw__item--h1 > .sg-tocw__link { margin-bottom: 4px; color: var(--c-white); font-size: 15px; font-weight: 500; }
.sg-tocw__sub .sg-tocw__link { padding-left: 28px; color: #96999f; font-size: 13px; }
.sg-tocw__sub .sg-tocw__link:hover, .sg-tocw__sub .sg-tocw__link[aria-current="true"] { color: var(--c-white); }
.sg-post__content :is(h2, h3)[tabindex="-1"]:focus { outline: none; }

@media (max-width: 767px) {
	.sg-tocw__btn { left: 20px; bottom: 20px; width: 46px; height: 46px; }
	.sg-tocw__scrim {
		display: block; position: fixed; z-index: 990; inset: 0; background: rgba(0, 0, 0, .6);
		opacity: 0; transition: opacity .25s;
	}
	.sg-tocw.is-open .sg-tocw__scrim { opacity: 1; }
	.sg-tocw__scrim[hidden] { display: none; }
	.sg-tocw__panel {
		left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 72vh;
		border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
		transform: translateY(100%); transform-origin: 50% 100%;
	}
	.sg-tocw.is-open .sg-tocw__panel { transform: none; }
	.sg-tocw__panel::before { content: ""; align-self: center; width: 36px; height: 4px; margin-top: 10px; border-radius: 2px; background: #3a3a3a; }
	.sg-tocw__head { padding: 8px 10px 8px 20px; }
	.sg-tocw__nav { padding: 0 20px 24px; }
	.sg-tocw__link { padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
	.sg-tocw__sub .sg-tocw__link { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.js .sg-card { opacity: 1; transform: none; }
	.sg-tocw__btn, .sg-tocw__panel, .sg-tocw__scrim, .sg-tocw__ring circle { transition: none; }
}
