/* Individual blog article. */
.single-post-page { background: #fff; font-family: var(--font-body); }
.single-article__hero { position: relative; isolation: isolate; overflow: hidden; padding: 76px 0 68px; border-bottom: 1px solid #dad8d4; background-image: var(--single-hero-image, url(../img/hero-bg.avif)); background-position: center 48%; background-size: cover; background-repeat: no-repeat; }
.single-article__hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(255, 255, 255, .86); }
.single-article__hero-inner { max-width: 1120px; }
.single-article__title { max-width: 980px; font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 72px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.single-article__meta { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 24px; color: var(--body); font-size: 14px; font-weight: 600; }
.single-article__meta-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.single-article__meta-item svg { width: 18px; height: 18px; color: var(--red); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; flex: 0 0 auto; }
.single-article__layout { max-width: 1200px; display: grid; grid-template-columns: 240px minmax(0, 780px); justify-content: center; gap: 72px; padding-top: 72px; padding-bottom: 80px; }
.single-article__toc { min-width: 0; }
.single-article__sidebar-inner { position: sticky; top: 32px; }
.single-article__toc-inner { padding-left: 20px; border-left: 3px solid var(--red); }
.single-article__toc-nav > p { margin-bottom: 16px; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.single-article__toc ol { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.single-article__toc li { color: var(--body); font-size: 14px; line-height: 1.4; }
.single-article__toc li.is-subheading { padding-left: 14px; font-size: 13px; }
.single-article__toc a:hover { color: var(--red); }
.single-article__share { margin-top: 32px; }
.single-article__share-label { margin-bottom: 12px; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.single-article__share-buttons { display: flex; gap: 5px; flex-wrap: nowrap; }
.single-article__share-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #dddcd7; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.single-article__share-button svg { width: 17px; height: 17px; color: currentColor; fill: currentColor; opacity: 1; visibility: visible; }
.single-article__share-button svg rect, .single-article__share-button svg path[stroke] { fill: none; }
.single-article__share-button:nth-child(4) svg, .single-article__share-button:nth-child(5) svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.single-article__share-button:hover, .single-article__share-button:focus-visible, .single-article__share-button.is-copied { border-color: var(--red); background: var(--red); color: #fff; transform: translateY(-2px); }
.single-article__share-button:hover svg, .single-article__share-button:focus-visible svg, .single-article__share-button.is-copied svg { color: #fff; opacity: 1; visibility: visible; }
.single-article__share-button:hover svg path, .single-article__share-button:hover svg circle, .single-article__share-button:focus-visible svg path, .single-article__share-button:focus-visible svg circle, .single-article__share-button.is-copied svg path { fill: #fff; }
.single-article__share-button:nth-child(4):hover svg path, .single-article__share-button:nth-child(5):hover svg path, .single-article__share-button:nth-child(4):focus-visible svg path, .single-article__share-button:nth-child(5):focus-visible svg path, .single-article__share-button:nth-child(5).is-copied svg path { fill: none; stroke: #fff; }
.single-article__share-button:focus-visible { outline: 3px solid rgba(196, 3, 3, .2); outline-offset: 2px; }
.single-article__share-status { min-height: 18px; margin-top: 8px; color: var(--red); font-size: 12px; font-weight: 700; }
.single-article__main { min-width: 0; }
.single-article__content { color: var(--body); font-size: 18px; line-height: 1.75; }
.single-article__content > * { max-width: 100%; }
.single-article__content > * + * { margin-top: 1em; }
.single-article__content h2, .single-article__content h3 { color: var(--ink); font-family: var(--font-display); scroll-margin-top: 32px; }
.single-article__content h2 { margin-top: 10px; font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.single-article__content h3 { margin-top: 1em; font-size: 29px; font-weight: 700; line-height: 1.18; }
.single-article__content h4 { color: var(--ink); font-size: 20px; line-height: 1.3; }
.single-article__content a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.single-article__content strong { color: var(--ink); font-weight: 700; }
.single-article__content ul, .single-article__content ol { padding-left: 1.4em; }
.single-article__content ul { list-style: disc; }
.single-article__content ol { list-style: decimal; }
.single-article__content li + li { margin-top: .5em; }
.single-article__content blockquote { padding: 24px 28px; border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; background: var(--panel); color: var(--ink); font-family: var(--font-display); font-size: 24px; line-height: 1.4; }
.single-article__content img { height: auto; border-radius: 12px; }
.single-article__content figcaption { margin-top: 8px; color: var(--body); font-size: 14px; text-align: center; }
.single-article__content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.single-article__content th, .single-article__content td { padding: 13px 14px; border-bottom: 1px solid #e5e3de; text-align: left; vertical-align: top; }
.single-article__content th { color: var(--ink); background: var(--panel); }
.single-article__footer { margin-top: 64px; padding-top: 0; }
.post-author-box { position: relative; display: grid; overflow: hidden; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: center; padding: 42px; border: 1px solid #dfe2e6; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(31, 31, 31, .07); }
.single-article__footer .post-author-box { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 36px; border-top: 4px solid var(--red); background: linear-gradient(135deg, #fff 0%, #fff 72%, rgba(196, 3, 3, .035) 100%); box-shadow: 0 16px 40px rgba(31, 31, 31, .08); }
.post-author-box__media { width: 200px; display: flex; flex-direction: column; align-items: center; }
.post-author-box__avatar { width: 200px; height: 200px; overflow: hidden; border-radius: 50%; background: #deddd9; }
.post-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.single-article__footer .post-author-box__media, .single-article__footer .post-author-box__avatar { width: 180px; }
.single-article__footer .post-author-box__avatar { height: 180px; border: 5px solid #fff; box-shadow: 0 0 0 1px #dfe2e6, 0 12px 28px rgba(31, 31, 31, .12); }
.post-author-box__linkedin { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; border-radius: 10px; background: var(--red); color: #fff; line-height: 1; box-shadow: 0 9px 22px rgba(196, 3, 3, .18); transition: background-color .18s ease, transform .18s ease; }
.post-author-box__linkedin svg { width: 21px; height: 21px; fill: currentColor; }
.post-author-box__linkedin:hover, .post-author-box__linkedin:focus-visible { background: #980202; transform: translateY(-2px); }
.post-author-box__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.post-author-box__name { max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 30px; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.post-author-box__name a:hover { color: var(--red); }
.post-author-box__role { display: inline-flex; margin-top: 10px; padding: 6px 11px; border-radius: 999px; background: rgba(196, 3, 3, .08); color: var(--red); font-size: 13px; font-weight: 700; }
.post-author-box__bio { margin-top: 28px; color: var(--ink); font-size: 17px; line-height: 1.7; }
.post-author-box__bio p + p { margin-top: 1em; }
.post-author-box__link { min-width: 190px; height: 50px; gap: 12px; margin-top: 28px; padding: 4px 24px; color: #fff; font-size: 14px; text-transform: none; }
.post-author-box__link span { transition: transform .18s ease; }
.post-author-box__link:hover span { transform: translateX(4px); }
.author-profile { padding: 64px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--panel) 100%); }
.author-profile__box { max-width: 1080px; margin: 0 auto; grid-template-columns: 180px minmax(0, 1fr); gap: 44px; padding: 42px 46px; border-top: 4px solid var(--red); background: linear-gradient(135deg, #fff 0%, #fff 72%, rgba(196, 3, 3, .035) 100%); box-shadow: 0 18px 48px rgba(31, 31, 31, .09); }
.author-profile__box .post-author-box__media, .author-profile__box .post-author-box__avatar { width: 180px; }
.author-profile__box .post-author-box__avatar { height: 180px; border: 5px solid #fff; box-shadow: 0 0 0 1px #dfe2e6, 0 12px 28px rgba(31, 31, 31, .12); }
.author-profile__box .post-author-box__name { font-size: 30px; }
.author-profile__box .post-author-box__bio { max-width: 760px; margin-top: 20px; font-size: 17px; line-height: 1.7; }
.author-posts { padding: 72px 0 80px; background: var(--panel); }
.author-posts .navigation.pagination { margin-top: 52px; }
.author-posts .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.author-posts .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #e5e3de; border-radius: 999px; background: #fff; color: var(--body); }
.author-posts .page-numbers.current { border-color: var(--red); background: var(--red); color: #fff; }
.single-related { padding: 72px 0 80px; background: var(--panel); }
.single-related__heading { margin-bottom: 34px; text-align: center; }
.single-related__heading p { margin-bottom: 8px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.single-related__heading h2 { font-family: var(--font-display); font-size: 46px; line-height: 1.1; }
@media (max-width: 1200px) {
	.single-post-page .container { padding-right: 40px; padding-left: 40px; }
	.single-article__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 991px) {
	.single-article__hero { padding: 58px 0 52px; }
	.single-article__layout { display: block; padding-top: 44px; }
	.single-article__toc { margin-bottom: 36px; }
	.single-article__sidebar-inner { position: static; }
	.single-article__toc-inner { padding: 20px 22px; border: 0; border-radius: 12px; background: var(--panel); }
	.single-article__toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
	.single-article__share { margin-top: 22px; padding-left: 0; }
}

@media (max-width: 767px) {
	.single-post-page .container { padding-right: 24px; padding-left: 24px; }
	.single-article__title { font-size: 43px; }
	.single-article__content { font-size: 17px; }
	.single-article__content h2 { font-size: 34px; }
	.single-article__content h3 { font-size: 26px; }
	.single-article__toc ol { grid-template-columns: 1fr; }
	.post-author-box { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 30px; }
	.post-author-box__media, .post-author-box__avatar { width: 170px; }
	.post-author-box__avatar { height: 170px; }
	.single-article__footer .post-author-box { grid-template-columns: 160px minmax(0, 1fr); gap: 26px; padding: 28px; }
	.single-article__footer .post-author-box__media, .single-article__footer .post-author-box__avatar { width: 160px; }
	.single-article__footer .post-author-box__avatar { height: 160px; }
	.post-author-box__bio { margin-top: 20px; font-size: 16px; }
	.author-profile__box { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding: 30px; }
	.author-profile__box .post-author-box__media, .author-profile__box .post-author-box__avatar { width: 160px; }
	.author-profile__box .post-author-box__avatar { height: 160px; }
	.author-profile__box .post-author-box__name { font-size: 30px; }
	.single-related__heading h2 { font-size: 38px; }
}

@media (max-width: 640px) {
	.post-author-box { grid-template-columns: 1fr; justify-items: center; padding: 22px; text-align: center; }
	.single-article__footer .post-author-box { grid-template-columns: 1fr; padding: 22px; }
	.post-author-box__media { width: min(100%, 200px); }
	.single-article__footer .post-author-box__media { width: min(100%, 180px); }
	.single-article__footer .post-author-box__avatar { width: 180px; height: 180px; }
	.post-author-box__avatar { width: 200px; height: 200px; }
	.post-author-box__body { align-items: center; }
	.post-author-box__bio { text-align: left; }
	.author-profile__box { grid-template-columns: 1fr; padding: 24px; }
	.author-profile__box .post-author-box__media, .author-profile__box .post-author-box__avatar { width: 180px; }
	.author-profile__box .post-author-box__avatar { height: 180px; }
	.author-profile__box .post-author-box__body { align-items: center; text-align: center; }
}

@media (max-width: 480px) {
	.single-article__hero { padding: 44px 0 40px; }
	.single-article__title { font-size: 38px; }
	.single-article__meta { align-items: flex-start; gap: 10px 18px; }
	.single-article__content blockquote { padding: 20px; font-size: 21px; }
	.post-author-box { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.single-article__toc { scroll-behavior: auto; }
}
