/* SchoolPro help pages, DismissPro look (Noah 2026-11-06). Each app sets --hp (brand), --hp-soft (light brand) on .sp-help. */
.sp-help { --hp: #2563eb; --hp-soft: #eef4ff; --hp-border: #e2e8f0; --hp-gray: #64748b; --hp-text: #0f172a; color: var(--hp-text); line-height: 1.6; }
.sp-help *, .sp-help *::before, .sp-help *::after { box-sizing: border-box; }
.sp-help .help-hero { background: linear-gradient(180deg, var(--hp-soft) 0%, #fdfdfd 100%); border-bottom: 1px solid var(--hp-border); padding: 40px 20px 30px; text-align: center; }
.sp-help .help-hero h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.sp-help .help-hero > p { color: var(--hp-gray); font-size: 1.06rem; max-width: 660px; margin: 8px auto 0; }
.sp-help .quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px auto 0; max-width: 1100px; }   /* same width as the help text below (2026-11-07) */
.sp-help .quick-links a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; background: #fff; border: 1px solid var(--hp-border); border-radius: 10px; padding: 12px 10px; font-weight: 700; color: var(--hp-text); text-decoration: none; }
.sp-help .quick-links a:hover { border-color: var(--hp); color: var(--hp); }
.sp-help .help-layout { max-width: 1140px; margin: 0 auto; padding: 30px 20px 60px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.sp-help .toc { position: sticky; top: var(--hp-top, 84px); align-self: start; max-height: calc(100vh - var(--hp-top, 84px) - 16px); overflow-y: auto; font-size: .92rem; }
.sp-help .toc-title { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-gray); margin-bottom: 10px; }
.sp-help .toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hp-border); }
.sp-help .toc li { margin: 0; }
.sp-help .toc a { display: block; padding: 5px 12px; color: #475569; text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.sp-help .toc a:hover { color: var(--hp); }
.sp-help .toc ol.toc-sub { border-left: 0; margin: 0 0 6px; }
.sp-help .toc ol.toc-sub a { padding: 3px 12px 3px 24px; font-size: .86rem; color: #64748b; }
.sp-help .toc a.is-current { color: var(--hp); border-left-color: var(--hp); font-weight: 700; }
.sp-help article { min-width: 0; }
.sp-help article > section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--hp-border); }
.sp-help article > section:last-child { border-bottom: none; }
.sp-help article h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.sp-help article h3 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 8px; }
.sp-help article ul, .sp-help article ol { padding-left: 1.3em; }
.sp-help article li { margin: 4px 0; }
.sp-help .role { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; vertical-align: 3px; margin-left: 6px; }
.sp-help .role-all { background: #e2f0d9; color: #1e7e34; }
.sp-help .role-admin { background: #fde8ea; color: #a71d2a; }
.sp-help .role-staff { background: #e7f1ff; color: #1d4ed8; }
.sp-help .role-parent { background: #fff4e0; color: #9a5b00; }
.sp-help .role-student { background: #f3e8ff; color: #6b21a8; }
.sp-help .tip, .sp-help .note, .sp-help .warn { border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: .97rem; }
.sp-help .tip { background: #e8f5ec; border-left: 4px solid #28a745; }
.sp-help .note { background: #e7f1ff; border-left: 4px solid #1d4ed8; }
.sp-help .warn { background: #fff4e0; border-left: 4px solid #f59e0b; }
.sp-help figure { margin: 14px 0 20px; }
.sp-help figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--hp-border); border-radius: 12px; box-shadow: 0 2px 10px rgba(15,23,42,.08); background: #fff; }
.sp-help figure.phone img, .sp-help .help-shot.phone img { max-width: 300px; }
.sp-help figcaption { font-size: .88rem; color: var(--hp-gray); margin-top: 6px; }
.sp-help .help-foot { color: var(--hp-gray); font-size: .92rem; }
/* phones: the side list becomes the pinned "Jump to a topic" menu (sp-help.js) */
@media (max-width: 899px) {
  .sp-help .help-layout { grid-template-columns: 1fr; gap: 0; padding: 16px 16px 50px; }
  .sp-help .toc { display: none; }
  .sp-help .help-hero { padding: 28px 16px 24px; }
  .sp-help .help-hero h1 { font-size: 1.7rem; }
  .sp-help article h2 { font-size: 1.35rem; }
  .sp-help .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-help .help-cards { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 900px) { .sp-help .hjump { display: none; } }
/* help home: one card per guide */
.sp-help .help-cards { max-width: 1140px; margin: 0 auto; padding: 26px 20px 50px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sp-help .help-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--hp-border); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--hp-text); box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.sp-help .help-card:hover { border-color: var(--hp); box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.sp-help .help-card-t { font-weight: 800; font-size: 1.08rem; }
.sp-help .help-card-d { color: var(--hp-gray); font-size: .95rem; }
.sp-help .help-back { margin-top: 12px; }
.sp-help .help-back a { font-weight: 700; }


/* How-to videos: Watch buttons and the videos page (2026-11-06) */
.hv-btn { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 6px; max-width: 100%; text-align: left; margin: 2px 0 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid #cfe0ff; background: var(--hp-soft, #eef4ff); color: var(--hp, #1d4ed8); font-weight: 700; font-size: .93rem; cursor: pointer; list-style: none; }
details.hv > summary::-webkit-details-marker { display: none; }
details.hv[open] > summary { margin-bottom: 10px; }
.hv-len { font-weight: 600; color: #64748b; font-size: .85rem; }
video.hv-phone { display: block; width: 100%; max-width: 330px; height: auto; border-radius: 14px; background: #0f172a; box-shadow: 0 4px 18px rgba(15, 23, 42, .18); }
video.hv-wide { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 12px; background: #0f172a; box-shadow: 0 4px 18px rgba(15, 23, 42, .18); }
.sp-help .hv-page { max-width: 1140px; margin: 0 auto; padding: 20px 20px 50px; }   /* 1100px inside, same as the buttons above (2026-11-07) */
@media (max-width: 899px) { .sp-help .hv-page { padding-left: 16px; padding-right: 16px; } }
.hv-group { margin-top: 22px; }
.hv-group h2 { font-size: 1.45rem; font-weight: 800; margin: 0 0 4px; }
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 10px 0 26px; }
.hv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hv-card h3 { margin: 0; font-size: 1.02rem; display: flex; gap: 10px; align-items: flex-start; }
.hv-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hp, #2563eb); color: #fff; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.hv-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: #64748b; }
.hv-meta a { white-space: nowrap; }
.hv-card video { max-width: 100%; margin: 0 auto; }
/* wide screens use 90% of the width, up to 1680px: less scrolling (Noah 2026-11-07) */
@media (min-width: 1200px) { .sp-help .help-layout, .sp-help .hv-page, .sp-help .help-cards { max-width: min(90vw, 1680px); } .sp-help .quick-links { max-width: calc(min(90vw, 1680px) - 40px); } }
