/* Terrathink: For teachers and the printables. Loaded after styles.css and notes.css. */

.jump a { text-decoration: none; }
.t-sub { padding: 0 var(--gutter); margin-top: -12px; margin-bottom: clamp(24px, 2.6vw, 34px); max-width: calc(62ch + 2 * var(--gutter)); color: var(--ink-soft); line-height: 1.55; }
.t-band { padding: clamp(48px, 5.5vw, 80px) 0; background: var(--paper-deep); }
.t-section { padding: clamp(56px, 6vw, 88px) 0 0; }
.t-section .notes-grid { padding-bottom: 0; }

/* Printable cards: a small drawn sheet, then the title and what is on it. */
.print-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0 var(--gutter); list-style: none; }
.print-card {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 20px; row-gap: 8px;
  padding: clamp(18px, 2vw, 24px); border: 1px solid var(--ink-line); border-radius: 18px; background: var(--paper);
  transition: border-color .2s ease;
}
.print-card:hover { border-color: var(--ink); }
.print-card:has(a:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 4px; }
.print-card h3 { grid-column: 2; font-size: clamp(1.35rem, 1.7vw, 1.6rem); line-height: 1.1; }
.print-card h3 a { text-decoration: none; }
.print-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.print-card h3 a:focus-visible { outline: none; }
.print-card .dek { grid-column: 2; font-size: 0.9688rem; line-height: 1.5; color: var(--ink-soft); }
.print-card .tool-go { grid-column: 2; align-self: end; margin-top: 4px; font-size: 0.9375rem; font-weight: 500; }
.print-card .tool-go::after { content: " \2192"; }

.sheet-thumb {
  grid-column: 1; grid-row: 1 / 4; align-self: start;
  position: relative; display: block; aspect-ratio: 8.5 / 11; border-radius: 6px;
  background: #FFF8EE; border: 1px solid var(--ink-line); box-shadow: 0 1px 0 rgba(30, 61, 81, 0.06), 6px 6px 0 -1px var(--paper-deep), 6px 6px 0 0 var(--ink-line);
  overflow: hidden;
}
.sheet-thumb::before { content: ""; position: absolute; left: 12%; right: 12%; top: 9%; height: 6%; border-radius: 2px; background: var(--ink); }
.sheet-thumb span { position: absolute; left: 12%; right: 12%; top: 22%; bottom: 10%; }
.sheet-thumb-table span {
  background:
    repeating-linear-gradient(to bottom, rgba(30, 61, 81, 0.35) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(to right, rgba(30, 61, 81, 0.22) 0 1px, transparent 1px 25%);
  border: 1px solid rgba(30, 61, 81, 0.35);
}
.sheet-thumb-boxes span {
  background:
    linear-gradient(rgba(30, 61, 81, 0.28), rgba(30, 61, 81, 0.28)) 0 0 / 100% 14% no-repeat,
    linear-gradient(rgba(30, 61, 81, 0.12), rgba(30, 61, 81, 0.12)) 0 22% / 47% 22% no-repeat,
    linear-gradient(rgba(30, 61, 81, 0.12), rgba(30, 61, 81, 0.12)) 100% 22% / 47% 22% no-repeat,
    linear-gradient(rgba(30, 61, 81, 0.12), rgba(30, 61, 81, 0.12)) 0 56% / 47% 22% no-repeat,
    linear-gradient(rgba(30, 61, 81, 0.12), rgba(30, 61, 81, 0.12)) 100% 56% / 47% 22% no-repeat,
    linear-gradient(rgba(63, 138, 79, 0.35), rgba(63, 138, 79, 0.35)) 0 100% / 100% 12% no-repeat;
}
.sheet-thumb-lines span {
  background:
    linear-gradient(var(--leaf), var(--leaf)) 0 0 / 30% 5% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 12px, rgba(30, 61, 81, 0.3) 12px 13px);
}

/* Standards beside the safety list, so neither leaves a half-empty row. */
.t-split {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px);
  padding: clamp(56px, 6vw, 88px) var(--gutter) 0;
}
.t-split h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; }
.t-split .t-sub { padding: 0; margin: 12px 0 0; }
.t-map .table-wrap { margin-top: 20px; background: var(--paper); }
.map-table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.map-table th, .map-table td { padding: 14px 16px; text-align: left; vertical-align: top; line-height: 1.5; }
.map-table thead th { background: var(--paper-deep); font-weight: 500; }
.map-table tbody th { font-family: var(--display); font-weight: 400; font-size: 1.0625rem; white-space: nowrap; }
.map-table tbody tr + tr > * { border-top: 1px solid var(--ink-line); }
.map-table q { quotes: "\201C" "\201D"; color: var(--ink); }
.map-notes { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.map-notes a { font-size: 0.9375rem; font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.t-safety { align-self: start; padding: clamp(22px, 2.6vw, 34px); border-radius: 18px; background: var(--night); color: var(--paper); }
.t-safety h2 { color: var(--paper); }
.t-safety ul { margin: 18px 0 0; padding: 0; list-style: none; }
.t-safety li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid rgba(255, 237, 213, 0.18); line-height: 1.5; }
.t-safety li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2px solid #8FCF9E; border-bottom: 2px solid #8FCF9E; transform: rotate(-45deg); }

.t-tools { padding-bottom: clamp(56px, 6vw, 88px); }
.t-tools .tool-card:not(.tool-card-class) { background: var(--paper-deep); }

@media (max-width: 960px) {
  .print-grid { grid-template-columns: minmax(0, 1fr); }
  .t-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .print-card { grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; }
  .map-table th, .map-table td { padding: 12px; }
  .map-table thead { display: none; }
  .map-table tbody tr { display: block; padding: 4px 0; }
  .map-table tbody tr + tr { border-top: 1px solid var(--ink-line); }
  .map-table tbody tr + tr > * { border-top: 0; }
  .map-table tbody th, .map-table tbody td { display: block; }
  .map-table tbody th { padding-bottom: 0; }
}

/* ---------- printables ---------- */
.print-bar { padding: clamp(20px, 3vw, 44px) var(--gutter) clamp(28px, 3vw, 44px); }
.print-bar .eyebrow { margin-bottom: 16px; }
.print-bar h1 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -0.02em; }
.print-bar .blurb { margin-top: 16px; max-width: 60ch; font-size: clamp(1.1rem, 1.3vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); }
.print-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.print-actions .pill { border: 0; cursor: pointer; margin-right: 8px; }
.print-actions a { text-decoration: none; }

.printables .sheet:last-of-type { margin-bottom: clamp(48px, 5vw, 80px); }
.sheet {
  width: min(100% - 2 * var(--gutter), 8.5in); margin: 0 auto clamp(28px, 3vw, 44px);
  padding: 0.55in 0.6in 0.45in; aspect-ratio: 8.5 / 11; display: flex; flex-direction: column;
  background: #FFFDF9; color: #1E3D51; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(30, 61, 81, 0.08), 0 18px 40px -24px rgba(30, 61, 81, 0.45);
  font-size: 11pt; line-height: 1.35;
}
.sheet-head { display: grid; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #1E3D51; }
.sheet-head h2 { font-size: 22pt; line-height: 1; }
.sheet-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sheet-print { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.sheet-fields { display: flex; gap: 14px; margin: 0; }
.sheet-fields div { display: flex; align-items: flex-end; gap: 6px; flex: 1 1 0; }
.sheet-fields div:first-child { flex: 2.4 1 0; }
.sheet-fields dt { font-size: 9pt; font-weight: 500; white-space: nowrap; }
.sheet-fields dd { flex: 1; margin: 0; min-height: 18px; border-bottom: 1px solid rgba(30, 61, 81, 0.55); }
.sheet-table { width: 100%; margin-top: 14px; border-collapse: collapse; table-layout: fixed; font-size: 9pt; }
.sheet-table th { padding: 5px 4px; text-align: left; font-weight: 500; background: #F5DDBF; border: 1px solid rgba(30, 61, 81, 0.55); line-height: 1.15; }
.sheet-table td { height: 27px; border: 1px solid rgba(30, 61, 81, 0.4); }
#data-sheet .sheet-table th:nth-child(1) { width: 11%; }
#data-sheet .sheet-table th:nth-child(2) { width: 7%; }
#data-sheet .sheet-table th:nth-child(3) { width: 10%; }
#data-sheet .sheet-table th:nth-child(4) { width: 14%; }
#data-sheet .sheet-table th:nth-child(5),
#data-sheet .sheet-table th:nth-child(6),
#data-sheet .sheet-table th:nth-child(7) { width: 10%; }
.sheet-table-small td { height: 24px; }
.sheet-tip { margin-top: 10px; font-size: 8.5pt; line-height: 1.4; color: rgba(30, 61, 81, 0.85); }
.sheet-foot { margin-top: auto; padding-top: 8px; font-size: 8pt; color: rgba(30, 61, 81, 0.7); }
.sheet-boxes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; align-content: stretch; }
.box { display: flex; flex-direction: column; min-height: 1.25in; padding: 8px 10px; border: 1px solid rgba(30, 61, 81, 0.5); border-radius: 6px; }
.box-wide { grid-column: 1 / -1; min-height: 0.95in; }
.box-tall { min-height: 1.9in; }
.box h3 { font-family: var(--text); font-size: 11pt; font-weight: 500; line-height: 1.2; }
.box p { margin-top: 2px; font-size: 8.5pt; color: rgba(30, 61, 81, 0.75); }
.box-check { min-height: 0; background: #F5DDBF; border-color: transparent; }
.box-evidence .sheet-table { margin-top: 8px; }
.sheet:target { outline: 2px solid var(--leaf); outline-offset: 6px; }

/* On phones the sheet scales down instead of keeping its page shape. */
@media (max-width: 760px) {
  .sheet { aspect-ratio: auto; padding: 22px 18px; font-size: 10pt; }
  .sheet-head h2 { font-size: 18pt; }
  .sheet-fields { flex-wrap: wrap; }
  .sheet-fields div, .sheet-fields div:first-child { flex: 1 1 100%; }
  .sheet-boxes { grid-template-columns: minmax(0, 1fr); }
  .box { min-height: 0.9in; }
  .sheet-table { font-size: 8pt; }
  .sheet-table th { padding: 4px 2px; font-size: 7pt; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
  #data-sheet .sheet-table th:nth-child(1) { width: 13%; }
  #data-sheet .sheet-table th:nth-child(2) { width: 9%; }
  #data-sheet .sheet-table th:nth-child(3) { width: 11%; }
  #data-sheet .sheet-table th:nth-child(4) { width: 17%; }
  #data-sheet .sheet-table th:nth-child(5),
  #data-sheet .sheet-table th:nth-child(6),
  #data-sheet .sheet-table th:nth-child(7) { width: 12%; }
}

@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; }
  .skip, .site-header, .site-footer, .waitlist, .print-bar, .sheet-print, .sheet.print-skip { display: none !important; }
  .printables { padding: 0; }
  .sheet {
    width: 8.5in; height: 11in; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; outline: none;
    break-after: page; page-break-after: always;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .sheet:last-of-type, .sheet.print-last { break-after: auto; page-break-after: auto; }
  .printables .sheet:last-of-type { margin-bottom: 0; }
}
