/* =========================================================================
   University A&P Lab — Practical Assessment Rubrics
   Shared print stylesheet · 8.5" × 11" portrait
   Designed for clipboard use at the grading station.
   © Leslie Nichols. Free to adapt and use with attribution.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Lora', Georgia, serif;
  color: #0f172a;
  background: #6b7280;
  line-height: 1.45;
  font-size: 10.5pt;
}

/* ----- page setup ----- */
.page {
  width: 8.5in;
  min-height: 11in;
  padding: 0.55in 0.6in 0.5in 0.6in;
  margin: 0 auto;
  background: white;
  position: relative;
  page-break-after: always;
  display: flex;
  flex-direction: column;
}
.page:last-child { page-break-after: auto; }

/* ----- header bar ----- */
.hdr {
  border-bottom: 2px solid #3730A3;
  padding-bottom: 0.18in;
  margin-bottom: 0.22in;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4in;
  flex-shrink: 0;
}
.hdr-left { flex: 1; min-width: 0; }
.hdr-course {
  font-family: 'Inter', sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  color: #3730A3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.04in;
}
.hdr-title {
  font-family: 'Inter', sans-serif;
  font-size: 15pt;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hdr-title em {
  font-style: normal;
  color: #3730A3;
  font-weight: 700;
}
.hdr-right { text-align: right; flex-shrink: 0; }
.hdr-rubric-type {
  font-family: 'Inter', sans-serif;
  font-size: 9pt;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eef2ff;
  padding: 0.06in 0.18in;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}
.hdr-meta {
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  color: #94a3b8;
  margin-top: 0.06in;
}

/* ----- typography ----- */
.lead {
  font-size: 11pt;
  color: #334155;
  margin-bottom: 0.18in;
  line-height: 1.5;
}
h2 {
  font-family: 'Inter', sans-serif;
  font-size: 11pt;
  font-weight: 700;
  color: #3730A3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.18in 0 0.08in;
  padding-bottom: 0.04in;
  border-bottom: 1px solid #e2e8f0;
}
h2:first-of-type { margin-top: 0; }
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 10pt;
  font-weight: 700;
  color: #0f172a;
  margin: 0.12in 0 0.05in;
}
p { margin-bottom: 0.08in; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 0.22in; margin-bottom: 0.1in; }
li { margin-bottom: 0.03in; }
strong { color: #0f172a; font-weight: 600; }
em { font-style: italic; color: #475569; }

/* ----- decision boxes (pass / not yet) ----- */
.decision { display: grid; grid-template-columns: 1fr 1fr; gap: 0.12in; margin: 0.1in 0 0.15in; }
.decision-box {
  border-radius: 0.06in;
  padding: 0.12in 0.14in;
  font-size: 9.5pt;
  line-height: 1.4;
}
.decision-pass { background: #ecfdf5; border-left: 3px solid #059669; }
.decision-pass .decision-label { color: #065f46; }
.decision-notyet { background: #fffbeb; border-left: 3px solid #D97706; }
.decision-notyet .decision-label { color: #92400e; }
.decision-label {
  font-family: 'Inter', sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.04in;
}

/* ----- anchor exemplars ----- */
.anchors { display: grid; grid-template-columns: 1fr 1fr; gap: 0.12in; margin: 0.08in 0 0.15in; }
.anchor {
  border: 1px solid #e2e8f0;
  border-radius: 0.06in;
  padding: 0.1in 0.12in;
  font-size: 9.5pt;
}
.anchor-label {
  font-family: 'Inter', sans-serif;
  font-size: 7.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.05in;
}
.anchor-pass .anchor-label { color: #059669; }
.anchor-notyet .anchor-label { color: #D97706; }
.anchor-edge .anchor-label { color: #475569; }
.anchor-quote {
  font-style: italic;
  color: #334155;
  line-height: 1.4;
}

/* ----- controlled vocabulary table ----- */
.vocab {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  margin: 0.08in 0 0.15in;
}
.vocab th {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.06in 0.1in;
  border-bottom: 2px solid #cbd5e1;
  background: #f8fafc;
}
.vocab td {
  padding: 0.05in 0.1in;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.vocab td.canonical {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}
.vocab td.synonyms { color: #475569; font-style: italic; }
.vocab td.spelling { color: #94a3b8; font-size: 8.5pt; }
.vocab tr.section-row td {
  background: #eef2ff;
  font-family: 'Inter', sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  color: #3730A3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.07in 0.1in 0.05in;
}

/* ----- generic checklist ----- */
.checklist { list-style: none; padding: 0; margin: 0.05in 0 0.15in; }
.checklist li {
  padding: 0.06in 0 0.06in 0.32in;
  position: relative;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 10pt;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.09in;
  width: 0.18in;
  height: 0.18in;
  border: 1.5px solid #94a3b8;
  border-radius: 0.03in;
  background: white;
}

/* ----- callouts ----- */
.callout {
  background: #f8fafc;
  border-left: 3px solid #3730A3;
  padding: 0.1in 0.14in;
  margin: 0.12in 0;
  font-size: 9.5pt;
  border-radius: 0 0.06in 0.06in 0;
}
.callout-title {
  font-family: 'Inter', sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3730A3;
  margin-bottom: 0.04in;
}
.callout-warn { background: #fffbeb; border-left-color: #D97706; }
.callout-warn .callout-title { color: #92400e; }

/* ----- spec grading bundle ----- */
.bundle {
  border: 1px solid #cbd5e1;
  border-radius: 0.08in;
  padding: 0.14in 0.18in;
  margin: 0.1in 0;
  background: #fafafa;
}
.bundle-grade {
  font-family: 'Inter', sans-serif;
  font-size: 14pt;
  font-weight: 800;
  color: #3730A3;
  margin-bottom: 0.08in;
  display: flex;
  align-items: baseline;
  gap: 0.18in;
}
.bundle-grade .label {
  font-size: 8.5pt;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bundle ul { margin: 0; padding-left: 0.22in; font-size: 9.5pt; }
.bundle li { margin-bottom: 0.03in; }

/* ----- score sheet ----- */
.score-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  margin: 0.1in 0;
}
.score-sheet th {
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.07in 0.08in;
  border-bottom: 2px solid #cbd5e1;
  background: #f8fafc;
  text-align: left;
}
.score-sheet th.center { text-align: center; }
.score-sheet td {
  padding: 0.09in 0.08in;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.score-sheet td.center { text-align: center; }
.score-sheet td.bubble {
  width: 0.4in;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #cbd5e1;
}
.score-sheet td.idx {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #94a3b8;
  width: 0.3in;
  text-align: center;
}

/* ----- layout helpers ----- */
.cols-2 { column-count: 2; column-gap: 0.25in; column-rule: 1px solid #e2e8f0; }
.cols-2 > * { break-inside: avoid; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.18in; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.14in; }

/* ----- footer ----- */
.ftr {
  margin-top: auto;
  padding-top: 0.18in;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
  font-size: 7.5pt;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ftr-version { font-weight: 600; }

/* ----- print rules ----- */
@media print {
  body { background: white; }
  .page { box-shadow: none; margin: 0; }
  .preview-banner, .page-label, .web-only { display: none !important; }
  @page { size: letter portrait; margin: 0; }
}

/* ----- screen-only chrome ----- */
@media screen {
  body { padding: 1.5rem 1rem; }
  .page { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18); margin: 0 auto 1.5rem; }
  .page-label {
    text-align: center;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0;
  }
  .preview-banner {
    max-width: 8.5in;
    margin: 0 auto 1rem;
    padding: 0.7rem 0.95rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #3730A3;
    line-height: 1.55;
  }
  .preview-banner a {
    color: #3730A3;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }
  .preview-banner a:hover { text-decoration-thickness: 2px; }
  .preview-banner .pb-actions {
    margin-top: 0.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
  }
  .preview-banner button {
    background: #3730A3;
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 0.3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
  }
  .preview-banner button:hover { background: #312e81; }
}
