
.lions-acc-btn {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  background: linear-gradient(180deg, #1976d2, #1565c0);
  color: white; padding: 14px 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; margin: 12px 0 6px 0;
  box-shadow: 0 2px 8px rgba(25,118,210,0.25);
  transition: all 0.2s;
}
.lions-acc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(25,118,210,0.35); }
.lions-acc-btn .arrow { transition: transform 0.25s; font-size: 18px; }
.lions-acc-btn.open .arrow { transform: rotate(90deg); }
.lions-acc-btn .count { background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 12px; font-size: 13px; }
.lions-acc-list-hidden { display: none !important; }


/* ============ LDE (Lions Direct English) v2 — course id=2 ============ */
body.course-2 .ldm-lesson,
body.path-mod-book.course-2 .ldm-lesson {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    line-height: 1.55;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4px;
}

/* Mobile-first overrides for legacy inline font-sizes */
body.course-2 .ldm-content [style*="font-size: 30px"],
body.path-mod-book.course-2 .ldm-content [style*="font-size: 30px"] {
    font-size: clamp(20px, 4.5vw, 28px) !important;
    letter-spacing: -0.01em;
}
body.course-2 .ldm-content [style*="font-size: 24px"],
body.path-mod-book.course-2 .ldm-content [style*="font-size: 24px"] {
    font-size: clamp(16px, 3.6vw, 22px) !important;
}
body.course-2 .ldm-content [style*="font-size: 22px"],
body.path-mod-book.course-2 .ldm-content [style*="font-size: 22px"] {
    font-size: clamp(15px, 3.4vw, 20px) !important;
}
body.course-2 .ldm-content [style*="font-size: 20px"],
body.path-mod-book.course-2 .ldm-content [style*="font-size: 20px"] {
    font-size: clamp(15px, 3.2vw, 18px) !important;
}
body.course-2 .ldm-content [style*="font-size: 18px"],
body.path-mod-book.course-2 .ldm-content [style*="font-size: 18px"] {
    font-size: clamp(14px, 3vw, 17px) !important;
}
body.course-2 .ldm-content [style*="font-size: 34px"],
body.path-mod-book.course-2 .ldm-content [style*="font-size: 34px"] {
    font-size: clamp(22px, 5.5vw, 32px) !important;
    letter-spacing: -0.02em;
}

/* Soften corners on legacy cards */
body.course-2 .ldm-content [style*="border-radius: 18px"],
body.path-mod-book.course-2 .ldm-content [style*="border-radius: 18px"] {
    border-radius: 14px !important;
}

@media (max-width: 600px) {
    body.course-2 .ldm-content [style*="padding: 18px"],
    body.path-mod-book.course-2 .ldm-content [style*="padding: 18px"] {
        padding: 12px 14px !important;
    }
    body.course-2 .ldm-content [style*="padding: 20px"],
    body.path-mod-book.course-2 .ldm-content [style*="padding: 20px"] {
        padding: 14px 16px !important;
    }
    body.course-2 .ldm-content [style*="grid-template-columns: repeat(4,1fr)"],
    body.course-2 .ldm-content [style*="grid-template-columns: repeat(5,1fr)"],
    body.path-mod-book.course-2 .ldm-content [style*="grid-template-columns: repeat(4,1fr)"],
    body.path-mod-book.course-2 .ldm-content [style*="grid-template-columns: repeat(5,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.course-2 .ldm-content [style*="grid-template-columns: repeat(3,1fr)"],
    body.path-mod-book.course-2 .ldm-content [style*="grid-template-columns: repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.course-2 .ldm-content [style*="grid-template-columns: 1fr 1fr"],
    body.path-mod-book.course-2 .ldm-content [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ----- Modern breadcrumb pill at top ----- */
body.course-2 .ldm-breadcrumb,
body.path-mod-book.course-2 .ldm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    color: #e2e8f0;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255,255,255,0.04);
    border: 1px solid rgba(251, 191, 36, 0.22);
}
body.course-2 .ldm-bc-brand,
body.path-mod-book.course-2 .ldm-bc-brand {
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.01em;
}
body.course-2 .ldm-bc-flag,
body.path-mod-book.course-2 .ldm-bc-flag {
    background: linear-gradient(135deg, #1e40af 0%, #b91c1c 100%);
    color: #fff;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
body.course-2 .ldm-bc-sep,
body.path-mod-book.course-2 .ldm-bc-sep {
    color: #475569;
}
body.course-2 .ldm-bc-book,
body.course-2 .ldm-bc-lesson,
body.path-mod-book.course-2 .ldm-bc-book,
body.path-mod-book.course-2 .ldm-bc-lesson {
    color: #cbd5e1;
}
body.course-2 .ldm-bc-progress,
body.path-mod-book.course-2 .ldm-bc-progress {
    margin-left: auto;
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ----- Next-lesson button ----- */
body.course-2 .ldm-next-wrap,
body.path-mod-book.course-2 .ldm-next-wrap {
    text-align: center;
    margin: 32px 0 24px;
}
body.course-2 .ldm-next-btn,
body.path-mod-book.course-2 .ldm-next-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
body.course-2 .ldm-next-btn:hover,
body.path-mod-book.course-2 .ldm-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white !important;
}
body.course-2 .ldm-next-btn:active,
body.path-mod-book.course-2 .ldm-next-btn:active {
    transform: translateY(0);
}
body.course-2 .ldm-end-course,
body.path-mod-book.course-2 .ldm-end-course {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 24px;
    border-radius: 14px;
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

/* Smooth out legacy "End of Lesson" inline footer if still present */
body.course-2 .ldm-content [style*="background: #0f172a"],
body.path-mod-book.course-2 .ldm-content [style*="background: #0f172a"] {
    margin-bottom: 16px;
    border-radius: 14px !important;
}


/* ============ LDM v4-interactive (vocab cards + drill panel) - course id=2 ============ */
body.course-2 .ldm-l1,
body.path-mod-book.course-2 .ldm-l1 {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: auto;
  color: #111827;
  line-height: 1.5;
}

body.course-2 .ldm-l1 h1,
body.course-2 .ldm-l1 h2,
body.course-2 .ldm-l1 h3,
body.path-mod-book.course-2 .ldm-l1 h1,
body.path-mod-book.course-2 .ldm-l1 h2,
body.path-mod-book.course-2 .ldm-l1 h3 {
  line-height: 1.25;
}

body.course-2 .ldm-vocab-set,
body.path-mod-book.course-2 .ldm-vocab-set {
  margin-bottom: 32px;
}

body.course-2 .ldm-vocab-grid,
body.path-mod-book.course-2 .ldm-vocab-grid,
body.course-2 .ldm-lesson .ldm-vocab-grid,
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

body.course-2 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(6):last-child),
body.path-mod-book.course-2 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(6):last-child),
body.course-2 .ldm-lesson .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(6):last-child),
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(6):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.course-2 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(10):last-child),
body.path-mod-book.course-2 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(10):last-child),
body.course-2 .ldm-lesson .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(10):last-child),
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(10):last-child) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.course-2 .ldm-vocab-card,
body.path-mod-book.course-2 .ldm-vocab-card,
body.course-2 .ldm-lesson .ldm-vocab-card,
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-card {
  min-width: 0;
  min-height: 96px;
  padding: 14px 8px;
  border-radius: 14px;
  text-align: center;
  font-size: clamp(1.15em, 3.4vw, 1.5em);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  border: 2px solid transparent;
  line-height: 1.15;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

body.course-2 .ldm-vocab-card:hover,
body.path-mod-book.course-2 .ldm-vocab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}

body.course-2 .ldm-vocab-card.is-active,
body.path-mod-book.course-2 .ldm-vocab-card.is-active {
  background: #f59e0b !important;
  color: white !important;
  border-color: #b45309;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(245,158,11,.45);
}

body.course-2 .ldm-vocab-card.is-active strong,
body.path-mod-book.course-2 .ldm-vocab-card.is-active strong {
  color: white;
}

body.course-2 .ldm-vocab-card .emoji,
body.path-mod-book.course-2 .ldm-vocab-card .emoji {
  font-size: 2em;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

body.course-2 .ldm-vocab-card strong,
body.path-mod-book.course-2 .ldm-vocab-card strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body .ldm-vocab-card .emoji img,
body .ldm-vocab-card .emoji img.emoji,
body .ldm-vocab-card .emoji span img,
body .ldm-vocab-card .emoji span img.emoji {
  height: 28px !important;
  width: auto !important;
  max-width: 42px !important;
  max-height: 28px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  vertical-align: middle !important;
  display: inline-block !important;
  object-fit: contain !important;
  margin: 0 !important;
}

body .ldm-vocab-card .emoji.ldm-flag-fix img,
body .ldm-vocab-card .emoji.ldm-flag-fix img.emoji,
body .ldm-vocab-card .emoji.ldm-flag-fix span img,
body .ldm-vocab-card .emoji.ldm-flag-fix span img.emoji,
body .ldm-vocab-card span.emoji.ldm-flag-fix img,
body .ldm-vocab-card span.emoji.ldm-flag-fix img.emoji {
  height: 32px !important;
  width: auto !important;
  max-width: 50px !important;
  max-height: 32px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  vertical-align: middle !important;
  display: inline-block !important;
  object-fit: contain !important;
  margin: 0 !important;
}

body.course-2 .ldm-drill-panel,
body.path-mod-book.course-2 .ldm-drill-panel,
body.course-2 .ldm-lesson .ldm-drill-panel,
body.path-mod-book.course-2 .ldm-lesson .ldm-drill-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0 24px;
}

body.course-2 .ldm-drill-q,
body.course-2 .ldm-drill-a,
body.path-mod-book.course-2 .ldm-drill-q,
body.path-mod-book.course-2 .ldm-drill-a {
  min-width: 0;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.45;
}

body.course-2 .ldm-drill-q,
body.path-mod-book.course-2 .ldm-drill-q {
  grid-column: 1;
  background: #dbeafe;
  color: #1e3a8a;
}

body.course-2 .ldm-drill-a,
body.path-mod-book.course-2 .ldm-drill-a {
  grid-column: 2;
  background: #fef3c7;
  color: #78350f;
}

body.course-2 .ldm-drill-hint,
body.path-mod-book.course-2 .ldm-drill-hint {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  font-size: clamp(.9rem, 2vw, 1rem);
  font-style: italic;
}

@media (max-width: 760px) {
  body.course-2 .ldm-vocab-grid,
  body.path-mod-book.course-2 .ldm-vocab-grid,
  body.course-2 .ldm-lesson .ldm-vocab-grid,
  body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.course-2 .ldm-drill-panel,
  body.path-mod-book.course-2 .ldm-drill-panel,
  body.course-2 .ldm-lesson .ldm-drill-panel,
  body.path-mod-book.course-2 .ldm-lesson .ldm-drill-panel {
    grid-template-columns: 1fr;
  }
  body.course-2 .ldm-drill-q,
  body.course-2 .ldm-drill-a,
  body.path-mod-book.course-2 .ldm-drill-q,
  body.path-mod-book.course-2 .ldm-drill-a {
    grid-column: 1;
  }
}


/* ===== Lions Universal Caminho 2 (.lions-* classes) — applies to course 2/8/17/18/19/20/25/26/27/28/29 ===== */

.lions-lesson {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    line-height: 1.55;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 6px;
}

/* ----- Breadcrumb pill at top ----- */
.lions-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    color: #e2e8f0;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255,255,255,0.04);
    border: 1px solid rgba(251, 191, 36, 0.22);
}
.lions-breadcrumb .lbc-brand {
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.lions-breadcrumb .lbc-flag {
    color: #fff;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.lions-breadcrumb .lbc-flag-us       { background: linear-gradient(135deg, #1e40af 0%, #b91c1c 100%); }
.lions-breadcrumb .lbc-flag-ielts    { background: linear-gradient(135deg, #047857 0%, #065f46 100%); }
.lions-breadcrumb .lbc-flag-toeic    { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.lions-breadcrumb .lbc-flag-toefl    { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.lions-breadcrumb .lbc-flag-jp       { background: linear-gradient(135deg, #dc2626 0%, #ffffff 50%, #dc2626 100%); color: #0f172a; text-shadow: 0 1px 0 #fff; }
.lions-breadcrumb .lbc-flag-kids     { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); }
.lions-breadcrumb .lbc-sep           { color: #475569; }
.lions-breadcrumb .lbc-book,
.lions-breadcrumb .lbc-lesson        { color: #cbd5e1; }
.lions-breadcrumb .lbc-progress {
    margin-left: auto;
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ----- Content wrapper (preserves any per-course inner styling) ----- */
.lions-content {
    /* Mobile-friendly fixes for legacy hardcoded inline font sizes */
}
@media (max-width: 600px) {
    .lions-content [style*="font-size: 30px"]     { font-size: clamp(20px, 4.5vw, 26px) !important; }
    .lions-content [style*="font-size: 28px"]     { font-size: clamp(19px, 4.3vw, 25px) !important; }
    .lions-content [style*="font-size: 26px"]     { font-size: clamp(18px, 4.2vw, 24px) !important; }
    .lions-content [style*="font-size: 24px"]     { font-size: clamp(16px, 3.8vw, 22px) !important; }
    .lions-content [style*="font-size: 22px"]     { font-size: clamp(15px, 3.4vw, 20px) !important; }
    .lions-content [style*="font-size: 20px"]     { font-size: clamp(14px, 3.2vw, 18px) !important; }
    .lions-content [style*="grid-template-columns: repeat(4,1fr)"],
    .lions-content [style*="grid-template-columns: repeat(5,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .lions-content [style*="grid-template-columns: repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ----- Next-lesson button ----- */
.lions-next-wrap {
    text-align: center;
    margin: 32px 0 24px;
}
.lions-next-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.lions-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white !important;
}
.lions-next-btn:active { transform: translateY(0); }

.lions-end-course {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 24px;
    border-radius: 14px;
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

/* Improve full-bleed images that come from PDF crops in Caminho 3 chapters */
.lions-content img[src*="/local/lionspanel/media/"] {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin: 6px 0;
    image-rendering: -webkit-optimize-contrast;
}


.lions-teachers-block {
  margin: 0 0 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 18px;
  border: 2px solid #fbbf24;
  box-shadow: 0 4px 14px rgba(251,191,36,0.15);
}
.lions-teachers-block-title {
  font-size: 17px;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lions-teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.lions-teacher-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lions-teacher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.lions-teacher-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
  background: #f3f4f6;
}
.lions-teacher-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}
.lions-teacher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  background: linear-gradient(135deg, #dc2626 0%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 10px;
  transition: filter 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.lions-teacher-btn:hover, .lions-teacher-btn:focus {
  filter: brightness(1.08);
  text-decoration: none !important;
  color: #ffffff !important;
}
.lions-teacher-btn:active { transform: scale(0.97); }
@media (max-width: 600px) {
  .lions-teachers-block { padding: 14px 14px; border-radius: 14px; }
  .lions-teachers-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .lions-teacher-card { padding: 12px 10px; }
  .lions-teacher-avatar { width: 50px; height: 50px; }
  .lions-teacher-name { font-size: 13px; }
  .lions-teacher-btn { font-size: 12px; padding: 8px 10px; }
}


body.course-2 .ldm-dictation-block {
  margin: 32px 0 24px;
  padding: 24px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 6px solid #d97706;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(217,119,6,.08);
}
body.course-2 .ldm-dictation-h {
  margin: 0 0 8px;
  color: #92400e;
  font-size: clamp(1.4em, 4vw, 1.8em);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.course-2 .ldm-dictation-h::before {
  content: "📝";
}
body.course-2 .ldm-dictation-intro {
  margin: 0 0 16px;
  color: #78350f;
  font-size: clamp(.95em, 2.6vw, 1.05em);
  line-height: 1.55;
  font-style: italic;
}
body.course-2 .ldm-dictation-item {
  background: #fffbeb;
  padding: 16px 18px;
  border-radius: 10px;
  margin: 12px 0;
  border: 1px solid rgba(217,119,6,.18);
}
body.course-2 .ldm-dictation-item + .ldm-dictation-item {
  margin-top: 14px;
}
body.course-2 .ldm-dictation-item[data-dict-num]::before {
  content: "Dictation " attr(data-dict-num);
  display: inline-block;
  font-size: .78em;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  background: rgba(217,119,6,.12);
  padding: 3px 10px;
  border-radius: 999px;
}
body.course-2 .ldm-dictation-text {
  margin: 0;
  font-size: clamp(1em, 3vw, 1.15em);
  line-height: 1.85;
  color: #1f2937;
  font-family: Georgia, "Times New Roman", serif;
}
body.course-2 .ldm-pause {
  color: #d97706;
  font-weight: 700;
  margin: 0 2px;
  opacity: .6;
}
@media (max-width: 600px) {
  body.course-2 .ldm-dictation-block { padding: 16px; }
  body.course-2 .ldm-dictation-item { padding: 12px 14px; }
}


.lions-ocr-block {
  margin: 28px 0 22px;
  padding: 22px;
  background: #fafbfc;
  border-left: 5px solid #6366f1;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(99,102,241,.08);
}
.lions-ocr-title {
  margin: 0 0 8px;
  color: #4338ca;
  font-size: clamp(1.3em, 4vw, 1.7em);
  font-weight: 800;
}
.lions-ocr-intro {
  margin: 0 0 18px;
  color: #6366f1;
  font-size: clamp(.92em, 2.4vw, 1em);
  font-style: italic;
  line-height: 1.55;
}
.lions-ocr-page {
  background: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 14px 0;
  border: 1px solid #e5e7eb;
}
.lions-ocr-pnum {
  display: inline-block;
  font-size: .75em;
  color: #6366f1;
  background: rgba(99,102,241,.10);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.lions-ocr-text {
  font-size: clamp(1em, 2.8vw, 1.08em);
  line-height: 1.85;
  color: #1f2937;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  white-space: normal;
  word-wrap: break-word;
}
@media (max-width: 600px) {
  .lions-ocr-block { padding: 14px; }
  .lions-ocr-page { padding: 12px 14px; }
}


/* ===== LDJ-CSS-V1 ===== Lions Direct Japanese visual tweaks ===== */

/* Max-width centralizado (igual outros métodos Lions) — conteúdo encolhe no centro */
body.course-25 #region-main,
body.course-25 #region-main-box,
body.path-mod-book.course-25 #region-main,
body.path-mod-book.course-25 #region-main-box {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.course-25 #region-main .book_content,
body.course-25 .book_content,
body.path-mod-book.course-25 .book_content {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.course-25 .ldm-vocab-set,
body.path-mod-book.course-25 .ldm-vocab-set {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Drill panel: Sensei (left) / Student (right) — same grid as LDM course-2 */
body.course-25 .ldm-drill-panel,
body.path-mod-book.course-25 .ldm-drill-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
body.course-25 .ldm-drill-q,
body.course-25 .ldm-drill-a,
body.path-mod-book.course-25 .ldm-drill-q,
body.path-mod-book.course-25 .ldm-drill-a {
  padding: 22px 22px;
  border-radius: 14px;
  font-size: clamp(1.25em, 4vw, 1.65em);
  min-height: 90px;
  line-height: 1.55;
  font-weight: 500;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body.course-25 .ldm-drill-q strong,
body.course-25 .ldm-drill-a strong,
body.path-mod-book.course-25 .ldm-drill-q strong,
body.path-mod-book.course-25 .ldm-drill-a strong {
  display: inline-block;
  margin-bottom: 4px;
}
body.course-25 .ldm-drill-q,
body.path-mod-book.course-25 .ldm-drill-q {
  background: #93c5fd;
  color: #0c2461;
  cursor: pointer;
  border: 2px solid #1e3a8a;
}
body.course-25 .ldm-drill-a,
body.path-mod-book.course-25 .ldm-drill-a {
  background: #86efac;
  color: #14532d;
  cursor: pointer;
  border: 2px solid #14532d;
  transition: background .2s;
}
/* Strong / bold inside drill (Sensei/Aluno labels) — más visible */
body.course-25 .ldm-drill-q strong,
body.course-25 .ldm-drill-a strong,
body.path-mod-book.course-25 .ldm-drill-q strong,
body.path-mod-book.course-25 .ldm-drill-a strong {
  font-size: 1.05em;
  font-weight: 800;
  letter-spacing: 0.02em;
}
body.course-25 .ldm-drill-a.is-filled,
body.path-mod-book.course-25 .ldm-drill-a.is-filled {
  background: #fef3c7;
  color: #78350f;
  font-weight: 600;
}
body.course-25 .ldm-drill-fill,
body.path-mod-book.course-25 .ldm-drill-fill {
  color: #92400e;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #f59e0b;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  background: rgba(251,191,36,.25);
  padding: 0 4px;
  border-radius: 4px;
}
body.course-25 .ldm-drill-hint,
body.path-mod-book.course-25 .ldm-drill-hint {
  grid-column: 1 / -1;
  font-size: clamp(.95em, 2.6vw, 1.1em);
  color: #6b7280;
  font-style: italic;
  padding: 6px 4px 0;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 600px) {
  body.course-25 .ldm-drill-panel,
  body.path-mod-book.course-25 .ldm-drill-panel {
    grid-template-columns: 1fr;
  }
}

/* Grid responsivo — cada Set define cols inline via grid-template-columns.
   No mobile cai pra 2 cols pra evitar cards minúsculos. */
body.course-25 .ldm-vocab-grid,
body.path-mod-book.course-25 .ldm-vocab-grid {
  display: grid;
  gap: 10px;
}
@media (max-width: 700px) {
  body.course-25 .ldm-vocab-grid,
  body.path-mod-book.course-25 .ldm-vocab-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Vocab cards — JP-first: hiragana é o protagonista, emoji secundário */
body.course-25 .ldm-vocab-card,
body.path-mod-book.course-25 .ldm-vocab-card {
  padding: 14px 12px;
  text-align: center;
  border-radius: 14px;
  min-height: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
body.course-25 .ldm-vocab-card:hover,
body.path-mod-book.course-25 .ldm-vocab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15,23,42,.12);
}
/* Active card (clicado pelo aluno) — feedback visual claro.
   !important garante override de hover/inline styles. */
body.course-25 .ldm-vocab-card.is-active,
body.path-mod-book.course-25 .ldm-vocab-card.is-active,
body.course-25 .ldm-vocab-card.is-active:hover,
body.path-mod-book.course-25 .ldm-vocab-card.is-active:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 0 0 4px #dc2626, 0 12px 28px rgba(220,38,38,.35) !important;
  outline: 2px solid #dc2626 !important;
  outline-offset: 2px !important;
  position: relative !important;
  z-index: 5 !important;
  filter: brightness(1.05) !important;
}
/* Tornar hiragana do card ativo ainda maior pra reforçar visualmente */
body.course-25 .ldm-vocab-card.is-active strong,
body.path-mod-book.course-25 .ldm-vocab-card.is-active strong {
  color: #dc2626 !important;
  text-shadow: 0 0 1px rgba(220,38,38,.2);
}
/* Card que está tocando áudio agora */
body.course-25 .ldm-vocab-card.ldm-audio-playing,
body.path-mod-book.course-25 .ldm-vocab-card.ldm-audio-playing {
  animation: ldj-pulse 0.9s ease-in-out infinite;
}
@keyframes ldj-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #dc2626, 0 12px 28px rgba(220,38,38,.35); }
  50% { box-shadow: 0 0 0 8px #dc2626, 0 14px 32px rgba(220,38,38,.55); }
}
body.course-25 .ldm-vocab-card .emoji,
body.path-mod-book.course-25 .ldm-vocab-card .emoji {
  font-size: clamp(1.7em, 5vw, 2.4em) !important;
  display: block;
  opacity: 1;
  margin-bottom: 4px;
  line-height: 1;
}
/* hiragana/kanji — auto-fit por tamanho do texto via data-len attribute (set via JS) */
body.course-25 .ldm-vocab-card strong,
body.path-mod-book.course-25 .ldm-vocab-card strong {
  font-size: clamp(1.8em, 6vw, 2.6em) !important;  /* default — palavras 3-4 chars */
  font-weight: 700;
  display: block;
  line-height: 1.1;
  margin: 4px 0 6px;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* Auto-fit por char count (JS adiciona data-len) */
body.course-25 .ldm-vocab-card[data-len="1"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="1"] strong {
  font-size: clamp(2.8em, 10vw, 4em) !important;
}
body.course-25 .ldm-vocab-card[data-len="2"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="2"] strong {
  font-size: clamp(2.4em, 8.5vw, 3.4em) !important;
}
body.course-25 .ldm-vocab-card[data-len="3"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="3"] strong {
  font-size: clamp(2em, 7vw, 2.8em) !important;
}
body.course-25 .ldm-vocab-card[data-len="4"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="4"] strong {
  font-size: clamp(1.7em, 6vw, 2.4em) !important;
}
body.course-25 .ldm-vocab-card[data-len="5"] strong,
body.course-25 .ldm-vocab-card[data-len="6"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="5"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="6"] strong {
  font-size: clamp(1.4em, 5vw, 2em) !important;
}
body.course-25 .ldm-vocab-card[data-len="7"] strong,
body.course-25 .ldm-vocab-card[data-len="8"] strong,
body.course-25 .ldm-vocab-card[data-len="9"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="7"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="8"] strong,
body.path-mod-book.course-25 .ldm-vocab-card[data-len="9"] strong {
  font-size: clamp(1.15em, 4vw, 1.7em) !important;
  line-height: 1.15;
}
/* Furigana (ruby) styling — Book 3+ kanji recebe leitura em hiragana acima */
body.course-25 ruby,
body.path-mod-book.course-25 ruby {
  ruby-position: over;
  ruby-align: center;
}
body.course-25 ruby rt,
body.path-mod-book.course-25 ruby rt {
  font-size: 0.42em;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
body.course-25 .ldm-vocab-card strong ruby rt,
body.path-mod-book.course-25 .ldm-vocab-card strong ruby rt {
  color: #b45309;
}
body.course-25 .ldm-vocab-card small,
body.path-mod-book.course-25 .ldm-vocab-card small {
  font-size: clamp(.85em, 2.3vw, 1em);
  display: block;
  line-height: 1.3;
}

/* ===== /LDJ-CSS-V1 ===== */


/* Esconde por default — JS reativa pra admins */
body.path-user.has-profile-lock #fitem_id_firstname,
body.path-user.has-profile-lock #fitem_id_lastname,
body.path-user.has-profile-lock #fitem_id_email,
body.path-user.has-profile-lock #fitem_id_emaildisplay,
body.path-user.has-profile-lock #fitem_id_moodlenetprofile,
body.path-user.has-profile-lock #fitem_id_city,
body.path-user.has-profile-lock #fitem_id_country,
body.path-user.has-profile-lock #fitem_id_timezone,
body.path-user.has-profile-lock #fgroup_id_moodle_additional_names,
body.path-user.has-profile-lock #fitem_id_description_editor,
body.path-user.has-profile-lock #fgroup_id_moodle_interests,
body.path-user.has-profile-lock #fgroup_id_moodle_optional,
body.path-user.has-profile-lock fieldset#id_category_1,
body.path-user.has-profile-lock fieldset#id_moodle_additional_names,
body.path-user.has-profile-lock fieldset#id_moodle_interests,
body.path-user.has-profile-lock fieldset#id_moodle_optional {
  display: none !important;
}
body.path-user.has-profile-lock #lions-profile-lock-banner {
  display: block !important;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  color: #78350f;
  font-size: 0.95em;
  line-height: 1.5;
}
body.path-user.has-profile-lock #lions-profile-lock-banner h3 {
  margin: 0 0 8px 0;
  color: #92400e;
  font-size: 1.1em;
}
body.path-user.has-profile-lock #lions-profile-lock-banner ul {
  margin: 8px 0 0 20px;
  padding: 0;
}
body.path-user.has-profile-lock #lions-profile-lock-banner li {
  margin-bottom: 4px;
}
body.path-user.has-profile-lock #lions-profile-lock-banner a.contact {
  display: inline-block;
  background: #92400e;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 8px;
  font-weight: 600;
}
#lions-profile-lock-banner { display: none; }


.lions-dict-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.lions-dict-card { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; padding: 28px 24px 22px; border-radius: 22px; max-width: 520px; width: 100%; text-align: center; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.lions-dict-close { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.18); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; font-weight: 700; }
.lions-dict-close:hover { background: rgba(255,255,255,.32); }
.lions-dict-card h2 { margin: 0 0 6px; font-size: clamp(1.1em, 3vw, 1.35em); font-weight: 700; line-height: 1.3; }
.lions-dict-card .lions-dict-sub { font-size: .9em; opacity: .9; margin: 0 0 16px; }
.lions-dict-code { font-size: clamp(3em, 14vw, 5.5em); font-weight: 900; letter-spacing: .18em; font-family: 'Courier New', monospace; line-height: 1; margin: 8px 0 12px; text-shadow: 0 3px 10px rgba(0,0,0,.25); }
.lions-dict-qr { width: 220px; height: 220px; max-width: 60vw; max-height: 60vw; background: #fff; padding: 10px; border-radius: 14px; display: inline-block; }
.lions-dict-url { font-size: .8em; margin: 12px 0 8px; opacity: .92; word-break: break-all; }
.lions-dict-url a, .lions-dict-url code { color: #fff; text-decoration: underline; background: rgba(255,255,255,.12); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: .92em; }
.lions-dict-hint { font-size: .82em; margin: 12px 0 16px; opacity: .9; }
.lions-dict-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lions-dict-btn { background: rgba(255,255,255,.92); color: #7c3aed; border: 0; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: .92em; text-decoration: none; display: inline-block; }
.lions-dict-btn:hover { background: #fff; transform: translateY(-1px); }
.lions-dict-loading { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: lions-dict-spin .6s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes lions-dict-spin { to { transform: rotate(360deg); } }
@media print { .lions-dict-bg { display: none !important; } }


/* Anti-zoom-in em inputs no iPhone (Safari faz zoom auto se font < 16px) */
@media (max-width: 899px), (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}


/* Header do Adaptable: ID real é #adaptable-page-header-wrapper.
   JS do tema adiciona classe .sticky + style="top: -114px;" inline
   pra fazer scroll-hide. Override pra que role normal junto com a página. */
#adaptable-page-header-wrapper,
#adaptable-page-header-wrapper.sticky,
header#adaptable-page-header-wrapper,
header[id*="page-header"],
header[id*="page-header"].sticky,
.navbar.fixed-top,
.navbar.navbar-fixed-top {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  transform: none !important;
}
/* Zera padding-top do body que tema usa pra compensar fixed header */
body.has-fixed-navbar,
body.page-header-margin,
body[class*='has-navbar'] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* Move o botão vermelho de expandir sidebar Lions pra mais embaixo,
   liberando o meio da tela pro botão de índice do curso (drawer toggle do Adaptable). */
body.local-lionspanel-collapsed .local-lionspanel-expand {
  top: 70% !important;
}


/* Padding pra não cortar 'Lions Direct English' e navbar no canto esquerdo */
#adaptable-page-header-wrapper > #header1.above-header,
#adaptable-page-header-wrapper > #page-header,
#adaptable-page-header-wrapper > #main-navbar {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
/* Mobile: padding menor pra não ficar empurrado demais */
@media (max-width: 600px) {
  #adaptable-page-header-wrapper > #header1.above-header,
  #adaptable-page-header-wrapper > #page-header,
  #adaptable-page-header-wrapper > #main-navbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* Esconde TODOS os botões/links de atualização do Moodle (defesa contra click acidental).
   Já temos set_config('disableupdatenotifications')+disableupdateautodeploy, esse CSS é camada extra. */

/* "Update component" link na page /admin/environment.php */
a[href*="/admin/tool/installaddon"],
a[href*="installaddon/index.php"] { display: none !important; }

/* "Check for updates" / "Atualizações disponíveis" cards na admin home */
.alert.alert-info:has(a[href*="/admin/index.php"][href*="cache=0"]),
[id*="availableupdates"],
.box.availableupdatesinfo,
.availableupdateslist { display: none !important; }

/* Botões "Update" / "Atualizar" em /admin/plugins.php por plugin */
table#plugins-control-panel a[href*="installaddon"],
table#plugins-control-panel button[type="submit"][value*="update" i],
.uploadplugin,
.availableupdateinfo,
a.alert-link[href*="installaddon"] { display: none !important; }

/* Sino de notificação no canto superior direito quando tem update */
.popover-region-notifications .notification-action[href*="/admin/"],
.popover-region-notifications [data-action*="update" i] { display: none !important; }

/* Página /admin/index.php — bloco "Updates available" */
#page-admin-index .alert-warning a[href*="/admin/"],
#page-admin-index .availableupdates,
#page-admin-index .availableupdatesinfo { display: none !important; }

/* /my/ notification badge especificamente sobre updates */
.popover-region-container .notification-text[data-event-name*="update" i] { display: none !important; }

/* "Atualizar agora" / "Update now" buttons (em qualquer lugar) */
button:has(span:contains("Update now")),
button:has(span:contains("Atualizar agora")),
input[type="submit"][value*="Atualizar agora" i],
input[type="submit"][value*="Update now" i],
a.btn:has(text:contains("Update now")) { display: none !important; }

/* Link "Notifications" da admin que leva pra updates */
#page-admin-search a[href*="/admin/index.php"]:has(text:contains("update")) { display: none !important; }

#lions-admin-float{display:none!important}


/* LIONS-VOCAB-WORD-SIZE-V1: +2px nas palavras (strong) dos vocab cards do LDE.
   Mexe SÓ em font-size do strong. Emoji NÃO muda (font-size do .emoji é 2em do card,
   e o card base não é tocado). Layout intacto. Aplicado em course-2. */
body.course-2 .ldm-vocab-card strong,
body.path-mod-book.course-2 .ldm-vocab-card strong,
body.course-2 .ldm-lesson .ldm-vocab-card strong,
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-card strong {
  font-size: calc(1em + 2px) !important;
}


/* LIONS-SET-HEADER-V1: títulos dos Sets (h2) + explicações (p) ganham +2px,
   negrito e cor #000. Mexe SÓ em color, font-size, font-weight. Margins/padding intocados.
   !important pra vencer inline styles do conteúdo. Escopado em course-2. */
body.course-2 .ldm-vocab-set > h2,
body.path-mod-book.course-2 .ldm-vocab-set > h2,
body.course-2 .ldm-lesson .ldm-vocab-set > h2,
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-set > h2 {
  color: #000 !important;
  font-size: calc(clamp(1.3em, 4.5vw, 1.7em) + 2px) !important;
  font-weight: 800 !important;
}
body.course-2 .ldm-vocab-set > p,
body.path-mod-book.course-2 .ldm-vocab-set > p,
body.course-2 .ldm-lesson .ldm-vocab-set > p,
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-set > p {
  color: #000 !important;
  font-size: calc(clamp(.9em, 2.4vw, 1em) + 4px) !important;
  font-weight: 600 !important;
}


/* LIONS-LESSON-TITLE-CONTRAST-V2: engrossa o título h1 do banner gradient (texto branco
   sobre fundo médio/escuro). Sem text-shadow — só font-weight + letter-spacing pra
   "encorpar" o branco. Subtítulo (p irmão) também fica mais grosso. Layout intacto. */
body.course-2 [style*="linear-gradient"]:has(> h1) h1,
body.path-mod-book.course-2 [style*="linear-gradient"]:has(> h1) h1 {
  font-weight: 900 !important;
  letter-spacing: 0.015em !important;
}
body.course-2 [style*="linear-gradient"]:has(> h1) > p,
body.path-mod-book.course-2 [style*="linear-gradient"]:has(> h1) > p {
  font-weight: 700 !important;
}


/* LIONS-DRILL-CONTRAST-V1: contraste forte (preto) + fonte maior nos painéis Teacher/Student.
   Mexe SÓ em color e font-size. Background, padding, grid, margin = INTACTOS.
   Aplicado em course-2 (LDE). */
body.course-2 .ldm-drill-q,
body.course-2 .ldm-drill-a,
body.path-mod-book.course-2 .ldm-drill-q,
body.path-mod-book.course-2 .ldm-drill-a {
  color: #000 !important;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem) !important;
  line-height: 1.5 !important;
}
/* Labels "Teacher" e "Student" voltam às cores originais (apagados visualmente,
   não competem com a pergunta/resposta em preto). */
body.course-2 .ldm-drill-q strong,
body.path-mod-book.course-2 .ldm-drill-q strong {
  color: #1e3a8a !important;   /* azul-escuro original */
  font-weight: 700 !important;
}
body.course-2 .ldm-drill-a strong,
body.path-mod-book.course-2 .ldm-drill-a strong {
  color: #78350f !important;   /* marrom original */
  font-weight: 700 !important;
}
body.course-2 .ldm-drill-hint,
body.path-mod-book.course-2 .ldm-drill-hint {
  color: #111 !important;
  font-size: clamp(1rem, 2.4vw, 1.15rem) !important;
}
body.course-2 .ldm-drill-fill,
body.path-mod-book.course-2 .ldm-drill-fill {
  color: #000 !important;
}


/* LIONS-LDM-PHOTO-V1: when a card uses a real photo instead of a Twemoji glyph.
   The .emoji img selector elsewhere clamps to 28×42px (for Twemoji). For real
   photos we use .ldm-photo so it can render bigger. */
body.course-2 .ldm-vocab-card .ldm-photo,
body.path-mod-book.course-2 .ldm-vocab-card .ldm-photo,
body.course-2 .ldm-lesson .ldm-vocab-card .ldm-photo,
body.path-mod-book.course-2 .ldm-lesson .ldm-vocab-card .ldm-photo {
  height: 56px !important;
  width: auto !important;
  max-width: 80% !important;
  max-height: 56px !important;
  display: block !important;
  margin: 0 auto 4px auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}


/* LIONS-DICTATION-FONT-V1: aumenta a fonte do dictation (texto principal + intro).
   Mexe SÓ em font-size e line-height. Cores, padding e background intocados. */
body.course-2 .ldm-dictation-text,
body.path-mod-book.course-2 .ldm-dictation-text {
  font-size: clamp(1.3em, 4vw, 1.65em) !important;
  line-height: 1.85 !important;
}
body.course-2 .ldm-dictation-intro,
body.path-mod-book.course-2 .ldm-dictation-intro {
  font-size: clamp(1.05em, 2.8vw, 1.2em) !important;
}


/* LIONS-DICTATION-COLORS-V1: verde bem escuro (#14532d - forest) + fonte +1px
   nas páginas /local/dictation/teacher.php e /local/dictation/student.php */

/* === Tokens corretos (teacher + student) === */
body.pagetype-local-dictation-teacher .dt-tok-ok,
body.pagetype-local-dictation-teacher .dt-tok-correct,
body.pagetype-local-dictation-student .dt-tok-ok,
body.pagetype-local-dictation-student .dt-pair .dt-correct {
  color: #14532d !important;
}

/* === Score num + result border (student) === */
body.pagetype-local-dictation-student .ds-score-num {
  color: #14532d !important;
}
body.pagetype-local-dictation-student .ds-result {
  border-color: #14532d !important;
}

/* === Submission score badges (teacher) === */
body.pagetype-local-dictation-teacher .dt-sub-score.s-100 {
  background: #14532d !important;
}
body.pagetype-local-dictation-teacher .dt-sub-score.s-80 {
  background: #3f6212 !important;
}

/* === Fonte +1px nos tokens e gabarito === */
body.pagetype-local-dictation-teacher .dt-tokens,
body.pagetype-local-dictation-teacher .dt-gabarito-text,
body.pagetype-local-dictation-student .ds-tokens {
  font-size: calc(1.05em + 1px) !important;
}


/* LIONS-DICTATION-LAYOUT-V1: centraliza conteúdo do dictation teacher/student
   com max-width similar aos chapters do Book. */
body.pagetype-local-dictation-teacher #region-main,
body.pagetype-local-dictation-teacher #region-main-box,
body.pagetype-local-dictation-student #region-main,
body.pagetype-local-dictation-student #region-main-box {
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Padding interno mais respirável e zoom centralizado */
body.pagetype-local-dictation-teacher #region-main > *,
body.pagetype-local-dictation-student #region-main > * {
  padding-left: clamp(12px, 3vw, 24px) !important;
  padding-right: clamp(12px, 3vw, 24px) !important;
}


/* A barra lateral prateada vira a barra horizontal do topo quando: (a) o dispositivo é de TOQUE
   (pointer:coarse) — celular/tablet, inclui iPad em paisagem >=992px onde a @media de largura do
   plugin não dispara; e (b) está dentro de iframe (PWA). Desktop com mouse mantém a barra lateral. */
@media (pointer: coarse) {
  .local-lionspanel-sidebar {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 6px 4px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    gap: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    z-index: 1 !important;
  }
  .local-lionspanel-brand,
  .local-lionspanel-expand,
  .local-lionspanel-toggle { display: none !important; }
  .local-lionspanel-link {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    gap: 5px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }
  .local-lionspanel-link i { font-size: 14px !important; }
  .local-lionspanel-link-text { display: none !important; }
  .local-lionspanel-link-text-short { display: inline !important; max-width: 150px !important; }
}
/* Reforço para a PWA (iframe) mesmo em telas não-toque (raro) */
html.lions-in-iframe .local-lionspanel-sidebar {
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  z-index: 1 !important;
}
html.lions-in-iframe .local-lionspanel-brand,
html.lions-in-iframe .local-lionspanel-toggle,
html.lions-in-iframe .local-lionspanel-expand { display: none !important; }
html.lions-in-iframe .local-lionspanel-link-text { display: none !important; }
html.lions-in-iframe .local-lionspanel-link-text-short { display: inline !important; }


/* === Anti-overflow LDJ (course-25) — à prova de qualquer largura, SEM depender de breakpoint ===
   O grid inline repeat(N,1fr) usa 1fr puro (piso min-content) -> palavras JP grandes não encolhem ->
   estoura a largura -> no iframe da PWA o viewport "incha" pra desktop -> a barra lateral vira o modo
   fixo de 264px (o "menu prateado gigante"). minmax(0,1fr) deixa as colunas encolherem em TODOS os casos. */

/* Base (qualquer largura, inclusive se a media query de mobile falhar no iframe):
   auto-fill com min(100%,150px) NUNCA estoura e adapta o nº de colunas à largura real. */
body.course-25 .ldm-vocab-grid,
body.path-mod-book.course-25 .ldm-vocab-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)) !important;
}

/* Desktop de verdade (>=992px, detecção confiável): layout caprichado de 5 colunas encolhíveis. */
@media (min-width: 992px) {
  body.course-25 .ldm-vocab-grid,
  body.path-mod-book.course-25 .ldm-vocab-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  /* 8 cards -> 4+4 (em vez de 5+3 "torto") */
  body.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(8):last-child),
  body.path-mod-book.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  /* 6 cards -> 3+3 (em vez de 5+1) */
  body.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(6):last-child),
  body.path-mod-book.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  /* 4 cards -> 2+2 (mais quadrado que 4+0) */
  body.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(4):last-child),
  body.path-mod-book.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  /* 9 cards -> 3+3+3 (em vez de 5+4 torto) */
  body.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(9):last-child),
  body.path-mod-book.course-25 .ldm-vocab-grid:has(> .ldm-vocab-card:nth-child(9):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* cards e palavras nunca transbordam a coluna */
body.course-25 .ldm-vocab-card,
body.path-mod-book.course-25 .ldm-vocab-card {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}
/* (removidas as travas overflow-x:hidden/max-width no body/#page — suspeitas de quebrar o topbar
   no iOS Safari só no LDJ; o grid minmax acima já impede estouro horizontal por si só) */


/* No celular/tablet (toque OU largura <=991.98px) esconde o drawer-right "Meus cursos" pra ele
   NÃO virar um painel cinza gigante cobrindo a tela (especialmente em paisagem). No DESKTOP com
   mouse ele continua aparecendo (a navegação entre cursos que o Roberto usa). Reaproveita a
   margem que o tema reserva pra ele no mobile. */
@media (max-width: 991.98px), (pointer: coarse) {
  #theme_adaptable-drawers-sidepost.drawer-right,
  #theme_adaptable-drawers-sidepost {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }
  #page {
    margin-right: 0 !important;
  }
}


/* CAUSA do "menu prateado gigante" SÓ no LDJ: a barra lateral (.local-lionspanel-sidebar) recebe,
   só no LDJ, uma seção extra de livros (#ldj-sidebar-books-section / .ldj-sidebar-section). No desktop
   (barra vertical) ela cabe; no celular (barra vira horizontal no topo) essa div continua bloco e
   estoura a barra = painel cinza gigante. Escondemos a seção de livros só em touch/<=991.98px.
   Desktop mantém a seção de livros na barra lateral. */
@media (max-width: 991.98px), (pointer: coarse) {
  #ldj-sidebar-books-section,
  .ldj-sidebar-section {
    display: none !important;
  }
}


/* "Hora da Conversação" do LDJ com a estética do LDE: banner gradiente roxo→rosa +
   corpo lilás claro + lista grande em texto neutro. Só estética; o texto fica. */
body.course-25 #region-main .hora-conversacao,
body.path-mod-book.course-25 #region-main .hora-conversacao {
  background: #faf5ff !important;
  border: 2px solid #c4b5fd !important;
  border-radius: 18px !important;
  padding: 0 0 18px !important;
  overflow: hidden;
  margin-top: 30px !important;
  box-shadow: 0 6px 20px rgba(124,58,237,.12) !important;
}
/* h3 vira o banner gradiente (topo da caixa) com a pílula em japonês */
body.course-25 #region-main .hora-conversacao h3,
body.path-mod-book.course-25 #region-main .hora-conversacao h3 {
  background: linear-gradient(135deg,#7c3aed,#db2777) !important;
  color: #fff !important;
  margin: 0 0 14px !important;
  padding: 16px 22px !important;
  font-size: clamp(1.4em, 4.6vw, 1.8em) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.course-25 #region-main .hora-conversacao h3::after,
body.path-mod-book.course-25 #region-main .hora-conversacao h3::after {
  content: "会話の時間";
  font-size: .5em;
  background: rgba(255,255,255,.20);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}
/* intro (1ª linha) — roxo, em negrito; padding lateral porque a caixa perdeu o padding */
body.course-25 #region-main .hora-conversacao > p,
body.path-mod-book.course-25 #region-main .hora-conversacao > p {
  padding-left: 22px !important;
  padding-right: 22px !important;
  color: #5b21b6 !important;
}
body.course-25 #region-main .hora-conversacao > p:first-of-type,
body.path-mod-book.course-25 #region-main .hora-conversacao > p:first-of-type {
  font-weight: 700 !important;
  color: #6b21a8 !important;
  font-size: clamp(1.05em, 3vw, 1.2em) !important;
}
/* lista grande e em texto neutro (como o LDE) — especificidade alta p/ vencer o piso 16px */
body.course-25 #region-main .hora-conversacao ol,
body.path-mod-book.course-25 #region-main .hora-conversacao ol {
  padding-left: 46px !important;
}
body.course-25 #region-main .hora-conversacao ol li,
body.path-mod-book.course-25 #region-main .hora-conversacao ol li {
  font-size: clamp(0.95em, 3.5vw, 1.25em) !important;
  color: #1f2937 !important;
  line-height: 1.7 !important;
  text-wrap: pretty !important;
  hanging-punctuation: first last !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
body.course-25 .hora-jp,
body.path-mod-book.course-25 .hora-jp {
  display: block;
  margin-top: 4px;
  color: #6b21a8;
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.85;
}
/* dica (última linha) — borda tracejada roxa, itálico roxo */
body.course-25 #region-main .hora-conversacao > p:last-of-type,
body.path-mod-book.course-25 #region-main .hora-conversacao > p:last-of-type {
  border-top: 1px dashed #c4b5fd !important;
  color: #6b21a8 !important;
  font-style: italic !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
}


/* === LDJ (course-25): piso MIN 20px DESKTOP em tudo. Mobile pode descer pra 18.
   Exceções táticas: tabelas (caber 5 col mobile) + furigana (anotação por design). === */

/* Base do conteúdo */
body.course-25 #region-main,
body.path-mod-book.course-25 #region-main {
  font-size: clamp(18px, 4vw, 22px) !important;
}
/* p/li/small viram piso 20-22px no desktop (mobile floor 18) */
body.course-25 #region-main small,
body.course-25 #region-main p,
body.course-25 #region-main li,
body.path-mod-book.course-25 #region-main small,
body.path-mod-book.course-25 #region-main p,
body.path-mod-book.course-25 #region-main li {
  font-size: clamp(18px, 4vw, 22px) !important;
  line-height: 1.65 !important;
}
/* Inline sub-1em values também sobem (mesmo piso) */
body.course-25 #region-main [style*="font-size:.7em"],
body.course-25 #region-main [style*="font-size:.78em"],
body.course-25 #region-main [style*="font-size:.85em"],
body.course-25 #region-main [style*="font-size:.88em"],
body.course-25 #region-main [style*="font-size:.9em"],
body.course-25 #region-main [style*="font-size:0.9em"],
body.course-25 #region-main [style*="font-size:.92em"],
body.course-25 #region-main [style*="font-size:.93em"],
body.course-25 #region-main [style*="font-size:.95em"],
body.course-25 #region-main [style*="font-size:0.95em"],
body.course-25 #region-main [style*="font-size:.97em"],
body.course-25 #region-main [style*="clamp(.85em,2.4vw,.95em)"],
body.path-mod-book.course-25 #region-main [style*="font-size:.7em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.78em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.85em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.88em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.9em"],
body.path-mod-book.course-25 #region-main [style*="font-size:0.9em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.92em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.93em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.95em"],
body.path-mod-book.course-25 #region-main [style*="font-size:0.95em"],
body.path-mod-book.course-25 #region-main [style*="font-size:.97em"],
body.path-mod-book.course-25 #region-main [style*="clamp(.85em,2.4vw,.95em)"] {
  font-size: clamp(18px, 4vw, 22px) !important;
}
/* Inline 16px fixo (legado) — também sobe pro piso novo */
body.course-25 #region-main [style*="font-size:16px"],
body.path-mod-book.course-25 #region-main [style*="font-size:16px"] {
  font-size: clamp(18px, 4vw, 22px) !important;
}

/* === Grammar boxes v7 (caixa amarela border-left #f59e0b) — 1 tier acima === */
body.course-25 #region-main [style*="border-left:5px solid #f59e0b"],
body.path-mod-book.course-25 #region-main [style*="border-left:5px solid #f59e0b"] {
  font-size: clamp(20px, 4.4vw, 23px) !important;
}
body.course-25 #region-main [style*="border-left:5px solid #f59e0b"] p,
body.course-25 #region-main [style*="border-left:5px solid #f59e0b"] li,
body.course-25 #region-main [style*="border-left:5px solid #f59e0b"] strong,
body.course-25 #region-main [style*="border-left:5px solid #f59e0b"] em,
body.path-mod-book.course-25 #region-main [style*="border-left:5px solid #f59e0b"] p,
body.path-mod-book.course-25 #region-main [style*="border-left:5px solid #f59e0b"] li,
body.path-mod-book.course-25 #region-main [style*="border-left:5px solid #f59e0b"] strong,
body.path-mod-book.course-25 #region-main [style*="border-left:5px solid #f59e0b"] em {
  font-size: clamp(20px, 4.4vw, 23px) !important;
  line-height: 1.7 !important;
}

/* TABELAS — exceção: precisam caber 5+ colunas em mobile estreito.
   Desktop ≥20px, mobile fica em 14-16 só onde sobreviver. */
body.course-25 #region-main table,
body.path-mod-book.course-25 #region-main table {
  font-size: clamp(14px, 3.8vw, 20px) !important;
  line-height: 1.5 !important;
}

/* Balões de diálogo: nome do orador e tradução PT */
body.course-25 .ldj-bubble div[style*="font-weight:700"],
body.path-mod-book.course-25 .ldj-bubble div[style*="font-weight:700"] {
  font-size: clamp(18px, 4vw, 22px) !important;
}
body.course-25 .ldj-bubble div[style*="font-style:italic"],
body.path-mod-book.course-25 .ldj-bubble div[style*="font-style:italic"] {
  font-size: clamp(18px, 4vw, 22px) !important;
}

/* FURIGANA — exceção: anotação ruby por design (cima do kanji), tem que ser menor que o base.
   Mantém ratio ~50% do kanji que anota. Visualmente confortável. */
body.course-25 #region-main rt,
body.path-mod-book.course-25 #region-main rt {
  font-size: clamp(15px, 3.2vw, 18px) !important;
}

/* Contraste drill (LDE-style) */
body.course-25 .ldm-drill-q,
body.course-25 .ldm-drill-q strong,
body.course-25 .ldm-drill-a,
body.course-25 .ldm-drill-a strong,
body.course-25 .ldm-drill-a [data-fill],
body.course-25 .ldm-drill-fill,
body.path-mod-book.course-25 .ldm-drill-q,
body.path-mod-book.course-25 .ldm-drill-q strong,
body.path-mod-book.course-25 .ldm-drill-a,
body.path-mod-book.course-25 .ldm-drill-a strong,
body.path-mod-book.course-25 .ldm-drill-a [data-fill],
body.path-mod-book.course-25 .ldm-drill-fill {
  color: #1f2937 !important;
}
body.course-25 .ldm-drill-q,
body.path-mod-book.course-25 .ldm-drill-q { background: #e0f2fe !important; }
body.course-25 .ldm-drill-a,
body.path-mod-book.course-25 .ldm-drill-a { background: #dcfce7 !important; }

/* Mobile cap drill (Sensei/Aluno) — máx 23px no celular */
@media (max-width: 991.98px), (pointer: coarse) {
  body.course-25 .ldm-drill-q,
  body.course-25 .ldm-drill-q strong,
  body.course-25 .ldm-drill-a,
  body.course-25 .ldm-drill-a strong,
  body.course-25 .ldm-drill-a [data-fill],
  body.course-25 .ldm-drill-fill,
  body.path-mod-book.course-25 .ldm-drill-q,
  body.path-mod-book.course-25 .ldm-drill-q strong,
  body.path-mod-book.course-25 .ldm-drill-a,
  body.path-mod-book.course-25 .ldm-drill-a strong,
  body.path-mod-book.course-25 .ldm-drill-a [data-fill],
  body.path-mod-book.course-25 .ldm-drill-fill {
    font-size: clamp(18px, 4vw, 23px) !important;
  }
}


/* === LDJ (course-25): cap da fonte das palavras nos cards ===
   Desktop (>=992px) -> máx 36px em TODOS os cards (qualquer data-len)
   Mobile (<992px)   -> máx 32px (continuação do cap mobile anterior)
   Preserva hierarquia visual: palavras curtas (1-3 chars) maiores que longas (7-9 chars),
   mas nenhuma ultrapassa o cap. Drill + cards cabem juntos na viewport. */

/* --- DESKTOP cap: 36px máx --- */
@media (min-width: 992px) {
  /* default + data-len 1/2 — palavras curtas (até 2 chars) ficam no teto 36px */
  body.course-25 .ldm-vocab-card strong,
  body.course-25 .ldm-vocab-card[data-len="1"] strong,
  body.course-25 .ldm-vocab-card[data-len="2"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="1"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="2"] strong {
    font-size: clamp(28px, 4.6vw, 36px) !important;
  }
  /* data-len 3 — 3 chars ainda grande mas pouco menor */
  body.course-25 .ldm-vocab-card[data-len="3"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="3"] strong {
    font-size: clamp(26px, 4.2vw, 34px) !important;
  }
  /* data-len 4 — 4 chars */
  body.course-25 .ldm-vocab-card[data-len="4"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="4"] strong {
    font-size: clamp(22px, 3.6vw, 30px) !important;
  }
  /* data-len 5-6 — palavras médias */
  body.course-25 .ldm-vocab-card[data-len="5"] strong,
  body.course-25 .ldm-vocab-card[data-len="6"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="5"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="6"] strong {
    font-size: clamp(20px, 3.2vw, 26px) !important;
  }
  /* data-len 7-9 — palavras longas */
  body.course-25 .ldm-vocab-card[data-len="7"] strong,
  body.course-25 .ldm-vocab-card[data-len="8"] strong,
  body.course-25 .ldm-vocab-card[data-len="9"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="7"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="8"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="9"] strong {
    font-size: clamp(18px, 2.8vw, 22px) !important;
  }
  /* Emoji do card — proporcional aos novos tamanhos (menor que antes) */
  body.course-25 .ldm-vocab-card .emoji,
  body.path-mod-book.course-25 .ldm-vocab-card .emoji {
    font-size: clamp(1.3em, 3.4vw, 1.8em) !important;
  }
  /* Padding interno — reduz pra ficar compacto */
  body.course-25 .ldm-vocab-card,
  body.path-mod-book.course-25 .ldm-vocab-card {
    padding: 10px 8px !important;
  }
}

/* --- MOBILE cap: 32px máx --- */
@media (max-width: 991.98px), (pointer: coarse) {
  body.course-25 .ldm-vocab-card strong,
  body.course-25 .ldm-vocab-card[data-len="1"] strong,
  body.course-25 .ldm-vocab-card[data-len="2"] strong,
  body.course-25 .ldm-vocab-card[data-len="3"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="1"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="2"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="3"] strong {
    font-size: clamp(1.4em, 5vw, 2em) !important;
  }
  body.course-25 .ldm-vocab-card[data-len="4"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="4"] strong {
    font-size: clamp(1.3em, 4.5vw, 1.9em) !important;
  }
  body.course-25 .ldm-vocab-card[data-len="5"] strong,
  body.course-25 .ldm-vocab-card[data-len="6"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="5"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="6"] strong {
    font-size: clamp(1.2em, 4vw, 1.7em) !important;
  }
  body.course-25 .ldm-vocab-card[data-len="7"] strong,
  body.course-25 .ldm-vocab-card[data-len="8"] strong,
  body.course-25 .ldm-vocab-card[data-len="9"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="7"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="8"] strong,
  body.path-mod-book.course-25 .ldm-vocab-card[data-len="9"] strong {
    font-size: clamp(1.05em, 3.5vw, 1.4em) !important;
  }
}


/* === Fix card "is-active" cortado nas bordas do grid (course-25) ===
   Antes: scale(1.04) + outline 2px + outline-offset 2px = ~7px expansão.
   Em cards de borda direita/esquerda do grid, esse crescimento estourava o container e o navegador
   cortava (pq #region-main tem overflow controlado).
   Fix: padding 8px no grid (sobra pra escala) + scale 1.02 (em vez de 1.04, expansão menor). */

body.course-25 .ldm-vocab-grid,
body.path-mod-book.course-25 .ldm-vocab-grid {
  padding: 8px !important;
  overflow: visible !important;
}

body.course-25 .ldm-vocab-card.is-active,
body.path-mod-book.course-25 .ldm-vocab-card.is-active,
body.course-25 .ldm-vocab-card.is-active:hover,
body.path-mod-book.course-25 .ldm-vocab-card.is-active:hover {
  transform: translateY(-3px) scale(1.02) !important;
}


/* LIONS-CI-FULLSCROLL-V1 — drawer índice scrollável full viewport */
#courseindex-drawer,
[data-region="drawer"][id*="courseindex"] {
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
}
#courseindex-drawer .drawerheader,
[data-region="drawer"][id*="courseindex"] .drawerheader {
  flex-shrink: 0;
}
#courseindex-drawer .drawercontent,
[data-region="drawer"][id*="courseindex"] .drawercontent {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 80px !important;
}
.courseindex {
  overflow: visible !important;
}
#courseindex-drawer .drawercontent::-webkit-scrollbar { width: 8px; }
#courseindex-drawer .drawercontent::-webkit-scrollbar-track { background: transparent; }
#courseindex-drawer .drawercontent::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 4px; }
#courseindex-drawer .drawercontent::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.45); }
@media (max-width: 991px) {
  #courseindex-drawer .drawercontent,
  [data-region="drawer"][id*="courseindex"] .drawercontent {
    padding-bottom: 120px !important;
  }
}


/* Esconde FAB sandwich e botoes de drawer pra visitantes nao-logados (todas as paginas) */
body.notloggedin #lions-menu-fab,
body.notloggedin button[data-toggler="drawers"],
body.notloggedin [data-region="drawer-toggle"]{
  display:none !important;
}


/* Esconde card do curso 11 (Teachers Classroom) da home Moodle.
 * Memory: curso 11 e hub das salas BBB dos profs (nao deletar).
 * Faxina permanente: mover salas pra Nextcloud Talk + deletar curso depois.
 * Na home, .coursebox NAO tem data-courseid -> identifico pelo href via :has() */
body#page-site-index .coursebox:has(a[href*="course/view.php?id=11"]){display:none !important;}
/* Fallback p/ /course/index.php (la tem data-courseid) */
body.path-course-index .coursebox[data-courseid="11"]{display:none !important;}


/* Escopado SOMENTE na home Moodle (body#page-site-index) */
body#page-site-index .lions-filter-wrap{
  margin:18px 0 24px;
  padding:14px 18px;
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,0.04);
}
body#page-site-index .lions-filter-btn{
  background:transparent;
  color:#d32f2f;
  border:2px solid #d32f2f;
  border-radius:999px;
  padding:8px 20px;
  font-weight:600;
  font-size:.95em;
  cursor:pointer;
  transition:all .2s ease;
  font-family:inherit;
}
body#page-site-index .lions-filter-btn:hover{
  background:#d32f2f;
  color:#fff;
}
body#page-site-index .lions-filter-btn::before{
  content:"📚 ";
  margin-right:4px;
}
body#page-site-index .lions-filter-btn::after{
  content:" ▾";
  display:inline-block;
  transition:transform .25s ease;
}
body#page-site-index .lions-filter-wrap.open .lions-filter-btn::after{
  transform:rotate(180deg);
}
body#page-site-index .lions-categories{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease, margin-top .3s ease;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body#page-site-index .lions-filter-wrap.open .lions-categories{
  max-height:400px;
  margin-top:14px;
}
body#page-site-index .lions-categories a{
  background:#f5f5f5;
  color:#333;
  padding:8px 14px;
  border-radius:6px;
  text-decoration:none;
  font-size:.92em;
  border:1px solid #e0e0e0;
  transition:all .15s ease;
}
body#page-site-index .lions-categories a:hover{
  background:#d32f2f;
  color:#fff;
  border-color:#d32f2f;
  transform:translateY(-1px);
}
/* Botao Matricular-se no rodape de cada card */
body#page-site-index .coursebox .boxfooter{
  padding:0 !important;
  margin:0 !important;
}
body#page-site-index .lions-enroll-btn{
  display:block;
  width:calc(100% - 24px);
  margin:10px 12px 12px;
  background:#d32f2f;
  color:#fff !important;
  padding:11px 16px;
  border-radius:8px;
  text-align:center;
  text-decoration:none !important;
  font-weight:700;
  font-size:.95em;
  letter-spacing:.3px;
  transition:all .2s ease;
  box-shadow:0 3px 8px rgba(211,47,47,0.25);
}
body#page-site-index .lions-enroll-btn:hover{
  background:#b71c1c;
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(211,47,47,0.4);
}
body#page-site-index .lions-enroll-btn::before{
  content:"📥 ";
  margin-right:4px;
}
/* Botao Inscrever-se grande fixo no topo direito (azul pra contrastar com header vermelho) */
body#page-site-index .lions-inscreverse-btn{
  position:fixed;
  top:84px;
  right:24px;
  z-index:999;
  background:#1976d2;
  color:#fff !important;
  padding:13px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:1.05em;
  text-decoration:none !important;
  box-shadow:0 6px 20px rgba(25,118,210,0.45);
  transition:all .25s ease;
  letter-spacing:.3px;
  font-family:inherit;
}
body#page-site-index .lions-inscreverse-btn:hover{
  background:#1565c0;
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(25,118,210,0.6);
}
body#page-site-index .lions-inscreverse-btn::before{
  content:"📝 ";
  margin-right:6px;
}
@media (max-width:768px){
  body#page-site-index .lions-inscreverse-btn{
    top:auto;
    bottom:24px;
    right:24px;
    font-size:.95em;
    padding:11px 22px;
  }
}


.ldj-bubble { position: relative; }
.ldj-bubble-audio {
  position: absolute; top: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.92); color: #1e3a8a;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform .15s, background .15s;
  z-index: 2; font-family: system-ui,-apple-system,sans-serif;
  padding: 0; line-height: 1;
}
.ldj-bubble[style*="flex-start"] .ldj-bubble-audio { right: 8px; }
.ldj-bubble[style*="flex-end"] .ldj-bubble-audio { left: 8px; color: #be185d; }
.ldj-bubble-audio:hover { background: #fff; transform: scale(1.1); }
.ldj-bubble-audio.is-playing { background: #1d4ed8; color: #fff; animation: ldj-bubble-pulse 1.2s infinite; }
.ldj-bubble[style*="flex-end"] .ldj-bubble-audio.is-playing { background: #be185d; }
@keyframes ldj-bubble-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,0.55); }
  50% { box-shadow: 0 0 0 8px rgba(29,78,216,0); }
}
@media (max-width: 480px) {
  .ldj-bubble-audio { width: 28px; height: 28px; font-size: 12px; }
}


/* LIONS-LDJ-HIDE-ORPHAN-DRILL-V1
   Esconde drill-panel adjacente a outro drill-panel (= panel órfão original do v7-light).
   Sem mexer no HTML — solução pura CSS. */
.ldm-drill-panel + .ldm-drill-panel { display: none !important; }


body.path-admin .lions-quickfilter-wrap {
  position: sticky; top: 60px; z-index: 100;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0 14px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
  display: flex; align-items: center; gap: 12px;
}
body.path-admin .lions-quickfilter-input {
  flex: 1;
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s;
}
body.path-admin .lions-quickfilter-input:focus { border-color: #2563eb; }
body.path-admin .lions-quickfilter-count {
  font-size: 13px; color: #475569;
  min-width: 130px; text-align: right;
  white-space: nowrap;
}
body.path-admin .lions-quickfilter-clear {
  background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font-size: 13px;
  display: none;
}
body.path-admin .lions-quickfilter-wrap.has-filter .lions-quickfilter-clear { display: inline-block; }
body.path-admin .lions-row-hidden { display: none !important; }
body.path-admin .lions-row-match mark {
  background: #fef08a; color: #713f12; padding: 0 1px; border-radius: 2px;
}

