/* ==========================================================================
   OSH theme. Values measured from the original onlinesecurityhub.org design.
   Colours are theme.json presets (CSS variables); dark mode swaps the variables.
   ========================================================================== */

:root {
	--osh-page-bg: #f2f5fa;          /* light blue-grey behind article cards */
	--osh-card-bg: #ffffff;
	--osh-sidebar-bg: #0c252c;       /* dark teal sidebar boxes */
	--osh-line: rgba(136, 136, 136, .15);
	--osh-soft: rgba(136, 136, 136, .07);
	--osh-strong-line: #000000;
	--osh-mbar-bg: #ffffff;          /* mobile header bar */
	--osh-mbar-fg: #141414;
}
:root[data-theme="dark"] {
	--site--preset--color--base: #0f1113;
	--site--preset--color--surface: #1a1d21;
	--site--preset--color--border: #2e3238;
	--site--preset--color--contrast: #e6e8eb;
	--site--preset--color--muted: #a3a9b0;
	--site--preset--color--heading: #ffffff;
	--site--preset--color--brand: #8fd3e0;
	--site--preset--color--link: #8ab4ff;
	--site--preset--color--button: #2b8fd1;
	--site--preset--color--chrome: #1f2124;
	--osh-page-bg: #0b0d10;
	--osh-card-bg: #15181c;
	--osh-sidebar-bg: #0e2a31;
	--osh-line: rgba(255, 255, 255, .12);
	--osh-soft: rgba(255, 255, 255, .06);
	--osh-strong-line: #e6e8eb;
	--osh-mbar-bg: #1f2124;
	--osh-mbar-fg: #ffffff;
	color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Basics ---------- */
/* 19px root, as on the original site: the comparison spreadsheets size their text in rem. */
html { font-size: 19px; scroll-padding-top: 70px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
.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;
}
.osh-skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--site--preset--color--highlight); color: #000; font-weight: 600; }
.osh-skip-link:focus { top: 8px; }
/* Focus ring only for keyboard users (Tab key), never on mouse clicks or taps. */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--site--preset--color--highlight); outline-offset: 2px; }
.osh-icon { display: block; flex: none; }
html.osh-menu-open { overflow: hidden; }
@media (max-width: 767px) { body { font-size: 18px; } }

/* Template sections sit flush (no automatic gaps between header, main and footer). */
.site-blocks > *, .osh-single-wrap > *, .osh-header > *, .osh-footer > * { margin-block: 0; }
.site-blocks { padding-top: 0; }

/* Base tables (same defaults as the original theme; :where() keeps them easy to override,
   so the comparison spreadsheets' own styles always win). */
:where(table) { width: 100%; max-width: 100%; border-spacing: 0; border-collapse: collapse; text-align: left; }
:where(th, td) { padding: .5em; border: 1px solid var(--osh-line); }
:where(th) { font-weight: 700; }
:where(thead) { background-color: #010101; color: #ffffff; }
:where(tbody tr:nth-child(odd)) { background-color: var(--osh-soft); }
/* Phones: plain tables in articles scroll sideways instead of being cut off.
   Zero specificity, so tables with their own phone layout (spreadsheets, plan cards) keep it. */
@media (max-width: 767px) {
	:where(.osh-content table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Single article layout ---------- */
.osh-single { background: var(--osh-page-bg); padding: 40px 0; }
.osh-single-wrap { display: flex; align-items: flex-start; gap: 30px; max-width: 1200px; margin: 0 auto; }
.osh-article { flex: 1 1 auto; min-width: 0; max-width: 819px; background: var(--osh-card-bg); padding: 10px; box-sizing: border-box; }
.osh-article > .osh-title { margin: 10px 10px 0; font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-content { padding: 0 10px; margin-top: 55px; }
.osh-content > p { margin: 0 0 1.5em; }
.osh-content h2 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.osh-content a { color: var(--site--preset--color--link); }
@media (max-width: 1024px) {
	.osh-single-wrap { display: block; }
	.osh-article { max-width: none; }
	.osh-sidebar { display: none; }
}
@media (max-width: 767px) {
	.osh-single { padding: 40px 0 0; }
	.osh-article { padding: 20px 20px 10px; }
	.osh-article > .osh-title { margin: 0; font-size: 27px; }
	.osh-content { padding: 0; margin-top: 50px; }
}

/* Info line */
.osh-post-meta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: 20px; padding: 10px; border-top: 2px solid var(--osh-strong-line); border-bottom: 2px solid var(--osh-strong-line);
	font-size: 12.65px; line-height: 1.5; text-transform: uppercase; color: var(--site--preset--color--heading);
}
.osh-meta-items { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.osh-meta-items > * { display: inline-flex; align-items: center; gap: 6px; }
.osh-meta-items > * + *::before { content: ""; display: inline-block; width: 20px; height: 1px; margin: 0 10px; background: rgba(136, 136, 136, .6); }
.osh-meta-author img { width: 23px; height: 23px; border-radius: 50%; }
.osh-meta-author a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.osh-meta-updated { letter-spacing: -.02em; }
.osh-meta-comments { color: inherit; text-decoration: none; }
.osh-font-resizer {
	display: inline-flex; align-items: center; gap: 3px; padding: 0 0 0 6px; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 19px; font-weight: 700; text-transform: none; color: var(--site--preset--color--heading);
}
html[data-osh-font="1"] .osh-content { font-size: 1.1em; }
html[data-osh-font="2"] .osh-content { font-size: 1.2em; }
@media (max-width: 767px) {
	.osh-post-meta { margin-top: 32px; padding: 10px 0; font-size: 12px; }
	.osh-meta-author { flex-basis: 100%; }
	.osh-meta-author::after { content: ""; display: inline-block; width: 20px; height: 1px; margin-left: 4px; background: rgba(136, 136, 136, .6); }
	.osh-meta-updated { letter-spacing: -.05em; }
	.osh-meta-items > * + *::before { width: 14px; margin: 0 7px; }
	.osh-meta-items > .osh-meta-updated::before { display: none; }
	.osh-font-resizer { display: none; }
}

/* Table of contents */
.osh-toc { margin: 0 0 1.5em; padding: 20px 20px 13px; border: 1px solid var(--osh-line); }
.osh-toc-title { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--site--preset--color--heading); margin-bottom: 10px; }
.osh-toc-list { list-style: none; margin: 0; padding: 0; }
.osh-toc-list li + li { border-top: 1px solid var(--osh-line); }
.osh-toc-list a { display: block; padding: 7px 0; font-size: 15px; line-height: 1.5; color: var(--site--preset--color--contrast) !important; text-decoration: none; }
.osh-toc-list a:hover { text-decoration: underline; }
.osh-toc-num {
	display: inline-block; min-width: 16px; margin-right: 5px; padding: 0 3px; box-sizing: border-box;
	background: var(--site--preset--color--heading); color: var(--osh-card-bg); font-size: 12px; line-height: 17px; text-align: center; vertical-align: 1px;
}
@media (max-width: 767px) { .osh-toc-title { font-size: 22px; } }

/* Sidebar (dark teal boxes) */
.osh-sidebar { flex: 0 0 351px; width: 351px; }
.osh-sidebar-inner > * { margin: 0 0 15px; }
.osh-sb-box { background: var(--osh-sidebar-bg); color: #ffffff; padding: 20px; }
.osh-sb-box a { color: #ffffff; }
.osh-sb-bio { padding-top: 30px; padding-bottom: 30px; }
.osh-sb-bio figure { margin: 0 0 20px; text-align: center; }
.osh-sb-bio img { width: 249px; height: 249px; border-radius: 50%; object-fit: cover; }
.osh-sb-bio p { font-size: 15px; line-height: 1.5; margin: 0; }
.osh-sb-box .site-block-search { margin: 0; }
.osh-sb-box .site-block-search__inside-wrapper { border: 1px solid #ffffff !important; padding: 0 !important; background: transparent !important; }
.osh-sb-box .site-block-search__input { height: 41px; border: 0 !important; background: transparent !important; color: #ffffff !important; font-size: 15px; padding: 0 12px; }
.osh-sb-box .site-block-search__button svg { fill: #ffffff; }
.osh-sb-box .site-block-search__input::placeholder { color: rgba(255, 255, 255, .85); }
.osh-sb-box .site-block-search__button { margin: 0; background: transparent; color: #ffffff; border: 0; padding: 0 12px; }
.osh-sb-box h2, .osh-sb-box h3 { color: #ffffff; font-size: 23px; font-weight: 600; line-height: 1; margin: 0 0 20px; }

/* Share bar */
.osh-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 10px 0; padding-top: 16px; border-top: 2px dotted rgba(136, 136, 136, .45); }
.osh-share-label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 22px; color: var(--site--preset--color--heading); }
.osh-share-label svg { width: 22px; height: 22px; }
.osh-share-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.osh-share-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 40px; padding: 0 10px; box-sizing: border-box;
	background: var(--osh-soft); color: var(--site--preset--color--heading) !important; text-decoration: none; border: 0; cursor: pointer; font: inherit;
}
.osh-share-btn:hover { background: var(--osh-line); }
.osh-share-facebook span { font-size: 19px; font-weight: 600; }
.osh-copied { position: absolute; margin-top: -60px; padding: 2px 8px; background: #000; color: #fff; font-size: 12px; border-radius: 3px; }
@media (max-width: 767px) {
	.osh-share { margin: 30px 0 0; }
	.osh-share-label { font-size: 18px; }
	.osh-share-btn { min-width: 40px; height: 34px; }
}

/* Related */
.osh-related { margin: 30px 10px 0; }
.osh-related-title { margin: 0 0 15px; font-size: 20px; font-weight: 600; color: var(--site--preset--color--heading); }
.osh-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.osh-related-item a { display: block; color: var(--site--preset--color--heading); text-decoration: none; }
.osh-related-item img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.osh-related-item h3 { margin: 14px 0 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.osh-related-item a:hover h3 { text-decoration: underline; }
@media (max-width: 767px) {
	.osh-related { margin: 30px 0 0; }
	.osh-related-grid { grid-template-columns: 1fr; gap: 30px; }
	.osh-related-item img { aspect-ratio: 16 / 9; }
}

/* Comments */

/* ---------- Footer ---------- */
.osh-footer { background: var(--site--preset--color--chrome); color: #ffffff; }
.osh-footer a { color: #ffffff; }
.osh-footer-ctas { display: grid; grid-template-columns: 1fr 1fr; }
.osh-footer-ctas > p { margin: 0; border-bottom: 1px solid #ffffff; }
.osh-footer-ctas > p + p { border-left: 1px solid #ffffff; }
.osh-footer-ctas a { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 10px; font-size: 32px; font-weight: 700; line-height: 1.1; text-transform: uppercase; text-decoration: none; }
.osh-footer-ctas a:hover { background: rgba(255, 255, 255, .06); }
.osh-footer-main { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 25px 20px 30px; }
.osh-footer-main .osh-logo-wrap { margin: 0; }
.osh-footer-main .osh-logo img { width: 242px; height: auto; display: block; }
.osh-footer .site-block-social-links { gap: 18px; margin: 0; }
.osh-footer .site-block-social-links .site-social-link svg { width: 20px; height: 20px; }
.osh-footer .osh-copyright { margin: 4px 0 0; font-size: 18px; text-align: center; }
.osh-footer .osh-copyright a { text-decoration: none; }
.osh-footer .osh-copyright a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .osh-footer-ctas a { font-size: 22px; } }
@media (max-width: 767px) {
	.osh-footer-ctas a { min-height: 40px; font-size: 15px; font-weight: 600; }
	.osh-footer-main .osh-logo img { width: 250px; }
	.osh-footer .osh-copyright { font-size: 15px; }
}

/* ---------- Privacy bar + back to top ---------- */
.osh-privacy {
	position: fixed; left: 50%; bottom: 10px; z-index: 150; transform: translateX(-50%);
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: calc(100% - 30px); max-width: 720px; box-sizing: border-box; padding: 12px;
	background: #000000; color: #ffffff; font-size: 15.2px; line-height: 1.5; box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}
.osh-privacy p { margin: 0; }
.osh-privacy a { color: #ffffff; font-weight: 700; text-decoration: underline; }
.osh-privacy button { flex: none; padding: 0 15px; background: #000; color: #fff; border: 0; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
html.osh-privacy-ok .osh-privacy { display: none; }
.osh-back-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 140; display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; background: #000000; color: #ffffff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.osh-back-top.is-visible { opacity: 1; visibility: visible; }
@media (max-width: 767px) { .osh-back-top { display: none; } }

/* ---------- Listings (blog, categories, search) ---------- */
.osh-grid .site-block-post-template.is-layout-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .osh-grid .site-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .osh-grid .site-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
.osh-card { display: flex; flex-direction: column; gap: .6rem; height: 100%; }
.osh-card .site-block-post-featured-image { margin: 0; }
.osh-card .site-block-post-featured-image img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.osh-card .site-block-post-title { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0; }
.osh-card .site-block-post-title a { color: var(--site--preset--color--heading); text-decoration: none; }
.osh-card .site-block-post-title a:hover { text-decoration: underline; }
.osh-card .site-block-post-excerpt { font-size: 15px; color: var(--site--preset--color--muted); margin: 0; }
.osh-card .site-block-post-excerpt__excerpt { margin: 0; }
.osh-card .taxonomy-category a { font-size: 12px; font-weight: 500; text-transform: uppercase; text-decoration: none; color: var(--site--preset--color--heading); }
.osh-meta { font-size: 13px; color: var(--site--preset--color--muted); }
.site-block-query-pagination { gap: .5rem; font-weight: 600; }
.site-block-query-pagination-numbers .page-numbers { display: inline-block; min-width: 40px; padding: .4rem .6rem; text-align: center; border: 1px solid var(--osh-line); text-decoration: none; }
.site-block-query-pagination-numbers .page-numbers.current { background: var(--site--preset--color--heading); color: var(--site--preset--color--base); border-color: transparent; }

/* ==========================================================================
   Homepage & topic pages (block versions of the old Elementor layouts)
   ========================================================================== */
.osh-wrap { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
body.osh-blockpage #osh-main { padding: 0 0 40px; }
body.osh-blockpage #osh-main > .site-block-post-content > * { margin-block: 0; }

/* Hero */
.osh-hero { background: #eeeeee; padding: 90px 20px; }
[data-theme="dark"] .osh-hero { background: var(--site--preset--color--surface); }
.osh-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; }
.osh-hero-img { margin: 0; text-align: center; }
.osh-hero-img img { width: 410px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.osh-hero h1 { margin: 0 0 22px; font-size: 50px; line-height: 1; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-hero p { margin: 0 0 22px; font-size: 19px; line-height: 1.5; }
.osh-hero .site-block-button__link { background: #0a262c; color: #fff; padding: 12px 15px; font-size: 15px; font-weight: 600; border-radius: 0; }
[data-theme="dark"] .osh-hero .site-block-button__link { background: var(--site--preset--color--button); }
@media (max-width: 900px) {
	.osh-hero { padding: 20px 20px 40px; }
	.osh-hero-inner { grid-template-columns: 1fr; gap: 10px; }
	.osh-hero-img img { width: 250px; }
	.osh-hero h1 { font-size: 36px; }
	.osh-hero .site-block-buttons, .osh-hero .site-block-button, .osh-hero .site-block-button__link { width: 100%; text-align: center; }
}

/* Section titles with a line above and below */
h2.is-style-osh-lined {
	max-width: 1200px; margin: 40px auto 25px !important; padding: 8px 0; box-sizing: border-box;
	border-top: 1px solid var(--osh-strong-line); border-bottom: 1px solid var(--osh-strong-line);
	text-align: center; font-size: 26px; font-weight: 700; line-height: 1.2;
}
@media (max-width: 1240px) { h2.is-style-osh-lined { margin-left: 20px !important; margin-right: 20px !important; } }

/* Card grids */
.osh-cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto !important; padding: 0 20px; box-sizing: content-box; }
@media (max-width: 1240px) { .osh-cardgrid { box-sizing: border-box; } }
.osh-cardgrid > * { margin: 0 !important; }
@media (max-width: 1024px) { .osh-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) { .osh-cardgrid { grid-template-columns: 1fr; } }
/* Topic cards: three on the first row, two wider ones on the second */
.osh-topicgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.osh-topicgrid > * { grid-column: span 2; }
.osh-topicgrid > :nth-child(4), .osh-topicgrid > :nth-child(5) { grid-column: span 3; }
@media (max-width: 1024px) { .osh-topicgrid > *, .osh-topicgrid > :nth-child(4), .osh-topicgrid > :nth-child(5) { grid-column: span 3; } }
@media (max-width: 640px) { .osh-topicgrid { grid-template-columns: 1fr; } .osh-topicgrid > *, .osh-topicgrid > :nth-child(4), .osh-topicgrid > :nth-child(5) { grid-column: auto; } }

/* Product card */
.osh-pc {
	display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 25px;
	background: var(--site--preset--color--base); border: 2px solid var(--pc); box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.osh-pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.osh-pc-logo { width: 48px; height: 48px; object-fit: contain; display: block; }
.osh-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
	font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.osh-pc-top .osh-badge { margin-left: auto; }
.osh-v-good .osh-badge { background: #e6f4ea; color: #1a7f37; box-shadow: inset 0 0 0 1px rgba(26, 127, 55, .25); }
.osh-v-top .osh-badge { background: #1a7f37; color: #ffffff; }
.osh-v-avoid .osh-badge { background: #fdecea; color: #b42318; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, .25); }
[data-theme="dark"] .osh-v-good .osh-badge { background: rgba(46, 160, 67, .18); color: #7ee2a0; }
[data-theme="dark"] .osh-v-avoid .osh-badge { background: rgba(248, 81, 73, .16); color: #ffa198; }
.osh-pc-name { margin: 18px 0 8px; font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--site--preset--color--heading); }
.osh-pc-text { margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.osh-pc-btns { display: flex; gap: 10px; margin-top: auto; }
.osh-pc-btn {
	flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px;
	background: var(--pc); color: #ffffff !important; border: 2px solid var(--pc); text-decoration: none;
	font-size: 15px; font-weight: 600;
}
.osh-pc-btn:hover { filter: brightness(.9); }
.osh-pc-btn-alt { background: transparent; color: var(--pc) !important; }
[data-theme="dark"] .osh-pc-btn-alt { color: #ffffff !important; }
.osh-pc-btn-alt:hover { background: var(--pc); color: #ffffff !important; filter: none; }

/* Topic card */
.osh-tc {
	display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 25px;
	background: var(--site--preset--color--base); border: 2px solid #d4a017; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.osh-tc-name { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 22px; font-weight: 600; color: var(--site--preset--color--heading); }
.osh-tc-name .osh-ci { color: #3a8027; flex: none; }
.osh-tc-text { margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.osh-tc-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 40px; background: #175ddc; color: #ffffff !important; text-decoration: none; font-size: 15px; font-weight: 600; }
.osh-tc-btn:hover { background: #0a262c; }

/* Numbered article cards */
.osh-postcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: content-box; }
@media (max-width: 1240px) { .osh-postcards { box-sizing: border-box; } }
.osh-postcard a { position: relative; display: block; height: 100%; color: var(--site--preset--color--heading); text-decoration: none; overflow: hidden; }
.osh-postcard img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.osh-postcard h3 { position: relative; z-index: 1; margin: 14px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; padding-right: 30px; }
.osh-postcard a:hover h3 { text-decoration: underline; }
.osh-postcard-more { position: relative; z-index: 1; font-size: 13px; font-weight: 600; }
.osh-postcard-num { position: absolute; right: 0; bottom: -14px; font-size: 90px; font-weight: 800; line-height: 1; color: rgba(23, 93, 220, .12); }
@media (max-width: 1024px) { .osh-postcards { grid-template-columns: 1fr; } }

/* Topic pages (Antivirus / Password Managers / VPN) */
.osh-topic-head { padding: 40px 20px 10px; }
.osh-topic-head h1 { margin: 0 0 18px; font-size: 40px; line-height: 1.1; }
.osh-topic-head p { max-width: 900px; margin: 0 0 18px; }
.osh-productgrid { margin-top: 20px !important; }
.osh-grid.osh-wrap { padding: 0 20px; }
@media (max-width: 767px) { .osh-topic-head { padding-top: 30px; } .osh-topic-head h1 { font-size: 27px; } }

/* Homepage topic panels: verdict summary of each topic page */
.osh-tpgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto !important; padding: 0 20px; box-sizing: content-box; }
@media (max-width: 1240px) { .osh-tpgrid { box-sizing: border-box; } }
@media (max-width: 1024px) { .osh-tpgrid { grid-template-columns: 1fr; max-width: 640px; } }
.osh-tpgrid > * { margin: 0 !important; }
.osh-tp {
	display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 26px;
	background: var(--site--preset--color--base); border: 2px solid #d4a017; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.osh-tp-head h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 24px; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-tp-head h3 .osh-ci { color: #3a8027; flex: none; }
.osh-tp-head p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.osh-tp-group { padding: 14px 0; border-top: 1px solid var(--osh-line); }
.osh-tp-label { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.osh-tp-top .osh-tp-label { color: #1a7f37; }
.osh-tp-good .osh-tp-label { color: #1a7f37; }
.osh-tp-avoid .osh-tp-label { color: #b42318; }
[data-theme="dark"] .osh-tp-top .osh-tp-label, [data-theme="dark"] .osh-tp-good .osh-tp-label { color: #7ee2a0; }
[data-theme="dark"] .osh-tp-avoid .osh-tp-label { color: #ffa198; }
.osh-tp-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.osh-tp-group li a, .osh-tp-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 999px;
	background: var(--osh-soft); color: var(--site--preset--color--heading); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2;
}
.osh-tp-top li a { background: #e6f4ea; box-shadow: inset 0 0 0 1px rgba(26, 127, 55, .25); }
[data-theme="dark"] .osh-tp-top li a { background: rgba(46, 160, 67, .18); }
.osh-tp-group li a:hover { text-decoration: underline; }
.osh-tp-avoid .osh-tp-chip { font-weight: 500; color: var(--site--preset--color--muted); }
.osh-tp-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.osh-tp-avoid .osh-tp-logo { filter: grayscale(1); opacity: .7; }
.osh-tp-btns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
.osh-tp-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; background: #175ddc; color: #ffffff !important; text-decoration: none; font-size: 15px; font-weight: 600; }
.osh-tp-btn:hover { background: #0a262c; }
.osh-tp-btn-alt { background: transparent; color: #175ddc !important; box-shadow: inset 0 0 0 2px #175ddc; }
[data-theme="dark"] .osh-tp-btn-alt { color: #8ab4ff !important; box-shadow: inset 0 0 0 2px #8ab4ff; }
.osh-tp-btn-alt:hover { background: #175ddc; color: #ffffff !important; }
/* Guides & News: two cards side by side */
.osh-twogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .osh-twogrid { grid-template-columns: 1fr; } }
.osh-home-latest { padding: 0 20px; }
.osh-ph a { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 3; background: var(--osh-sidebar-bg); }
.osh-ph-logo { width: 60%; max-width: 220px; height: auto; opacity: .9; }
.osh-card .osh-ph img.osh-ph-logo { width: 60%; max-width: 220px; aspect-ratio: auto; object-fit: contain; }

/* ==========================================================================
   Article typography (normal article text; Custom HTML spreadsheets and
   tables keep their own styles). Articles are native blocks since 2026-11-04.
   ========================================================================== */
.osh-content { line-height: 1.65; }
.osh-content > p { margin: 0 0 1.2em; line-height: 1.65; }

/* Headings: one consistent scale */
.osh-content > h2 { margin: 2em 0 .4em; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--site--preset--color--heading); }
.osh-content > h3 { margin: 1.4em 0 .5em; font-size: 22px; line-height: 1.3; font-weight: 650; }
.osh-content > h4 { margin: 1.2em 0 .4em; font-size: 19px; line-height: 1.4; font-weight: 700; }

/* Lists */
.osh-content > :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.4em; }
.osh-content > ul { list-style: disc; }
.osh-content > ul ul { list-style: circle; }
.osh-content > :is(ul, ol) li { margin: 0 0 .45em; padding-left: .2em; line-height: 1.6; }
.osh-content > :is(ul, ol) li::marker { color: #175ddc; }
.osh-content > ol > li::marker { font-weight: 700; color: var(--site--preset--color--heading); }
.osh-content > :is(ul, ol) li :is(ul, ol) { margin: .45em 0 .2em; }
[data-theme="dark"] .osh-content > ul li::marker { color: #8ab4ff; }

/* Links: blue and underlined so they read as links */
.osh-article .osh-content a:not([class]) { color: var(--site--preset--color--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.osh-article .osh-content a:not([class]):hover { text-decoration-thickness: 2px; }
.osh-toc-list a { text-decoration: none; }

/* Quotes, images, galleries, code, rules */
.osh-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid #d4a017; background: var(--osh-soft); font-style: normal; }
.osh-content blockquote p:last-child { margin-bottom: 0; }
.osh-content :is(figure, .site-block-image) img { border-radius: 6px; }
.osh-content > :is(.site-block-image, .site-block-gallery, .site-block-table) { margin: 0 0 1.5em; }
.osh-content figcaption { margin-top: 8px; font-size: 14px; color: var(--site--preset--color--muted); text-align: center; }
.osh-content :not(pre) > code { padding: 2px 6px; border-radius: 4px; background: var(--osh-soft); font-size: .88em; }
.osh-content hr { border: 0; border-top: 1px solid var(--osh-line); margin: 2em 0; }
/* The contents box keeps its own look inside article text */
.osh-content .osh-toc-list { list-style: none; margin: 0; padding: 0; }
.osh-content .osh-toc-list li { margin: 0; padding: 0; }
.osh-content .osh-toc-list li::marker { content: none; }
.osh-article .osh-content .osh-toc a { color: var(--site--preset--color--contrast); text-decoration: none; }
.osh-article .osh-content .osh-toc a:hover { text-decoration: underline; }

/* ==========================================================================
   Simple pages (Contact, About)
   ========================================================================== */
.osh-pagewrap { max-width: 1140px; margin: 0 auto !important; padding: 50px 20px 40px; box-sizing: border-box; }
.osh-pagewrap > * + * { margin-top: 0; }
.osh-pagewrap p, .osh-pagewrap li { line-height: 1.6; }
.osh-pagewrap a:not([class]) { color: var(--site--preset--color--link); text-decoration: underline; text-underline-offset: 3px; }
.osh-pagewrap ul, .osh-pagewrap ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.osh-pagewrap li { margin-bottom: .45em; }
.osh-pagewrap ul li::marker { color: #175ddc; }
/* Headline with a thick underline the width of the words, and a thin rule across */
h1.is-style-osh-underline, h2.is-style-osh-underline { margin: 0 0 28px; font-size: 32px; line-height: 1.2; border-bottom: 1px solid var(--osh-line); }
.is-style-osh-underline > span { display: inline-block; padding-bottom: 8px; margin-bottom: -1px; border-bottom: 4px solid var(--site--preset--color--heading); }
.is-style-osh-underline-center { display: table; margin: 0 auto 40px !important; padding-bottom: 6px; text-align: center; font-size: 26px !important; line-height: 1.3; border-bottom: 3px solid var(--site--preset--color--heading); }
h2.is-style-osh-underline-center { margin-top: 50px !important; }
/* Section heading with a black bar on the left */
.is-style-osh-bar { margin: 40px 0 16px !important; padding-left: 12px; border-left: 5px solid var(--site--preset--color--heading); font-size: 24px !important; line-height: 1.2 !important; }
/* Text + picture side by side */
.osh-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.osh-split-rev { grid-template-columns: 1fr 1fr; }
.osh-split > * { margin: 0 !important; }
.osh-split-text > :first-child { margin-top: 0 !important; }
.osh-portrait img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto; }
.osh-split figure img { border-radius: 6px; }
.osh-split figcaption, .osh-masonry figcaption { font-size: 13px; color: var(--site--preset--color--muted); text-align: left; margin-top: 8px; }
@media (max-width: 900px) {
	.osh-split, .osh-split-rev { grid-template-columns: 1fr; gap: 24px; }
	.osh-split > .osh-portrait { order: -1; }
	.osh-portrait img { max-width: 260px; }
	.osh-pagewrap { padding-top: 30px; }
	h1.is-style-osh-underline { font-size: 27px; }
}
/* Photo gallery: natural heights, three columns (two on phones) */
.site-block-gallery.osh-masonry { display: block !important; columns: 3; column-gap: 20px; }
.site-block-gallery.osh-masonry > figure.site-block-image { display: block; width: 100% !important; margin: 0 0 22px !important; break-inside: avoid; }
.site-block-gallery.osh-masonry > figure.site-block-image img { width: 100%; height: auto !important; border-radius: 6px; }
.site-block-gallery.osh-masonry > figure.site-block-image figcaption {
	position: static !important; padding: 0 !important; background: none !important; color: var(--site--preset--color--muted) !important;
	max-height: none !important; overflow: visible !important; font-size: 13px !important; line-height: 1.4;
}
@media (max-width: 767px) { .site-block-gallery.osh-masonry { columns: 2; column-gap: 12px; } .site-block-gallery.osh-masonry figcaption { font-size: 12px !important; } }
/* Contact form spacing */


/* Brand colours shared by the header, footer and accents */
:root { --osh-hd-bg: #0c252c; --osh-gold: #d4a017; }
:root[data-theme="dark"] { --osh-hd-bg: #0a1c21; }

/* ==========================================================================
   Footer v2 (deep teal, matching the header)
   ========================================================================== */
.osh-footer2 { background: var(--osh-hd-bg); color: rgba(255, 255, 255, .82); margin-top: 0; }
.osh-footer2 a { color: #ffffff; }
.osh-footer2 > * { margin-block: 0 !important; }
.osh-f-ctas { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.osh-f-cta {
	position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 120px; padding: 24px 80px 24px 40px;
	text-decoration: none; transition: background .15s;
}
.osh-f-cta + .osh-f-cta { border-left: 1px solid rgba(255, 255, 255, .14); }
.osh-f-cta:hover { background: rgba(255, 255, 255, .05); }
.osh-f-cta-title { font-size: 32px; font-weight: 800; line-height: 1.1; text-transform: uppercase; color: #ffffff; }
.osh-f-cta-sub { font-size: 15px; color: rgba(255, 255, 255, .7); }
.osh-f-cta svg { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); color: var(--osh-gold); transition: transform .15s; }
.osh-f-cta:hover svg { transform: translate(5px, -50%); }
.osh-f-cols { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto !important; padding: 50px 20px 40px; box-sizing: content-box; }
@media (max-width: 1240px) { .osh-f-cols { box-sizing: border-box; } }
.osh-f-brand .osh-logo img { width: 220px; height: auto; }
.osh-f-brand p { margin: 16px 0; font-size: 15px; line-height: 1.6; max-width: 340px; }
.osh-f-brand .site-block-social-links { gap: 16px; }
.osh-f-col h2 { margin: 4px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--osh-gold); }
.osh-f-col ul { list-style: none; margin: 0; padding: 0; }
.osh-f-col li { margin: 0 0 10px; font-size: 15px; }
.osh-f-col a { text-decoration: none; }
.osh-f-col a:hover, .osh-f-bottom a:hover { text-decoration: underline; }
.osh-f-bottom { display: flex; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto !important; padding: 18px 20px 22px; box-sizing: content-box; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
@media (max-width: 1240px) { .osh-f-bottom { box-sizing: border-box; } }
.osh-f-bottom p { margin: 0; }
.osh-f-bottom a { text-decoration: none; }
@media (max-width: 900px) {
	.osh-f-cols { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 36px; }
	.osh-f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.osh-f-ctas { grid-template-columns: 1fr; }
	.osh-f-cta + .osh-f-cta { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
	.osh-f-cta { min-height: 84px; padding: 18px 64px 18px 20px; }
	.osh-f-cta-title { font-size: 22px; }
	.osh-f-cta svg { right: 20px; }
	.osh-f-bottom { flex-direction: column; }
}
/* The header's template-part wrapper is what sticks (sticky needs room in its parent). */
.site-blocks > .site-block-template-part:has(> .osh-header) { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-blocks > .site-block-template-part:has(> .osh-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-blocks > .site-block-template-part:has(> .osh-header) { top: 46px; } }
.site-blocks > .site-block-template-part > .osh-header { position: relative; top: auto; }
.osh-f-ctas > *, .osh-f-cols > *, .osh-f-bottom > * { margin-block: 0 !important; }

/* Draft helpers: [SCREENSHOT] / [CHECK] placeholders stand out until they are filled in */
mark.osh-todo { background: #fff3bf; color: #5c4400; padding: 1px 4px; border-radius: 3px; font-size: .9em; }
.osh-todo-block { padding: 28px 16px; border: 2px dashed #d4a017; border-radius: 6px; text-align: center; background: #fffbea; }
.osh-todo-block mark.osh-todo { background: none; }

/* ==========================================================================
   Tools: replace tiles, top picks, steps, FAQ, alternatives pages
   ========================================================================== */
:root { --osh-tile: #ffffff; --osh-tile-bd: #e3e7ee; --osh-tile-hover: #f6f8fb; --osh-accent: #175ddc; }
:root[data-theme="dark"] { --osh-tile: #151a21; --osh-tile-bd: #252c36; --osh-tile-hover: #1b222b; --osh-accent: #6ea8ff; }
.osh-sec-lead { max-width: 1200px; margin: -12px auto 22px !important; padding: 0 20px; box-sizing: border-box; text-align: center; color: var(--site--preset--color--muted); font-size: 17px; }
.osh-more { text-align: center; margin: 22px 0 0; font-weight: 600; }
.osh-more a { color: var(--osh-accent); text-decoration: none; }
.osh-more a:hover { text-decoration: underline; }

/* Replace what you use: icon tiles */
.osh-replace { list-style: none; margin: 0 auto; padding: 0 20px; max-width: 1200px; box-sizing: content-box; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1240px) { .osh-replace { box-sizing: border-box; } }
@media (max-width: 1024px) { .osh-replace { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .osh-replace { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.osh-replace a {
	display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; box-sizing: border-box; padding: 18px 10px 16px;
	background: var(--osh-tile); border: 1px solid var(--osh-tile-bd); border-radius: 12px; text-align: center; text-decoration: none;
	color: var(--site--preset--color--heading); transition: background .15s, border-color .15s, transform .15s;
}
.osh-replace a:hover { background: var(--osh-tile-hover); border-color: var(--osh-accent); transform: translateY(-2px); }
.osh-replace-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--osh-soft); }
.osh-replace-logo { width: 32px; height: 32px; object-fit: contain; }
.osh-replace-name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.osh-replace-cat { font-size: 12px; color: var(--site--preset--color--muted); }
.osh-replace-go { font-size: 13px; font-weight: 600; color: var(--osh-accent); }

/* My top picks */
.osh-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: content-box; }
@media (max-width: 1240px) { .osh-picks { box-sizing: border-box; } }
@media (max-width: 1024px) { .osh-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .osh-picks { grid-template-columns: 1fr; } }
.osh-pick { position: relative; }
.osh-pick-link {
	display: flex; flex-direction: column; gap: 14px; height: 100%; box-sizing: border-box; padding: 22px;
	background: var(--osh-tile); border: 1px solid var(--osh-tile-bd); border-radius: 14px; text-decoration: none; color: var(--site--preset--color--contrast);
	transition: border-color .15s, background .15s;
}
.osh-pick-link:hover { border-color: var(--pc); background: var(--osh-tile-hover); }
.osh-pick.is-mine .osh-pick-link { border-color: var(--osh-gold); box-shadow: 0 0 0 1px var(--osh-gold) inset; }
.osh-pick-head { display: flex; align-items: center; gap: 14px; }
.osh-pick-logo { width: 56px; height: 56px; flex: none; object-fit: contain; padding: 8px; box-sizing: border-box; border-radius: 14px; background: var(--osh-soft); }
.osh-pick-name { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--site--preset--color--heading); }
.osh-pick-cat { display: flex; gap: 10px; margin-top: 3px; font-size: 13px; color: var(--site--preset--color--muted); }
.osh-pick-score { font-weight: 700; color: var(--site--preset--color--heading); }
.osh-pick-text { font-size: 15px; line-height: 1.55; }
.osh-pick-ribbon, .osh-pc-ribbon {
	position: absolute; top: -1px; right: 18px; padding: 4px 10px; border-radius: 0 0 6px 6px;
	background: var(--osh-gold); color: #1a1300; font-size: 12px; font-weight: 700; letter-spacing: .02em; z-index: 1;
}
.osh-pc { position: relative; }
.osh-pc-mine .osh-pc-top .osh-badge { margin-top: 18px; }
.osh-pc-score { position: absolute; left: 25px; bottom: 82px; display: none; }

/* Numbered steps (starter kit) */
.osh-steps { list-style: none; counter-reset: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: content-box; }
@media (max-width: 1240px) { .osh-steps { box-sizing: border-box; } }
@media (max-width: 767px) { .osh-steps { grid-template-columns: 1fr; } }
.osh-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--osh-tile); border: 1px solid var(--osh-tile-bd); border-radius: 12px; }
.osh-step-n { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--osh-hd-bg); color: #fff; font-weight: 800; font-size: 15px; }
[data-theme="dark"] .osh-step-n { background: var(--osh-gold); color: #1a1300; }
.osh-step-body { display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.5; }
.osh-step-body strong { font-size: 17px; color: var(--site--preset--color--heading); }
.osh-step-body strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--osh-gold); text-underline-offset: 3px; }

/* FAQ */
.osh-faq { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.osh-faq-item { border: 1px solid var(--osh-tile-bd); border-radius: 12px; background: var(--osh-tile); margin-bottom: 10px; }
.osh-faq-item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative; font-size: 17px; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-faq-item summary::-webkit-details-marker { display: none; }
.osh-faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--osh-accent); }
.osh-faq-item[open] summary::after { content: "−"; }
.osh-faq-a { padding: 0 20px 6px; font-size: 16px; line-height: 1.6; }
.osh-faq-a a { color: var(--osh-accent); }

/* Alternatives pages */
.osh-alt { padding: 40px 20px 20px; }
.osh-alt-crumb { font-size: 14px; color: var(--site--preset--color--muted); margin: 0 0 14px; }
.osh-alt-crumb a { color: inherit; }
.osh-alt-head { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.osh-alt-head h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.osh-alt-head p { font-size: 18px; color: var(--site--preset--color--muted); margin: 0 0 10px; }
.osh-alt-head-tool { display: flex; gap: 20px; align-items: center; text-align: left; max-width: none; }
.osh-alt-logo { width: 72px; height: 72px; flex: none; object-fit: contain; padding: 10px; border-radius: 16px; background: var(--osh-soft); }
.osh-alt-sec { margin: 0 0 40px; }
.osh-alt-sec .osh-replace, .osh-alt-sec .osh-cardgrid { padding: 0; }
.osh-alt-h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; }
.osh-alt-why-box { padding: 20px 22px; border: 1px solid rgba(180, 35, 24, .3); border-left: 4px solid #b42318; border-radius: 10px; background: var(--osh-tile); }
.osh-alt-why-box .osh-badge { background: #fdecea; color: #b42318; }
[data-theme="dark"] .osh-alt-why-box .osh-badge { background: rgba(248, 81, 73, .16); color: #ffa198; }
.osh-alt-why-box p { margin: 12px 0 0; }
.osh-alt-why-box a { color: var(--osh-accent); font-weight: 600; }
@media (max-width: 640px) { .osh-alt-head-tool { flex-direction: column; align-items: flex-start; } .osh-alt { padding-top: 26px; } }

/* ==========================================================================
   Article sidebar: Summarize with AI + sticky "Skip to" contents
   ========================================================================== */
.osh-sidebar { align-self: stretch; display: flex; flex-direction: column; }
.osh-ai { background: var(--osh-tile); border: 1px solid var(--osh-tile-bd); border-radius: 12px; padding: 16px 18px; }
.osh-sidebar-inner > .osh-ai { margin-bottom: 15px; }
.osh-ai-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-ai-title svg { color: #1a7f37; }
[data-theme="dark"] .osh-ai-title svg { color: #7ee2a0; }
.osh-ai-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.osh-ai-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; box-sizing: border-box;
	border: 1px solid var(--osh-tile-bd); border-radius: 10px; background: var(--site--preset--color--base); color: var(--site--preset--color--heading);
	cursor: pointer; transition: border-color .15s, transform .15s; padding: 0; font: inherit;
}
.osh-ai-btn:hover { border-color: var(--osh-accent); transform: translateY(-1px); }
.osh-ai-btn .osh-copied { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.osh-ai-row { display: none; margin: 18px 0 0; }
.osh-ai-row .osh-ai-title { font-size: 15px; margin-bottom: 10px; }
@media (max-width: 1024px) { .osh-ai-row { display: block; } }
@media (max-width: 767px) { .osh-ai-row { margin-top: 16px; padding: 14px; } .osh-ai-row .osh-ai-btn { width: 40px; height: 40px; } }

.osh-stoc {
	position: sticky; top: 92px; margin-top: 15px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain;
	background: var(--osh-tile); border: 1px solid var(--osh-tile-bd); border-radius: 12px; padding: 16px 18px;
	scrollbar-width: thin;
}
.admin-bar .osh-stoc { top: 124px; max-height: calc(100vh - 144px); }
.osh-stoc-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-stoc-list { list-style: none; margin: 0; padding: 0; }
.osh-stoc-list > li { margin: 0; }
.osh-stoc a {
	display: block; padding: 6px 0 6px 10px; margin-left: -10px; border-left: 2px solid transparent;
	font-size: 14.5px; line-height: 1.35; color: var(--site--preset--color--contrast); text-decoration: none;
}
.osh-stoc a:hover { color: var(--osh-accent); }
.osh-stoc a.is-active { border-left-color: var(--osh-gold); color: var(--site--preset--color--heading); font-weight: 700; }
.osh-stoc-sub { margin: 0 0 4px; padding: 0 0 0 26px; border-left: 1px solid var(--osh-tile-bd); margin-left: 4px; }
.osh-stoc-sub li { margin: 0; }
.osh-stoc-sub li::marker { color: var(--site--preset--color--muted); font-size: 13px; }
.osh-stoc-sub a { font-size: 13.5px; color: var(--site--preset--color--muted); padding: 4px 0 4px 8px; margin-left: -8px; }
/* Desktop has the sidebar contents, so the in-article box is for phones and tablets only. */
@media (min-width: 1025px) { .osh-toc-inline { display: none; } }
.osh-stoc-sub.is-plain { list-style: none; padding-left: 14px; }
.osh-ai-btns { gap: 6px; flex-wrap: nowrap; }
.osh-ai-btn { width: 38px; height: 38px; flex: none; border-radius: 9px; }
.osh-ai-btn svg { width: 18px; height: 18px; }
@media (max-width: 767px) { .osh-ai-row .osh-ai-btn { width: 40px; height: 40px; } .osh-ai-btns { flex-wrap: wrap; } }

/* ==========================================================================
   Comments (v2): cards, letter avatars, threaded replies, card-style form
   ========================================================================== */
.osh-comments { --cm-accent: #175ddc; --cm-card: var(--osh-card-bg); margin: 48px 10px 10px; padding-top: 32px; border-top: 1px solid var(--osh-line); }
[data-theme="dark"] .osh-comments { --cm-accent: #6ea2ff; }
.osh-comments-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.osh-comments-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; line-height: 1.2; color: var(--site--preset--color--heading); }
.osh-comments-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--osh-soft); border: 1px solid var(--osh-line); font-size: 14px; font-weight: 600; color: var(--site--preset--color--muted); }
.osh-comment-toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 1px solid var(--cm-accent); border-radius: 999px; background: transparent; color: var(--cm-accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.osh-comment-toggle:hover, .osh-comment-toggle[aria-expanded="true"] { background: var(--cm-accent); color: #fff; }
.osh-comments-empty { margin: 0 0 8px; color: var(--site--preset--color--muted); font-size: 16px; }

.osh-comment-list, .osh-comment-list .children { list-style: none; margin: 0; padding: 0; }
.osh-comment-list > .osh-cm + .osh-cm { margin-top: 14px; }
.osh-comment-list .children { margin: 12px 0 0 26px; padding-left: 18px; border-left: 2px solid var(--osh-line); }
.osh-comment-list .children > .osh-cm + .osh-cm { margin-top: 12px; }
.osh-cm-card { display: flex; gap: 14px; padding: 18px 20px; background: var(--osh-soft); border: 1px solid var(--osh-line); border-radius: 14px; }
.osh-cm.is-author > .osh-cm-card { background: color-mix(in srgb, var(--cm-accent) 7%, transparent); border-color: color-mix(in srgb, var(--cm-accent) 30%, transparent); }
.osh-cm:target > .osh-cm-card { box-shadow: 0 0 0 2px var(--cm-accent); }
.osh-cm-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.osh-cm-letter { display: grid; place-items: center; font-size: 18px; font-weight: 700; color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 70% 88%); }
[data-theme="dark"] .osh-cm-letter { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 26%); }
.osh-cm-main { flex: 1; min-width: 0; }
.osh-cm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; line-height: 1.3; }
.osh-cm-name { font-size: 16px; color: var(--site--preset--color--heading); }
.osh-cm-badge { padding: 2px 8px; border-radius: 999px; background: var(--cm-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.osh-cm-date { font-size: 13px; color: var(--site--preset--color--muted) !important; text-decoration: none !important; }
.osh-cm-date::before { content: "·"; margin-right: 10px; }
.osh-cm-date:hover { text-decoration: underline !important; }
.osh-cm-wait { margin: 6px 0 0; font-size: 13px; font-style: italic; color: var(--site--preset--color--muted); }
.osh-cm-text { margin-top: 6px; font-size: 16px; line-height: 1.65; color: var(--site--preset--color--contrast); overflow-wrap: anywhere; }
.osh-cm-text > :first-child { margin-top: 0; } .osh-cm-text > :last-child { margin-bottom: 0; }
.osh-cm-text a { color: var(--cm-accent); text-decoration: underline; }
.osh-cm-actions { margin-top: 10px; }
.osh-cm-actions .comment-reply-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--site--preset--color--muted); text-decoration: none; transition: background .15s, color .15s; }
.osh-cm-actions .comment-reply-link:hover { background: var(--osh-line); color: var(--cm-accent); }

/* Form */
#osh-comment-form { margin-top: 20px; }
.osh-comments .comment-respond { padding: 22px; background: var(--cm-card); border: 1px solid var(--osh-line); border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.osh-comment-list .comment-respond { margin-top: 12px; }
.osh-comments .comment-reply-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-size: 18px; color: var(--site--preset--color--heading); }
.osh-comments #cancel-comment-reply-link { font-size: 14px; font-weight: 600; color: var(--site--preset--color--muted); text-decoration: none; }
.osh-comments #cancel-comment-reply-link:hover { color: var(--cm-accent); }
.osh-cform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; }
.osh-cform > * { margin: 0; }
.osh-cform .osh-cf-comment, .osh-cform .form-submit, .osh-cform .logged-in-as { grid-column: 1 / -1; }
.osh-cf label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--site--preset--color--heading); }
.osh-req { color: #d92d20; }
.osh-cform textarea, .osh-cform input[type="text"], .osh-cform input[type="email"] {
	width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 16px;
	color: var(--site--preset--color--contrast); background: var(--osh-soft);
	border: 1px solid var(--osh-line); border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.osh-cform textarea { min-height: 120px; resize: vertical; }
.osh-cform :is(textarea, input)::placeholder { color: var(--site--preset--color--muted); opacity: .8; }
.osh-cform :is(textarea, input):focus { outline: none; background: var(--site--preset--color--base); border-color: var(--cm-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cm-accent) 18%, transparent); }
.osh-cf .osh-cform-note { display: block; margin-top: 6px; font-size: 13px; color: var(--site--preset--color--muted); }
.osh-cform .logged-in-as { font-size: 14px; color: var(--site--preset--color--muted); }
.osh-cform .form-submit { display: flex; justify-content: flex-end; }
.osh-cform .osh-btn { height: 44px; padding: 0 26px; border-radius: 999px; background: var(--cm-accent); font-size: 15px; transition: filter .15s, transform .15s; }
.osh-cform .osh-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 600px) {
	.osh-comments { margin: 36px 0 10px; }
	.osh-comments-title { font-size: 21px; }
	.osh-comment-toggle { height: 40px; padding: 0 16px; font-size: 14px; }
	.osh-cm-card { gap: 12px; padding: 14px; }
	.osh-cm-avatar { width: 36px; height: 36px; }
	.osh-cm-date { flex-basis: 100%; }
	.osh-cm-date::before { content: none; }
	.osh-comment-list .children { margin-left: 8px; padding-left: 12px; }
	.osh-comments .comment-respond { padding: 16px; }
	.osh-cform { grid-template-columns: 1fr; }
	.osh-cform .osh-btn { width: 100%; }
}

/* Verdict colours (training progress, badges) */
:root { --osh-good: #1a7f37; --osh-bad: #c62828; }
:root[data-theme="dark"] { --osh-good: #4cc26f; --osh-bad: #ff7a7a; }

/* ==========================================================================
   Training: course cards, lesson lists, lesson box (top) and lesson end (bottom)
   ========================================================================== */
.osh-training { padding: 44px 20px 60px; }
.osh-training-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto 36px; padding: 0; list-style: none; }
.osh-training-how li { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--osh-soft); font-size: 14px; line-height: 1.5; color: var(--site--preset--color--muted); }
.osh-training-how svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--osh-gold); }
.osh-training-how strong { display: block; margin-bottom: 2px; font-size: 15px; color: var(--site--preset--color--heading); }
.osh-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.osh-course { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--osh-tile-bd); border-radius: 16px; background: var(--osh-tile); }
.osh-course-title { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.osh-course-title a { color: var(--site--preset--color--heading); text-decoration: none; }
.osh-course-title a:hover { text-decoration: underline; }
.osh-course-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 13px; }
.osh-course-facts span { padding: 2px 9px; border-radius: 999px; background: var(--osh-soft); color: var(--site--preset--color--muted); }
.osh-course-facts span:first-child { background: color-mix(in srgb, var(--osh-gold) 18%, transparent); color: var(--site--preset--color--heading); font-weight: 600; }
.osh-course-desc { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--site--preset--color--muted); }
.osh-course-lessons { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: none; }
.osh-course-lessons li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; line-height: 1.35; }
.osh-course-lessons li + li::before { content: ""; position: absolute; left: 12px; top: -9px; height: 16px; border-left: 2px solid var(--osh-line); }
.osh-cl-n { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--osh-line); border-radius: 50%; background: var(--osh-tile, #fff); font-size: 12px; font-weight: 700; color: var(--site--preset--color--muted); box-sizing: border-box; }
.osh-cl-n svg { display: none; width: 14px; height: 14px; }
.osh-course-lessons li.is-done .osh-cl-n { border-color: var(--osh-good); background: var(--osh-good); color: #fff; }
.osh-course-lessons li.is-done .osh-cl-n span { display: none; }
.osh-course-lessons li.is-done .osh-cl-n svg { display: block; }
.osh-course-lessons a { color: var(--site--preset--color--contrast); text-decoration: none; font-weight: 600; }
.osh-course-lessons a:hover { color: var(--osh-accent); text-decoration: underline; }
.osh-course-lessons li.is-soon .osh-cl-t { color: var(--site--preset--color--muted); }
.osh-cl-soon { margin-left: auto; flex: none; font-size: 12px; color: var(--site--preset--color--muted); white-space: nowrap; }
.osh-course-lessons li.is-here .osh-cl-n { border-color: var(--osh-gold); color: var(--site--preset--color--heading); }
.osh-course-lessons li.is-here .osh-cl-t { font-weight: 700; color: var(--site--preset--color--heading); }
.osh-course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--osh-line); }
.osh-course-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--site--preset--color--muted); }
.osh-cp-bar { width: 90px; height: 6px; border-radius: 99px; background: var(--osh-line); overflow: hidden; }
.osh-cp-bar span { display: block; height: 100%; width: 0; background: var(--osh-good); transition: width .3s; }
.osh-course-go { padding: 10px 18px; border-radius: 999px; background: var(--osh-hd-bg); color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.osh-course-go:hover { filter: brightness(1.25); }
[data-theme="dark"] .osh-course-go { background: var(--osh-gold); color: #1d1600 !important; }
.osh-cl-soon-all { margin: 0; font-size: 14px; color: var(--site--preset--color--muted); }
.osh-coursepage { padding: 34px 20px 60px; max-width: 760px; margin: 0 auto; }
.osh-coursepage-head h1 { margin: 6px 0 18px; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.osh-coursepage .osh-course-title { display: none; }
@media (max-width: 800px) { .osh-training-how { grid-template-columns: 1fr; } .osh-course-grid { grid-template-columns: 1fr; } .osh-training { padding-top: 28px; } }

/* Lesson box at the top of a lesson */
.osh-lessonbox { margin: 18px 10px 6px; border: 1px solid var(--osh-line); border-left: 4px solid var(--osh-gold); border-radius: 10px; background: var(--osh-soft); }
.osh-lessonbox > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.osh-lessonbox > summary::-webkit-details-marker { display: none; }
.osh-lb-k { font-size: 13px; font-weight: 700; color: var(--site--preset--color--muted); }
.osh-lb-c { font-size: 16px; font-weight: 700; color: var(--site--preset--color--heading); }
.osh-lb-toggle { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--osh-accent); }
.osh-lb-toggle .osh-icon { width: 16px; height: 16px; transition: transform .2s; }
.osh-lessonbox[open] .osh-lb-toggle .osh-icon { transform: rotate(180deg); }
.osh-lessonbox .osh-course-lessons { margin: 0; padding: 4px 16px 6px; }
.osh-lessonbox .osh-cl-n { background: var(--site--preset--color--base); }
.osh-lb-all { display: inline-block; margin: 0 16px 14px 54px; font-size: 14px; font-weight: 600; color: var(--osh-accent); }
/* Lesson end: mark as done + next lesson */
.osh-lessonend { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; margin: 30px 10px 10px; padding: 18px; border-radius: 14px; background: var(--osh-soft); border: 1px solid var(--osh-line); }
.osh-done-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--osh-good); border-radius: 999px; background: transparent; color: var(--osh-good); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.osh-done-btn svg { width: 18px; height: 18px; }
.osh-done-btn[aria-pressed="true"] { background: var(--osh-good); color: #fff; }
.osh-done-on, .osh-done-btn[aria-pressed="true"] .osh-done-off { display: none; }
.osh-done-btn[aria-pressed="true"] .osh-done-on { display: inline; }
.osh-next-lesson { flex: 1 1 260px; display: block; margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--site--preset--color--base); border: 1px solid var(--osh-line); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--site--preset--color--heading) !important; text-decoration: none !important; }
a.osh-next-lesson:hover { border-color: var(--osh-gold); }
.osh-next-lesson span { display: block; font-size: 12px; font-weight: 600; color: var(--site--preset--color--muted); }
.osh-next-lesson.is-soon { color: var(--site--preset--color--muted) !important; font-weight: 600; }
@media (max-width: 767px) { .osh-lessonbox, .osh-lessonend { margin-left: 0; margin-right: 0; } .osh-lb-all { margin-left: 16px; } }
