/* WB_LEARNING_V1: contextual help and daily RNP reading tools. */
.wbl-help-page { margin: 0; background: #f6f7fb; color: #20243a; font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wbl-help-page * { box-sizing: border-box; }
.wbl-help-page [hidden] { display: none !important; }
.wbl-help-page a { color: #554ad7; }
.wbl-help-header { background: #fff; border-bottom: 1px solid #e8e9f0; }
.wbl-help-header-inner { max-width: 1080px; min-height: 64px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wbl-brand { color: #20243a !important; font-size: 18px; font-weight: 600; text-decoration: none; letter-spacing: -.03em; }
.wbl-brand strong { color: #6557dc; }
.wbl-help-header nav { display: flex; flex-wrap: wrap; gap: 20px; }
.wbl-help-header nav a { color: #555b71; text-decoration: none; font-size: 13px; font-weight: 600; }
.wbl-help-header nav a:hover, .wbl-help-article a:hover { text-decoration: underline; }
.wbl-help-main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 80px; }
.wbl-help-hero { max-width: 680px; }
.wbl-eyebrow { color: #6659d5; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.wbl-help-hero h1 { margin: 10px 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.04em; }
.wbl-help-hero p { margin: 0 0 27px; color: #626a7c; font-size: 16px; }
.wbl-help-search-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
#wbl-help-search { display: block; width: 100%; height: 48px; padding: 0 16px; border: 1px solid #d8dbea; border-radius: 12px; background: #fff; color: #20243a; font: inherit; box-shadow: 0 5px 18px rgba(36, 43, 76, .04); }
#wbl-help-search:focus { outline: 3px solid rgba(101, 87, 220, .18); border-color: #7667dd; }
.wbl-help-search-hint { display: block; margin-top: 7px; color: #858a99; font-size: 12px; }
.wbl-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px 0 52px; }
.wbl-help-card { min-height: 180px; padding: 20px; display: flex; flex-direction: column; gap: 8px; border: 1px solid #e8e9f0; border-radius: 16px; background: #fff; color: #252940 !important; text-decoration: none; box-shadow: 0 5px 18px rgba(37, 42, 74, .025); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.wbl-help-card:hover { transform: translateY(-2px); border-color: #cfcaf3; box-shadow: 0 12px 26px rgba(37, 42, 74, .08); }
.wbl-help-card-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #f1efff; color: #6254db; font-size: 11px; font-weight: 800; }
.wbl-help-card strong { font-size: 16px; }
.wbl-help-card > span:nth-of-type(2) { color: #6b7080; font-size: 13px; line-height: 1.45; }
.wbl-help-card b { margin-top: auto; color: #6557dc; font-size: 12px; }
.wbl-help-empty { padding: 24px; border: 1px dashed #ccd0df; border-radius: 12px; color: #666d7e; }
.wbl-help-articles { display: grid; gap: 16px; }
.wbl-help-article { scroll-margin-top: 24px; padding: 28px 32px; border: 1px solid #e8e9f0; border-radius: 16px; background: #fff; }
.wbl-help-article h2 { margin: 7px 0 12px; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.wbl-help-article p { max-width: 850px; color: #4e5669; }
.wbl-help-article ol { padding-left: 22px; color: #4e5669; }
.wbl-help-article li + li { margin-top: 8px; }
.wbl-help-article a { display: inline-block; margin-top: 4px; font-weight: 700; text-decoration: none; }
.wbl-nav-link { margin-top: 8px; }
.wbl-nav-link .nav-icon { display: inline-flex; align-items: center; justify-content: center; color: inherit; font-size: 17px; font-weight: 750; }
.wbl-rnp-pending .rnp-card { visibility: hidden; }
.rnp-card > .wbl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid #e5e3f1; border-radius: 0; background: #fff; }
.wbl-toolbar-main, .wbl-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wbl-toolbar-actions { margin-left: auto; }
.wbl-toolbar-label { margin-right: 2px; color: #64687a; font-size: 12px; font-weight: 700; }
.wbl-preset { min-height: 32px; padding: 5px 10px; border: 1px solid #e2e1ed; border-radius: 9px; background: #f8f8fc; color: #555b6c; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.wbl-preset:hover { border-color: #bab4eb; }
.wbl-preset[aria-pressed="true"] { border-color: #897df0; background: #f0eeff; color: #4f41be; }
.wbl-metric-search { width: min(240px, 100%); min-height: 33px; padding: 5px 10px; border: 1px solid #dedfeb; border-radius: 9px; background: #fff; color: #293047; font: inherit; font-size: 12px; }
.wbl-metric-search:focus { border-color: #8072e9; outline: 3px solid rgba(101, 87, 220, .13); }
.topbar > .wbl-guide-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin-left: auto; margin-right: 12px; padding: 5px 10px; border: 1px solid #dedbea; border-radius: 9px; background: #fff; color: #594dc7; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.topbar > .wbl-guide-btn:hover { border-color: #8e81e9; background: #f8f6ff; }
.wbl-guide-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #f0edff; color: #5d4dcf; font-size: 11px; font-weight: 800; }
.wbl-metric-hidden { display: none !important; }
.wbl-plot { margin-left: 6px; padding: 2px 5px; border: 0; border-radius: 5px; background: transparent; color: #6d60da; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; vertical-align: middle; }
.wbl-plot:hover, .wbl-plot:focus-visible { background: #efedff; outline: none; }
.wbl-modal-backdrop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; background: rgba(25, 29, 49, .54); }
.wbl-modal { width: min(790px, 100%); max-height: min(90vh, 780px); overflow: auto; padding: 24px; border-radius: 18px; background: #fff; color: #262a3d; box-shadow: 0 24px 75px rgba(18, 22, 44, .25); font: 13px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wbl-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wbl-modal-eyebrow { color: #6f61d6; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.wbl-modal h2 { margin: 3px 0 2px; font-size: 22px; line-height: 1.25; }
.wbl-modal-subtitle { margin: 0; color: #73798b; }
.wbl-close { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 7px; background: #f5f5fa; color: #535a6e; font-size: 20px; cursor: pointer; }
.wbl-close:hover { background: #eeeafb; color: #5143c4; }
.wbl-chart-wrap { margin-top: 22px; padding: 10px 8px 0; border: 1px solid #eef0f5; border-radius: 12px; background: #fcfcff; overflow-x: auto; }
.wbl-chart { display: block; width: 100%; min-width: 520px; height: auto; }
.wbl-chart-grid { stroke: #e8eaf2; stroke-width: 1; }
.wbl-chart-line { fill: none; stroke: #695bdf; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wbl-chart-dot { fill: #fff; stroke: #695bdf; stroke-width: 2; }
.wbl-chart-label { fill: #858a99; font-size: 11px; }
.wbl-chart-empty { padding: 72px 20px; color: #73798b; text-align: center; }
.wbl-chart-note { margin: 12px 0 0; color: #73798b; font-size: 12px; }
.wbl-tour-blocker { position: fixed; inset: 0; z-index: 2147483001; }
.wbl-tour-spotlight { position: fixed; z-index: 2147483002; border: 2px solid #8d80f2; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(20, 23, 41, .54), 0 0 0 5px rgba(141, 128, 242, .22); pointer-events: none; }
.wbl-tour-card { position: fixed; z-index: 2147483003; width: min(340px, calc(100vw - 28px)); padding: 17px; border-radius: 15px; background: #fff; color: #252941; box-shadow: 0 24px 70px rgba(20, 23, 41, .24); font: 13px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wbl-tour-card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.wbl-tour-card small { color: #6a5cde; font-size: 11px; font-weight: 800; }
.wbl-tour-card h2 { margin: 4px 0 7px; font-size: 17px; line-height: 1.25; }
.wbl-tour-card p { margin: 0 0 12px; color: #656b7c; }
.wbl-tour-card a { color: #6254d1; font-weight: 700; text-decoration: none; }
.wbl-tour-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.wbl-tour-card-actions button { min-height: 32px; padding: 5px 11px; border: 1px solid #e0deea; border-radius: 8px; background: #fff; color: #585e71; font: inherit; font-weight: 650; cursor: pointer; }
.wbl-tour-card-actions button:last-child { border-color: #6555db; background: #6555db; color: #fff; }
.wbl-tour-card-actions button:hover { filter: brightness(.97); }
.wbl-tour-card-actions button:focus-visible, .wbl-close:focus-visible, .wbl-plot:focus-visible, .wbl-nav-link:focus-visible { outline: 3px solid rgba(101, 87, 220, .3); outline-offset: 2px; }
@media (max-width: 800px) { .wbl-help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rnp-card > .wbl-toolbar { align-items: stretch; } .wbl-toolbar-actions { width: 100%; } .wbl-metric-search { width: 100%; } .topbar > .wbl-guide-btn .wbl-guide-text { display: none; } .topbar > .wbl-guide-btn { padding: 5px 8px; } }
@media (max-width: 560px) { .wbl-help-main { max-width: 100%; padding: 32px 16px 64px; overflow-x: hidden; } .wbl-help-hero { min-width: 0; } .wbl-help-hero h1 { overflow-wrap: anywhere; } .wbl-help-grid { grid-template-columns: 1fr; margin-bottom: 32px; } .wbl-help-article { padding: 22px 18px; } .wbl-help-header-inner { min-width: 0; padding: 0 16px; gap: 12px; } .wbl-help-header nav { flex: 0 0 auto; gap: 10px; } .wbl-help-header nav a { font-size: 11px; white-space: nowrap; } .wbl-help-header nav a:not(:first-child) { display: none; } .wbl-modal { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .wbl-help-card { transition: none; } }
