/* ExamStudyAid: a note's tables and the links under it in the Study v5 look (owner, 2026-11-27, from the phone: "Can we
   do something about the ugly tables and shitty links? Use the same design language we insisted on for the website"). The
   companion of note-callouts-v5.css, loaded with it after notebook-notes.css and before notebook-reading.css, which stays
   last.

   Tables
   - at rest a table is one mist tile (a 4.5% ink wash) with no edge: its header row in the soft ink over a hairline, its
     rows on hairlines, no fill under the header;
   - stacked (a phone, or a table too wide for its column: notebook-notes.css 12b, the same tiers repeated below), each
     record is its own mist tile a step apart, its first cell the tile's title, and every field reads its name in the soft
     ink above its value. The name over the value, not beside it: beside it, a cell whose words are a word and a formula
     ("least -5") was laid in the two-column grid as two items and the formula fell under the name.
   The end of a note
   - Practise this topic, Related topics and the past papers are rows of one mist tile each, the way a settings list
     reads: a row a link, a hairline between, a chevron at its end; each section's name above its tile; the row's kind
     (Builds on, Leads to) a soft caption over its rows;
   - Report a mistake a quiet soft line under them.
   Tokens only, both themes; no edge, no glow, no capsule. */

html body .nb-notes-column.nb-read-notes .nb-notes {
  --nt5-tile: color-mix(in srgb, var(--nb-ink) 4.5%, transparent);
  --nt5-rule: color-mix(in srgb, var(--nb-ink) 10%, transparent);
  --nt5-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2.5 2l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── A table at rest: one mist tile ── */
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll {
  background: var(--nt5-wrap-bg, var(--nt5-tile));
  border: 0;
  border-radius: var(--nb-r-lg);
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll th {
  background: none;
  color: var(--nb-soft);
  font-weight: 600;
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll :is(th, td) {
  border-bottom-color: var(--nt5-rule);
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll > table > tbody > tr:hover > td {
  background-color: transparent;
}

/* ── Stacked: each record its own tile, each field's name above its value ──
   The same tiers as notebook-notes.css 12b, so a table stacks here exactly where it stacks there. */
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll:has(tr > *:nth-child(7)),
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll[data-nb-fit="stack"] {
  --nb-tbl-cell: block;
  --nb-tbl-card: 0;
  --nb-tbl-card-bg: var(--nt5-tile);
  --nb-tbl-title-bg: transparent;
  --nb-tbl-bb-lastrow: 1px solid var(--nt5-rule);
  --nt5-wrap-bg: transparent;
  --nt5-stacked: 1;
}
@media (max-width: 820px) {
  html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll:has(tr > *:nth-child(6)) {
    --nb-tbl-cell: block; --nb-tbl-card: 0; --nb-tbl-card-bg: var(--nt5-tile); --nb-tbl-title-bg: transparent;
    --nb-tbl-bb-lastrow: 1px solid var(--nt5-rule); --nt5-wrap-bg: transparent;
  }
}
@media (max-width: 700px) {
  html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll:has(tr > *:nth-child(5)) {
    --nb-tbl-cell: block; --nb-tbl-card: 0; --nb-tbl-card-bg: var(--nt5-tile); --nb-tbl-title-bg: transparent;
    --nb-tbl-bb-lastrow: 1px solid var(--nt5-rule); --nt5-wrap-bg: transparent;
  }
}
@media (max-width: 560px) {
  html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll:has(tr > *:nth-child(4)) {
    --nb-tbl-cell: block; --nb-tbl-card: 0; --nb-tbl-card-bg: var(--nt5-tile); --nb-tbl-title-bg: transparent;
    --nb-tbl-bb-lastrow: 1px solid var(--nt5-rule); --nt5-wrap-bg: transparent;
  }
}
@media (max-width: 430px) {
  html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll:has(tr > *:nth-child(3)) {
    --nb-tbl-cell: block; --nb-tbl-card: 0; --nb-tbl-card-bg: var(--nt5-tile); --nb-tbl-title-bg: transparent;
    --nb-tbl-bb-lastrow: 1px solid var(--nt5-rule); --nt5-wrap-bg: transparent;
  }
}
/* a record's tile: rounded, a step from the next (inert un-stacked: a table row takes no radius or margin) */
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll > table tr {
  margin-bottom: var(--nb-s2);
  border-radius: var(--nb-r-lg);
}
/* a field's name: the soft ink above its value (display stays the switch's: none un-stacked) */
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll > table td::before {
  margin: 0 0 2px;
  font-size: var(--nb-text-sm);
  font-weight: 500;
  line-height: 1.35;
  color: var(--nb-soft);
}
/* the title cell keeps no name, and reads in the ink at the title's weight */
html body .nb-notes-column.nb-read-notes .nb-notes .note-table-scroll > table td:first-child::before {
  display: none;
}

/* ── The end of a note: rows of one tile each ── */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice, .nb-notes-related) {
  display: block;
  margin-block: 0;
  padding: var(--nb-s6) 0 0;
  border: 0;
}
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-practice {
  margin-top: var(--nb-s9);
}
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-practice-label {
  display: block;
  margin: 0 0 var(--nb-s3);
  font-size: var(--nb-text-lg);
  font-weight: 650;
  letter-spacing: -0.012em;
  color: var(--nb-ink);
}
/* the tile */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links, .nb-notes-links p.nb-notes-related-row, .nb-notes-links p.nb-notes-more) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 0 0 var(--nb-s5);
  background: var(--nt5-tile);
  border: 0;
  border-radius: var(--nb-r-lg);
  font-size: var(--nb-text-md);
  line-height: 1.35;
}
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-links p.nb-notes-related-row + p.nb-notes-related-row {
  margin-top: var(--nb-s3);
}
/* a row: the whole width a target, a hairline under each but the last, a chevron at its end */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links > .nb-btn, .nb-notes-links p > a:not(.nb-notes-report)) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  margin: 0;
  padding: var(--nb-s3) calc(var(--nb-s5) + 18px) var(--nb-s3) 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--nt5-rule);
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  color: var(--nb-ink);
  transition: color var(--nb-dur-1) var(--nb-ease);
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links > .nb-btn, .nb-notes-links p > a:not(.nb-notes-report)):last-child {
  border-bottom: 0;
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links > .nb-btn, .nb-notes-links p > a:not(.nb-notes-report))::after {
  content: "";
  position: absolute;
  right: var(--nb-s5);
  top: 50%;
  inline-size: 8px;
  block-size: 13px;
  margin-top: -6.5px;
  background: var(--nb-soft);
  -webkit-mask: var(--nt5-chev) center / contain no-repeat;
  mask: var(--nt5-chev) center / contain no-repeat;
}
@media (hover: hover) {
  html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links > .nb-btn, .nb-notes-links p > a:not(.nb-notes-report)):hover {
    background: none;
    color: var(--nb-blue);
    text-decoration: none;
  }
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links > .nb-btn, .nb-notes-links p > a:not(.nb-notes-report)):focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: -2px;
  border-radius: var(--nb-r-md);
}
/* a row's kind (Builds on, Leads to): a soft caption over its rows, inside the tile */
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-related-kind {
  position: static;
  display: block;
  padding: var(--nb-s3) 0 0;
  font-size: var(--nb-text-sm);
  font-weight: 500;
  color: var(--nb-soft);
}
/* the past papers a one-row tile of their own, a step under Related topics; Report a mistake a quiet soft line under it */
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-links p.nb-notes-more {
  margin-top: var(--nb-s6);
  padding: 0;
  background: none;
  border-top: 0;
  border-radius: 0;
}
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-links p.nb-notes-more > a.nb-notes-papers {
  padding-left: var(--nb-s5);
  background: var(--nt5-tile);
  border-bottom: 0;
  border-radius: var(--nb-r-lg);
}
html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-links p.nb-notes-more > a.nb-notes-report {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: var(--nb-s2) 0 0;
  padding: 0;
  font-size: var(--nb-text-base);
  font-weight: 500;
  color: var(--nb-soft);
  text-decoration: none;
}
@media (hover: hover) {
  html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-links a.nb-notes-report:hover {
    color: var(--nb-ink);
    text-decoration: none;
  }
}
@media (max-width: 640px) {
  html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links, .nb-notes-links p.nb-notes-related-row) {
    padding-left: var(--nb-s4);
  }
  html body .nb-notes-column.nb-read-notes .nb-notes .nb-notes-links p.nb-notes-more > a.nb-notes-papers {
    padding-left: var(--nb-s4);
  }
  html body .nb-notes-column.nb-read-notes .nb-notes :is(.nb-notes-practice-links > .nb-btn, .nb-notes-links p > a:not(.nb-notes-report))::after {
    right: var(--nb-s4);
  }
}
