.prompt-site [hidden] { display: none !important; }
.prompt-site .site-header nav { gap: 12px clamp(12px, 2.3vw, 32px); }
.prompt-site .site-footer nav { flex-wrap: wrap; }

.pilot-main {
  width: min(1100px, 100% - clamp(32px, 11vw, 120px));
  margin-inline: auto;
  padding-block: clamp(36px, 6vw, 80px);
  display: grid;
  gap: 24px;
  font-size: 16px;
}
.pilot-main h1 { font-size: clamp(44px, 8vw, 104px); }
.pilot-main h2 { font-size: clamp(28px, 4vw, 42px); }
.pilot-main h3 { font-size: 25px; }
.pilot-main p { max-width: 70ch; }
.pilot-main a:not(.button) { text-decoration: underline; text-underline-offset: .2em; }
.pilot-heading, .pilot-card, .pilot-main > section {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.pilot-lead { font-size: clamp(17px, 2vw, 21px); }
.pilot-credit { font-weight: 700; }
.pilot-note {
  padding: 16px 20px;
  background: #efe9db;
  border-inline-start: 4px solid var(--yellow);
}
.pilot-links, .copy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.pilot-links a, .pilot-main .button { min-height: 44px; }
.pilot-links a { display: inline-flex; align-items: center; }
.pilot-main button { cursor: pointer; }

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}
.pilot-card {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  background: var(--card);
}
.pilot-card .button { align-self: end; }
.pilot-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.pilot-search input {
  width: min(100%, 30rem);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--card);
}
.prompt-box {
  width: 100%;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--ink);
  background: var(--card);
}
.prompt-box pre {
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  font: inherit;
}
.copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.follow-ups { padding-inline-start: 1.5em; list-style: disc; }
.follow-ups li + li { margin-top: .5em; }
.book-panel {
  display: grid;
  grid-template-columns: minmax(100px, 155px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid var(--ink);
  background: var(--yellow);
}
.book-panel img { width: 100%; height: auto; }
.book-panel h2, .book-panel p { margin-bottom: 12px; }
.lesson { scroll-margin-top: 110px; }
.lesson-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.lesson-check input { width: 20px; height: 20px; accent-color: var(--ink); }

.worksheet .line {
  min-height: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.pilot-main > .bookmark {
  width: min(100%, 65mm);
  min-height: 185mm;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--cream);
}

@media (max-width: 640px) {
  .prompt-site .site-header { position: static; }
  .book-panel { grid-template-columns: minmax(0, 1fr); }
  .book-panel img { width: min(100%, 140px); }
  .lesson { scroll-margin-top: 16px; }
}

@media print {
  @page { margin: 12mm; }
  .prompt-site .skip, .prompt-site .edition-bar, .prompt-site .site-header,
  .prompt-site .site-footer, .pilot-main .no-print { display: none !important; }
  .prompt-site, .pilot-main .pilot-card, .pilot-main .pilot-note,
  .pilot-main > .bookmark { color: #000; background: #fff; }
  .pilot-main.printable { width: 100%; padding: 0; gap: 8pt; font-size: 10pt; }
  .printable h1 { font-size: 28pt; }
  .printable h2 { font-size: 16pt; }
  .printable .pilot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8pt; }
  .printable .pilot-card { padding: 8pt; gap: 5pt; break-inside: avoid; }
  .printable .worksheet .line { border-color: #555; }
  .printable .bookmark { break-inside: avoid; }
}
