/* Physics Bowl topic notes (notes.js). Uses the colours defined in app.css. */
.tabs a.pb-only { display: none; }
body[data-course="pb"] .tabs a.pb-only { display: inline-flex; }

.note-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.note-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s, box-shadow .15s; }
.note-card a:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(21, 35, 59, .08); }
.note-card strong { font-size: 19px; padding-right: 40px; }
.note-num { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #eef4ff; color: var(--brand-dark); font-weight: 800; font-size: 14px; }
.note-blurb { color: var(--muted); font-size: 15px; }
.note-secs { display: flex; flex-wrap: wrap; gap: 6px; }
.note-secs span { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.note-go { margin-top: auto; font-weight: 700; color: var(--brand); }
.note-card.weak a { border-color: var(--wrong); background: linear-gradient(0deg, var(--surface), var(--surface)), var(--wrong-tint); }
.note-flag { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--wrong); background: var(--wrong-tint); border-radius: 999px; padding: 2px 10px; }

.note-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; font-weight: 600; }
.note-nav span { display: flex; gap: 18px; }
.note-head { margin: 8px 0 18px; }
.note-head h1 { margin: 2px 0 6px; font-size: clamp(28px, 4vw, 38px); }
.note-head p { margin: 0 0 6px; max-width: 760px; }
.note-kicker { color: var(--brand-dark); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.note-toc { margin: 0 0 12px; padding-left: 22px; }

.note-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.note-side { position: sticky; top: 16px; display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); font-size: 15px; }
.note-side ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.note-side .btn { width: 100%; justify-content: center; text-align: center; }
.note-body { display: grid; gap: 18px; min-width: 0; }
.note-sec { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.note-sec h2 { margin: 0 0 10px; font-size: 22px; }
.note-points { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.note-points li::marker { color: var(--brand); }
.note-fig { margin-top: 14px; }
.note-eqs { width: 100%; border-collapse: collapse; font-size: 16px; }
.note-eqs td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.note-eqs td.eq { font-weight: 700; color: var(--brand-dark); white-space: nowrap; width: 48%; }
.note-traps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.note-traps li { padding: 8px 12px 8px 36px; border-radius: var(--radius-s); background: var(--wrong-tint); position: relative; }
.note-traps li::before { content: "!"; position: absolute; left: 10px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--wrong); color: #fff;
  font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.note-ex { margin-top: 10px; }
.note-ex summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.note-ex .steps { margin-top: 10px; }
.note-ex .tip { margin-top: 10px; }
.note-link { margin: 6px 0 0; font-size: 15px; }

@media (max-width: 860px) {
  .note-layout { grid-template-columns: 1fr; }
  .note-side { position: static; }
  .note-eqs td.eq { white-space: normal; }
}
#view .note-body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
