/* NARASOR Help Center: same tokens, cards and blue interaction system as the app (styles.css / tokens.css). */
.help-body { background: var(--bg); color: var(--ink); }
.help-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.help-top-inner { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-top-nav { display: flex; align-items: center; gap: 4px; }
.help-top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.help-top-nav a:hover { background: var(--blue-soft); color: var(--blue-deep); }
@media (max-width: 420px) { .help-top-nav a:last-child { display: none; } }

.help-main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 48px; overflow-wrap: anywhere; }
.help-article { max-width: 760px; }
.help-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 8px 0 0; max-width: 62ch; }

/* ---- hero + search */
.help-hero { margin: 0 calc(var(--gutter) * -1); padding: clamp(28px, 6vw, 56px) var(--gutter) clamp(24px, 4vw, 36px); background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 100%); }
.help-hero > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.help-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.12; margin: 0; text-wrap: balance; }
.help-hero .help-lead { margin-top: 12px; }
.help-search { display: flex; gap: 8px; margin-top: 20px; }
.help-search-input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 12px 16px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1); }
.help-search-btn { flex: none; white-space: nowrap; min-height: 52px; padding: 0 24px; border-radius: var(--r-pill); }
.help-search-compact { margin: 12px 0 8px; }
.help-search-compact .help-search-input, .help-search-compact .help-search-btn { min-height: 46px; }

/* ---- results */
.help-results-region:empty { display: none; }
.help-results-region { margin-top: 16px; }
.help-result-count { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.help-results { display: grid; gap: 8px; }
.help-result, .help-card, .help-tile { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); box-shadow: var(--sh-1); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.help-result:hover, .help-card:hover, .help-tile:hover { border-color: var(--blue); box-shadow: var(--sh-2); color: var(--ink); }
.help-result:focus-visible, .help-card:focus-visible, .help-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.help-result strong, .help-card strong, .help-tile strong { font-size: 16px; line-height: 1.3; }
.help-result-cat { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--blue-deep); }
.help-result-snip, .help-card span, .help-tile span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.help-tile em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--blue-deep); }
.help-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }

/* ---- home sections */
.help-audiences { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) { .help-audiences { grid-template-columns: 1fr 1fr; gap: 20px; } }
.help-audience { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 10px; }
.help-audience.is-customer { border-top: 4px solid var(--blue); }
.help-audience.is-professional { border-top: 4px solid var(--ink); }
.help-audience h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.help-audience h2 a { color: inherit; text-decoration: none; }
.help-audience p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.help-more { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14.5px; color: var(--blue-deep); text-decoration: none; }
.help-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.help-shared, .help-popular { margin-top: 36px; }
.help-shared h2, .help-popular h2, .help-related h2, .help-othercats h2 { font-size: 18px; letter-spacing: -0.015em; margin: 0 0 12px; }
.help-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .help-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .help-tiles { grid-template-columns: repeat(4, 1fr); } }
.help-list { display: grid; gap: 2px; }
.help-list a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.help-list a:hover { color: var(--blue-deep); }
.help-list-wide { grid-template-columns: 1fr; }
@media (min-width: 760px) { .help-list-wide { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---- category + article */
.help-crumbs { padding-top: 14px; font-size: 13.5px; }
.help-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.help-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--faint); }
.help-crumbs a { color: var(--blue-deep); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.help-crumbs a:hover { text-decoration: underline; }
.help-page-title { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0 6px; text-wrap: balance; }
.help-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
@media (min-width: 760px) { .help-cards { grid-template-columns: 1fr 1fr; gap: 12px; } }
.help-answer { font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 14px 16px; margin: 14px 0 20px; }
.help-body-copy { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.help-body-copy h2 { font-size: 19px; letter-spacing: -0.015em; margin: 26px 0 8px; color: var(--ink); }
.help-body-copy p { margin: 12px 0; }
.help-steps, .help-bullets { padding-left: 1.4rem; margin: 12px 0; }
.help-steps { list-style: decimal; } .help-bullets { list-style: disc; }
.help-steps li, .help-bullets li { margin-bottom: 8px; padding-left: 4px; }
.help-steps li::marker { font-weight: 700; color: var(--blue-deep); }
.help-note { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; }
.help-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; list-style: none; }
.help-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--blue-deep); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.help-links a:hover { border-color: var(--blue); background: var(--blue-soft); }
.help-related { margin-top: 32px; padding-top: 8px; }
.help-othercats { margin-top: 32px; }
.help-othercats ul { display: flex; flex-wrap: wrap; gap: 8px; }
.help-othercats a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.help-othercats a:hover { border-color: var(--blue); color: var(--blue-deep); }
.help-back { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; }

/* ---- escalation */
.help-escalation { margin-top: 40px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.help-escalation h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; }
.help-escalation p { margin: 6px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.help-esc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.help-esc-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: var(--r-md); text-decoration: none; font-weight: 700; }
.help-escalation.is-compact { padding: 18px; }
.help-footer { max-width: 1120px; padding-left: var(--gutter); padding-right: var(--gutter); }

@media (prefers-reduced-motion: reduce) { .help-result, .help-card, .help-tile { transition: none; } }
.help-mail { color: var(--blue-deep); text-underline-offset: 3px; }
.help-body-copy a.help-mail { text-decoration: underline; }

/* ---- Help article v2: a calm card, one short answer, sections that explain themselves (bars, ladders, checks) ---- */
.help-article { max-width: 820px; }
.help-article-card { margin-top: 10px; }
.help-article-head { margin: 8px 0 0; }
.help-kicker { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.help-article .help-page-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.1; margin: 14px 0 18px; }
.help-article .help-answer { position: relative; display: block; margin: 0 0 18px; padding: 20px 22px 20px 24px; border: 0; border-radius: 20px; background: linear-gradient(135deg, #EAF3FF 0%, #F4F0FF 100%); box-shadow: inset 0 0 0 1px rgba(10, 122, 255, .16); color: var(--ink); }
.help-answer-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); }
.help-article .help-answer p { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 500; }
.help-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; }
.help-toc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.help-toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.help-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.help-toc a:hover { border-color: var(--blue); color: var(--blue-deep); }
.help-article .help-body-copy { margin-top: 12px; font-size: 16.5px; line-height: 1.65; }
.help-sec { margin: 18px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); scroll-margin-top: 84px; }
.help-sec > h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.help-checks, .help-steps, .help-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.help-checks li { display: flex; align-items: flex-start; gap: 12px; }
.help-check { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7AFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 14px no-repeat; }
.help-steps { counter-reset: hs; }
.help-steps li { position: relative; padding-left: 44px; min-height: 32px; display: flex; align-items: center; }
.help-steps li::before { counter-increment: hs; content: counter(hs); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.help-article .help-note { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.help-note-ic { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; font-style: italic; font-family: Georgia, serif; }
.help-article .help-body-copy > p { margin: 14px 4px; }

/* score bar */
.help-scale-total { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.help-scale-total strong { font-size: 28px; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
.help-scale-bar { display: block; width: 100%; height: 18px; border-radius: 9px; background: var(--surface-2); }
.help-seg-1 { fill: #0A7AFF; } .help-seg-2 { fill: #6C5CE7; } .help-seg-3 { fill: #19B58A; }
.help-scale-legend { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.help-scale-legend li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border-left: 5px solid currentColor; }
.help-scale-legend li.help-seg-1 { color: #0A7AFF; } .help-scale-legend li.help-seg-2 { color: #6C5CE7; } .help-scale-legend li.help-seg-3 { color: #19B58A; }
.help-scale-value { grid-row: 1 / 3; align-self: center; min-width: 74px; font-size: 13px; color: var(--muted); }
.help-scale-value strong { display: block; font-size: 26px; letter-spacing: -0.03em; color: currentColor; line-height: 1; }
.help-scale-label { font-weight: 700; color: var(--ink); font-size: 16px; }
.help-scale-detail { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* league ladder */
.help-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.help-tier { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; border-radius: 18px; background: var(--surface-2); border-top: 5px solid var(--faint); }
.help-tier-step { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 700; color: var(--faint); }
.help-tier-name { font-size: 17px; letter-spacing: -0.01em; }
.help-tier-threshold { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.help-tier-detail { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.help-tier-bronze { border-top-color: #B77B4A; } .help-tier-bronze .help-tier-threshold { color: #8F5C2E; }
.help-tier-silver { border-top-color: #8896AE; } .help-tier-silver .help-tier-threshold { color: #566580; }
.help-tier-gold { border-top-color: #D9A21B; } .help-tier-gold .help-tier-threshold { color: #8A6008; }
.help-tier-platinum { border-top-color: #4DB6D6; } .help-tier-platinum .help-tier-threshold { color: #1F6F8B; }
@media (max-width: 720px) { .help-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-sec { padding: 18px; } }
@media (max-width: 420px) { .help-ladder { grid-template-columns: 1fr; } }

.help-more-search { margin-top: 28px; }
.help-more-search h2 { font-size: 18px; letter-spacing: -0.015em; margin: 0 0 6px; }
.help-related { margin-top: 28px; }

/* the shared shell colours every link blue; a primary button keeps white text (was unreadable on the help escalation card) */
.ps-body a.btn-primary, .ps-body a.btn-primary:hover { color: #fff; text-decoration: none; }
.help-related .help-list a { min-height: 52px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; font-weight: 600; }
.help-related .help-list { gap: 0; }
