/* Template pages: the printable sheet and its filled examples. Loaded
   after /assets/site.css, which holds the tokens, type and shared parts. */
/* The sheet: the part that prints */
.sheet {
  margin: 36px 0 0;
  padding: clamp(20px, 4vw, 48px);
  background: var(--soft);
  border: 1px solid var(--line);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.sheet-brow { margin: 0 0 16px; color: #9a9aa0; font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.sheet-title { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 620; letter-spacing: -.04em; line-height: 1.05; }
.sheet-sub { max-width: 62ch; margin: 10px 0 0; color: var(--body); font-size: 15px; line-height: 1.5; }
.sheet-rule { height: 0; margin: 22px 0 6px; border-top: 2px solid var(--ink); }
.sheet-foot { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.sheet-foot b { color: var(--ink); }
.sheet-url { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.meta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 18px 0 0; }
.meta-row .field { padding: 0; border: 0; }

.fields { margin: 0; padding: 0; list-style: none; }
.field { padding: 16px 0 14px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.fields > .field:last-child { border-bottom: 0; }
.field-head { display: flex; gap: 12px; align-items: baseline; }
.num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  transform: translateY(-2px);
}
.flabel { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.fhint { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.field-head ~ .fhint, .field-head ~ .fill { margin-left: 38px; }

/* A writing area: ruled lines on screen and paper, typing allowed. */
.fill {
  --lh: 30px;
  display: block;
  min-height: calc(var(--lh) * var(--rows, 2) + 2px);
  margin-top: 6px;
  padding: 0 2px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px), var(--rule) var(--lh));
  background-attachment: local;
  color: var(--answer-ink);
  font-family: var(--answer);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh);
  letter-spacing: -.01em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
}
.fill:empty::before { content: attr(data-placeholder); color: #b0b0b6; font-family: "DM Sans", sans-serif; font-size: 13px; }
.fill.short { --rows: 1; }

.field.muted .flabel, .field.muted .fhint { color: #9a9aa0; }

/* Score scale on the conversation guide */
.scale { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.scale li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.scale li:last-child { border-bottom: 0; }
.scale label { cursor: pointer; }
.scale strong { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.scale span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.scale input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }

.sheet-section { margin: 30px 0 0; break-inside: avoid; }
.sheet-section h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
.sheet-section > p { margin: 6px 0 0; color: var(--body); font-size: 14px; line-height: 1.5; }
.napkin { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: end; margin: 12px 0 0; }
.napkin .op { padding-bottom: 8px; color: var(--muted); font-size: 20px; font-weight: 600; }
.napkin .flabel { font-size: 14px; }

/* A filled example, set like handwriting */
.example { margin: 20px 0 0; padding: clamp(20px, 3.4vw, 36px); background: var(--soft); border: 1px solid var(--line); }
.example dl { display: grid; gap: 16px; margin: 0; }
.example dt { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.example dd { margin: 4px 0 0; color: var(--answer-ink); font-family: var(--answer); font-size: clamp(15px, 1.5vw, 16.5px); font-weight: 400; line-height: 1.55; letter-spacing: -.01em; }
.figure { margin: 20px 0 0; }
.figure img { display: block; width: 100%; max-width: 520px; height: auto; border: 1px solid var(--line); }
.figure figcaption { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 480px) {
  .field-head ~ .fhint, .field-head ~ .fill { margin-left: 0; }
  .napkin { grid-template-columns: 1fr; }
  .napkin .op { padding: 0; }
}

/* Print only the sheet, on white paper. */
@media print {
  @page { margin: 14mm; }
  body { font-size: 12pt; }
  .page-body, .page-head, .crumbs { display: none !important; }
  .sheet { margin: 0; padding: 0; border: 0; background: #fff; }
  .sheet-rule { margin: 14px 0 2px; }
  .sheet-sub { font-size: 10.5pt; }
  .meta-row { margin-top: 10px; }
  .field { padding: 9px 0 8px; }
  .flabel { font-size: 11.5pt; }
  .fhint { font-size: 9.5pt; }
  .fill { --lh: 26px; }
  .num { width: 22px; height: 22px; font-size: 11px; }
  .field-head ~ .fhint, .field-head ~ .fill { margin-left: 34px; }
  .sheet-foot { margin-top: 12px; padding-top: 10px; }
  /* The one-page concept has to live up to its name on paper. */
  [data-template="one-page-concept"] .field { padding: 6px 0 5px; }
  [data-template="one-page-concept"] .fill { --lh: 23px; margin-top: 2px; }
  [data-template="one-page-concept"] .fields .field { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
  [data-template="one-page-concept"] .fields .fhint { margin: 0; }
  [data-template="one-page-concept"] .fields .fill { grid-column: 1 / -1; }
  .sheet-section.break { break-before: page; margin-top: 0; }
  .fill:empty::before { content: none; }
  .scale input { accent-color: #000; }
}
