@import url("/learn.css?v=20260718r43");

.topic-main {
  width: min(1120px, calc(100% - 48px));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-intro {
  max-width: 900px;
  padding: 54px 0 54px;
}

.topic-intro h1 {
  max-width: 900px;
  font-size: 60px;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-meta svg {
  width: 15px;
  height: 15px;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 70px;
  align-items: start;
  padding-bottom: 80px;
}

.topic-content {
  min-width: 0;
}

.topic-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.topic-section[id] {
  scroll-margin-top: 84px;
}

.topic-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.topic-section h2 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.16;
}

.topic-section h3 {
  margin: 28px 0 9px;
  font-size: 19px;
  line-height: 1.3;
}

.topic-section p,
.topic-section li,
.term-table th,
.term-table td {
  color: #4b6068;
  font-size: 15px;
  line-height: 1.72;
}

.topic-section p {
  margin: 0 0 16px;
}

.outcome-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  position: relative;
  padding-left: 26px;
}

.outcome-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.term-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.term-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.term-table th,
.term-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.term-table th {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.term-table th:first-child,
.term-table td:first-child {
  padding-left: 0;
}

.term-table th:last-child,
.term-table td:last-child {
  width: 128px;
  padding-right: 0;
}

.term-table a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.term-table a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.term-table svg {
  width: 14px;
  height: 14px;
}

.fact-note {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--orange);
  background: #eef3f3;
}

.fact-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.fact-note p {
  margin: 0;
  font-size: 13px;
}

.knowledge-check {
  border-top: 1px solid var(--line);
}

.knowledge-check details {
  border-bottom: 1px solid var(--line);
}

.knowledge-check summary {
  position: relative;
  padding: 17px 34px 17px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.knowledge-check summary::-webkit-details-marker {
  display: none;
}

.knowledge-check summary::after {
  position: absolute;
  top: 17px;
  right: 0;
  color: var(--teal-dark);
  content: "+";
  font-size: 20px;
  font-weight: 500;
}

.knowledge-check details[open] summary::after {
  content: "-";
}

.knowledge-check details p {
  max-width: 720px;
  margin: 0;
  padding: 0 34px 18px 0;
  font-size: 14px;
}

.source-list {
  margin: 0;
  padding-left: 20px;
}

.source-list li + li {
  margin-top: 10px;
}

.source-list a {
  color: #31545c;
  font-weight: 650;
}

.topic-aside {
  position: sticky;
  top: 92px;
  border-top: 3px solid var(--teal);
}

.topic-aside section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.topic-aside h2 {
  margin: 0 0 11px;
  font-size: 14px;
}

.topic-aside p,
.topic-aside li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.topic-aside ul {
  margin: 0;
  padding-left: 18px;
}

.topic-aside li + li {
  margin-top: 8px;
}

.topic-aside .primary-action {
  width: 100%;
  font-size: 13px;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.share-button,
.copy-button {
  min-height: 42px;
  border: 1px solid #9bacb2;
  border-radius: 5px;
  background: #fff;
  color: #334950;
  cursor: pointer;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
}

.copy-button {
  display: inline-grid;
  place-items: center;
}

.share-button:hover,
.copy-button:hover {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.share-button svg,
.copy-button svg {
  width: 16px;
  height: 16px;
}

.share-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--teal-dark);
  font-size: 11px;
}

.lesson-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 64px;
  border: 1px solid var(--line);
  background: var(--line);
}

.lesson-nav a {
  min-width: 0;
  padding: 22px;
  background: var(--paper);
  text-decoration: none;
}

.lesson-nav a:last-child {
  text-align: right;
}

.lesson-nav small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.lesson-nav strong {
  color: var(--ink);
  font-size: 14px;
}

.lesson-nav a:hover strong {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.citation {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
}

.glossary-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 42px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.glossary-search {
  position: relative;
  display: block;
  max-width: 620px;
}

.glossary-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.glossary-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 43px;
  border: 1px solid #9bacb2;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.glossary-search input:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(11, 133, 136, 0.14);
}

.glossary-count {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.glossary-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -16px 0 54px;
}

.glossary-jump a {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.glossary-jump a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glossary-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.glossary-section > h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

.glossary-list {
  margin: 0;
}

.glossary-entry {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr) 92px;
  gap: 24px;
  align-items: start;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.glossary-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.glossary-entry dt {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.glossary-entry dt small {
  display: block;
  margin-top: 5px;
  color: var(--orange);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.glossary-entry dd {
  margin: 0;
  color: #4b6068;
  font-size: 14px;
  line-height: 1.65;
}

.glossary-entry > a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.glossary-entry > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glossary-entry > a svg {
  width: 14px;
  height: 14px;
}

.glossary-empty {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.scope-register {
  margin: 0;
  border-top: 1px solid var(--line);
}

.scope-register > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.scope-register dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.scope-register dd {
  margin: 0;
  color: #4b6068;
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

@media (max-width: 820px) {
  .topic-main {
    width: min(100% - 32px, 680px);
  }

  .topic-intro {
    padding: 42px 0;
  }

  .topic-intro h1 {
    font-size: 48px;
  }

  .topic-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 54px;
  }

  .topic-aside {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    border-top-width: 2px;
  }

  .topic-aside section:first-child {
    grid-column: 1 / -1;
  }

  .topic-section {
    padding: 40px 0;
  }

  .glossary-entry {
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  }

  .glossary-entry > a {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .breadcrumbs {
    padding-top: 22px;
  }

  .topic-intro h1 {
    font-size: 38px;
  }

  .topic-intro .lede {
    font-size: 16px;
  }

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

  .term-table th:last-child,
  .term-table td:last-child {
    width: 92px;
  }

  .term-table th,
  .term-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .topic-section h2 {
    font-size: 28px;
  }

  .lesson-nav {
    grid-template-columns: 1fr;
  }

  .lesson-nav a:last-child {
    text-align: left;
  }

  .glossary-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .glossary-entry,
  .scope-register > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .glossary-entry > a {
    grid-column: 1;
  }
}

@media print {
  .site-header,
  .topic-aside,
  .lesson-nav,
  footer {
    display: none;
  }

  .topic-main {
    width: 100%;
  }

  .breadcrumbs {
    padding-top: 0;
  }

  .topic-intro {
    padding: 26px 0 32px;
  }

  .topic-intro h1 {
    font-size: 38px;
  }

  .topic-layout {
    display: block;
    padding-bottom: 0;
  }

  .topic-section {
    break-inside: avoid;
    padding: 28px 0;
  }

  .knowledge-check details {
    break-inside: avoid;
  }

  .knowledge-check details > * {
    display: block;
  }
}
