/* ExamStudyAid: a subject's past papers, apple style (owner, 2026-10-24: "/apple-style this" of
   /alevel/edexcel/business/pastpapers/, then "also do the /apple-style to past papers demo" and "do it"). A layer loaded
   by nb_papers_index.html after papers-shelf.css (before the reading sheet, which stays last), every rule under
   .nb-papers. The page keeps its order, its sessions and its links; it loses the blue words in the heading, the box
   round the unit filter with its spaced capitals and outlined chips, the file icon tile and the outlined code badge on
   each paper, and the cards round the questions at the foot. Now:
   - the heading all in the one ink in the site's sans, the line about Pearson in the soft ink;
   - the units one segmented switch, the Premium card's .nb-switch, each unit's code in the soft ink beside it;
   - each paper its name, then "Unit 1 · WBS11" in the soft ink, and its two links as the same blue tint;
   - each session a plain heading, its count soft; the questions a list between hairlines, the answers soft.
   Tokens only, both themes; no edge, no glow, no capsule. */

html body .nb-papers {
  --ppl-soft: var(--nb-soft, var(--nb-ink));
}

/* ── The heading: the one ink; the line about Pearson in the soft ink ── */
html body .nb-papers .nb-index-title {
  font-family: var(--nb-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
}
html body .nb-papers .nb-index-title-accent {
  color: inherit;
}
html body .nb-papers .nb-papers-provenance {
  color: var(--ppl-soft);
}

/* ── The units: no box round them; one segmented switch, the Premium card's ── */
html body .nb-papers .nb-papers-controls {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
html body .nb-papers .nb-papers-filter-label {
  font: 500 14px/1.4 var(--nb-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ppl-soft);
}
html body .nb-papers .nb-papers-chiprow {
  display: inline-flex;
  gap: 0;
  width: max-content;
  max-width: 100%;
  justify-self: start;
  align-self: flex-start;
  padding: 4px;
  border-radius: var(--nb-r-lg, 12px);
  background: color-mix(in srgb, var(--nb-ink) 6%, transparent);
}
html body .nb-papers .nb-papers-chiprow .nb-papers-chip {
  flex: none;
  min-height: 0;
  height: auto;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--nb-r-md, 8px);
  background: none;
  box-shadow: none;
  font: 500 var(--nb-text-base, 16px)/1 var(--nb-sans);
  letter-spacing: 0;
  color: var(--ppl-soft);
  transform: none;
}
html body .nb-papers .nb-papers-chiprow .nb-papers-chip:hover:not(.is-active) {
  border: 0;
  background: none;
  color: var(--nb-ink);
}
html body .nb-papers .nb-papers-chiprow .nb-papers-chip.is-active {
  border: 0;
  background: color-mix(in srgb, white 9%, var(--nb-paper-raised));
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
  color: var(--nb-ink);
}
html.theme-light body .nb-papers .nb-papers-chiprow .nb-papers-chip.is-active {
  background: white;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--nb-ink) 10%, transparent), 0 4px 12px -2px color-mix(in srgb, var(--nb-ink) 10%, transparent);
}
html body .nb-papers .nb-papers-chip .nb-papers-chip-code {
  margin-left: 6px;
  border: 0;
  background: none;
  padding: 0;
  font: 400 var(--nb-text-sm, 14px)/1 var(--nb-sans);
  letter-spacing: 0;
  color: var(--ppl-soft);
}
html body .nb-papers .nb-papers-result {
  border: 0;
  box-shadow: none;
}
html body .nb-papers .nb-papers-count {
  color: var(--ppl-soft);
  font-weight: 400;
}
html body .nb-papers .nb-papers-count span {
  color: var(--nb-ink);
  font-weight: 600;
}

/* ── A session: a plain heading, its count soft ── */
html body .nb-papers .nb-papers-group-title {
  font-family: var(--nb-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}
html body .nb-papers .nb-papers-group-count {
  font-weight: 400;
  color: var(--ppl-soft);
}

/* ── A paper: no icon tile; its name, then "Unit 1 · WBS11" in the soft ink; two blue tints at its end ── */
html body .nb-papers .nb-papers-row-icon {
  display: none;
}
/* with no icon, the two links start under the paper's name, not 40px in where the icon's column was */
html body .nb-papers .nb-papers-row-actions {
  padding-left: 0;
}
html body .nb-papers .nb-papers-row-title {
  font-family: var(--nb-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}
html body .nb-papers .nb-papers-row-meta,
html body .nb-papers .nb-papers-row-unit {
  font-weight: 400;
  color: var(--ppl-soft);
}
html body .nb-papers .nb-papers-unit-badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  letter-spacing: 0;
  color: var(--ppl-soft);
}
html body .nb-papers .nb-papers-unit-badge::before {
  content: "\00B7";
  margin-right: 6px;
}
html body .nb-papers .nb-papers-row-actions a.nb-papers-row-go,
html body .nb-papers .nb-papers-row-actions a.nb-papers-row-ms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--nb-r-md, 8px);
  background: color-mix(in srgb, var(--nb-blue) 10%, transparent);
  box-shadow: none;
  font: 600 var(--nb-text-base, 16px)/1 var(--nb-sans);
  color: var(--nb-blue);
  text-decoration: none;
}
@media (hover: hover) {
  html body .nb-papers .nb-papers-row-actions a:is(.nb-papers-row-go, .nb-papers-row-ms):hover {
    background: color-mix(in srgb, var(--nb-blue) 16%, transparent);
    color: var(--nb-blue-strong, var(--nb-blue));
    transform: none;
  }
}

/* ── The questions: a list between hairlines, no cards ── */
html body .nb-papers .nb-papers-guide-title {
  font-family: var(--nb-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}
html body .nb-papers .nb-papers-faq-list {
  gap: 0;
}
html body .nb-papers .nb-papers-faq-item {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  /* the hairline is drawn as a shadow: nb-boxes.css holds every edge of this box clear */
  box-shadow: inset 0 -1px 0 var(--nb-border);
}
html body .nb-papers .nb-papers-faq-item > summary {
  padding: 18px 0;
}
html body .nb-papers .nb-papers-faq-item > summary::after {
  color: var(--ppl-soft);
}
html body .nb-papers .nb-papers-faq-item > p {
  padding: 0 0 18px;
  color: var(--ppl-soft);
}

/* ── Revise for these papers (Phase 3 link map): under the intro, the subject's notes and topic questions and each
   unit's own pages, as plain links in the pen on one wrapping line; the label is a quiet heading, the unit code soft ── */
html body .nb-papers .nb-papers-revise {
  margin: var(--nb-s4, 16px) 0 0;
}
html body .nb-papers .nb-papers-revise-label {
  margin: 0 0 var(--nb-s2, 8px);
  font: 600 var(--nb-text-sm, 14px)/1.3 var(--nb-sans);
  color: var(--nb-ink);
}
html body .nb-papers .nb-papers-revise-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nb-s1, 4px) var(--nb-s5, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .nb-papers .nb-papers-revise-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--nb-s3, 12px);
  margin: 0;
  font: 400 var(--nb-text-base, 16px)/1.5 var(--nb-sans);
}
html body .nb-papers .nb-papers-revise-list a {
  color: var(--nb-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
html body .nb-papers .nb-papers-revise-code {
  color: var(--ppl-soft);
}
/* the units: a calm grid of code and link, never a run-on line */
html body .nb-papers .nb-papers-revise-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--nb-s1, 4px) var(--nb-s5, 24px);
  margin-top: var(--nb-s2, 8px);
}
@media (hover: hover) {
  html body .nb-papers .nb-papers-revise-list a:hover {
    color: var(--nb-blue-strong, var(--nb-blue));
    text-decoration-thickness: 2px;
  }
}
/* a phone or a finger: each link a 44px target */
@media (max-width: 860px), (pointer: coarse) {
  html body .nb-papers .nb-papers-revise-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* a phone: the units two to a row */
@media (max-width: 600px) {
  html body .nb-papers .nb-papers-revise-units {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    column-gap: var(--nb-s3, 12px);
  }
}

/* ── Phones: the switch scrolls sideways inside its track, as the chips did ── */
@media (max-width: 760px) {
  html body .nb-papers .nb-papers-chiprow {
    display: flex;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  html body .nb-papers .nb-papers-row-actions a.nb-papers-row-go,
  html body .nb-papers .nb-papers-row-actions a.nb-papers-row-ms {
    height: 36px;
    padding: 0 12px;
    font-size: var(--nb-text-sm, 14px);
  }
}

/* ══ Study v5: the targets on a phone, and the segmented switches' hidden chips ══ */
/* a unit chip hidden for another area stays hidden (the switch above gives every chip a display of its own) */
html body .nb-papers .nb-papers-chiprow .nb-papers-chip[hidden] {
  display: none;
}
/* the chip row and its chips: 44px on a phone or a finger (the switch's 9px padding made them 33px) */
@media (max-width: 860px), (pointer: coarse) {
  html body .nb-papers .nb-papers-chiprow .nb-papers-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* the two links on a paper: 44px where there is a finger (they were 36px on a phone) */
@media (max-width: 760px) {
  html body .nb-papers .nb-papers-row-actions a.nb-papers-row-go,
  html body .nb-papers .nb-papers-row-actions a.nb-papers-row-ms {
    height: 44px;
  }
}
