/* How-To portals (1.50.0; user: "build a similar HOW TO portal for Learn/SkillVerify/TeamSkills/Teach" like
   streamsoft.co.za/learnweb360). One stylesheet for the four portals (wwwroot/howto.html, sv/, ts/, teach/howto.html);
   js/howto.js builds the contents, search and tabs. Teal and white, as the StreamSoft sites. */
:root {
  --bg: #f5f8f8; --surface: #ffffff; --sunk: #edf3f2; --ink: #12201e; --ink-2: #33433f; --muted: #57686a;
  --line: #dce5e3; --accent: #0f766e; --accent-strong: #0b5f58; --accent-soft: #e2f3f0; --on-accent: #ffffff;
  --tip: #8a5a12; --tip-bg: #fbf3e3; --warn: #a3281b; --warn-bg: #fbeceb; --ok: #1d6b45; --ok-bg: #e5f4ec;
  --shadow: 0 1px 2px rgba(18,32,30,.06), 0 4px 14px rgba(18,32,30,.05);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1514; --surface: #131e1c; --sunk: #192624; --ink: #e5f0ed; --ink-2: #c2d1cd; --muted: #98aca8;
    --line: #263532; --accent: #2fc6b4; --accent-strong: #5fd8c9; --accent-soft: #12302b; --on-accent: #062420;
    --tip: #e2b35e; --tip-bg: #2a2214; --warn: #f08b80; --warn-bg: #2c1714; --ok: #7fd1a3; --ok-bg: #14271d; --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1514; --surface: #131e1c; --sunk: #192624; --ink: #e5f0ed; --ink-2: #c2d1cd; --muted: #98aca8;
  --line: #263532; --accent: #2fc6b4; --accent-strong: #5fd8c9; --accent-soft: #12302b; --on-accent: #062420;
  --tip: #e2b35e; --tip-bg: #2a2214; --warn: #f08b80; --warn-bg: #2c1714; --ok: #7fd1a3; --ok-bg: #14271d; --shadow: 0 1px 2px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body.howto { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
.howto a { color: var(--accent); text-underline-offset: 3px; }
.howto a:hover { color: var(--accent-strong); }
.howto :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.howto .skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 50; text-decoration: none; font-weight: 600; }
.howto .skip:focus { top: 12px; }
.howto h1, .howto h2, .howto h3, .howto h4 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; color: var(--ink); }
.howto h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 650; letter-spacing: -.02em; margin: 0 0 .5rem; }
.howto h2 { font-size: 1.55rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .75rem; }
.howto h3 { font-size: 1.2rem; font-weight: 650; margin: 1.75rem 0 .5rem; }
.howto p, .howto li { max-width: 72ch; }
.howto ul, .howto ol { padding-left: 1.4rem; }
.howto li + li { margin-top: .3rem; }
.howto .ui { font-weight: 650; color: var(--ink); }

/* top bar */
.ht-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ht-top-in { max-width: 1320px; margin: 0 auto; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ht-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; margin-right: auto; }
.ht-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #14968b, #0f766e); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--font-display); }
.ht-brand b { font: 650 1.1rem var(--font-display); letter-spacing: -.01em; }
.ht-brand b span { color: var(--accent); }
.ht-brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.1; }
.ht-back { font: 600 .9rem var(--font); text-decoration: none; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 7px 12px; white-space: nowrap; }
.ht-parts { display: flex; gap: 4px; }
.ht-parts a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: 7px 12px; border-radius: 8px; }
.ht-parts a:hover { background: var(--sunk); }
.ht-parts a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.ht-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.ht-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ht-search input { width: 100%; font: 15px var(--font); color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 38px; }
.ht-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.ht-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.ht-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; padding: 6px; }
.ht-results a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.ht-results a:hover, .ht-results a:focus { background: var(--accent-soft); }
.ht-results a small { display: block; color: var(--muted); font-size: .82rem; }
.ht-results .none { padding: 10px 12px; color: var(--muted); }

/* layout */
.ht-wrap { max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
.ht-toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow: auto; padding-block: 28px 40px; font-size: .92rem; }
.ht-toc h2 { font: 700 .72rem var(--font) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; margin: 1.4rem 0 .4rem !important; }
.ht-toc h2:first-child { margin-top: 0 !important; }
.ht-toc ol { list-style: none; padding: 0; margin: 0; }
.ht-toc li { margin: 0; }
.ht-toc a { display: block; padding: 4px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; }
.ht-toc a:hover { background: var(--sunk); color: var(--ink); }
.ht-toc a[aria-current="location"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.ht-toc-mobile { display: none; }
.ht-main { padding-block: 28px 80px; min-width: 0; }
.ht-part { padding-bottom: 36px; }
.ht-part[hidden] { display: none !important; }
.ht-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0 0 24px; }
.howto .eyebrow { font: 700 .74rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .35rem; }
.howto .lede { font-size: 1.1rem; color: var(--ink-2); max-width: 68ch; margin: 0; }
.ht-main article { scroll-margin-top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px 22px; margin-bottom: 20px; }
.ht-main article > h2 { margin-top: 0; }
.ht-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 12px; }
.ht-tag { font: 600 .74rem var(--font); letter-spacing: .03em; color: var(--ink-2); background: var(--sunk); border-radius: 999px; padding: 3px 10px; }
.ht-tag.time { color: var(--accent); background: var(--accent-soft); }

/* home */
.ht-hero { padding-block: 6px 10px; }
.ht-journey { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); counter-reset: j; }
.ht-journey li { position: relative; margin: 0; padding: 0 6px; text-align: center; counter-increment: j; }
.ht-journey li::before { content: counter(j); display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 .95rem var(--font-display); position: relative; z-index: 1; }
.ht-journey li::after { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.ht-journey li:last-child::after { display: none; }
.ht-journey a { font-weight: 650; text-decoration: none; color: var(--ink) !important; display: block; line-height: 1.3; }
.ht-journey a:hover { color: var(--accent) !important; }
.ht-journey small { color: var(--muted); font-size: .8rem; display: block; margin-top: 2px; }
.ht-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.ht-card, .ht-rule { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink) !important; }
.ht-card:hover, .ht-rule:hover { border-color: var(--accent); }
.ht-card b, .ht-rule b { font: 650 1.02rem var(--font-display); }
.ht-card span, .ht-rule span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.ht-card em, .ht-rule em { font-style: normal; font: 600 .74rem var(--font); color: var(--accent); letter-spacing: .03em; margin-top: auto; padding-top: 6px; }

/* guides */
.howto ol.steps { list-style: none; padding: 0; counter-reset: s; margin: 14px 0; }
.howto ol.steps > li { counter-increment: s; position: relative; padding: 0 0 16px 50px; margin: 0; max-width: none; }
.howto ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 .95rem var(--font-display); display: grid; place-items: center; }
.howto ol.steps > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.howto ol.steps > li:last-child::after { display: none; }
.howto ol.steps > li > b:first-child { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.howto .note { border-radius: 10px; padding: 12px 16px; margin: 14px 0; max-width: 78ch; border-left: 4px solid; }
.howto .note p { margin: 0; }
.howto .note p + p { margin-top: .4rem; }
.howto .note.tip { background: var(--tip-bg); border-color: var(--tip); }
.howto .note.warn { background: var(--warn-bg); border-color: var(--warn); }
.howto .note.ok { background: var(--ok-bg); border-color: var(--ok); }
.howto .note strong:first-child { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.howto .note.tip strong:first-child { color: var(--tip); }
.howto .note.warn strong:first-child { color: var(--warn); }
.howto .note.ok strong:first-child { color: var(--ok); }
.howto .back { font-size: .85rem; margin-bottom: 0; }

/* what counts (1.61.9, Empower): the scorecard's "what is in and what is out" guides, word for word */
.ht-main .em-guide-body { margin-top: 4px; }
.ht-main .em-guide-body h3 { color: var(--accent-strong); font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.ht-main .em-guide-body h4 { font-size: 1rem; margin: 1.1rem 0 .35rem; }
.ht-main .em-guide-body h4 small { font-weight: 400; color: var(--muted); }
.ht-main .em-guide-body .small { font-size: .86rem; }
.ht-main .em-guide-body .muted { color: var(--muted); }
.ht-main .em-guide-lead { font-size: 1.02rem; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; max-width: none; }
.ht-main .em-guide-scroll { overflow-x: auto; margin: 8px 0 12px; }
.ht-main .em-guide-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ht-main .em-guide-body th { text-align: left; font: 700 .72rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ht-main .em-guide-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ht-main .em-guide-body td:first-child { font-weight: 600; min-width: 150px; }
.ht-main .em-guide-body .num { text-align: right; min-width: 96px; }
.ht-main .em-guide-body table.em-guide-cat td:first-child { min-width: 0; text-align: center; }
.ht-main .em-guide-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; font-weight: 600; }
.ht-main .em-guide-src { font-size: .8rem; color: var(--muted); font-style: italic; }
.ht-main .em-guide-grey dt { font-weight: 600; margin-top: 10px; }
.ht-main .em-guide-grey dd { margin: 2px 0 0; max-width: 72ch; }
.ht-main .em-guide-list li { margin: 4px 0; }
.ht-main .em-guide-list.src { font-size: .88rem; color: var(--muted); }
@media (max-width: 600px) {
  .ht-main .em-guide-body thead { display: none; }
  .ht-main .em-guide-body table, .ht-main .em-guide-body tbody, .ht-main .em-guide-body tr, .ht-main .em-guide-body td { display: block; }
  .ht-main .em-guide-body tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ht-main .em-guide-body td { border: 0; padding: 2px 0; min-width: 0; }
  .ht-main .em-guide-body td:first-child { min-width: 0; text-align: left; }
  .ht-main .em-guide-body td.num { text-align: left; min-width: 0; }
  .ht-main .em-guide-body td:not(:first-child)::before { content: attr(data-label); display: block; font: 700 .68rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
}

/* quick how-to */
.ht-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ht-quick article { margin: 0 !important; padding: 18px 20px 14px !important; }
.ht-quick h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ht-quick ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.ht-quick p { font-size: .92rem; color: var(--ink-2); margin: .5rem 0 0; }
.ht-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding-block: 22px; margin-top: 30px; }
/* The shared legal bar every page ends with (FooterTests) - here without learn.css, so its few rules again. */
footer.site-foot { background: #0b3b37; color: rgba(255,255,255,.78); padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .86rem; margin-top: 40px; }
footer.site-foot .wrap { max-width: 1320px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.site-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-legal a { color: #fff; text-decoration: none; }
.site-legal a:hover { text-decoration: underline; }
@media (max-width: 520px) { .site-legal { flex-direction: column; align-items: flex-start; } }

@media (max-width: 1000px) {
  .ht-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ht-wrap > .ht-toc { display: none; }
  .ht-toc-mobile { display: block; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
  .ht-toc-mobile summary { cursor: pointer; font-weight: 650; padding: 10px 0; }
  .ht-toc-mobile .ht-toc { position: static; max-height: none; padding-block: 0 12px; }
  .ht-journey { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ht-journey li { text-align: left; padding-left: 50px; min-height: 36px; }
  .ht-journey li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .ht-journey li::after { left: 17px; top: 38px; width: 2px; height: calc(100% - 28px); }
  .ht-parts { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 560px) {
  .ht-main article { padding: 20px 18px 16px; }
  .howto ol.steps > li { padding-left: 44px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
