/* ExamStudyAid: a note's contents list (PHASE3-PLAN-v2.md contract 13, U13-amend-v2.md 3.1).

   A note of three or more sections opens, straight after its objectives card, with one closed line: "Contents". It
   reads as quietly as the trail above the heading (nb-crumbs.css: 14px Plex at 500, the soft ink, the one blue under
   the pointer), and its 44px line is the whole target. Opened, it lists the note's sections in order, each a link to
   the heading's own id (blocks_render.py draws them), the rows parted by hairlines, as Apple sets a list: no box, no
   outline, no card. Every value is a token, so the same rules draw both themes.

   Loaded by nb_resource_detail.html, straight after notebook-blocks.css, on a block page only. */

/* ── Closed: one quiet line ── */
.nb-notes .note-contents {
  margin: 0 0 var(--nb-s2);
}
.nb-notes .nt-objectives-card + .note-contents {
  /* closer to the card it belongs with: its 32px bottom margin less 24 */
  margin-top: calc(var(--nb-s2) - var(--nb-s7));
}
.nb-notes .note-contents > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--nb-s2);
  min-height: 44px;
  padding: 0 var(--nb-s1) 0 0;
  font-family: var(--nb-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--nb-soft);
  list-style: none;
  cursor: pointer;
  border-radius: var(--nb-r-sm);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--nb-dur-1) var(--nb-ease);
}
.nb-notes .note-contents > summary::-webkit-details-marker {
  display: none;
}
/* the chevron: down when closed, up when open */
.nb-notes .note-contents > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--nb-dur-2) var(--nb-ease);
}
.nb-notes .note-contents[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}
@media (hover: hover) {
  .nb-notes .note-contents > summary:hover {
    color: var(--nb-blue);
  }
}
.nb-notes .note-contents > summary:focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 2px;
}

/* ── Open: the sections, between hairlines ── */
.nb-notes .note-contents > ol {
  margin: 0 0 var(--nb-s4);
  padding: 0 0 0 var(--nb-s6);
}
.nb-notes .note-contents > ol > li {
  margin: 0;
}
.nb-notes .note-contents > ol > li + li {
  border-top: 1px solid var(--nb-border);
}
.nb-notes .note-contents > ol > li::marker {
  color: var(--nb-soft);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.nb-notes .note-contents > ol > li > a {
  display: block;
  padding: var(--nb-s3) 0;
  font-family: var(--nb-sans);
  font-size: var(--nb-text-base);
  font-weight: 500;
  line-height: 1.35;
  color: var(--nb-ink);
  text-decoration: none;
  transition: color var(--nb-dur-1) var(--nb-ease);
}
@media (hover: hover) {
  .nb-notes .note-contents > ol > li > a:hover {
    color: var(--nb-blue);
  }
}
.nb-notes .note-contents > ol > li > a:focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 2px;
  border-radius: var(--nb-r-sm);
}
