/* Past Tests & Results page (prefix pt-)
   One section: the year list, then "Best practices" below it.
   Default build: the year list is one Text module holding a plain table
   (Year | Tests & answer keys | Results), one row per year, newest first, so
   officers only ever copy a row and change the year and two links.
   Note: the shared stylesheet already uses ".pt" for Home's photo tiles, so
   every class here is "pt-something". */

/* ---------- Layout: the year list, then Best practices below it (decided Nov 22) ---------- */
.pt-wrap { display: grid; gap: 64px; }

/* ---------- Year list (decided Nov 22): like the Overview's Key details grid ----------
   No box; a 2px dark rule on top, thin rules between rows, gray small caps column labels,
   and each year in the Key details value style (bold body font, 18px). */
.pt-list { border-top: 2px solid var(--ink); }
.pt-list a { color: var(--red); font-weight: 600; text-underline-offset: 4px; }
.pt-list a:hover, .pt-list a:focus-visible { color: var(--red-dark); }
.pt-none { color: var(--muted); }
.pt-table thead th:first-child { width: 22%; }
.pt-table thead th:nth-child(2) { width: 42%; }
.pt-table thead th { padding: 20px 24px 10px 0; background: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.pt-table tbody th,
.pt-table td { padding: 18px 24px 18px 0; background: none; vertical-align: middle; }
.pt-table tbody th { font: 600 18px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-table td { font-size: 17px; }
.pt-table tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--line); }

.pt-notes { margin: 14px 0 0; }
.pt-notes .placeholder-note { margin: 4px 6px 0 0; }

/* ---------- Page option: how many years have a Drive folder (prototype "This page" panel) ----------
   1: 2022 only (what exists today) · 3: 2022–2024 · 5: 2022–2026.
   Each year holds both the folder link and the "not posted" text; this hides one of them. */
[data-pt-years="1"] :is(.pt-yr--2023, .pt-yr--2024, .pt-yr--2025, .pt-yr--2026) .pt-tests,
[data-pt-years="3"] :is(.pt-yr--2025, .pt-yr--2026) .pt-tests,
[data-pt-years="1"] .pt-yr--2022 .pt-none,
[data-pt-years="3"] :is(.pt-yr--2022, .pt-yr--2023, .pt-yr--2024) .pt-none,
[data-pt-years="5"] .pt-none { display: none; }

/* ---------- Best practices ---------- */
.pt-tips { padding: 34px 38px 32px; background: var(--surface); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); }
.pt-tips h3 { font-size: 24px; margin-bottom: 20px; }
.pt-tips__list { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: tip; display: grid; gap: 18px 56px; }
.pt-tips__list li { counter-increment: tip; position: relative; padding-left: 38px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.pt-tips__list li::before { content: counter(tip); position: absolute; left: 0; top: 0; font: 600 20px/1.35 var(--font-head); color: var(--red); }
.pt-tips__list strong { color: var(--ink); }
.pt-tips a { color: var(--red); font-weight: 600; }
.pt-tips__foot { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.pt-tips__foot .placeholder-note { margin: 0 0 0 4px; }

/* The gray box at full width, tips in two columns */
.pt-tips__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 640px) {
  .pt-wrap { gap: 48px; }
  .pt-table thead th { padding: 18px 12px 8px 0; font-size: 11.5px; letter-spacing: .06em; }
  .pt-table thead th:nth-child(2) { width: 39%; }
  .pt-table tbody th,
  .pt-table td { padding: 14px 12px 14px 0; }
  .pt-table tbody th { font-size: 17px; }
  .pt-table td { font-size: 15.5px; }
  .pt-tips { padding: 26px 22px 24px; }
  .pt-tips h3 { font-size: 22px; }
  .pt-tips__list li { padding-left: 30px; font-size: 16.5px; }
  .pt-tips__list { grid-template-columns: 1fr; }
}
