/* ============================================================
   FREE-PAPERS HUBS (exams/templates/exams/papers/*)
   ------------------------------------------------------------
   Plain CSS, no Tailwind. Sits on top of course-pages.css (cs-kicker,
   cs-compare, cs-seo, cs-section-*) and the design-system tokens
   (--text-*, --space-*, --pad-x, .sec-solid, .sec-blue, .btn-cobalt).
   Every selector is prefixed pp- . No pills, no gradients, no icons:
   rules, spacing and type do the work.
   ============================================================ */

.pp { color: var(--cs-ink, #12192b); }

/* ---------- Hero ---------- */
.pp-hero { padding-top: clamp(20px, 3vw, 32px); }
.pp-crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: var(--text-xs, 12px);
  color: #94a3b8; margin-bottom: var(--space-md, 28px);
}
.pp-crumbs a { color: #64748b; text-decoration: none; }
.pp-crumbs a:hover { color: var(--cs-blue, #1d4ed8); text-decoration: underline; }
.pp-crumbs [aria-current] { color: #475569; }
.pp-h1 {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: var(--text-3xl, 44px); line-height: 1.08;
  color: var(--cs-navy, #172554);
  margin: 12px 0 0; max-width: 18ch;
}
.pp-lede {
  font-family: 'Inter', sans-serif; font-size: var(--text-base, 16px);
  line-height: 1.7; color: #475569; max-width: 620px;
  margin: var(--space-sm, 18px) 0 0;
}
.pp-checked {
  font-family: 'Inter', sans-serif; font-size: var(--text-xs, 12px);
  color: #94a3b8; margin: 10px 0 0;
}
.pp-checked a, .pp-source a, .pp-attrib a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pp-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 22px; margin-top: var(--space-md, 28px);
}
.pp-textlink {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: var(--text-sm, 14px);
  color: var(--cs-navy, #172554); text-decoration: none;
  border-bottom: 1.5px solid #bfdbfe; padding-bottom: 1px;
}
.pp-textlink:hover { border-bottom-color: var(--cs-navy, #172554); }

/* ---------- Tables (on .cs-compare) ---------- */
@media (min-width: 641px) {
  .pp-table th[scope="row"] { white-space: normal; min-width: 150px; }
  .pp-papers { min-width: 720px; }
  .pp-table td { white-space: nowrap; }
  .pp-table td.pp-muted { white-space: normal; }
}
/* On a phone course-pages.css turns each row into a card with the column
   name above each cell (data-col); the three figures share one line. */
@media (max-width: 640px) {
  .pp-table td.pp-num { display: inline-block; width: 32%; vertical-align: top; }
  .pp-table td.pp-num + td.pp-num { border-top: none; }
  .pp-table td.pp-num + td:not(.pp-num) { border-top: 1px dashed var(--cs-hair, #e2e8f0); }
  .pp-rownote { max-width: none; text-transform: none; letter-spacing: 0; font-family: 'Inter', sans-serif; }
}
.pp-rownote {
  display: block; margin-top: 4px;
  font-weight: 400; font-size: var(--text-xs, 12px); line-height: 1.5;
  color: #64748b; max-width: 30ch;
}
.pp-muted { color: #94a3b8; }
.pp-pdf {
  display: inline-block; margin-right: 12px;
  color: var(--cs-blue, #1d4ed8); font-weight: 500; text-decoration: none;
}
.pp-pdf:hover { text-decoration: underline; text-underline-offset: 2px; }
.pp-pdf + .pp-pdf { margin-top: 4px; }
.pp-fmt {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: #94a3b8; margin-left: 2px;
}
.pp-pdf--ours { color: var(--cs-navy, #172554); }

.pp-source, .pp-attrib {
  font-family: 'Inter', sans-serif; font-size: var(--text-xs, 12px);
  line-height: 1.6; color: #64748b; max-width: 760px;
  margin: 12px 0 0;
}

/* ---------- Sets ---------- */
.pp-set-head { margin-bottom: 4px; }
.pp-set-title {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: var(--text-xl, 24px); line-height: 1.2;
  color: var(--cs-navy, #172554); margin: 6px 0 0;
}

/* ---------- Online sets ---------- */
.pp-online-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cs-hair, #e2e8f0); }
.pp-online-item {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 32px; padding: 20px 0; border-bottom: 1px solid var(--cs-hair, #e2e8f0);
}
.pp-online-main { flex: 1 1 380px; min-width: 0; }
.pp-online-title {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--text-lg, 18px);
  color: var(--cs-navy, #172554); margin: 0;
}
.pp-online-blurb, .pp-online-sections, .pp-online-n {
  font-family: 'Inter', sans-serif; font-size: var(--text-sm, 14px);
  line-height: 1.6; color: #475569; margin: 6px 0 0;
}
.pp-online-sections { color: #64748b; font-size: var(--text-xs, 12px); }
.pp-online-n { color: var(--cs-ink, #12192b); }
.pp-sit {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--text-sm, 14px);
  color: var(--cs-blue, #1d4ed8); text-decoration: none;
  border-bottom: 1.5px solid #bfdbfe; padding-bottom: 1px;
}
.pp-sit:hover { border-bottom-color: var(--cs-blue, #1d4ed8); }

/* ---------- Notes and FAQ ---------- */
.pp-notes-list {
  margin: 12px 0 0; padding-left: 18px;
  font-family: 'Inter', sans-serif; font-size: var(--text-sm, 14px);
  line-height: 1.7; color: #475569;
}
.pp-notes-list li { margin-bottom: 6px; }
.pp-faq-list { margin-top: var(--space-sm, 18px); border-top: 1px solid #dbe3f0; }
.pp-faq-item { border-bottom: 1px solid #dbe3f0; }
.pp-faq-item summary {
  cursor: pointer; list-style: none;
  padding: 16px 28px 16px 0; position: relative;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: var(--text-base, 16px);
  color: var(--cs-navy, #172554);
}
.pp-faq-item summary::-webkit-details-marker { display: none; }
.pp-faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 14px;
  font-size: 18px; color: #94a3b8;
}
.pp-faq-item[open] summary::after { content: '\2212'; }
.pp-faq-item p {
  margin: 0 0 16px; max-width: 70ch;
  font-family: 'Inter', sans-serif; font-size: var(--text-sm, 14px);
  line-height: 1.7; color: #475569;
}

@media (max-width: 520px) {
  .pp-h1 { max-width: none; }
  .pp-online-item { align-items: flex-start; }
}
