/* The subject index and individual notes use the available reading width. Keep the
   topic cards in one column on the same edges as the heading. */
#site-main.know-index { max-width: 52rem; }
#site-main.know-reader { max-width: 76rem; }
.know-subject-header, .know-topic-header { width: 100%; }
.know-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.know-heading-row > h1 { min-width: 0; }
.know-heading-progress { flex: none; margin-left: auto; white-space: nowrap; }
/* Computer Science needs .code-lesson for its runnable examples, but its generic
   42rem lesson-column limit must not narrow the Know subject or topic viewer. */
#site-main.know-wide > .code-lesson { max-width: none; margin-inline: 0; }

.know-subject-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.know-study-actions, .know-resource-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
}
.know-study-actions > .chat-launch-inline,
.know-study-actions > .know-study-vocab {
  box-sizing: border-box;
  width: 11.5rem;
  min-height: 2.5rem;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: .8rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
}
.know-study-actions > .chat-launch-inline svg,
.know-study-actions > .know-study-vocab svg { width: 1rem; height: 1rem; flex: none; }
.know-resource-actions {
  width: 100%;
  padding-top: .7rem;
  border-top: 1px solid rgba(148, 163, 184, .2);
}
.know-quick-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.5rem;
  max-width: 100%;
  padding: .55rem .85rem;
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: .8rem;
  background: linear-gradient(125deg, rgba(37, 99, 235, .17), rgba(8, 20, 49, .8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 9px 24px -16px rgba(59, 130, 246, .5);
  color: #bfdbfe;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.know-quick-link > svg { width: 1rem; height: 1rem; flex: none; }
.know-quick-link--abroad {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  justify-content: center;
  border-color: rgba(167, 139, 250, .5);
  background: linear-gradient(120deg, rgba(99, 102, 241, .34), rgba(109, 40, 217, .16) 62%, rgba(8, 20, 49, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 25px -14px rgba(139, 92, 246, .65);
  color: #f0eaff;
}
.know-quick-link--abroad > svg { width: 1.25rem; height: 1.25rem; }
.know-quick-link:hover { border-color: rgba(125, 211, 252, .72); transform: translateY(-1px); }
.know-quick-link--abroad:hover { border-color: rgba(196, 181, 253, .85); }
.know-quick-link:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }

.know-topic-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.know-topic-list > li { min-width: 0; width: 100%; scroll-margin-top: 6rem; }
.know-topic-card {
  min-width: 0;
  overflow: hidden;
  border-color: rgba(var(--know-rgb), .26);
  background-image: linear-gradient(125deg, rgba(var(--know-rgb), .13), rgba(7, 14, 34, .92) 42%, rgba(4, 9, 24, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 12px 26px -18px rgba(0, 0, 0, .8);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.know-topic-card:hover, .know-topic-card[open] {
  border-color: rgba(var(--know-rgb), .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 15px 30px -17px rgba(var(--know-rgb), .45);
}
.know-topic-card > .know-topic-summary {
  min-height: 4.25rem;
  border-left: 3px solid rgb(var(--know-rgb));
  padding-left: .9rem;
}
.know-topic-summary .learn-topic-title {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  text-overflow: clip;
  font-size: 1rem;
  line-height: 1.35;
}
.know-topic-card.learn-topic-rel[open] > summary .learn-topic-title {
  padding-right: 0;
}
.know-reading-panel {
  min-width: 0;
  background-image: linear-gradient(155deg, rgba(45, 88, 150, .15), rgba(3, 9, 26, .94) 36%, rgba(3, 9, 26, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 55px -35px rgba(0, 0, 0, .75);
}
.know-wide .learn-unit-title { min-width: 0; }

@media (max-width: 639px) {
  .know-heading-row { flex-wrap: wrap; gap: .4rem 1rem; }
  .know-heading-progress { margin-left: 0; }
  .know-subject-actions > * { min-width: 0; }
  .know-topic-card > .know-topic-summary { min-height: 3.8rem; }
  .know-topic-card > .know-topic-summary .learn-topic-title { -webkit-line-clamp: 3; }
  .know-wide .learn-unit[open] > summary .learn-unit-title { padding-right: 0; }
  .know-wide .learn-syllabus-summary {
    position: static;
    height: auto;
    justify-content: flex-start;
    margin-bottom: .5rem;
  }
}
@media (max-width: 359px) {
  .know-topic-card > .know-topic-summary {
    display: grid;
    grid-template-columns: 1.5rem 1.5rem minmax(0, 1fr) 1rem;
    align-items: center;
    gap: .35rem .45rem;
    padding-inline: .55rem;
  }
  .know-topic-summary > span:first-child { grid-column: 1; grid-row: 1; min-width: 1.5rem; height: 1.5rem; padding-inline: 0; }
  .know-topic-summary > .practice-card-icon-bg { grid-column: 2; grid-row: 1; width: 1.5rem; height: 1.5rem; }
  .know-topic-summary > .learn-topic-title { grid-column: 3; grid-row: 1; }
  .know-topic-summary > .lx-topic-watch { grid-column: 3 / 5; grid-row: 2; justify-self: end; }
  .know-topic-summary > svg:last-child { grid-column: 4; grid-row: 1; }
  .know-topic-card > .know-topic-summary .learn-topic-title { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .know-quick-link, .know-topic-card { transition: none; }
  .know-quick-link:hover { transform: none; }
}

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .know-quick-link{background-image:linear-gradient(125deg, rgba(37, 99, 235, .17), rgb(244 245 249/0.8));box-shadow:0px 9px 24px -16px rgb(15 23 42/0.16);color:rgb(0 59 133)}
html[data-theme="light"] .know-quick-link--abroad{background-image:linear-gradient(120deg, rgba(99, 102, 241, .34), rgba(109, 40, 217, .16) 62%, rgb(244 245 249/0.82));box-shadow:0px 12px 25px -14px rgb(15 23 42/0.2);color:rgb(38 0 133)}
html[data-theme="light"] .know-topic-card{background-image:linear-gradient(125deg, rgba(var(--know-rgb), .13), rgb(247 248 251/0.92) 42%, rgb(249 250 252/0.96));box-shadow:0px 12px 26px -18px rgb(15 23 42/0.2)}
html[data-theme="light"] .know-topic-card:hover,html[data-theme="light"] .know-topic-card[open]{box-shadow:0px 15px 30px -17px rgb(15 23 42/0.14)}
html[data-theme="light"] .know-reading-panel{background-image:linear-gradient(155deg, rgba(45, 88, 150, .15), rgb(249 250 252/0.94) 36%, rgb(249 250 252/0.98));box-shadow:0px 24px 55px -35px rgb(15 23 42/0.2)}
/* ▲▲ LIGHT THEME END ▲▲ */
