/* Ratgeber hub, archives, article, author (loaded only on blog views). */
.snh-ratgeber, .snh-article { padding-block: 32px 24px; }
.snh-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--snh-muted-fg); }
.snh-breadcrumb a { color: var(--snh-muted-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--snh-input); }
.snh-breadcrumb a:hover { color: var(--snh-fg); }

.snh-ratgeber__head { max-width: 760px; margin-bottom: 32px; }
.snh-ratgeber .snh-ratgeber__title, .snh-article .snh-article__title { margin-top: 12px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--snh-fg); }
@media (min-width: 768px) { .snh-ratgeber .snh-ratgeber__title, .snh-article .snh-article__title { font-size: 40px; } }
.snh-ratgeber__intro { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--snh-muted-fg); }
.snh-ratgeber__intro p { margin: 0 0 8px; }
.snh-ratgeber__cats ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.snh-ratgeber__cats .snh-pill { padding: 6px 14px; }
.snh-ratgeber__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .snh-ratgeber__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .snh-ratgeber__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.snh-ratgeber__empty { padding: 32px; border: 1px dashed var(--snh-input); border-radius: var(--snh-radius-xl); color: var(--snh-muted-fg); }

.snh-acard { display: flex; flex-direction: column; overflow: hidden; height: 100%; border: 1px solid var(--snh-border); border-radius: var(--snh-radius-2xl); background: #fff; transition: border-color .2s, box-shadow .2s; }
.snh-acard:hover { border-color: var(--snh-moss-mid); box-shadow: var(--snh-shadow); }
.snh-acard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--snh-secondary); }
.snh-acard__media img, .snh-acard__media .snh-media-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.snh-acard__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.snh-acard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--snh-muted-fg); }
.snh-acard__cat { border-radius: 99px; background: var(--snh-moss-soft); padding: 2px 10px; font-weight: 500; color: var(--snh-moss-deep) !important; }
.snh-element .snh-acard__title { margin-top: 10px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.snh-acard__title a { color: var(--snh-fg); }
.snh-acard__title a:hover { color: var(--snh-primary); text-decoration: underline; text-underline-offset: 3px; }
.snh-acard__excerpt { margin-top: 6px !important; font-size: 14px; line-height: 1.6; color: var(--snh-muted-fg); }

.snh-pagination { margin-top: 32px; }
.snh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.snh-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--snh-border); border-radius: 99px; font-size: 14px; color: var(--snh-fg); }
.snh-pagination .page-numbers.current { background: var(--snh-fg); border-color: var(--snh-fg); color: #fff; }

/* Article */
.snh-article__inner { max-width: 1120px; margin-inline: auto; }
.snh-article__head { max-width: 760px; }
.snh-article__cat { display: inline-block; margin-top: 16px; border-radius: 99px; background: var(--snh-moss-soft); padding: 4px 12px; font-size: 12px; font-weight: 500; color: var(--snh-moss-deep) !important; }
.snh-article__deck { margin-top: 14px !important; font-size: 18px; line-height: 1.6; color: var(--snh-muted-fg); }
.snh-article__byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; }
.snh-article__byline p { display: grid; gap: 2px; }
.snh-article__byline a { color: var(--snh-fg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.snh-article__dates { font-size: 13px; color: var(--snh-muted-fg); }
.snhas-avatar { border-radius: 99px; object-fit: cover; flex-shrink: 0; }
.snh-article__hero { margin: 28px 0 0; overflow: hidden; border-radius: var(--snh-radius-3xl); background: var(--snh-secondary); }
.snh-article__hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.snh-article__hero figcaption { padding: 8px 12px; font-size: 12px; color: var(--snh-muted-fg); }

.snh-article__layout { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 1024px) { .snh-article__layout.has-toc { grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; } }
.snh-article__main { min-width: 0; max-width: 720px; }
.snh-article__aside { display: none; }
@media (min-width: 1024px) {
	.snh-article__aside { display: block; }
	.snh-article__aside .snh-toc { position: sticky; top: 100px; }
	.snh-article__layout.has-toc .snh-toc--inline { display: none; }
}

.snh-toc { font-size: 14px; }
.snh-toc--inline { margin-bottom: 28px; border: 1px solid var(--snh-border); border-radius: var(--snh-radius-xl); background: var(--snh-secondary); }
.snh-toc__details summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.snh-toc__details .snh-toc__list { padding: 0 18px 16px 18px; }
.snh-toc__title { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--snh-muted-fg); margin-bottom: 10px !important; }
.snh-element .snh-toc__list, .snh-element .snh-toc__list ol { list-style: none; margin: 0; padding-left: 0; }
.snh-toc__list ol { padding-left: 14px !important; margin-top: 4px !important; }
.snh-toc__list li { margin: 0 0 6px; }
.snh-toc__list a { display: block; border-left: 2px solid transparent; padding-left: 10px; line-height: 1.4; color: var(--snh-muted-fg); }
.snh-toc__list a:hover { color: var(--snh-fg); }
.snh-toc__list a[aria-current="location"] { border-left-color: var(--snh-primary); color: var(--snh-fg); font-weight: 500; }

.snh-article__content { font-size: 17px; line-height: 1.75; color: var(--snh-fg); }
.snh-article__content > * + * { margin-top: 1.1em; }
.snh-article__content > h2 + *, .snh-article__content > h3 + * { margin-top: 0; }
.snh-article__content h2 { margin-bottom: .45em !important; margin-top: 2em !important; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; scroll-margin-top: 110px; }
.snh-article__content h3 { margin-bottom: .35em !important; margin-top: 1.6em !important; font-size: 19px; line-height: 1.35; font-weight: 600; scroll-margin-top: 110px; }
.snh-article__content p, .snh-article__content li { color: #2f2b28; }
.snh-element .snh-article__content ul, .snh-element .snh-article__content ol { list-style: revert; padding-left: 1.4em; }
.snh-article__content li + li { margin-top: .35em; }
.snh-article__content a { color: var(--snh-primary); text-decoration: underline; text-underline-offset: 3px; }
.snh-article__content a:hover { color: var(--snh-moss-deep); }
.snh-article__content blockquote { margin-left: 0; border-left: 3px solid var(--snh-moss-mid); padding: 4px 0 4px 18px; color: var(--snh-muted-fg); font-style: normal; }
.snh-article__content img { height: auto; border-radius: var(--snh-radius); }

.snh-table { margin-block: 1.4em; font-size: 15px; }
.snh-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--snh-border); border-radius: var(--snh-radius); overflow: hidden; margin: 0; }
.snh-table caption { caption-side: top; text-align: left; padding: 0 0 8px; font-size: 13px; color: var(--snh-muted-fg); }
.snh-table th, .snh-table td { padding: 10px 14px; border-bottom: 1px solid var(--snh-border); text-align: left; vertical-align: top; }
.snh-table thead th { background: var(--snh-secondary); font-weight: 600; font-size: 14px; }
.snh-table--scroll { overflow-x: auto; }
.snh-table--scroll:focus-visible { outline: 2px solid var(--snh-primary); }
@media (max-width: 639px) {
	.snh-table--cards table, .snh-table--cards tbody, .snh-table--cards tr, .snh-table--cards td, .snh-table--cards th { display: block; width: 100%; }
	.snh-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.snh-table--cards table { border: 0; }
	.snh-table--cards tr { margin-bottom: 12px; border: 1px solid var(--snh-border); border-radius: var(--snh-radius); }
	.snh-table--cards caption { display: block; width: 100%; }
	.snh-table--cards td, .snh-table--cards tbody th { position: relative; padding-left: calc(40% + 14px); min-height: 42px; }
	.snh-table--cards td::before, .snh-table--cards tbody th::before { content: attr(data-label); position: absolute; left: 14px; top: 10px; width: calc(40% - 12px); font-weight: 600; color: var(--snh-muted-fg); }
	.snh-table--cards tr > :last-child { border-bottom: 0; }
}

.snh-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px !important; }
.snh-article__tags a { display: inline-block; border: 1px solid var(--snh-border); border-radius: 99px; padding: 4px 12px; font-size: 13px; color: var(--snh-muted-fg); }
.snh-article__tags a:hover { color: var(--snh-fg); border-color: var(--snh-input); }

.snh-author-card { display: flex; gap: 16px; margin-top: 32px; border: 1px solid var(--snh-border); border-radius: var(--snh-radius-2xl); padding: 20px; background: var(--snh-moss-soft); }
.snh-author-card__label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--snh-muted-fg); }
.snh-author-card__name { margin-top: 4px !important; font-size: 17px; font-weight: 600; }
.snh-author-card__name a { color: var(--snh-fg); text-decoration: underline; text-underline-offset: 3px; }
.snh-author-card__role { margin-top: 2px !important; font-size: 14px; color: var(--snh-muted-fg); }
.snh-author-card__bio, .snh-author-card__cred { margin-top: 10px !important; font-size: 14px; line-height: 1.6; }
.snh-article__related { padding-top: 16px; }

.snh-author__profile { display: flex; gap: 20px; align-items: flex-start; margin-top: 12px; }
.snh-author__topics, .snh-author__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.snh-author__topics li { border-radius: 99px; background: var(--snh-moss-soft); padding: 4px 12px; font-size: 13px; color: var(--snh-moss-deep); }
.snh-author__links a { font-size: 14px; color: var(--snh-primary); text-decoration: underline; }
.snh-author__posts-title { margin-bottom: 20px; }

/* Site search */
.snh-search__form { position: relative; max-width: 576px; margin-top: 20px; }
.snh-search__form .snh-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--snh-muted-fg); }
.snh-search__form input { width: 100%; height: 48px !important; margin: 0 !important; border: 1px solid var(--snh-input) !important; border-radius: 99px !important; background: #fff !important; box-shadow: none !important; padding: 0 16px 0 44px !important; font-size: 14px; }
.snh-search__list { display: grid; gap: 12px; max-width: 768px; }
.snh-search__list li { border: 1px solid var(--snh-border); border-radius: var(--snh-radius-2xl); padding: 20px; }
.snh-search__type { font-size: 12px; font-weight: 500; color: var(--snh-primary); }
.snh-element .snh-search__list h2 { margin-top: 4px; font-size: 18px; font-weight: 600; }
.snh-search__list h2 a { color: var(--snh-fg); }
.snh-search__list h2 a:hover { color: var(--snh-primary); text-decoration: underline; text-underline-offset: 3px; }
.snh-search__list p:last-child { margin-top: 6px !important; font-size: 14px; color: var(--snh-muted-fg); }
.snh-ratgeber__empty a { color: var(--snh-primary); text-decoration: underline; }
