/* EasySchoolApp Help – generated into wwwroot/help/help.css by docs/user-guide/build.mjs. Edit the source in docs/user-guide/help.css. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1c2433;
  --muted: #5b6577;
  --line: #dde3ec;
  --brand: #0f2c59;
  --accent: #1f5fad;
  --orange: #f28c28;
  --tips-bg: #eaf6ee;
  --tips-line: #2e8b57;
  --note-bg: #eef3fb;
  --code-bg: #eef1f6;
  --shadow: 0 1px 2px rgba(15, 44, 89, .06), 0 4px 16px rgba(15, 44, 89, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --surface: #151d2c;
    --text: #e4e9f2;
    --muted: #9aa6ba;
    --line: #283349;
    --brand: #cfe0ff;
    --accent: #7fb0ff;
    --tips-bg: #13281d;
    --tips-line: #4fbf7f;
    --note-bg: #16233a;
    --code-bg: #1d2738;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 24px;
  background: #0f2c59; color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 17px; }
/* The book icon sits on a white chip so its blue pages stay visible on the navy bar. */
.brand-logo { box-sizing: content-box; width: 34px; height: 28px; padding: 3px 5px; border-radius: 8px; background: #fff; object-fit: contain; }
.cover-logo { width: 320px; max-width: 80%; height: auto; }
.topnav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; font-size: 14px; }
.topnav a { color: #dbe6ff; text-decoration: none; padding: 4px 2px; }
.topnav a[aria-current="page"], .topnav a:hover { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
.topnav .back { color: #fff; font-weight: 600; }

/* Layout */
.layout { display: grid; grid-template-columns: 270px minmax(0, 860px); gap: 32px; justify-content: center; padding: 28px 24px 48px; }
.layout.no-toc { grid-template-columns: minmax(0, 860px); }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; font-size: 14px; }
.toc summary { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; cursor: pointer; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc li.d3 { padding-left: 14px; }
.toc li.d2 { margin-top: 10px; font-weight: 700; }
.toc a { color: var(--text); text-decoration: none; display: block; padding: 2px 6px; border-radius: 6px; }
.toc a:hover { background: var(--surface); color: var(--accent); }

.content {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 32px 40px; min-width: 0;
}
h1, h2, h3, h4 { color: var(--brand); line-height: 1.3; }
h1 { font-size: 2rem; margin: 0 0 12px; }
h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
h3 { font-size: 1.2rem; margin: 36px 0 8px; color: var(--accent); }
h4 { font-size: 1.02rem; margin: 20px 0 6px; }
h1 + p { font-size: 1.08rem; color: var(--muted); }
p, li { max-width: 72ch; }
ol, ul { padding-left: 1.4em; }
li { margin: 4px 0; }
li > ul, li > ol { margin-top: 4px; }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 5px; font-size: .92em; }

figure { margin: 18px 0 24px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }

.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--note-bg); color: var(--brand); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.callout { margin: 18px 0; padding: 12px 18px; border-radius: 10px; border-left: 5px solid var(--accent); background: var(--note-bg); }
.callout.tips { border-left-color: var(--tips-line); background: var(--tips-bg); }
.callout-title { font-weight: 800; margin-bottom: 4px; }
.callout ul { margin: 4px 0; }
.callout p { margin: 4px 0; }

.shot-placeholder {
  margin: 18px 0 24px; padding: 18px; border: 2px dashed var(--line); border-radius: 10px;
  color: var(--muted); background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(127, 127, 127, .05) 12px 24px);
  display: grid; gap: 4px; font-size: 14px;
}
.shot-placeholder strong { color: var(--text); }

.pagefoot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Combined document */
.cover { min-height: 60vh; display: grid; align-content: center; gap: 8px; }
.cover-title { font-size: 3rem; margin: 16px 0 0; border: 0; }
.cover-sub { font-size: 1.3rem; color: var(--muted); margin: 0; }
.cover-meta { color: var(--muted); }
.contents-title { border-top: 0; }
.fulltoc { list-style: none; padding: 0; columns: 2; column-gap: 32px; font-size: 14px; }
.fulltoc li { break-inside: avoid; margin: 1px 0; }
.fulltoc li.d1 { font-weight: 800; margin-top: 12px; }
.fulltoc li.d2 { padding-left: 12px; }
.fulltoc a { color: var(--text); text-decoration: none; }

@media (max-width: 960px) {
  .layout, .layout.no-toc { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
  .toc details:not([open]) summary { margin: 0; }
  .content { padding: 20px 16px; border-radius: 12px; }
  .topbar { position: static; padding: 10px 16px; }
  html { scroll-padding-top: 8px; }
  .topnav { margin-left: 0; }
  h1 { font-size: 1.6rem; }
  .fulltoc { columns: 1; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #111; --muted: #555; --brand: #0f2c59; --accent: #1f5fad; --line: #ccd5e2; --shadow: none; }
  body { font-size: 11pt; line-height: 1.5; background: #fff; }
  .topbar, .toc, .pagefoot { display: none; }
  .layout, .layout.no-toc { display: block; padding: 0; }
  .content { border: 0; padding: 0; box-shadow: none; }
  .cover { min-height: 250mm; break-after: page; }
  .contents { break-after: page; }
  h1.part { break-before: page; }
  h2, h3, h4 { break-after: avoid; }
  h2 { border-top: 0; }
  figure, .callout, .shot-placeholder, tr { break-inside: avoid; }
  figure img { max-height: 120mm; width: auto; max-width: 100%; margin: 0 auto; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
