.wh-cover {
  margin: 16px 0 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wh-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.wh-cover figcaption {
  padding: 10px 14px;
  font: 400 14px/1.5 Nunito, system-ui, sans-serif;
  color: #475569;
}

.wh-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.wh-subtitle {
  font: 700 16px/1.3 Poppins, sans-serif;
  margin: 0 0 8px;
  color: #0f172a;
}

.wh-vocab {
  columns: 2;
  column-gap: 24px;
}

.wh-callout {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
}

.wh-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wh-table table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font: 400 14px/1.5 Nunito, system-ui, sans-serif;
  color: #334155;
}

.wh-table th,
.wh-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
}

.wh-quiz ul {
  list-style: lower-alpha;
  margin: 8px 0 0 18px;
}

.wh-teacher-only details {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
}

.wh-teacher-only summary {
  font: 700 14px/1.4 Poppins, sans-serif;
  cursor: pointer;
}

.wh-answer-key {
  margin-top: 10px;
  font: 400 14px/1.6 Nunito, system-ui, sans-serif;
  color: #334155;
}

.wh-teacher-note {
  margin: 0 0 8px;
  font-weight: 600;
}

.wh-pdf-controls {
  align-items: center;
}

.wh-pdf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px/1 Nunito, system-ui, sans-serif;
  color: #334155;
}

.wh-pdf-toggle input {
  accent-color: #2563eb;
}

.wh-pdf-hint {
  font: 400 12px/1.4 Nunito, system-ui, sans-serif;
  color: #64748b;
}

.wh-print-header,
.wh-print-footer {
  display: none;
}

@media (max-width: 640px) {
  .wh-cover img {
    max-height: 260px;
  }

  .wh-vocab {
    columns: 1;
  }
}

@media print {
  @page {
    margin: 0.75in 0.65in 0.9in;
  }

  body {
    background: #fff;
    color: #000;
  }

  #site-header,
  .mg-breadcrumbs,
  .mg-guide-meta,
  .mg-note,
  .wh-pdf-controls,
  .wh-cover,
  .ad-slot,
  .mg-cta-box,
  .wh-teacher-only {
    display: none !important;
  }

  .wh-print-header {
    display: block;
    font: 700 22px/1.2 Poppins, sans-serif;
    margin: 0 0 18px;
    color: #000;
  }

  .wh-print-footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font: 400 11px/1.3 Nunito, system-ui, sans-serif;
    color: #000;
  }

  .mg-hero p,
  .mg-hero h1,
  .mg-guide-section p,
  .mg-guide-section ul,
  .mg-guide-section ol,
  .mg-guide-section h2 {
    color: #000;
  }

  .mg-guide-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .wh-print {
    break-before: page;
    page-break-before: always;
  }

  .wh-print,
  .wh-print h2,
  .wh-print p,
  .wh-print li {
    color: #000;
  }

  .wh-table {
    overflow: visible;
  }

  .wh-table table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .wh-table th,
  .wh-table td {
    word-break: break-word;
  }

  body.print-show-answers .wh-teacher-only {
    display: block !important;
  }

  body.print-show-answers .wh-teacher-only summary {
    display: none !important;
  }

  body.print-show-answers .wh-teacher-only details > *:not(summary) {
    display: block !important;
  }
}
