/* ═══════════════════════════════════════════════════════════
   Sherlock Holmes — Printable Worksheet Shared Styles
   Used by chapter-1-print.html … chapter-7-print.html
════════════════════════════════════════════════════════════ */

@page { size: A4; margin: 16mm 18mm; }

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

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fff;
}

@media screen {
  body {
    max-width: 210mm;
    margin: 0 auto;
    padding: 16mm 18mm 24mm;
    box-shadow: 0 2px 24px rgba(0,0,0,0.12);
    min-height: 100vh;
  }
}

/* ── Print button ───────────────────────────────────────── */
.print-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
}
.print-btn {
  background: #1a2744;
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 12pt;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.print-btn:hover { background: #243566; }
@media print { .print-bar { display: none; } }

/* ── Header ─────────────────────────────────────────────── */
.book-header {
  border-bottom: 2.5px solid #1a2744;
  padding-bottom: 11px;
  margin-bottom: 17px;
}
.book-series {
  font-size: 8pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 3px;
}
.book-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 18pt;
  font-weight: 700;
  color: #1a2744;
  line-height: 1.2;
  margin-bottom: 2px;
}
.book-subtitle {
  font-size: 10pt;
  color: #555;
  font-style: italic;
  margin-bottom: 10px;
}
.book-meta {
  display: flex;
  gap: 28px;
  font-size: 10pt;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-line {
  display: inline-block;
  width: 90px;
  border-bottom: 1px solid #444;
}

/* ── Section labels ─────────────────────────────────────── */
.sec-label {
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a2744;
  border-left: 3px solid #c9a227;
  padding-left: 8px;
  margin-bottom: 9px;
  line-height: 1.3;
}

/* ── Vocabulary table ───────────────────────────────────── */
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 10.5pt;
}
.vocab-table thead th {
  background: #eef0f6;
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  text-align: left;
  border: 1px solid #c8ccda;
}
.vocab-table td {
  padding: 6px 9px;
  border: 1px solid #d4d8e4;
  vertical-align: top;
  line-height: 1.5;
}
.vocab-table tr:nth-child(even) td { background: #f7f8fb; }
.v-word { font-weight: 700; }
.v-ua { color: #555; font-style: italic; font-size: 10pt; }

/* ── Matching exercise ──────────────────────────────────── */
.match-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
  font-size: 10.5pt;
}
.match-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #ebebeb;
  vertical-align: middle;
}
.match-table tr:last-child td { border-bottom: none; }
.match-word { font-weight: 600; white-space: nowrap; }
.match-blank {
  display: inline-block;
  width: 32px;
  height: 22px;
  border: 1.5px solid #555;
  border-radius: 3px;
  vertical-align: middle;
}
.match-letter { font-weight: 700; color: #1a2744; padding-right: 4px; }
.match-col-words { width: 40%; }
.match-col-box   { width: 12%; text-align: center; }
.match-col-defs  { width: 48%; }

/* ── Think / intro box ──────────────────────────────────── */
.think-box {
  background: #fdf9ee;
  border-left: 3px solid #c9a227;
  padding: 9px 13px;
  font-size: 10.5pt;
  margin-top: 12px;
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}
.think-box strong { color: #1a2744; }

.intro-box {
  background: #f4f5f9;
  border-left: 3px solid #1a2744;
  padding: 9px 13px;
  font-size: 10.5pt;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
  line-height: 1.65;
}
.intro-box-label {
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2744;
  margin-bottom: 5px;
}

/* ── Audio / QR area ────────────────────────────────────── */
.audio-qr-area {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f7f8fb;
  border: 1px solid #d0d4e4;
  border-radius: 4px;
  padding: 9px 12px;
  margin: 12px 0 13px;
}
.audio-note-text {
  flex: 1;
  font-size: 9.5pt;
  color: #444;
  line-height: 1.6;
}
.audio-note-text .audio-icon { font-size: 12pt; margin-right: 4px; }
.audio-note-text strong { color: #1a2744; }
.audio-note-text .audio-extra { display: block; margin-top: 4px; color: #666; }
.qr-wrap {
  flex-shrink: 0;
  text-align: center;
}
.qr-wrap svg {
  width: 72px !important;
  height: 72px !important;
  display: block;
}
.qr-caption {
  font-size: 7pt;
  color: #999;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
}

/* ── Word bank ──────────────────────────────────────────── */
.word-bank {
  background: #f0f2f8;
  border: 1px solid #c4c9dc;
  padding: 8px 13px 10px;
  margin-bottom: 13px;
  border-radius: 4px;
}
.wb-title {
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2744;
  margin-bottom: 6px;
}
.wb-words {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 10.5pt;
  font-style: italic;
}

/* ── Reading text ───────────────────────────────────────── */
.reading-text p {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 11.5pt;
  line-height: 2.05;
  margin-bottom: 7px;
}
.blank {
  display: inline-block;
  border-bottom: 1.5px solid #333;
  min-width: 65px;
  margin: 0 2px;
}
.reading-sep {
  text-align: center;
  color: #bbb;
  margin: 8px 0;
  letter-spacing: 0.35em;
  font-size: 10pt;
}

/* ── Pull quote ─────────────────────────────────────────── */
.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12pt;
  font-style: italic;
  color: #1a2744;
  border-left: 3px solid #c9a227;
  padding: 8px 14px;
  margin: 12px 0;
  line-height: 1.5;
}

/* ── Fact box ───────────────────────────────────────────── */
.fact-box {
  background: #f7f8fb;
  border: 1px solid #d0d4e4;
  border-radius: 4px;
  padding: 9px 13px;
  font-size: 9.5pt;
  margin: 10px 0;
  line-height: 1.6;
}

/* ── Write lines ────────────────────────────────────────── */
.wline {
  border-bottom: 1px solid #b0b0b0;
  height: 26px;
  margin-bottom: 5px;
  width: 100%;
  display: block;
}
.wline-sm {
  border-bottom: 1px solid #b0b0b0;
  height: 24px;
  margin-bottom: 4px;
  width: 100%;
  display: block;
}

/* ── Comprehension ──────────────────────────────────────── */
.comp-q { margin-bottom: 14px; }
.comp-q p { font-size: 11pt; font-weight: 500; margin-bottom: 5px; }

/* ── Grammar ────────────────────────────────────────────── */
.gex { margin-bottom: 16px; }
.gex-type {
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2744;
  margin-bottom: 3px;
}
.gex-instr { font-size: 9.5pt; color: #555; margin-bottom: 7px; }
.gex-sent {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11pt;
  line-height: 2.1;
}
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 10px; font-size: 11pt; line-height: 1.45; }
.order-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px;
  border: 1.5px solid #444;
  border-radius: 3px;
  flex-shrink: 0;
}
.qa-q { font-size: 11pt; font-weight: 500; margin-bottom: 5px; }

/* ── Speaking ───────────────────────────────────────────── */
.speak-q { margin-bottom: 12px; }
.speak-q p { font-size: 11pt; margin-bottom: 4px; }
.speak-q em { color: #1a2744; font-style: normal; font-weight: 600; }

/* ── Page break ─────────────────────────────────────────── */
@media screen {
  .page-break {
    margin: 28px 0;
    border-top: 1px dashed #ccc;
  }
}
@media print {
  .page-break { page-break-after: always; break-after: page; }
}

/* ── Cut line / Answer key ──────────────────────────────── */
.cut-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 16px;
}
.cut-wrap::before, .cut-wrap::after {
  content: ''; flex: 1; border-top: 1.5px dashed #aaa;
}
.cut-label { font-size: 9pt; color: #999; white-space: nowrap; letter-spacing: 0.04em; flex-shrink: 0; }
.ak-header {
  font-size: 9pt; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #888; margin-bottom: 13px;
}
.ak-block { margin-bottom: 12px; }
.ak-label {
  font-size: 8.5pt; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #1a2744; margin-bottom: 5px;
}
.ak-text { font-size: 10pt; line-height: 1.6; }
.ak-text p { margin-bottom: 4px; }
.ak-cols { display: flex; gap: 24px; }
.ak-cols > div { flex: 1; }
