/* ============================================================
   M365Assessments Help Center (/help): loaded after styles.css.
   Mobile-first; reuses the design tokens (and dark mode) from styles.css.
   No inline styles anywhere (CSP style-src 'self').
   ============================================================ */

/* ---------- Hero + search ----------
   Own hero class (not .page-hero) so phone-only helpers in main.js that key off
   .page-hero (sticky "Start free" bar) stay out of the Help Center. */
.help-hero {
  position: relative;
  background: linear-gradient(160deg, var(--purple-950), var(--purple-900) 45%, var(--purple-700));
  color: #E6DDF8;
  padding: 36px 0 34px;
  text-align: left;
  isolation: isolate;
  z-index: 2; /* above later cards so the search dropdown isn't covered */
}
/* Decorations are clipped in their own layer so the search dropdown can overflow the hero. */
.help-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.help-hero-bg .bg-grid, .help-hero-bg .glow { z-index: 0; }
.help-hero .container { max-width: 880px; }
.help-hero h1 { color: #fff; font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 .35em; }
.help-hero p { color: #D6C9F2; margin: 0; max-width: 640px; font-size: 1rem; }
.help-hero a:not(.btn) { color: var(--gold); font-weight: 700; }
.help-hero a:not(.btn):hover { color: #FDE7B0; }
.help-hero .eyebrow { margin-bottom: .5rem; }
.help-hero--compact { padding: 26px 0 26px; }
.help-hero--compact h1 { font-size: clamp(1.55rem, 5vw, 2.3rem); }
@media (min-width: 720px) {
  .help-hero { padding: 64px 0 56px; text-align: center; }
  .help-hero p { margin: 0 auto; font-size: 1.12rem; }
  .help-hero--compact { padding: 40px 0 36px; text-align: left; }
  .help-hero--compact .container { max-width: var(--maxw); }
  .help-hero--compact p { margin: 0; }
}

.hs { position: relative; margin-top: 22px; text-align: left; }
.hs-form { display: flex; gap: 8px; }
.hs-field { position: relative; flex: 1; min-width: 0; }
.hs-field svg {
  position: absolute; left: 14px; top: 50%; width: 20px; height: 20px;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.hs-input {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hs-input::placeholder { color: var(--muted); }
.hs-input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px var(--tint-2); }
.hs-input::-webkit-search-cancel-button { cursor: pointer; }
.help-hero .hs-input { border-color: transparent; box-shadow: var(--shadow-lg); }
.help-hero .hs-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 184, 65, .35), var(--shadow-lg); }
.hs-submit { flex: 0 0 auto; height: 52px; padding: 0 20px; border-radius: 12px; }
.hs--compact { margin-top: 0; }
.hs--compact .hs-input, .hs--compact .hs-submit { height: 44px; font-size: .95rem; }
.hs--compact .hs-submit { display: none; }
@media (min-width: 560px) { .hs--compact .hs-submit { display: inline-flex; } }

.hs-results {
  position: absolute;
  z-index: 50;
  left: 0; right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-height: min(70vh, 460px);
  overflow-y: auto;
  text-align: left;
}
.hs-results[hidden] { display: none; }
.hs-result a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--body);
}
.hs-result a:hover, .hs-result.is-active a { background: var(--tint); color: var(--body); }
.hs-result.is-active a { box-shadow: inset 0 0 0 2px var(--purple-300); }
.hs-title { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.hs-meta { display: block; font-size: .78rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.hs-snippet { display: block; font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.hs-result mark { background: rgba(245, 184, 65, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.hs-empty { padding: 12px; font-size: .95rem; color: var(--muted); }
.hs-empty a { font-weight: 700; }
.hs-hint { margin: 10px 0 0; font-size: .86rem; color: #CDBFEB; }
.hs-hint a { font-weight: 700; }
.hs-hint kbd, .help-kbd {
  font-family: var(--mono); font-size: .78rem; padding: 1px 6px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.35); color: #fff;
}
.help-hero .hs-hint { text-align: left; }
@media (min-width: 720px) { .help-hero:not(.help-hero--compact) .hs-hint { text-align: center; } }

/* Sub-bar with breadcrumbs + compact search (category and article pages) */
.help-bar { position: relative; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.help-bar-in { display: grid; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 900px) { .help-bar-in { grid-template-columns: 1fr minmax(280px, 380px); align-items: center; gap: 24px; } }
.help-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; }
.help-crumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.help-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--line-strong); font-weight: 700; }
.help-crumbs a { color: var(--accent-text); font-weight: 600; }
.help-crumbs [aria-current="page"] { color: var(--muted); font-weight: 600; }

/* ---------- Landing + category grids ---------- */
.help-section { padding: 40px 0; }
.help-section--alt { background: var(--bg-alt); }
@media (min-width: 720px) { .help-section { padding: 64px 0; } }
.help-section h2 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); }
.help-section .lead { font-size: 1.02rem; }

.help-cats { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .help-cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .help-cats { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.help-cat { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.help-cat .icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.help-cat .icon svg { width: 22px; height: 22px; }
.help-cat h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.help-cat h3 a { color: var(--ink); }
.help-cat h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.help-cat h3 a:focus-visible { outline: none; }
.help-cat:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.help-cat p { margin-bottom: .6rem; }
.help-cat .count { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--accent-text); }
.help-cat:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); }

.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 800px) { .help-list--2 { grid-template-columns: repeat(2, 1fr); gap: 12px 18px; } }
.help-list a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--body);
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.help-list a:hover { border-color: var(--purple-300); box-shadow: var(--shadow-sm); color: var(--body); }
.help-list svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; color: var(--accent-text); }
.help-list b { display: block; color: var(--ink); line-height: 1.35; }
.help-list span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.help-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; justify-content: flex-start; }
@media (min-width: 720px) { .help-hero:not(.help-hero--compact) .help-chips { justify-content: center; } }
.help-chips a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #EDE7FB !important; font-size: .86rem; font-weight: 600 !important;
}
.help-chips a:hover { background: rgba(255,255,255,.16); color: #fff !important; }

/* Contact band */
.help-contact {
  display: grid; gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--tint);
  border: 1px solid var(--line);
}
.help-contact h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.help-contact p { margin: 0; color: var(--muted); }
.help-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-contact-actions .btn { white-space: normal; }
@media (min-width: 800px) { .help-contact { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }

/* ---------- Article layout ---------- */
.help-layout { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.help-layout > * { min-width: 0; }
@media (min-width: 1000px) {
  .help-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; padding-top: 44px; padding-bottom: 72px; }
  .help-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.help-article { max-width: 760px; font-size: 1rem; }
@media (min-width: 720px) { .help-article { font-size: 1.04rem; } }
.help-article h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin-bottom: .35em; }
.help-article h2 { font-size: clamp(1.25rem, 3.4vw, 1.5rem); margin: 2.2rem 0 .7rem; }
.help-article h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.help-article p, .help-article li { color: var(--body); }
.help-article ul, .help-article ol { padding-left: 1.3rem; }
.help-article li { margin-bottom: .4rem; }
.help-article li > ul, .help-article li > ol { margin-top: .4rem; }
.help-article code { background: var(--tint); color: var(--accent-strong); padding: 2px 6px; border-radius: 6px; word-break: break-word; }
.help-article a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.help-article .eyebrow { margin-bottom: .4rem; }
.help-summary { font-size: 1.1rem; color: var(--muted) !important; margin-bottom: 1.1rem; }

.help-who {
  display: grid; gap: 10px 18px; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.5rem; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
@media (min-width: 560px) { .help-who { grid-template-columns: repeat(3, auto); justify-content: start; } }
.help-who div { min-width: 0; }
.help-who div:first-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .help-who div:first-child { grid-column: auto; } }
.help-who dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.help-who dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--ink); }
.hbadge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.35;
}
.hbadge--role { background: var(--tint-2); color: var(--accent-strong); }
.hbadge--plan { background: var(--low-bg); color: var(--low); }
.hbadge--warn { background: var(--med-bg); color: var(--med); }

/* Numbered steps */
.help-steps { list-style: none; padding: 0 !important; margin: 0 0 1.2rem; counter-reset: hstep; }
.help-steps > li { position: relative; padding: 0 0 18px 46px; margin: 0; }
.help-steps > li::before {
  counter-increment: hstep; content: counter(hstep);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple-700); color: #fff; font-weight: 800; font-size: .9rem;
}
.help-steps > li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.help-steps > li:last-child { padding-bottom: 4px; }
.help-steps > li:last-child::after { display: none; }
.help-steps > li > p:first-child { padding-top: 3px; }
.help-steps > li > :last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) { .help-steps > li::before { background: var(--purple-500); } }

.help-checks { list-style: none; padding: 0 !important; margin: 0 0 1rem; }
.help-checks li { position: relative; padding-left: 28px; margin-bottom: .5rem; }
.help-checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 4px;
  border: 2px solid var(--purple-400);
}

/* Callouts */
.hcallout {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 1.2rem 0; padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--surface);
}
.hcallout > svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.hcallout > div { min-width: 0; }
.hcallout p { margin: 0; }
.hcallout p + p, .hcallout p + ul, .hcallout ul + p { margin-top: .45rem; }
.hcallout ul { margin: .4rem 0 0; }
.hcallout-label { font-weight: 800; color: var(--ink); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.hcallout--tip { border-left-color: var(--teal); background: var(--low-bg); }
.hcallout--tip > svg { color: var(--low); }
.hcallout--warn { border-left-color: var(--gold-dark); background: var(--med-bg); }
.hcallout--warn > svg { color: var(--med); }
.hcallout--sec { border-left-color: var(--purple-500); background: var(--tint); }
.hcallout--sec > svg { color: var(--accent-strong); }
.hcallout--info { border-left-color: var(--line-strong); }
.hcallout--info > svg { color: var(--accent-text); }

/* Code blocks */
.help-code { position: relative; margin: .8rem 0 1.2rem; }
.help-code pre {
  margin: 0; padding: 14px 16px; overflow-x: auto;
  background: #160C2B; color: #EDE7FB;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .8rem; line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
.help-code pre code { background: none; color: inherit; padding: 0; word-break: normal; white-space: pre; }
.help-code-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.help-copy {
  position: absolute; top: 34px; right: 8px;
  font-family: inherit; font-weight: 700; font-size: .78rem;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: rgba(22,12,43,.85); color: #EDE7FB;
}
.help-copy:hover { background: #2E1065; }
.help-copy[hidden] { display: none; }

/* Tables */
.help-article .table-wrap { margin: .8rem 0 1.4rem; box-shadow: none; }
.help-article .table { font-size: .9rem; }
.help-article .table th, .help-article .table td { padding: 10px 12px; }
.help-article .table td code, .help-article .table th code { white-space: normal; word-break: break-word; }
.help-article .table thead th { font-size: .74rem; }

/* Collapsible (troubleshooting, long reference) */
.help-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.help-faq details[open] { border-color: var(--purple-300); }
.help-faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; font-weight: 700; color: var(--ink); border-radius: var(--radius-sm);
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after {
  content: ""; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform var(--transition);
}
.help-faq details[open] > summary::after { transform: rotate(45deg); }
.help-faq details > div { padding: 0 16px 14px; }
.help-faq details > div > :last-child { margin-bottom: 0; }

/* What happens next */
.help-next { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.help-next > :last-child { margin-bottom: 0; }

/* Related + updated */
.help-related ul { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.help-related a { font-weight: 700; text-decoration: none !important; }
.help-related a::before { content: "\2192"; margin-right: 8px; color: var(--accent-text); }
.help-updated { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted) !important; }

/* Sidebar */
.help-side { font-size: .93rem; }
.help-side h2 { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.help-side ul { list-style: none; margin: 0 0 22px; padding: 0; }
.help-side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--body); font-weight: 600; line-height: 1.35; }
.help-side a:hover { background: var(--tint); color: var(--accent-strong); }
.help-side a[aria-current="page"] { background: var(--tint-2); color: var(--accent-strong); }
.help-side .help-toc a { font-weight: 500; color: var(--muted); }
.help-side-block { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 18px; }
.help-side-block > :last-child { margin-bottom: 0; }
.help-side-block a { display: inline; padding: 0; color: var(--accent-text); }
.help-side-block a:hover { background: none; text-decoration: underline; }
@media (max-width: 999px) { .help-side .help-toc { display: none; } }

/* Category page article list */
.help-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.help-cat-list a {
  display: block; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--body);
}
.help-cat-list a:hover { border-color: var(--purple-300); box-shadow: var(--shadow-sm); color: var(--body); }
.help-cat-list b { display: block; color: var(--ink); font-size: 1.05rem; }
.help-cat-list span { display: block; color: var(--muted); font-size: .94rem; margin-top: 3px; }
.help-cat-list .hbadge { display: inline-flex; margin-top: 8px; font-size: .78rem; color: var(--accent-strong); }

/* ---------- Illustrative UI mocks (never screenshots) ---------- */
.hmock-fig { margin: 1.2rem 0 1.4rem; }
.hmock-fig figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.hmock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body);
  max-width: 560px;
}
.hmock--wide { max-width: none; }
.hmock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hmock-head b { display: block; color: var(--ink); font-size: 14.5px; }
.hmock-head small { display: block; color: var(--muted); font-size: 12px; }
.hmock-body { padding: 14px 16px; display: grid; gap: 12px; }
.hmock-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.hmock-field span { display: block; font-weight: 600; color: var(--ink); font-size: 12.5px; margin-bottom: 4px; }
.hmock-field span i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.hmock-input { display: block; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 12.5px; background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmock-hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.hmock-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 12px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); white-space: nowrap; }
.hmock-btn--primary { background: var(--purple-600); border-color: var(--purple-600); color: #fff; }
.hmock-btn--danger { color: var(--high); border-color: transparent; background: transparent; }
.hmock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.hmock-row:first-child { border-top: 0; }
.hmock-row > div { min-width: 0; }
.hmock-row b { color: var(--ink); font-size: 13px; }
.hmock-row small { display: block; color: var(--muted); font-size: 11.5px; }
.hmock-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 4px; vertical-align: middle; }
.hmock-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hmock-badge--green { background: var(--pass-bg); color: var(--pass); }
.hmock-badge--amber { background: var(--med-bg); color: var(--med); }
.hmock-badge--blue { background: var(--tint-2); color: var(--accent-strong); }
.hmock-badge--red { background: var(--high-bg); color: var(--high); }
.hmock-badge--gray { background: var(--bg-alt); color: var(--muted); }
.hmock-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.hmock-check--on { border-color: var(--purple-300); background: var(--tint); }
.hmock-check--warn { border-color: rgba(217, 155, 39, .6); }
.hmock-box { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; border: 2px solid var(--line-strong); background: var(--surface); }
.hmock-check--on .hmock-box { background: var(--purple-600); border-color: var(--purple-600); }
.hmock-check b { color: var(--ink); }
.hmock-check small { display: block; color: var(--muted); font-size: 11.5px; }
.hmock-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 8px; background: var(--bg-alt); }
.hmock-seg span { text-align: center; padding: 5px; border-radius: 6px; font-weight: 600; font-size: 12px; color: var(--muted); }
.hmock-seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.hmock-note { padding: 9px 11px; border-radius: 8px; background: var(--tint); color: var(--accent-strong); font-size: 12.5px; }
.hmock-grid2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.hmock-steps { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.hmock-steps span { padding: 4px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-weight: 600; }
.hmock-steps .done { background: var(--pass-bg); color: var(--pass); }
.hmock-steps .now { background: var(--tint-2); color: var(--accent-strong); }
.hmock-file { display: flex; align-items: center; gap: 10px; }
.hmock-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.hmock-ico--html { background: var(--tint-2); color: var(--accent-strong); }
.hmock-ico--docx { background: rgba(37, 99, 235, .14); color: #2563EB; }
.hmock-ico--pptx { background: rgba(225, 29, 72, .14); color: #E11D48; }
@media (prefers-color-scheme: dark) { .hmock-ico--docx { color: #93C5FD; } .hmock-ico--pptx { color: #FDA4AF; } }

/* Report cover mock */
.hmock-cover { padding: 18px; background: linear-gradient(135deg, var(--purple-950), var(--purple-700)); color: #E6DDF8; }
.hmock-cover small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.hmock-cover b { display: block; color: #fff; font-size: 19px; margin: 4px 0 12px; }
.hmock-tally { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .hmock-tally { grid-template-columns: repeat(4, 1fr); } }
.hmock-tally span { display: block; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 11px; }
.hmock-tally strong { display: block; color: #fff; font-size: 17px; }
.hmock-tally .t-c::before, .hmock-tally .t-w::before, .hmock-tally .t-i::before, .hmock-tally .t-g::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.hmock-tally .t-c::before { background: #FB7185; }
.hmock-tally .t-w::before { background: #FBBF24; }
.hmock-tally .t-i::before { background: #38BDF8; }
.hmock-tally .t-g::before { background: #34D399; }
.hmock-timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .hmock-timeline { grid-template-columns: repeat(4, 1fr); } }
.hmock-timeline div { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); border-top-width: 3px; font-size: 11.5px; color: var(--muted); }
.hmock-timeline b { display: block; color: var(--ink); font-size: 12px; }
.hmock-timeline .s-c { border-top-color: #E11D48; }
.hmock-timeline .s-w { border-top-color: #D97706; }
.hmock-timeline .s-i { border-top-color: #0284C7; }
.hmock-timeline .s-u { border-top-color: var(--purple-500); }

/* Severity legend used in articles */
.sevs { display: grid; gap: 10px; margin: .8rem 0 1.2rem; padding: 0 !important; list-style: none; }
.sevs li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; margin: 0; }
.sevs .sev { min-width: 0; justify-self: start; }
.sev-up { background: var(--tint-2); color: var(--accent-strong); }

/* Flow diagram (inline SVG, themed by CSS) */
.hflow { width: 100%; height: auto; display: block; }
.hflow .n { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.hflow .n--you { fill: var(--tint); stroke: var(--purple-400); }
.hflow .n--ms { fill: var(--surface-2); }
.hflow .t { fill: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 700; }
.hflow .s { fill: var(--muted); font-family: var(--font); font-size: 11px; font-weight: 500; }
.hflow .a { stroke: var(--purple-400); stroke-width: 2; fill: none; }
.hflow .ah { fill: var(--purple-400); }
.hflow-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hflow-wrap svg { min-width: 560px; }

/* Print: articles only */
@media print {
  .help-bar, .help-side, .help-contact, .hs, .help-copy { display: none !important; }
  .help-layout { display: block; padding: 0; }
  .help-faq details > div { display: block; }
}
