/* 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: 76rem; }  /* owner 2026-11-21: 52rem read as a thin column; same edges as the topic reader */
#site-main.know-reader { max-width: 76rem; }
#site-main:is(.know-index, .know-reader) ~ footer { 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; }
/* One column at every width (owner, 2026-11-22: "one column for the buttons is enough"). */
/* A subtopic's glyph starts one small step (~1.5rem) right of its topic's glyph (owner: right of
   the parent, but not too far); the row's own number column already supplies most of that. */
.know-sub-row { margin-left: .5rem; }
@media (max-width: 640px) { .know-sub-row { margin-left: 0; } }
/* Reading on a phone (owner 11-28, subject-page folds and the topic page's panel: three margins either side left the text ~266 of 390 px):
   the topic cards reach to 4px of the screen edge, the topic body and an open unit drop their side
   padding, and the content box keeps a slim one with no side border. Text then starts ~21px in. */
@media (max-width: 639px) {
  .know-topic-list > li > details.know-topic-card, .know-reading-panel { margin-inline: -.75rem; border-radius: .875rem; }
  .know-topic-card > .border-t, .know-reading-panel > .border-t { padding-inline: .5rem; }
  .know-topic-card .learn-subtopic > div.px-3, .know-reading-panel .learn-subtopic > div.px-3 { padding-inline: 0; }
  .know-topic-card .learn-content-body, .know-reading-panel .learn-content-body { padding-inline: .5rem; border-inline-width: 0; border-radius: .5rem; }
}
/* Phones: a row with a preview thumbnail left its title ~112px, one word per line (owner 11-27,
   visual scan): rows drop the decorative icon (all of them, so titles share one left edge) and
   the number its fixed width. */
@media (max-width: 480px) {
  .know-sub-row > .know-sub-icon { display: none; }
  .know-sub-row > .know-num { min-width: 0; }
}
.know-topic-summary, .know-topic-summary .learn-topic-title { font-family: Outfit, "Outfit Fallback", system-ui, sans-serif; }
.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);
}
html:not([data-theme="light"]) .know-reading-panel,
html:not([data-theme="light"]) .know-topic-card {
  background: var(--reading-surface, #01040e);
  box-shadow: none;
}
.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; }
}

/* ── Design uplift 11-24 (logs/speedwork/know-upgrade): readable numbers and notes, bigger
   accent icons, no grey text on the dark-blue cards. Shared by /know, its topic pages, the
   reference pages (know/reference.html loads this sheet), /know/gac and /know/credits. ── */
.know-num {
  font-size: .8125rem;
  font-weight: 600;
  color: #b9c6d8;
  font-variant-numeric: tabular-nums;
}
.know-chev { color: #b9c6d8; }
.know-btn-ico { width: 1.125rem; height: 1.125rem; flex: none; }
.know-source-note {
  font-size: .8125rem;
  line-height: 1.5;
  color: #b9c6d8;
}
.know-permalink { color: #7dd3fc; }
.know-permalink:hover { color: #e0f2fe; }
/* Topic number chip in each card row: 13px, not 12. */
.know-topic-summary > span:first-child { font-size: .8125rem; }
/* The pending fold outline (names only until the body loads) reads as a list, not grey prose. */
.know-outline {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-inline: .75rem;
  font-size: .9375rem;
  line-height: 1.45;
  color: #dbe3ee;
}
.know-outline .know-num { display: inline-block; min-width: 2.6rem; color: rgb(var(--know-rgb, 125, 211, 252)); }
/* The rows variant draws the body's own subtopic rows (_topic_macros.html:topic_pending). */
.know-outline.know-outline--rows { gap: .5rem; padding-inline: 0; font-size: inherit; line-height: inherit; color: inherit; }
.know-outline--rows .know-num { display: inline-flex; justify-content: flex-end; min-width: 2.5rem; }
.know-outline--rows > .know-sub-row { cursor: progress; }
/* Spoken-word buttons in vocab tables: visible, 18px, cyan — they were 14px at 55% slate. */
.learn-vocab-table .vocab-say { color: #67e8f9; }
.learn-vocab-table .vocab-say svg { width: 1.125rem; height: 1.125rem; }
/* "Tips" fold: still a quiet line (prose_fold's steer), but no longer grey-on-navy. */
:is(.know-subject-header, .know-hub-tips) .prose-fold-summary { color: #b9c6d8; font-size: .875rem; }
.know-quick-link > svg { width: 1.25rem; height: 1.25rem; }
/* Topic page: subject · topic number as two chips under the title. */
.know-topic-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.know-topic-meta > span {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.know-topic-meta-subject { color: #bae6fd; background: rgba(56, 189, 248, .12); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .3); }
.know-topic-meta-no { color: #ddd6fe; background: rgba(167, 139, 250, .12); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .3); }
.know-nav-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7dd3fc;
}
/* Accent chip: one icon, its own colour (set --accent-rgb on the chip or an ancestor). */
.kn-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .8rem;
  background: rgba(var(--accent-rgb), .16);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .34);
  color: color-mix(in srgb, rgb(var(--accent-rgb)) 72%, #fff);
}
.kn-chip > svg { width: 1.5rem; height: 1.5rem; }
.kn-chip--sm { width: 2.25rem; height: 2.25rem; border-radius: .65rem; }
.kn-chip--sm > svg { width: 1.25rem; height: 1.25rem; }
/* /know hub: the two utility links as tiles with their own icons. */
.know-foot-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.know-foot-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem 1rem .45rem .5rem;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: .9rem;
  background: rgba(var(--accent-rgb), .06);
  color: #e2e8f0;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.know-foot-link:hover { border-color: rgba(var(--accent-rgb), .65); background: rgba(var(--accent-rgb), .12); color: #fff; }
.know-foot-link:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
/* /know/gac */
.gac-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: .75rem;
}
.gac-fact {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(7, 14, 34, .85) 60%);
}
.gac-fact-title { display: block; font-size: 1.05rem; font-weight: 700; color: #f8fafc; line-height: 1.3; }
.gac-fact-sub { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.45; color: #cbd5e1; }
.gac-h2 {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: Outfit, "Outfit Fallback", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 650;
  color: #f8fafc;
}
.gac-h2--panel { font-size: 1.15rem; }
.gac-h2-bar { width: .3rem; height: 1.4rem; border-radius: 999px; background: rgb(var(--accent-rgb)); }
.gac-prose { font-size: .975rem; line-height: 1.7; color: #d5dde8; }
.gac-prose + div > .mb-3 { margin-top: .5rem; }
.gac-level-label { font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #5eead4; }
.gac-module { border-color: rgba(var(--accent-rgb), .22); }
.gac-module:hover { border-color: rgba(var(--accent-rgb), .6); }
.gac-code { font-size: .8125rem; font-weight: 700; letter-spacing: .03em; color: color-mix(in srgb, rgb(var(--accent-rgb)) 65%, #fff); }
.gac-units {
  align-self: flex-start;
  margin-top: .15rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
  font-size: .78rem;
  font-weight: 600;
  color: #cbd5e1;
}
/* /know/credits */
.credit-group-label { font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #7dd3fc; }
.credit-topic-h { font-size: .975rem; font-weight: 650; color: #f8fafc; }
.credit-topic-no { margin-right: .35rem; color: #7dd3fc; font-variant-numeric: tabular-nums; }
.credit-meta { font-size: .8125rem; line-height: 1.5; }
.credit-title { font-size: .875rem; font-weight: 600; color: #f1f5f9; }
.credit-by { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .45rem; margin-top: .15rem; color: #cbd5e1; }
.credit-author { color: #cbd5e1; }
.credit-lic {
  display: inline-flex;
  padding: .02rem .45rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, .12);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .3);
  color: #a7f3d0;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
}
a.credit-lic:hover { background: rgba(52, 211, 153, .22); color: #ecfdf5; }
.credit-src { color: #7dd3fc; font-weight: 600; text-decoration: none; }
.credit-src:hover, .credit-link:hover { color: #e0f2fe; text-decoration: underline; }
.credit-link { color: #7dd3fc; }
.credit-sim { display: inline-flex; align-items: center; gap: .5rem; }
.credit-sim > a:first-child { color: #f1f5f9; font-weight: 600; }

/* ▼▼ 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)}
html[data-theme="light"] .know-num{color:rgb(47 63 86)}
html[data-theme="light"] .know-chev{color:rgb(47 63 86)}
html[data-theme="light"] .know-source-note{color:rgb(47 63 86)}
html[data-theme="light"] .know-permalink{color:rgb(0 90 133)}
html[data-theme="light"] .know-permalink:hover{color:rgb(1 79 132)}
html[data-theme="light"] .know-outline{color:rgb(41 62 91)}
html[data-theme="light"] .know-outline .know-num{color:color-mix(in srgb,rgb(var(--know-rgb, 125, 211, 252)) 44%,#0f172a)}
html[data-theme="light"] .learn-vocab-table .vocab-say{color:rgb(2 111 126)}
html[data-theme="light"] :is(.know-subject-header, .know-hub-tips) .prose-fold-summary{color:rgb(47 63 86)}
html[data-theme="light"] .know-topic-meta-subject{color:rgb(1 87 132);box-shadow:inset 0px 0px 0px 1px rgb(10 131 184/0.51)}
html[data-theme="light"] .know-topic-meta-no{color:rgb(23 0 133);box-shadow:inset 0px 0px 0px 1px rgb(54 10 184/0.51)}
html[data-theme="light"] .know-nav-label{color:rgb(0 90 133)}
html[data-theme="light"] .kn-chip{box-shadow:inset 0px 0px 0px 1px color-mix(in srgb,rgba(var(--accent-rgb), .34) 62%,#0f172a);color:color-mix(in srgb, color-mix(in srgb,rgb(var(--accent-rgb)) 44%,#0f172a) 72%, rgb(51 63 82))}
html[data-theme="light"] .know-foot-link{color:rgb(44 63 88)}
html[data-theme="light"] .know-foot-link:hover{color:rgb(51 63 82)}
html[data-theme="light"] .gac-fact{background-image:linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgb(247 248 251/0.85) 60%)}
html[data-theme="light"] .gac-fact-title{color:rgb(38 66 94)}
html[data-theme="light"] .gac-fact-sub{color:rgb(48 65 85)}
html[data-theme="light"] .gac-h2{color:rgb(38 66 94)}
html[data-theme="light"] .gac-prose{color:rgb(46 63 87)}
html[data-theme="light"] .gac-level-label{color:rgb(12 114 98)}
html[data-theme="light"] .gac-code{color:color-mix(in srgb, color-mix(in srgb,rgb(var(--accent-rgb)) 44%,#0f172a) 65%, rgb(51 63 82))}
html[data-theme="light"] .gac-units{color:rgb(48 65 85)}
html[data-theme="light"] .credit-group-label{color:rgb(0 90 133)}
html[data-theme="light"] .credit-topic-h{color:rgb(38 66 94)}
html[data-theme="light"] .credit-topic-no{color:rgb(0 90 133)}
html[data-theme="light"] .credit-title{color:rgb(38 66 94)}
html[data-theme="light"] .credit-by{color:rgb(48 65 85)}
html[data-theme="light"] .credit-author{color:rgb(48 65 85)}
html[data-theme="light"] .credit-lic{box-shadow:inset 0px 0px 0px 1px rgb(35 159 114/0.51);color:rgb(13 112 66)}
html[data-theme="light"] a.credit-lic:hover{color:rgb(9 116 66)}
html[data-theme="light"] .credit-src{color:rgb(0 90 133)}
html[data-theme="light"] .credit-src:hover,html[data-theme="light"] .credit-link:hover{color:rgb(1 79 132)}
html[data-theme="light"] .credit-link{color:rgb(0 90 133)}
html[data-theme="light"] .credit-sim > a:first-child{color:rgb(38 66 94)}
/* ▲▲ LIGHT THEME END ▲▲ */
