.sofl-term-page {
  --term-ink: #101828;
  --term-muted: #667085;
  --term-line: rgba(15, 23, 42, .1);
  --term-gold: #b7791f;
  --term-green: #0f766e;
  --term-surface: rgba(255, 255, 255, .86);
  color: var(--term-ink);
}

.sofl-term-progress-data {
  display: none;
}

.sofl-term-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--sofl-border);
  border-top: 3px solid #a67c2f;
  border-radius: 20px;
  background: var(--sofl-white);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.sofl-term-hero::after {
  display: none;
}

.sofl-term-hero h1 {
  margin: 28px 0 0;
  color: #0f172a;
  letter-spacing: 0;
  font-size: clamp(2rem, 4.15vw, 4rem);
  font-weight: 850;
  line-height: 1.04;
}

.sofl-term-hero-main,
.sofl-term-hero-meta {
  padding: clamp(26px, 4vw, 48px);
}

.sofl-term-hero-main {
  display: flex;
  min-height: 340px;
  flex-direction: column;
}

.sofl-primary-category-lockup {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  max-width: 100%;
  color: #a67c2f;
}

.sofl-primary-category-lockup:hover {
  color: #0f172a;
}

.sofl-primary-category-icon {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(166, 124, 47, .22);
  border-radius: 50%;
  background: rgba(166, 124, 47, .08);
  color: #a67c2f;
  font-size: 2rem;
}

    .sofl-primary-category-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        padding: 10px;
    }

.sofl-primary-category-label {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  font-size: 1.25rem;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.sofl-term-title-divider {
  width: 164px;
  height: 1px;
  display: block;
  margin-top: 26px;
  background: rgba(166, 124, 47, .32);
}

.sofl-term-hero-group {
  margin-top: auto;
  padding-top: 34px;
}

.sofl-term-hero h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

    .sofl-term-hero h2 i {
        color: #a67c2f;
        font-size: 1.6rem;
    }

.sofl-term-hero-meta {
  border-left: 1px solid var(--sofl-border);
}

.sofl-term-hero-badge {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: .82rem;
  line-height: 1.2;
}

.sofl-term-subcategory-badge,
.sofl-difficulty-badge {
  border-color: rgba(15, 23, 42, .11);
  background: #f8fafc;
  color: #475467;
}

.sofl-term-subcategory-badge:hover {
  border-color: rgba(166, 124, 47, .42);
  background: rgba(166, 124, 47, .12);
  color: #0f172a;
}

.sofl-term-hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-term-hero-meta-row h2 {
  margin-bottom: 0;
}

.sofl-difficulty-badge i {
  color: #98a2b3;
  font-size: .55rem;
}

.sofl-difficulty-badge.difficulty-simple,
.sofl-difficulty-badge.difficulty-beginner {
  border-color: rgba(22, 163, 74, .18);
  background: rgba(240, 253, 244, .92);
  color: #166534;
}

.sofl-difficulty-badge.difficulty-simple i,
.sofl-difficulty-badge.difficulty-beginner i {
  color: #22c55e;
}

.sofl-difficulty-badge.difficulty-moderate,
.sofl-difficulty-badge.difficulty-guided {
  border-color: rgba(166, 124, 47, .24);
  background: rgba(166, 124, 47, .08);
  color: #7c5a12;
}

.sofl-difficulty-badge.difficulty-moderate i,
.sofl-difficulty-badge.difficulty-guided i {
  color: #a67c2f;
}

.sofl-difficulty-badge.difficulty-intermediate {
  border-color: rgba(37, 99, 235, .2);
  background: rgba(239, 246, 255, .92);
  color: #1d4ed8;
}

.sofl-difficulty-badge.difficulty-intermediate i {
  color: #3b82f6;
}

.sofl-difficulty-badge.difficulty-advanced {
  border-color: rgba(190, 18, 60, .18);
  background: rgba(255, 241, 242, .92);
  color: #be123c;
}

.sofl-difficulty-badge.difficulty-advanced i {
  color: #e11d48;
}

.sofl-difficulty-badge.difficulty-not-specified i {
  color: #98a2b3;
}

.sofl-term-hero-tags {
  padding-top: 28px;
}

.sofl-term-hero-knowledge {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sofl-border);
}

.sofl-term-hero-knowledge h2 {
  margin-bottom: 12px;
}

.sofl-hero-knowledge-status {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.sofl-hero-knowledge-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.2;
}

.sofl-hero-knowledge-status.is-completed span {
  border-color: rgba(22, 163, 74, .22);
  background: rgba(22, 163, 74, .08);
  color: #15803d;
}

.sofl-hero-knowledge-status.is-in-progress span {
  border-color: rgba(166, 124, 47, .28);
  background: rgba(166, 124, 47, .09);
  color: #9f6c27;
}

.sofl-hero-knowledge-status.is-keep-learning span {
  border-color: rgba(217, 119, 6, .28);
  background: rgba(255, 247, 237, .95);
  color: #b45309;
}

.sofl-hero-knowledge-status.is-not-started span {
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #667085;
}

.sofl-hero-knowledge-status.is-not-started i {
  color: #98a2b3;
  font-size: .55rem;
}

.sofl-hero-knowledge-metrics {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: .82rem;
  font-weight: 750;
}

.sofl-hero-knowledge-metrics strong {
  color: #0f172a;
  font-weight: 900;
}

.sofl-term-tag-badge {
  border-style: solid;
}

.sofl-term-tag-more {
  border-color: rgba(15, 23, 42, .1);
  background: #f8fafc;
  color: #475467;
}

.sofl-term-hero-empty {
  color: var(--sofl-muted);
  font-size: .9rem;
}

@media (max-width: 991.98px) {
  .sofl-term-hero h1 {
    font-size: clamp(2.625rem, 7vw, 3rem);
  }

  .sofl-term-hero-main {
    min-height: 0;
  }

  .sofl-term-hero-group {
    margin-top: 0;
    padding-top: 32px;
  }

  .sofl-term-hero-meta {
    border-top: 1px solid var(--sofl-border);
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .sofl-term-hero.sofl-card {
    border-radius: 16px;
  }

  .sofl-term-hero-main,
  .sofl-term-hero-meta {
    padding: 24px;
  }

  .sofl-primary-category-lockup {
    gap: 14px;
  }

  .sofl-primary-category-icon {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
  }

  .sofl-primary-category-label {
    font-size: .78rem;
  }

  .sofl-term-hero h1 {
    margin-top: 22px;
    font-size: clamp(2rem, 10vw, 2.25rem);
  }

  .sofl-term-title-divider {
    margin-top: 24px;
  }

  .sofl-term-hero-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.sofl-term-pronunciation {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .8rem;
  color: #7c5b16;
  font-weight: 700;
}

.sofl-hero-media {
  align-self: stretch;
}

.sofl-hero-illustration {
  height: 100%;
  min-height: 220px;
  border-radius: 8px;
  background: #f4efe4;
  overflow: hidden;
}

.sofl-hero-illustration img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.sofl-term-section-header,
.sofl-case-study-header,
.sofl-ai-helper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sofl-term-section-header h2,
.sofl-term-illustration h2,
.sofl-term-example h2,
.sofl-term-warning h2,
.sofl-term-related h2,
.sofl-term-ai-helper h2 {
  margin: .25rem 0 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: 0;
}

.sofl-term-section-header h2 i {
  color: var(--term-gold);
  font-size: .9em;
  margin-right: .45rem;
}

.sofl-student-term-page .sofl-form-card,
.sofl-student-term-page .sofl-reading-section,
.sofl-student-term-page .sofl-term-related,
.sofl-student-term-page .sofl-sidebar-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.sofl-student-term-page .sofl-form-card-header {
  min-height: 52px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.sofl-student-term-page .sofl-form-card-header h2 {
  margin: 0;
  color: var(--term-ink);
  font-size: .98rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0;
}

.sofl-student-term-page .sofl-form-card-header p {
  margin: 3px 0 0;
  color: var(--sofl-muted);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 650;
}

.sofl-student-term-page .sofl-form-card-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(212, 168, 67, .13);
  color: #8a6518;
  font-size: .9rem;
}

.sofl-student-term-page .sofl-form-card-body {
  padding: 18px;
}

.sofl-term-content {
  font-size: 1.06rem;
  line-height: 1.82;
}

.sofl-student-term-page .sofl-term-content {
  max-width: none;
  font-size: 1.01rem;
  line-height: 1.76;
}

.sofl-student-term-page .sofl-reading-content p,
.sofl-student-term-page .sofl-reading-content ul,
.sofl-student-term-page .sofl-reading-content ol,
.sofl-student-term-page .sofl-reading-content blockquote {
  margin-bottom: .95em;
}

.sofl-term-content mark,
.sofl-text-highlight {
  background: linear-gradient(180deg, transparent 54%, rgba(250, 204, 21, .38) 0);
  padding: 0 .1rem;
}

.sofl-copy-snippet,
.sofl-audio-download {
  border: 1px solid var(--term-line);
  background: rgba(255, 255, 255, .78);
  color: #475467;
  border-radius: 999px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 800;
}

.sofl-copy-snippet.is-copied,
.sofl-action-chip.is-copied {
  color: #0f766e;
  border-color: rgba(15, 118, 110, .35);
  background: rgba(240, 253, 250, .95);
}

.sofl-term-audio {
  background:
    linear-gradient(135deg, rgba(16, 24, 40, .98), rgba(30, 41, 59, .96)),
    radial-gradient(circle at top right, rgba(245, 158, 11, .3), transparent 34%);
  color: #fff;
}

.sofl-term-audio .sofl-section-kicker,
.sofl-term-audio p {
  color: rgba(255, 255, 255, .72);
}

.sofl-term-audio .form-select {
  background-color: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.sofl-audio-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(212, 168, 67, .42);
  border-radius: 999px;
  background: rgba(251, 191, 36, .14);
  color: #fde68a;
  font-size: .76rem;
  font-weight: 850;
}

.sofl-term-example,
.sofl-term-warning,
.sofl-term-ai-helper,
.sofl-term-related {
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--term-line);
  background: var(--term-surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .07);
}

.sofl-term-illustration img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--term-line);
  background: #f4efe4;
}

.sofl-student-term-page .sofl-term-illustration img {
  max-height: 420px;
  border-radius: 12px;
}

.sofl-related-card em {
  display: inline-flex;
  color: var(--term-gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: normal;
}

.sofl-term-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: linear-gradient(135deg, #fffbeb, #fff);
  border-color: rgba(245, 158, 11, .25);
}

.sofl-warning-icon,
.sofl-ai-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #101828;
  color: #fbbf24;
}

.sofl-term-ai-helper {
  background:
    radial-gradient(circle at 92% 0%, rgba(15, 118, 110, .16), transparent 30%),
    #fff;
}

.sofl-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.1rem 0;
}

.sofl-ai-prompts button {
  border: 1px solid var(--term-line);
  background: #f8fafc;
  border-radius: 999px;
  padding: .65rem .95rem;
  color: #344054;
  font-weight: 800;
}

.sofl-related-card {
  position: relative;
  min-height: 186px;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.sofl-related-card:hover {
  border-color: #A67C2F;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  transform: translateY(-3px);
}

.sofl-student-term-page .sofl-related-grid {
  gap: 12px;
}

.sofl-student-term-page .sofl-related-card {
  min-height: 0;
  padding: 16px;
  border-radius: 14px;
}

.sofl-student-term-page .sofl-related-card span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(212, 168, 67, .13);
  color: #8a6518;
  font-size: .86rem;
}

.sofl-student-term-page .sofl-related-card strong {
  margin-top: 10px;
  font-size: .96rem;
  line-height: 1.3;
}

.sofl-student-term-page .sofl-related-card small {
  margin-top: 6px;
  font-size: .8rem;
  line-height: 1.45;
}

.sofl-student-term-page .sofl-related-card em {
  margin-top: 10px;
}

.sofl-related-card::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: .2s ease;
}

.sofl-related-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.sofl-related-card.is-locked::before {
  content: "\f023";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #b7791f;
}

.sofl-formula-block {
  background: #0f172a;
  color: #fff;
}

.sofl-formula-block .sofl-reading-content,
.sofl-formula-block .sofl-section-kicker {
  color: rgba(255, 255, 255, .78);
}

.sofl-term-focus-mode .sofl-topbar,
.sofl-term-focus-mode .sofl-sidebar,
.sofl-term-focus-mode .sofl-reading-sidebar {
  display: none;
}

.sofl-term-focus-mode .sofl-term-layout {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.sofl-term-focus-mode .sofl-term-main {
  max-width: 980px;
}

.sofl-term-focus-mode .sofl-quick-action-bar {
  position: sticky;
  top: 14px;
  z-index: 20;
}

.sofl-student-term-page .sofl-action-chip-quiz {
  border-color: rgba(166, 124, 47, .42);
  background: rgba(166, 124, 47, .08);
  color: #7c5a12;
}

.sofl-student-term-page .sofl-action-chip-quiz:hover {
  border-color: rgba(166, 124, 47, .62);
  background: rgba(166, 124, 47, .14);
  color: var(--sofl-dark);
}

.sofl-student-term-page .sofl-term-main {
  gap: 16px;
}

.sofl-student-term-page .sofl-quick-action-bar {
  top: 88px;
}

.sofl-student-term-page .sofl-term-quiz {
  position: relative;
  overflow: visible;
  margin-top: 32px;
}

.sofl-student-term-page .sofl-term-quiz::before,
.sofl-student-term-page .sofl-related-content-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 1px;
  background: rgba(15, 23, 42, .12);
}

.sofl-student-term-page .sofl-related-content-card {
  position: relative;
  overflow: visible;
  margin-top: 44px;
}

.sofl-knowledge-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.sofl-knowledge-summary h3 {
  margin: 6px 0 0;
  color: var(--sofl-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 850;
}

.sofl-knowledge-summary p {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--sofl-muted);
}

.sofl-knowledge-meta {
  min-width: 220px;
  display: grid;
  gap: 8px;
}

.sofl-knowledge-meta span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 750;
}

.sofl-knowledge-meta strong {
  color: var(--sofl-dark);
}

.sofl-quiz-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 4px;
  color: #667085;
}

.sofl-quiz-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.sofl-quiz-status.is-completed {
  color: #15803d;
}

.sofl-quiz-status.is-not-attempted {
  color: #667085;
}

.sofl-knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sofl-knowledge-actions .sofl-btn-gold,
.sofl-knowledge-actions .sofl-btn-outline,
.sofl-quiz-submit {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 850;
}

.sofl-quiz-locked-state {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 12px;
  background: #ecfdf3;
  color: #166534;
}

.sofl-quiz-locked-state i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
}

.sofl-quiz-locked-state div {
  display: grid;
  gap: 1px;
}

.sofl-quiz-locked-state strong {
  font-size: .88rem;
  line-height: 1.1;
}

.sofl-quiz-locked-state span {
  color: #475569;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.1;
}

.sofl-quiz-attempt {
  margin-top: 18px;
}

.sofl-quiz-question-list {
  display: grid;
  gap: 18px;
}

.sofl-student-quiz-question {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.sofl-student-quiz-question legend {
  float: none;
  width: auto;
  margin: 0 0 12px;
  color: var(--sofl-dark);
  font-size: 1rem;
  font-weight: 850;
}

.sofl-student-quiz-question legend span {
  display: block;
  margin-bottom: 5px;
  color: #8a6518;
  font-size: .78rem;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.sofl-student-quiz-options {
  display: grid;
  gap: 9px;
}

.sofl-student-quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--sofl-text);
  font-weight: 700;
  cursor: pointer;
}

.sofl-student-quiz-option:hover {
  border-color: rgba(212, 168, 67, .45);
  background: var(--sofl-gold-wash);
}

.sofl-quiz-submit {
  margin-top: 16px;
  border: 0;
  background: var(--sofl-gold);
  color: var(--sofl-dark);
}

.sofl-quiz-validation-message {
  margin-top: 9px;
  color: #b42318;
  font-size: .84rem;
  font-weight: 750;
}

.sofl-quiz-completed {
  margin-top: 18px;
}

.sofl-quiz-score {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  color: var(--sofl-dark);
}

.sofl-quiz-score.is-passed {
  border-color: rgba(22, 163, 74, .24);
  background: #ecfdf3;
  color: #14532d;
}

.sofl-quiz-score.is-failed {
  border-color: rgba(217, 119, 6, .28);
  background: #fff7ed;
  color: #7c2d12;
}

.sofl-quiz-score span,
.sofl-quiz-score em {
  color: inherit;
  font-style: normal;
  font-weight: 750;
}

.sofl-quiz-score strong {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

.sofl-quiz-result-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sofl-quiz-result-item {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  background: #ffffff;
}

.sofl-quiz-result-item.is-correct {
  border-left-color: #059669;
}

.sofl-quiz-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sofl-quiz-result-head span {
  color: #8a6518;
  font-size: .78rem;
  font-weight: 850;
  text-transform: none;
}

.sofl-quiz-explanation {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--sofl-muted);
  font-weight: 650;
}

.sofl-term-mobile-bar {
  display: none;
}

.sofl-term-card {
  isolation: isolate;
}

.sofl-term-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(183, 121, 31, .12), transparent 42%);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: -1;
}

.sofl-term-card:hover::before {
  opacity: 1;
}

.sofl-term-card-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin: .25rem 0 .75rem;
}

.sofl-student-term-page .sofl-sidebar-stack {
  gap: 24px;
}

.sofl-student-term-page .sofl-sidebar-panel-title {
  margin-bottom: 0;
}

.sofl-student-term-page .sofl-sidebar-links {
  gap: 6px;
}

.sofl-student-term-page .sofl-sidebar-links a {
  padding: 10px 0;
}

.sofl-student-term-page .sofl-sidebar-links strong {
  font-size: .91rem;
}

.sofl-student-term-page .sofl-sidebar-links small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sofl-student-term-page .sofl-related-content-card {
  overflow: hidden;
}

.sofl-student-term-page .sofl-related-content-header {
  flex-wrap: wrap;
}

.sofl-student-term-page .sofl-related-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.sofl-student-term-page .sofl-related-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--term-muted);
  font-size: .8rem;
  font-weight: 800;
}

.sofl-student-term-page .sofl-related-tab em {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
  font-size: .7rem;
  font-style: normal;
}

.sofl-student-term-page .sofl-related-tab:hover,
.sofl-student-term-page .sofl-related-tab.is-active {
  border-color: rgba(212, 168, 67, .45);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-student-term-page .sofl-related-tab.is-active em {
  background: #ffffff;
  color: #8a6518;
}

.sofl-student-term-page .sofl-related-panel[hidden] {
  display: none;
}

.sofl-student-term-page .sofl-related-slider {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}

.sofl-student-term-page .sofl-related-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.sofl-student-term-page .sofl-related-track::-webkit-scrollbar {
  display: none;
}

.sofl-student-term-page .sofl-related-content-item {
  position: relative;
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  padding: 14px 34px 14px 14px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sofl-text);
  scroll-snap-align: start;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sofl-student-term-page .sofl-related-content-item:hover {
  color: var(--sofl-text);
  border-color: rgba(212, 168, 67, .45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-2px);
}

.sofl-student-term-page .sofl-related-content-item img {
  width: 100%;
  height: 86px;
  margin-bottom: 11px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f6;
}

.sofl-student-term-page .sofl-related-item-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 10px;
  background: rgba(212, 168, 67, .13);
  color: #8a6518;
}

.sofl-student-term-page .sofl-related-content-item strong {
  color: var(--sofl-dark);
  font-size: .95rem;
  line-height: 1.35;
}

.sofl-student-term-page .sofl-related-content-item small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--sofl-muted);
  font-size: .79rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sofl-student-term-page .sofl-related-item-meta {
  display: grid;
  align-items: start;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--sofl-muted);
  font-size: .73rem;
  font-weight: 750;
}

.sofl-student-term-page .sofl-related-item-meta em {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: #8a6518;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-student-term-page .sofl-related-item-meta > span {
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  line-height: 1.25;
}

.sofl-student-term-page .sofl-related-nav {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 50%;
  background: #ffffff;
  color: var(--sofl-dark);
}

.sofl-student-term-page .sofl-related-nav:hover:not(:disabled) {
  border-color: rgba(212, 168, 67, .45);
  background: var(--sofl-gold-wash);
}

.sofl-student-term-page .sofl-related-nav:disabled {
  cursor: default;
  opacity: .35;
}

.sofl-student-term-page .sofl-related-empty-state {
  flex: 0 0 100%;
  min-height: 148px;
  display: grid;
  gap: 8px;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(148, 163, 184, .55);
  border-radius: 14px;
  background: #fbfcff;
  color: var(--sofl-muted);
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
}

.sofl-student-term-page .sofl-related-empty-state i {
  color: #8a6518;
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .sofl-term-section-header,
  .sofl-case-study-header,
  .sofl-ai-helper-header {
    flex-direction: column;
  }

  .sofl-term-page {
    padding-bottom: 5.5rem;
  }

  .sofl-term-mobile-bar {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: .35rem;
    padding: .5rem;
    border-radius: 24px;
    background: rgba(16, 24, 40, .92);
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .32);
    backdrop-filter: blur(18px);
  }

  .sofl-term-mobile-bar form,
  .sofl-term-mobile-bar button {
    min-width: 0;
  }

  .sofl-term-mobile-bar button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, .86);
    padding: .55rem .35rem;
    display: grid;
    gap: .2rem;
    place-items: center;
    font-size: .76rem;
    font-weight: 800;
  }

  .sofl-term-mobile-bar button.is-active,
  .sofl-term-mobile-bar button:hover {
    background: rgba(255, 255, 255, .12);
    color: #fbbf24;
  }

  .sofl-student-term-page .sofl-related-content-item {
    flex-basis: calc((100% - 12px) / 2);
  }
}

@media (max-width: 575.98px) {
  .sofl-term-hero,
  .sofl-reading-section,
  .sofl-term-example,
  .sofl-term-warning,
  .sofl-term-ai-helper,
  .sofl-term-related {
    border-radius: 8px;
  }

  .sofl-student-term-page .sofl-form-card-body {
    padding: 16px;
  }

  .sofl-student-term-page .sofl-related-content-header {
    align-items: flex-start;
  }

  .sofl-student-term-page .sofl-related-tabs {
    width: 100%;
    margin-left: 0;
  }

  .sofl-student-term-page .sofl-related-tab {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 8px;
  }

  .sofl-student-term-page .sofl-related-slider {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 7px;
  }

  .sofl-student-term-page .sofl-related-nav {
    width: 32px;
    height: 32px;
  }

  .sofl-student-term-page .sofl-related-content-item {
    flex-basis: 100%;
  }

  .sofl-copy-snippet span {
    display: none;
  }
}
