/* the notes page, shown inside the stage between the steps and the quiz */
.notes { position: absolute; inset: 0; z-index: 6; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility .45s; background: var(--bg); }
.arena[data-mode="notes"] #notes { opacity: 1; visibility: visible; pointer-events: auto; }
.arena[data-mode="notes"] .board { opacity: 0; visibility: hidden; pointer-events: none; }
.n-doc { position: absolute; left: 0; right: 0; top: 0; padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 40px) 80px; will-change: transform; }
.n-wrap { max-width: 860px; margin: 0 auto; }
.n-head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.n-head img { flex: none; width: clamp(74px, 9vw, 108px); height: auto; filter: drop-shadow(0 8px 12px rgba(28, 25, 23, .14)); }
.n-kick { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.n-head h2 { margin: 6px 0 8px; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.06; }
.n-head p { margin: 0; color: var(--muted); font-size: clamp(14.5px, 1.2vw, 16.5px); line-height: 1.5; }
.n-toc { list-style: none; margin: 0 0 8px; padding: 22px 0; columns: 2; column-gap: 36px; border-bottom: 1px solid var(--line); }
.n-toc li { break-inside: avoid; }
.n-toc button { display: flex; gap: 12px; width: 100%; padding: 7px 0; font: inherit; font-size: 14.5px; text-align: left; color: var(--body); background: none; border: 0; cursor: pointer; transition: color .15s; }
.n-toc button span { flex: none; width: 24px; font-variant-numeric: tabular-nums; color: #a39b8e; font-size: 12.5px; padding-top: 2px; }
.n-toc button:hover { color: var(--accent); } .n-toc button:hover span { color: var(--accent); }

.ns { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: clamp(14px, 3vw, 36px); padding: 38px 0 34px; border-bottom: 1px solid var(--line); }
.ns-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ns-no { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ns-ic .ic, .ns-ic img, .ns-ic svg { width: 34px; height: 34px; display: block; }
.ns-main { max-width: 640px; }
.ns h3 { margin: 0 0 14px; font-size: clamp(22px, 2.3vw, 29px); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.ns p.b { margin: 0 0 14px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.72; color: var(--body-strong); }
.ns-budget { list-style: none; margin: 18px 0 4px; padding: 0; border-top: 1px solid var(--line); }
.ns-budget li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--body); }
.ns-budget b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.ns-watch { margin: 20px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--peach); font-size: 15px; line-height: 1.6; color: var(--body); }
.ns-watch b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a8582b; }
.ns-watch ul { margin: 0; padding-left: 18px; } .ns-watch li + li { margin-top: 5px; }
.ns-src { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.ns-src a { color: var(--accent); text-underline-offset: 2px; }
.n-cta { text-align: center; padding: 44px 0 0; }
.n-cta p { margin: 0 0 14px; color: var(--muted); }

/* header shortcuts */
.jump { display: flex; gap: 6px; flex: none; }
.jump button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s; }
.jump button:hover { border-color: var(--ink); }
.jump button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 700px) {
  .n-head { flex-direction: column; align-items: flex-start; } .n-toc { columns: 1; }
  .ns { grid-template-columns: 1fr; gap: 10px; padding: 30px 0 26px; } .ns-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .ns-ic .ic, .ns-ic img, .ns-ic svg { width: 28px; height: 28px; }
  .count { display: none; } .jump button { padding: 6px 11px; }
}

/* the advanced reading page is the same layout as the notes */
.arena[data-mode="advdoc"] #advNotes { opacity: 1; visibility: visible; pointer-events: auto; }
.arena[data-mode="advdoc"] .board { opacity: 0; visibility: hidden; pointer-events: none; }

/* emphasis inside the notes: restrained, one idea per mark */
.ns p.b strong, .ns-watch strong { color: var(--ink); font-weight: 650; }
.ns p.b em, .ns-watch em { font-style: italic; color: var(--body-strong); }
.ns .u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ns .warn { color: #b4573f; font-weight: 600; }
.ns .svc { color: var(--accent); font-weight: 600; }
.ns code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; padding: 2px 7px; border-radius: 6px; background: #e8f1ef; color: #14504b; white-space: nowrap; }
.ns-watch .warn { color: #a8452c; }
