/* ============================================================
   language.css: shared styles for "language" course chapters (rule P1 "Styling").

   A chapter links this sheet and its own course sheet, and wraps its content in
       <div class="language-lesson <course>">
   where <course> is the course's slug (styles/courses/<course>.css sets that course's colours).
   Every rule is scoped under .language-lesson, so nothing leaks into the site.

   The colours that differ between courses are CSS variables; the value after the
   comma in var(--cN, value) is the default (the first course's colour). To start a
   new course in this genre, copy a sibling's styles/courses/<course>.css, rename its
   class and change the values.

   Variables:
     --c1             default #e0a82e    e.g. .course-name, .dialog-card h3, .dialog-card:hover
     --c2             default #3a2f12    e.g. .tag-phrase
   ============================================================ */
.language-lesson {
  font-family: 'Georgia', serif;
  color: #e2e4ec;
  line-height: 1.75;
}

.language-lesson h2 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #fff;
  border-bottom: 2px solid var(--c1, #e0a82e);
  padding-bottom: 8px;
}

.language-lesson .course-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c1, #e0a82e);
  margin: 0;
}

.language-lesson .chapter-sub {
  font-size: 0.85rem;
  color: #7a7f96;
  font-family: system-ui, -apple-system, sans-serif;
  margin: 2px 0 6px;
}

.language-lesson .section-intro {
  font-style: italic;
  color: #7a7f96;
  margin-bottom: 20px;
  font-size: 0.92em;
}

.language-lesson .dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .language-lesson .dialog-grid {
    grid-template-columns: 1fr;
  }
}

.language-lesson .dialog-card {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.2s;
}

.language-lesson .dialog-card:hover {
  border-color: var(--c1, #e0a82e);
}

.language-lesson .dialog-card h3 {
  margin: 0 0 12px 0;
  color: var(--c1, #e0a82e);
  font-size: 0.92em;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid #2a2d3a;
  padding-bottom: 6px;
}

.language-lesson .dialog-line {
  margin-bottom: 10px;
}

.language-lesson .dialog-line .speaker {
  font-weight: bold;
  color: #7c5cbf;
  min-width: 24px;
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
}

.language-lesson .dialog-line .pronunciation {
  font-size: 0.78em;
  color: #7a7f96;
  display: block;
  margin-left: 28px;
  font-style: italic;
}

.language-lesson .dialog-line .en {
  font-size: 0.82em;
  color: #a0a4b8;
  display: block;
  margin-left: 28px;
}

.language-lesson .vocab-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9em;
}

.language-lesson .vocab-table th {
  background: #1e2235;
  color: var(--c1, #e0a82e);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.82em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #2a2d3a;
}

.language-lesson .vocab-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #2a2d3a;
  color: #e2e4ec;
}

.language-lesson .vocab-table tr:nth-child(even) td {
  background: #1a1d27;
}

.language-lesson .vocab-table tr:hover td {
  background: #1e2235;
}

.language-lesson .vocab-table .pron {
  color: #a0a4b8;
  font-style: italic;
}

.language-lesson .vocab-table .note {
  font-size: 0.78em;
  color: #7a7f96;
  font-style: italic;
}

.language-lesson .tag-verb, .language-lesson .tag-noun, .language-lesson .tag-adj, .language-lesson .tag-phrase {
  font-size: 0.7em;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  font-family: system-ui, -apple-system, sans-serif;
}

.language-lesson .tag-verb {
  background: #7c5cbf;
  color: #fff;
}

.language-lesson .tag-noun {
  background: #2a5a8a;
  color: #a8d4ff;
}

.language-lesson .tag-adj {
  background: #1e3a2a;
  color: #7ecfa0;
}

.language-lesson .tag-phrase {
  background: var(--c2, #3a2f12);
  color: var(--c1, #e0a82e);
}

.language-lesson .tip-box {
  background: #1a1d27;
  border-left: 3px solid #7c5cbf;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-top: 24px;
  font-size: 0.9em;
  color: #a0a4b8;
}

.language-lesson .tip-box .tip-title {
  display: block;
  color: var(--c1, #e0a82e);
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  margin-bottom: 4px;
}

.language-lesson .practice-item {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.language-lesson .practice-item p {
  margin: 0 0 6px;
}

.language-lesson .practice-item summary {
  cursor: pointer;
  color: var(--c1, #e0a82e);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85em;
}

.language-lesson .practice-item .answer {
  margin-top: 8px;
  color: #7ecfa0;
}
