/* SOF2 Help — uses the SOF2MP theme's colour tokens, with fallbacks for other themes. */

.sof2h-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; padding: 0; list-style: none; font-size: .95rem; color: var(--muted, #aab6b5); }
.sof2h-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--dim, #7f8d8b); }
.sof2h-crumbs a { color: var(--gold, #d3a45d); text-decoration: none; }
.sof2h-crumbs a:hover { text-decoration: underline; }
.sof2h-crumbs [aria-current] { color: var(--muted, #aab6b5); }

.sof2h-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; color: var(--dim, #7f8d8b); font-size: .95rem; }
.sof2h-meta a { color: var(--gold, #d3a45d); }

/* Layout: article (75%) + column (25%) */
.sof2h-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sof2h-layout > .site-main { min-width: 0; }
.sof2h-side { min-width: 0; align-self: stretch; }
.sof2h-side-inner { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.sof2h-box { padding: 16px 18px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); }
.sof2h-box-title, .sof2h-toc-title { margin: 0 0 10px !important; font-size: .8rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--dim, #7f8d8b); }
.sof2h-toc ul { margin: 0; padding: 0; list-style: none; }
.sof2h-toc li { margin: 2px 0; line-height: 1.35; font-size: .95rem; }
.sof2h-toc a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid transparent; color: var(--muted, #aab6b5); text-decoration: none; }
.sof2h-toc a:hover { color: var(--gold-2, #f2ce8d); }
.sof2h-toc a.is-current { border-left-color: var(--gold, #d3a45d); color: var(--text, #eef1ee); }
.sof2h-toc-mobile { display: none; }
@media (max-width: 1000px) {
	.sof2h-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.sof2h-side-inner { position: static; max-height: none; overflow: visible; }
	.sof2h-side .sof2h-toc { display: none; }
	.sof2h-toc-mobile { display: block; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); }
	.sof2h-toc-mobile summary { cursor: pointer; font-weight: 700; color: var(--text, #eef1ee); }
	.sof2h-toc-mobile ul { margin: 10px 0 0; }
}

/* Was this helpful? */
.sof2h-feedback { margin: 40px 0 0; padding: 20px 22px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); text-align: center; }
.sof2h-feedback h2 { margin: 0 0 14px !important; font-size: 1.2rem !important; }
.sof2h-feedback-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sof2h-vote { min-width: 110px; padding: 10px 20px; border: 1px solid var(--line-2, #33434c); border-radius: 999px; background: var(--panel-2, #18222a); color: var(--text, #eef1ee); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.sof2h-vote:hover:not(:disabled), .sof2h-vote:focus-visible { border-color: var(--gold, #d3a45d); }
.sof2h-vote:disabled { cursor: default; opacity: .55; }
.sof2h-vote[aria-pressed="true"] { opacity: 1; border-color: var(--gold, #d3a45d); background: rgba(211, 164, 93, .14); }
.sof2h-feedback-status { min-height: 1.4em; margin: 12px 0 0; color: var(--text, #eef1ee); }
.sof2h-feedback-status:empty { min-height: 0; margin: 0; }
.sof2h-feedback-count { margin: 6px 0 0; color: var(--dim, #7f8d8b); font-size: .9rem; }
.sof2h-feedback-count:empty { display: none; }

/* Content */
.sof2h-content.entry-content { max-width: none; }
.sof2h-content h2 { margin-top: 2.2em; scroll-margin-top: 90px; }
.sof2h-content h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.sof2h-content > :first-child { margin-top: 0; }
.sof2h-content kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line-2, #33434c); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-2, #18222a); font: 600 .88em/1.4 ui-monospace, Consolas, monospace; color: var(--text, #eef1ee); }
.sof2h-content code { padding: 1px 6px; border-radius: 5px; background: var(--panel-2, #18222a); font-size: .9em; color: var(--gold-2, #f2ce8d); }
.sof2h-content pre { overflow-x: auto; padding: 16px 18px; border: 1px solid var(--line, #26333b); border-radius: var(--radius-sm, 8px); background: var(--bg-2, #0e141a); line-height: 1.55; }
.sof2h-content pre code { padding: 0; background: none; color: var(--text, #eef1ee); }

.sof2h-answer { margin: 0 0 28px; padding: 18px 22px; border-left: 4px solid var(--gold, #d3a45d); border-radius: var(--radius-sm, 8px); background: var(--panel, #131b21); font-size: 1.08em; line-height: 1.6; }
.sof2h-note { margin: 24px 0; padding: 14px 18px; border: 1px solid var(--line, #26333b); border-radius: var(--radius-sm, 8px); background: var(--panel, #131b21); }
.sof2h-note > :last-child { margin-bottom: 0; }
.sof2h-note.is-warning { border-color: rgba(224, 103, 92, .45); }
.sof2h-note.is-tip { border-color: rgba(127, 209, 140, .4); }

.sof2h-steps { counter-reset: sof2h-step; list-style: none; padding-left: 0; }
.sof2h-steps > li { counter-increment: sof2h-step; position: relative; margin: 0 0 16px; padding-left: 46px; }
.sof2h-steps > li::before { content: counter(sof2h-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gold, #d3a45d); color: #111; font-weight: 700; line-height: 30px; text-align: center; }

.sof2h-table-wrap { overflow-x: auto; margin: 20px 0; }
.sof2h-content table, .sof2h-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sof2h-content caption { caption-side: top; padding: 0 0 8px; text-align: left; color: var(--muted, #aab6b5); font-size: .9rem; }
.sof2h-content th, .sof2h-content td, .sof2h-table th, .sof2h-table td { padding: 9px 12px; border-bottom: 1px solid var(--line, #26333b); text-align: left; vertical-align: top; }
.sof2h-content thead th, .sof2h-table thead th { color: var(--dim, #7f8d8b); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.sof2h-content tbody th { color: var(--text, #eef1ee); font-weight: 600; font-size: inherit; letter-spacing: normal; text-transform: none; }
.sof2h-muted { color: var(--dim, #7f8d8b); }

.sof2h-content dl dt { margin-top: 16px; font-weight: 700; color: var(--gold-2, #f2ce8d); }
.sof2h-content dl dd { margin: 4px 0 0; }

.sof2h-faq h3 { font-size: 1.1em; }

/* Pager */
.sof2h-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.sof2h-pager a { display: block; padding: 14px 18px; border: 1px solid var(--line, #26333b); border-radius: var(--radius-sm, 8px); background: var(--panel, #131b21); color: var(--text, #eef1ee); text-decoration: none; }
.sof2h-pager a:hover { border-color: var(--gold-dark, #8f6f42); }
.sof2h-pager small { display: block; color: var(--dim, #7f8d8b); }
.sof2h-pager .next { text-align: right; }
@media (max-width: 640px) { .sof2h-pager { grid-template-columns: 1fr; } .sof2h-pager .next { text-align: left; } }

/* Buttons and small lists */
.sof2h-btn { display: inline-block; padding: 9px 18px; border: 1px solid var(--gold, #d3a45d); border-radius: 999px; background: rgba(211, 164, 93, .12); color: var(--gold-2, #f2ce8d); font-weight: 700; text-decoration: none; }
.sof2h-btn:hover { background: rgba(211, 164, 93, .22); color: var(--text, #eef1ee); }
.sof2h-mini-list { margin: 12px 0; padding-left: 1.2em; }
.sof2h-mini-list li { margin: 4px 0; }

/* Search */
.sof2h-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 22px 0 0; padding: 6px 6px 6px 16px; border: 1px solid var(--line-2, #33434c); border-radius: 999px; background: var(--panel, #131b21); }
.sof2h-search:focus-within { border-color: var(--gold, #d3a45d); box-shadow: 0 0 0 3px rgba(211, 164, 93, .18); }
.sof2h-search-ico { display: flex; color: var(--dim, #7f8d8b); }
.sof2h-search input[type="search"] { flex: 1; min-width: 0; padding: 10px 4px; border: 0; background: transparent; color: var(--text, #eef1ee); font: inherit; font-size: 1.05rem; outline: 0; box-shadow: none; }
.sof2h-search-go { flex: none; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--gold, #d3a45d); color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.sof2h-search.is-small { margin: 0; padding: 2px 2px 2px 12px; }
.sof2h-search.is-small input[type="search"] { padding: 7px 2px; font-size: .95rem; }
.sof2h-search.is-small .sof2h-search-go { padding: 7px 12px; font-size: .9rem; }
.sof2h-side-search { padding: 10px; }
@media (max-width: 560px) { .sof2h-search.is-big .sof2h-search-go { padding: 10px 14px; } }

.sof2h-results { margin: 0 0 32px; }
.sof2h-results-count { margin: 0 0 12px; color: var(--muted, #aab6b5); }
.sof2h-list-topic { display: block; margin: 0 0 4px; color: var(--gold, #d3a45d); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

/* Article lists (topic pages, search results) */
.sof2h-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line, #26333b); }
.sof2h-list > li { padding: 16px 0; border-bottom: 1px solid var(--line, #26333b); }
.sof2h-list-title { margin: 0 0 6px !important; font-size: 1.15rem !important; line-height: 1.35; }
.sof2h-list-title a { color: var(--text, #eef1ee); text-decoration: none; }
.sof2h-list-title a:hover { color: var(--gold-2, #f2ce8d); }
.sof2h-list p { margin: 0; color: var(--muted, #aab6b5); }

/* Hub: topic cards */
.sof2h-hero.is-hub { padding-bottom: 36px; }
.sof2h-h1-ico { font-size: .9em; }
.sof2h-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.sof2h-topic-card { display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); scroll-margin-top: 90px; }
.sof2h-topic-card:hover { border-color: var(--line-2, #33434c); }
.sof2h-topic-head { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
.sof2h-topic-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2, #18222a); font-size: 1.4rem; }
.sof2h-topic-head h2 { margin: 0 0 4px !important; font-size: 1.2rem !important; }
.sof2h-topic-head h2 a { color: var(--text, #eef1ee); text-decoration: none; }
.sof2h-topic-head h2 a:hover { color: var(--gold-2, #f2ce8d); }
.sof2h-topic-head p { margin: 0; color: var(--muted, #aab6b5); font-size: .92rem; line-height: 1.45; }
.sof2h-topic-card ul { margin: 0 0 14px; padding: 0; list-style: none; }
.sof2h-topic-card li { border-top: 1px solid var(--line, #26333b); }
.sof2h-topic-card li a { display: block; padding: 8px 0; color: var(--muted, #aab6b5); text-decoration: none; line-height: 1.35; }
.sof2h-topic-card li a:hover { color: var(--gold-2, #f2ce8d); }
.sof2h-topic-all { margin-top: auto; color: var(--gold, #d3a45d); font-weight: 700; text-decoration: none; }

.sof2h-popular { margin: 0 0 32px; }
.sof2h-popular h2 { margin: 0 0 12px !important; font-size: .85rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--dim, #7f8d8b); }
.sof2h-popular ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sof2h-popular a { display: block; height: 100%; padding: 12px 16px; border: 1px solid var(--line, #26333b); border-radius: var(--radius-sm, 8px); background: var(--panel, #131b21); color: var(--text, #eef1ee); font-weight: 600; text-decoration: none; }
.sof2h-popular a:hover { border-color: var(--gold-dark, #8f6f42); }
.sof2h-popular small { display: block; margin-top: 2px; color: var(--dim, #7f8d8b); font-weight: 400; }

.sof2h-hub-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 36px 0 0; }
.sof2h-hub-foot .sof2h-box { padding: 20px 22px; }
.sof2h-hub-foot p, .sof2h-stuck p { color: var(--muted, #aab6b5); }
.sof2h-stuck p { margin: 0 0 12px; font-size: .92rem; }

/* Column: this topic's articles and the other topics */
.sof2h-in-topic ul, .sof2h-all-topics ul { margin: 0; padding: 0; list-style: none; }
.sof2h-in-topic li, .sof2h-all-topics li { margin: 0; line-height: 1.35; font-size: .93rem; }
.sof2h-in-topic a, .sof2h-in-topic span, .sof2h-all-topics a { display: block; padding: 5px 0 5px 10px; border-left: 2px solid transparent; color: var(--muted, #aab6b5); text-decoration: none; }
.sof2h-in-topic a:hover, .sof2h-all-topics a:hover { color: var(--gold-2, #f2ce8d); }
.sof2h-in-topic [aria-current] { border-left-color: var(--gold, #d3a45d); color: var(--text, #eef1ee); font-weight: 600; }
.sof2h-all-topics a { padding-left: 0; }

/* Content extras */
.sof2h-content .sof2h-note strong:first-child { color: var(--text, #eef1ee); }
.sof2h-content ul.sof2h-checklist { list-style: none; padding-left: 0; }
.sof2h-content ul.sof2h-checklist > li { position: relative; padding-left: 28px; margin: 0 0 8px; }
.sof2h-content ul.sof2h-checklist > li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold, #d3a45d); font-weight: 700; }
