/* Styles scoped to the personal-pronouns lesson. */
.pronouns-lesson .grammar-content { min-width: 0; }
.pronouns-lesson .grammar-section { min-width: 0; }
.pronouns-intro,
.pronouns-detail { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.pronouns-detail { margin: 14px 0 0; }

.pronouns-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pronouns-path {
  display: grid; gap: 7px; padding: 18px; border: 1px solid rgba(47, 174, 155, .26);
  border-radius: 16px; background: linear-gradient(150deg, #fff, #f2fbfa);
  box-shadow: 0 10px 25px rgba(29, 42, 56, .06); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pronouns-path:hover, .pronouns-path:focus-visible { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(29, 42, 56, .11); }
.pronouns-path span { color: #a95048; font-size: .76rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.pronouns-path strong { color: var(--ink); font-size: 1.08rem; line-height: 1.3; }
.pronouns-path small { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.pronouns-path:last-child { grid-column: 1 / -1; }

.pronouns-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(47, 174, 155, .2);
  border-radius: 22px;
  background: linear-gradient(145deg, #eaf9f7, #fff7ee);
  box-shadow: 0 18px 38px rgba(29, 42, 56, .08);
}
.pronouns-figure img { display: block; width: 100%; height: auto; border-radius: 13px; }
.pronouns-figure figcaption { padding: 12px 8px 2px; color: var(--muted); line-height: 1.5; }
.pronouns-figure--compact { margin-bottom: 14px; }
.pronouns-story { display: grid; gap: 9px; margin-top: 14px; }
.pronouns-story p {
  margin: 0;
  padding: 12px 15px;
  border: 1px solid rgba(42, 49, 58, .09);
  border-left: 4px solid #359c8c;
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  color: var(--muted);
  line-height: 1.55;
}
.pronouns-story strong { color: var(--ink); }
.pronouns-story em { color: #1f6d5f; font-weight: 800; }

.pronouns-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(244, 143, 130, .2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(29, 42, 56, .07);
}
.pronouns-table { width: 100%; border-collapse: collapse; text-align: left; }
.pronouns-table caption { padding: 13px 16px; color: var(--ink); font-weight: 900; text-align: left; }
.pronouns-table th,
.pronouns-table td { padding: 11px 12px; border-top: 1px solid #e7ebee; line-height: 1.35; }
.pronouns-table thead th { background: #fff2ef; color: #963b35; font-size: .9rem; white-space: nowrap; }
.pronouns-table thead small { font-size: .78rem; font-weight: 600; }
.pronouns-table tbody tr:nth-child(even) { background: #f7fbfa; }
.pronouns-table tbody th { color: var(--ink); font-weight: 800; white-space: nowrap; }
.pronouns-table tbody td { color: #214f61; font-weight: 800; }
.pronouns-table tbody td:nth-child(5) { color: #795090; }
.pronouns-table tbody td:nth-child(6) { color: #1f6d5f; }

.pronouns-examples,
.pronouns-pair-grid,
.pronouns-mistakes { display: grid; gap: 12px; }
.pronouns-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pronouns-examples article,
.pronouns-pair,
.pronouns-mistakes article {
  padding: 16px;
  border: 1px solid rgba(64, 128, 184, .17);
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f1f9fa);
  box-shadow: 0 10px 26px rgba(29, 42, 56, .06);
}
.pronouns-examples span,
.pronouns-pair span { color: #b5534b; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.pronouns-examples p { margin: 9px 0; color: var(--ink); font-weight: 750; line-height: 1.5; }
.pronouns-examples small,
.pronouns-pair p,
.pronouns-mistakes small { color: var(--muted); line-height: 1.5; }
.pronouns-pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pronouns-pair { border-color: rgba(47, 174, 155, .2); background: linear-gradient(150deg, #fff, #f2fcfa); }
.pronouns-pair strong { display: block; margin: 9px 0; color: var(--ink); font-size: 1.2rem; }
.pronouns-pair p { margin: 0; }
.pronouns-bad,
.pronouns-mistakes del { color: #a6423d; }
.pronouns-good { color: #137d66; }
.pronouns-mistakes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pronouns-mistakes article:last-child { grid-column: 1 / -1; }
.pronouns-mistakes p { margin: 0 0 7px; color: var(--ink); line-height: 1.6; }
.pronouns-mistakes strong { color: #137d66; }
.pronouns-lesson .comparison-panel p { line-height: 1.6; }

@media (max-width: 900px) {
  .pronouns-examples { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pronouns-lesson .grammar-toc {
    display: flex; align-items: center; gap: 8px; overflow-x: auto;
    max-width: 100%; padding: 10px; scroll-snap-type: x proximity;
  }
  .pronouns-lesson .grammar-toc .eyebrow { display: none; }
  .pronouns-lesson .grammar-toc a {
    flex: 0 0 auto; margin: 0; padding: 9px 11px; border: 1px solid rgba(47, 174, 155, .22);
    border-radius: 999px; background: #fff; font-size: .88rem; line-height: 1.2;
    scroll-snap-align: start;
  }
  .pronouns-path-grid { grid-template-columns: 1fr; }
  .pronouns-path:last-child { grid-column: auto; }
  .pronouns-figure { padding: 8px; border-radius: 16px; }
  .pronouns-figure figcaption { padding: 10px 7px 5px; font-size: .9rem; }
  .pronouns-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .pronouns-table { display: block; }
  .pronouns-table caption { display: block; padding: 0 0 10px; }
  .pronouns-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pronouns-table tbody { display: grid; gap: 10px; }
  .pronouns-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(244, 143, 130, .2);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(29, 42, 56, .06);
  }
  .pronouns-table tbody th { grid-column: 1 / -1; padding: 9px 12px; border-top: 0; background: #fff2ef; }
  .pronouns-table tbody td { display: block; min-width: 0; padding: 9px 12px; overflow-wrap: anywhere; }
  .pronouns-table tbody td::before { display: block; margin-bottom: 3px; color: #53636b; content: attr(data-label); font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
  .pronouns-pair-grid,
  .pronouns-mistakes { grid-template-columns: 1fr; }
  .pronouns-mistakes article:last-child { grid-column: auto; }
}
