:root {
  --ink-900: var(--t26-ink-900);
  --ink-700: var(--t26-ink-700);
  --ink-500: var(--t26-ink-500);
  --mist-100: var(--t26-bg-mid);
  --paper: var(--t26-paper);
  --brand-600: var(--t26-primary);
  --brand-500: var(--t26-primary-2);
  --accent-500: var(--t26-accent);
  --success-500: var(--t26-success);
  --border: var(--t26-border);
  --shadow: var(--t26-shadow);
  --definition-chip: #eaf8ff;
  --definition-reveal: #fff4df;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--t26-font);
  font-weight: 500;
  color: var(--ink-900);
  background: var(--t26-bg);
  overflow-x: hidden;
}

.slide-page {
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: visible;
}

.slide-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(15, 126, 168, 0.2);
  background: rgba(251, 253, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.slide-pill {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--brand-600);
  font-weight: 800;
}

.slide-header h1 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: var(--t26-font);
}

.slide-home-intro {
  margin: 7px 0 0;
  color: var(--ink-700);
  line-height: 1.45;
}

.home-tools {
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(251, 253, 255, 0.72);
}

.home-tools > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
  color: var(--ink-700);
}

.home-tools > summary::after {
  content: "▾";
  color: var(--ink-500);
}

.home-tools[open] > summary::after {
  content: "▴";
}

.home-tools > summary:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 5px;
}

.home-tools > summary h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.home-tools__count {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.home-tools nav {
  padding: 0 0 12px;
}

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

.home-tools__group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}

.home-tools__group h3 {
  margin: 0;
  color: var(--ink-700);
  font-size: .88rem;
}

.home-tools__group > p {
  flex: 1 0 auto;
  margin: 4px 0 9px;
  color: var(--ink-500);
  font-size: .8rem;
  line-height: 1.4;
}

.home-tools__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.home-tools__links .t26-btn {
  min-height: var(--t26-action-height);
  text-align: center;
}

@media (max-width: 760px) {
  .home-tools__groups {
    grid-template-columns: 1fr;
  }

  .home-tools__links .t26-btn {
    width: 100%;
  }
}

.slide-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.slide-header .btn {
  min-width: 0;
}

.slide-header .btn:hover {
  border-color: var(--brand-500);
}

.lesson-games {
  position: relative;
}

.lesson-games > summary {
  list-style: none;
  cursor: pointer;
}

.lesson-games > summary::-webkit-details-marker {
  display: none;
}

.lesson-games__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: min(220px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lesson-games__group {
  display: grid;
}

.lesson-games__group:not([hidden]) + .lesson-games__group:not([hidden]) {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}

.lesson-games__label {
  margin: 5px 11px 2px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.lesson-games__menu a {
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}

.lesson-games__menu a:hover,
.lesson-games__menu a:focus-visible {
  background: #eef3ef;
}

.slide-header .btn-toggle {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}

.slide-main {
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.slide-panel {
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(14px, 3vw, 34px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: visible;
}

.slide-panel section {
  column-count: 1;
  font-size: clamp(1rem, 1.7vw, 1.42rem);
  line-height: 1.36;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  overflow: visible;
}

h2 {
  column-span: all;
  margin: 10px 0 6px;
  font-size: 1.12em;
  color: var(--brand-600);
  border-bottom: 1px solid rgba(15, 126, 168, 0.22);
  padding-bottom: 7px;
  cursor: default;
  letter-spacing: 0.01em;
  font-family: var(--t26-font);
}

h3 {
  column-span: all;
  margin: 10px 0 6px;
  color: var(--accent-500);
  font-size: 1.03em;
  font-family: var(--t26-font);
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

li {
  margin: 4px 0;
  line-height: 1.35;
  cursor: default;
}

.content ul,
.content ol {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin-left: 0;
}

.content li {
  margin: 1px 0;
  line-height: 1.42;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
  break-inside: auto;
  -webkit-column-break-inside: auto;
}

.content li > .term {
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: normal;
}

.content li.slide-answer-item {
  margin-left: 1.4rem;
  list-style: none;
  color: var(--ink-700);
}

.content li.slide-answer-item::before {
  content: "↳";
  display: inline-block;
  width: 1.1rem;
  margin-left: -1.1rem;
  color: var(--ink-500);
  font-weight: 800;
}

.content ul ul,
.content ol ul,
.content ul ol,
.content ol ol {
  list-style: circle;
  padding-left: 2rem;
  margin-left: 0.45rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.multi-column {
  column-count: 2;
  column-gap: 1.4rem;
}

.multi-column li {
  break-inside: auto;
  -webkit-column-break-inside: auto;
}

.vocabulary-slide .multi-column {
  column-count: 2;
}

.vocabulary-slide .multi-column li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.topic-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topic-heading__label {
  flex: 1;
}

.topic-heading-actions {
  display: flex;
  gap: 8px;
}

.topic-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--t26-radius-sm);
  padding: 9px 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  color: var(--ink-700);
  text-decoration: none;
}

.topic-action--match {
  border-color: var(--border);
  color: var(--ink-700);
}



.vocabulary-slide {
  font-family: var(--t26-font);
}

.vocabulary-slide .slide-header {
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.vocabulary-slide .slide-pill {
  display: none;
}

.vocabulary-slide .slide-header h1,
.vocabulary-slide h2 {
  font-family: inherit;
}

.vocabulary-slide .slide-panel {
  border-color: #dde5de;
  box-shadow: none;
}

.vocabulary-slide [hidden] {
  display: none !important;
}

.topic-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.topic-navigation__count {
  min-width: 4em;
  text-align: center;
  color: var(--ink-500);
}

.vocabulary-slide .slide-panel section {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.5;
}

.vocabulary-slide .content li {
  margin: 0.12em 0;
  line-height: 1.42;
}

.vocabulary-slide .content li > .meaning {
  display: block;
  color: #55645c;
  font-size: .56em;
  line-height: 1.25;
}

.vocabulary-slide .vocabulary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vocabulary-slide .vocabulary-number-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}

.vocabulary-slide .vocabulary-number-prompt {
  margin: 0 0 10px;
  color: var(--t26-ink-700);
  font-size: 1rem;
  font-weight: 700;
}

.vocabulary-slide .vocabulary-number-prompt[hidden] {
  display: none;
}

.vocabulary-slide .vocabulary-list > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 150px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d6ded8;
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.vocabulary-slide .vocabulary-list > li.language-model {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 12px 32px;
  min-height: 0;
  padding: 18px 24px;
  text-align: left;
}

.vocabulary-slide .vocabulary-list > li.language-model > .term,
.vocabulary-slide .vocabulary-list > li.language-model > .meaning {
  width: 100%;
  overflow-wrap: normal;
  line-height: 1.4;
}

.vocabulary-slide .vocabulary-list > li.language-model > .term {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.3;
}

.vocabulary-slide .vocabulary-list > li.language-model > .meaning {
  color: #34483c;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.language-turn {
  display: block;
}

.language-turn + .language-turn {
  margin-top: 5px;
}

@media (max-width: 650px) {
  .vocabulary-slide .vocabulary-list > li.language-model {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px;
  }
}

.vocabulary-slide #english-toggle[aria-pressed="true"] {
  background: #315344;
  color: #fff;
}

.vocabulary-slide[data-reveal-mode="text"] .vocabulary-list > li:not(.is-revealed) .term {
  visibility: hidden;
}

.vocabulary-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.vocabulary-reveal[hidden] {
  display: none;
}

.vocabulary-reveal span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7eee9;
  color: #244537;
  font-size: 0.82rem;
  font-weight: 700;
}

.vocabulary-slide[data-reveal-mode="image"] .vocabulary-reveal {
  align-items: flex-start;
  padding-top: 55px;
}

.vocabulary-reveal:focus-visible {
  outline: 3px solid #315344;
  outline-offset: -3px;
}

.vocabulary-slide .vocabulary-number-list > li {
  min-height: 78px;
  padding: 5px;
  gap: 4px;
}

.vocabulary-picture {
  display: block;
  width: min(100%, 240px);
  height: auto;
  cursor: zoom-in;
}

.vocabulary-picture-dialog[open] {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: #fff;
}

.vocabulary-picture-dialog::backdrop {
  background: rgba(10, 20, 30, .82);
}

.vocabulary-picture-dialog .vocabulary-picture {
  width: min(92vw, 92vh);
  height: auto;
  cursor: default;
}

.vocabulary-picture-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: 700 16px Arial, sans-serif;
}

.vocabulary-slide .vocabulary-list .term {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.16;
}

.vocabulary-number {
  display: inline-block;
  min-width: 1.55em;
  margin-right: 0.12em;
  padding: 0 0.22em;
  border-radius: 0.28em;
  background: #e7eee9;
  color: #315344;
  font-size: 0.72em;
  line-height: 1.35;
  text-align: center;
  vertical-align: 0.08em;
}

.vocabulary-slide .vocabulary-list > li > .meaning {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .vocabulary-slide .vocabulary-list:not(.vocabulary-number-list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .vocabulary-slide .vocabulary-list:not(.vocabulary-number-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .vocabulary-slide .vocabulary-list:not(.vocabulary-number-list) > li {
    min-height: 130px;
  }
  .vocabulary-picture {
    width: min(100%, 130px);
  }
}

@media print {
  .vocabulary-picture-dialog {
    display: none !important;
  }
  .vocabulary-picture {
    filter: grayscale(1) contrast(1.15);
  }
}

.vocabulary-slide .content {
  display: flow-root;
}

.vocabulary-slide h2 {
  color: #315344;
  border-bottom-color: #dde5de;
}

.vocabulary-slide .topic-action {
  min-height: 44px;
  font-size: 0.84rem;
}

.vocabulary-slide .active-heading,
.vocabulary-slide .active-word .term,
.vocabulary-slide .active-word .hidden.revealed {
  background: #e7eee9;
}

.vocabulary-slide .revealed {
  background: #e7eee9;
  color: #315344;
}

.active-heading {
  display: flex;
  width: 100%;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--ink-900);
  background: #e7eee9;
}

.active-word .term,
.active-row .term,
.active-word .hidden.revealed,
.active-row .hidden.revealed {
  display: inline;
  align-items: center;
  margin: 0 6px 0 0;
  padding: 2px 7px;
  border-radius: 8px;
  color: var(--ink-900);
  background: var(--definition-chip);
  line-height: 1.42;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  overflow-wrap: anywhere;
}

.hidden {
  display: none;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--ink-700);
  background: #fff;
  font-weight: 500;
  line-height: 1.42;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  overflow-wrap: anywhere;
}

.revealed {
  display: inline;
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #8f4a00;
  background: var(--definition-reveal);
  font-weight: 700;
  line-height: 1.42;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  overflow-wrap: anywhere;
}

@media (max-width: 900px), (max-height: 760px) {
  .slide-page {
    padding: 10px;
    gap: 10px;
  }

  .slide-header {
    padding: 10px;
    border-radius: 12px;
  }

  .slide-header h1 {
    font-size: 1.15rem;
  }

  .slide-header .btn {
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .slide-panel {
    padding: 12px;
    border-radius: 12px;
  }

  .slide-panel section {
    column-count: 1 !important;
    font-size: clamp(1rem, 2.6vw, 1.35rem);
  }

  .vocabulary-slide .slide-panel section {
    font-size: clamp(1.9rem, 2.8vw, 2.2rem);
    line-height: 1.45;
  }

  .multi-column {
    column-count: 1;
  }

  .vocabulary-slide .multi-column {
    column-count: 2;
  }
}

@media (min-width: 901px) {
  .vocabulary-slide .multi-column--dense {
    column-count: 3;
  }

}

.markdown-library .slide-index {
  margin-top: 0;
  padding-left: 0;
}

.grade-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.grade-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f1f7f3;
  color: var(--ink-700);
  font-weight: 700;
  text-decoration: none;
}

.grade-jumps a:hover,
.grade-jumps a:focus-visible {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

@media (min-width: 900px) {
  .markdown-library .slide-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .markdown-library .slide-index a {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    width: 100%;
  }
}

.markdown-library .grade-group + .grade-group {
  margin-top: 28px;
}

.markdown-library .grade-group h2 {
  margin-bottom: 12px;
  cursor: default;
}

.slide-index li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  border-bottom: 1px dashed rgba(16, 33, 46, 0.1);
}

.slide-index a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
}

.slide-index a:hover {
  color: var(--brand-600);
}

.slide-index .unit-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--definition-chip);
  color: var(--brand-600);
  font-size: 0.82em;
  font-weight: 800;
}

.slide-index .unit-title {
  overflow-wrap: anywhere;
}

.unit-activities {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-activities a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--t26-radius-sm);
  color: var(--brand-600);
  background: var(--paper);
  font-size: 0.78em;
  font-weight: 700;
  text-decoration: none;
}

.unit-activities a:hover,
.unit-activities a:focus-visible {
  border-color: var(--brand-600);
}

.meta {
  font-size: 0.8em;
  color: var(--ink-500);
  font-weight: 600;
}

.back-link {
  margin-top: 20px;
}

.back-link a {
  color: var(--brand-600);
}

.page-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .slide-page {
    padding: 12px;
    gap: 12px;
  }

  .slide-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 14px;
    padding: 12px;
  }

  .slide-header h1 {
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
  }

  .slide-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .slide-header .btn,
  .slide-header .btn-toggle {
    width: 100%;
    min-height: 44px;
  }

  .slide-panel {
    border-radius: 14px;
    padding: 12px;
  }

  .slide-panel section {
    font-size: clamp(0.98rem, 4.6vw, 1.12rem);
    line-height: 1.4;
  }

  .vocabulary-slide .slide-panel section {
    font-size: clamp(1.25rem, 4vw, 1.55rem);
    line-height: 1.42;
  }

  h2 {
    font-size: clamp(1rem, 4.8vw, 1.12rem);
    line-height: 1.32;
  }

  h3 {
    font-size: clamp(0.95rem, 4.2vw, 1.02rem);
    line-height: 1.3;
  }

  .topic-heading {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topic-heading__label {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topic-heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .multi-column {
    column-count: 1;
    column-gap: 0;
  }

  .vocabulary-slide .multi-column {
    column-count: 1;
    column-gap: 0;
  }

  .topic-action {
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0;
  }

  .slide-index a {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .slide-pill {
    letter-spacing: 0.14em;
    font-size: 0.62rem;
  }

  .slide-header-actions {
    grid-template-columns: 1fr;
  }

  .slide-header .btn,
  .slide-header .btn-toggle {
    font-size: 0.8rem;
    padding: 9px 12px;
  }

  .topic-action {
    min-width: 100%;
  }

  .topic-heading-actions {
    grid-template-columns: 1fr;
  }

  .slide-index li {
    display: block;
  }

  .slide-index a {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    width: 100%;
    gap: 8px;
  }

  .slide-index .unit-title {
    min-width: 0;
  }
}

/* Keep the English reveal button clear of the visible Turkish meaning. */
.vocabulary-slide[data-reveal-mode="text"] .vocabulary-reveal {
  position: static;
  width: auto;
  align-self: center;
  padding: 5px;
}

/* Plain bilingual examples: optional image, English, then Turkish. */
.vocabulary-slide .vocabulary-list > li.language-model {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 24px;
  text-align: left;
}

.situation-picture,
.language-model > .vocabulary-picture {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
}

.situation-picture:focus-visible {
  outline: 3px solid #315344;
  outline-offset: 3px;
}

.vocabulary-slide .language-model > .term {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.vocabulary-slide .language-model > .meaning {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.45;
}

@media (max-width: 650px) {
  .vocabulary-slide .vocabulary-list > li.language-model {
    padding: 16px;
    gap: 12px;
  }

  .language-model > .situation-picture,
  .language-model > .vocabulary-picture {
    max-height: 300px;
  }

  .vocabulary-slide .language-model > .term {
    font-size: 1.5rem;
  }
}

/* One compact teacher toolbar keeps the normal lesson view prominent. */
.vocabulary-slide .slide-page {padding: 12px 20px;gap: 12px;}
.vocabulary-slide .slide-panel {padding: 16px;border: 0;border-radius: 0;}
.vocabulary-slide .slide-header-actions {display: flex;flex-wrap: wrap;gap: 8px;width: auto;}
.vocabulary-slide .slide-header-actions .t26-btn {width: auto;min-height: 44px;font-size: .9rem;padding: 10px 12px;}
.vocabulary-slide .topic-navigation {gap: 10px;margin-bottom: 10px;}
.vocabulary-slide .lesson-games__menu a {display: flex;align-items: center;min-height: 44px;}
@media (max-width: 768px) {
  .vocabulary-slide .slide-page {padding: 12px;gap: 8px;}
  .vocabulary-slide .slide-panel {padding: 12px;}
  .vocabulary-slide .slide-header {gap: 10px;}
  .vocabulary-slide .slide-header-actions {gap: 6px;}
  .vocabulary-slide .slide-header-actions .t26-btn {padding: 8px;font-size: .8rem;}
  .vocabulary-slide .topic-navigation .t26-btn {padding: 8px;font-size: .8rem;}
  .vocabulary-slide .topic-navigation__count {min-width: 3em;font-size: .9rem;}
}
/* Category pictures and social-expression headings remain in the existing topic list. */
.vocabulary-slide .vocabulary-list > li.vocabulary-category-heading {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  padding: 18px 4px 4px;
  border: 0;
  background: transparent;
  text-align: left;
}
.vocabulary-category-heading > h3 { margin: 0; color: #315344; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.vocabulary-slide .vocabulary-list > li.vocabulary-category-picture {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  padding: 18px;
  background: white;
}
.vocabulary-category-picture figure { margin: 0; }
.vocabulary-category-picture .category-art { display: block; width: 100%; height: auto; max-height: none; }
.vocabulary-picture-dialog .vocabulary-picture.category-art { width: min(96vw, 180vh); max-height: 90vh; height: auto; object-fit: contain; }
.vocabulary-slide .vocabulary-list.vocabulary-illustrated-list:not(.vocabulary-number-list) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vocabulary-illustrated-list .vocabulary-picture { width: min(100%, 400px); }
@media (max-width: 650px) {
  .vocabulary-slide .vocabulary-list.vocabulary-illustrated-list:not(.vocabulary-number-list) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.replaceable-part {text-underline-offset: .16em;text-decoration-thickness: .06em;}
