/**
 * Lesson shell v1 — extends article-lesson.css with listening-guide blocks.
 */
@import url("article-lesson.css");

.phrase-list {
  display: grid;
  gap: 14px;
}

.phrase-item {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: var(--border);
  border-radius: 24px;
  background: var(--off-white-blue);
  box-shadow: var(--shadow);
}

.phrase-item strong {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.phrase-item span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.phrase-item em {
  font-style: normal;
  font-weight: 850;
}

.collocation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.collocation-card {
  padding: 18px;
  border: var(--border);
  border-radius: 24px;
  background: var(--off-white-blue);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.collocation-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.vocab-example {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.highlight-vocab {
  color: #d93025;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.short-answer-line {
  min-height: 56px;
  border: var(--border);
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(60, 60, 60, 0.08) 0,
      rgba(60, 60, 60, 0.08) 2px,
      transparent 2px,
      transparent 28px
    ),
    var(--cream);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.video-wrap {
  display: grid;
  gap: 18px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--border);
  border-radius: 34px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.credit-box,
.notice-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.notice-box {
  gap: 10px;
  padding: 22px;
  border-radius: 28px;
  background: var(--green-light);
}

.section-card.dark .notice-box {
  background: var(--white);
  color: var(--ink);
}

.credit-box strong,
.notice-box strong {
  font-weight: 950;
}

.lesson-trial-actions {
  flex-shrink: 0;
}

.related-card .button {
  pointer-events: none;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.meta-pill.source {
  background: var(--pink);
}

.lesson-pdf-wrap {
  padding: 20px 7vw 0;
}

.lesson-pdf-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: var(--border);
  border-radius: 28px;
  background: var(--off-white-blue);
  box-shadow: var(--shadow);
}

.lesson-pdf-copy {
  display: grid;
  gap: 4px;
}

.lesson-pdf-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.lesson-pdf-card strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.lesson-pdf-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.lesson-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.lesson-pdf-card .button {
  flex: 0 0 auto;
}

/* Mobile lesson hero — cream canvas, dark readable text (pronunciation + articles) */
@media (max-width: 620px) {
  body.reading-lesson .article-hero {
    min-height: 0 !important;
    padding: 16px clamp(18px, 5vw, 28px) 12px !important;
    background: var(--cream) !important;
    color: var(--ink) !important;
    overflow: visible !important;
  }

  body.reading-lesson .article-hero--pronunciation {
    padding-bottom: 8px !important;
  }

  body.reading-lesson .article-hero--pronunciation .article-hero-title {
    margin-bottom: 10px !important;
  }

  body.reading-lesson .article-hero--pronunciation .article-hero-lead {
    margin-bottom: 8px !important;
  }

  body.reading-lesson .article-meta-groups--single {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.reading-lesson .article-meta-groups--single .meta-pill {
    flex: 0 1 auto !important;
    width: auto !important;
  }

  body.reading-lesson .article-hero::before,
  body.reading-lesson .article-hero::after {
    display: none !important;
    content: none !important;
  }

  body.reading-lesson .article-hero-content.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body.reading-lesson .article-hero .breadcrumb,
  body.reading-lesson .article-hero .breadcrumb a {
    color: var(--muted) !important;
  }

  body.reading-lesson .article-hero .eyebrow {
    color: var(--ink) !important;
    gap: 6px !important;
    padding: 4px 9px !important;
    margin-bottom: 8px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    box-shadow: var(--shadow-press) !important;
  }

  body.reading-lesson .article-hero .eyebrow-dot {
    width: 6px !important;
    height: 6px !important;
  }

  body.reading-lesson .article-hero .eyebrow,
  body.reading-lesson .article-hero .article-hero-title,
  body.reading-lesson .article-hero .article-hero-lead {
    color: var(--ink) !important;
  }

  body.reading-lesson .article-hero .article-hero-copy {
    color: var(--muted) !important;
  }

  body.reading-lesson .article-hero .article-hero-title {
    font-size: clamp(34px, 7.5vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.05em !important;
  }

  body.reading-lesson .article-hero .article-hero-lead {
    font-size: clamp(18px, 4.8vw, 22px) !important;
    line-height: 1.45 !important;
  }

  body.reading-lesson .article-hero .article-hero-copy {
    font-size: clamp(14px, 3.8vw, 16px) !important;
    line-height: 1.75 !important;
  }
}

@media (max-width: 620px) {
  .lesson-pdf-wrap {
    padding: 14px 18px 0;
  }

  .lesson-pdf-card {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
  }

  .lesson-pdf-actions {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .lesson-pdf-card .button {
    width: 100%;
  }

  .collocation-grid {
    grid-template-columns: 1fr;
  }

  .lesson-trial-actions {
    width: 100%;
  }

  .lesson-trial-actions .button {
    width: 100%;
  }
}


/* Interactive workbook — reuses the Green Square lesson card system */
.workbook-fill-instructions {
  margin: 0 0 18px;
  font-weight: 850;
  color: var(--muted);
}

.workbook-dialogue {
  overflow: hidden;
  border: var(--border);
  border-radius: 30px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.workbook-dialogue-lines {
  display: grid;
  padding: 22px;
}

.workbook-dialogue-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(60, 60, 60, 0.16);
}

.workbook-dialogue-line:last-child {
  border-bottom: 0;
}

.workbook-dialogue-line.no-speaker p {
  grid-column: 1 / -1;
}

.workbook-dialogue-line p {
  margin: 0;
  line-height: 1.8;
  font-weight: 750;
}

.workbook-speaker {
  color: var(--green);
  font-weight: 950;
}

.workbook-blank {
  width: min(100%, 280px);
  min-height: 44px;
  margin: 2px 5px;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.workbook-blank:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.workbook-blank.is-correct {
  background: var(--green-light);
}

.workbook-blank.is-wrong {
  background: var(--pink);
}

.workbook-fill-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 22px;
  border-top: var(--border);
  background: var(--off-white-blue);
}

.fill-action,
.fill-reset {
  min-height: 46px;
  padding: 0 20px;
  border: var(--border);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.fill-action.is-secondary {
  background: var(--yellow);
  color: var(--ink);
}

.fill-reset {
  background: var(--white);
  color: var(--ink);
}

.fill-action:hover,
.fill-reset:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.fill-action:active,
.fill-reset:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.workbook-fill-summary {
  flex-basis: 100%;
  min-height: 24px;
  margin: 4px 0 0;
  font-weight: 900;
}

@media (max-width: 620px) {
  .workbook-dialogue {
    border-radius: 24px;
  }

  .workbook-dialogue-lines {
    padding: 14px 16px;
  }

  .workbook-dialogue-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .workbook-blank {
    display: block;
    width: 100%;
    margin: 8px 0;
  }

  .workbook-fill-actions {
    padding: 16px;
  }

  .fill-action,
  .fill-reset {
    flex: 1 1 140px;
  }
}

/* Reading body: keep the opening letter consistent with paragraph text. */
.reading-body .dropcap::first-letter {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  color: inherit;
}

/* Reading paragraphs should use the available lesson-card width.
 * Keep this override in the versioned shell stylesheet so browsers do not
 * keep the older width cap from the imported article-lesson.css cache. */
.reading-body p {
  max-width: none;
}
