/* ═══════════════════════════════════════════════════════════
   gradepage.css — the fourteen /grade/<slug> pages

   The design language is in css/wg.css, which these pages load
   first. Only the pieces the grade pages add are here: the
   breadcrumb, the subjects table, the dense link lists and the
   coming-soon block.
═══════════════════════════════════════════════════════════ */

/* ── Subjects table ──────────────────────────────────────── */
.subj {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
  border: 2px solid var(--h-ink);
  font-size: .9375rem;
}
.subj thead th {
  padding: 11px 16px;
  text-align: right;
  background: var(--h-ink);
  color: #fff;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.subj thead th:first-child { text-align: left; }

.subj tbody th, .subj tfoot th { text-align: left; font-weight: 700; }
.subj th, .subj td { padding: 12px 16px; border-bottom: 1px solid var(--h-hair); }
.subj td {
  text-align: right;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: .9rem;
  color: var(--h-grey-2);
}
.subj td.tot { color: var(--h-ink); font-weight: 600; }
.subj tbody tr:hover { background: var(--h-wash); }
.subj tbody a { color: var(--h-ink); text-decoration: none; border-bottom: 1px solid var(--h-hair); }
.subj tbody a:hover { color: var(--h-red); border-color: var(--h-red); }

/* A subject with nothing published keeps its row and says so. */
.subj tr.none th { color: var(--h-mono); font-weight: 600; }
.subj tr.none td {
  text-align: left;
  color: var(--h-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.subj tfoot th, .subj tfoot td {
  border-top: 2px solid var(--h-ink);
  border-bottom: 0;
  background: #FAFBFC;
  font-weight: 700;
  color: var(--h-ink);
}

/* ── Coming soon ─────────────────────────────────────────── */
.soon {
  padding: 26px 24px;
  border: 1px dashed var(--h-hair);
  background: #FCFCFD;
}
.soon .mono {
  display: block;
  margin-bottom: 7px;
  color: var(--h-red);
  font-weight: 600;
}
.soon p { margin: 0; max-width: 54em; font-size: .97rem; line-height: 1.6; color: var(--h-grey-2); }

/* ── Grade switcher ──────────────────────────────────────── */
.tag.on { background: var(--h-ink); color: #fff; }
.tag em {
  font-style: normal;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: .76rem;
  color: var(--h-mono);
  padding-left: 5px;
}
.tag:hover em { color: inherit; }

.sub-h {
  margin: 28px 0 12px;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--h-grey-2);
}

/* The ad slot sits between the nav and the breadcrumb; keep it from
   colliding with the hairline above it. */
.wg-ad-top { border-bottom: 1px solid var(--h-faint); }

@media (max-width: 760px) {
  .subj { font-size: .875rem; }
  .subj th, .subj td { padding: 10px 11px; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .rows .cell { border-right: 0; }
  .soon { padding: 20px 16px; }
}

.more { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shown { color: var(--h-mono); }

/* The grades table has seven columns; let it scroll rather than
   crush the labels on a phone. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grades-tbl { min-width: 680px; max-width: 980px; }

/* ── Grade blocks on a subject page ──────────────────────── */
.gblock + .gblock { margin-top: 38px; }
.gblock-h {
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.gblock-h em { font-style: normal; font-weight: 400; color: var(--h-mono); }
