.knowledge-enhanced-comparison [hidden] {
  display: none !important;
}

body.knowledge-enhanced-comparison {
  background: #e9f0ef;
}

.knowledge-enhanced-detail {
  position: relative;
}

.knowledge-enhanced-detail > header {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid #c8d7d5;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0.35rem 1rem rgba(2, 46, 66, 0.06);
}

.knowledge-enhanced-detail .knowledge-table,
.knowledge-enhanced-detail .knowledge-worked-example,
.knowledge-enhanced-detail .knowledge-equation-block,
.knowledge-enhanced-detail .knowledge-prose,
.knowledge-enhanced-detail .knowledge-check,
.knowledge-enhanced-detail .knowledge-figure,
.knowledge-enhanced-detail .knowledge-resource-links {
  border: 1px solid #c7d5d3;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: 0 0.25rem 0.75rem rgba(2, 46, 66, 0.055);
}

.knowledge-enhanced-detail .knowledge-prose,
.knowledge-enhanced-detail .knowledge-resource-links {
  padding: 1rem 1.1rem;
}

.knowledge-enhanced-detail .knowledge-check {
  border-left: 4px solid var(--gold);
}

.ffx-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ffx-core-section,
.knowledge-enhanced-detail [id] {
  scroll-margin-top: 5.5rem;
}

.ffx-core-section > h2 {
  margin-bottom: 0.55rem;
}

.ffx-core-section > .knowledge-table,
.ffx-core-section > .knowledge-worked-example,
.ffx-core-section > .knowledge-equation-block {
  margin-top: 0;
}

.ffx-on-this-page {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c2d2d0;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.6rem rgba(2, 46, 66, 0.05);
  font-size: 0.82rem;
}

.ffx-on-this-page strong,
.ffx-on-this-page h2 {
  margin: 0 0 0.15rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.ffx-on-this-page a {
  display: block;
  padding-bottom: 0.42rem;
  border-bottom: 1px solid #e0e8e7;
  font-weight: 750;
  line-height: 1.35;
}

.ffx-on-this-page a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ffx-on-this-page ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffx-page-rail {
  position: fixed;
  top: 5.5rem;
  left: calc(50% + 400px);
  display: grid;
  gap: 1rem;
  width: 14.5rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  z-index: 4;
}

.knowledge-enhanced-detail .knowledge-comparison-note {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #c5d9d6;
  border-left: 4px solid var(--teal);
  border-radius: 0.55rem;
  background: #edf8f6;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ffx-early-course-cta {
  width: auto;
  padding: 1rem;
  border: 1px solid #bfd3d0;
  border-top: 4px solid var(--teal);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.1rem rgba(2, 46, 66, 0.09);
}

.ffx-early-course-cta__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.ffx-early-course-cta h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.ffx-early-course-cta > p:not(.ffx-early-course-cta__eyebrow) {
  margin: 0.55rem 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ffx-early-course-cta a {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.knowledge-enhanced-detail .knowledge-comparison-note span {
  color: var(--ink-soft);
}

.knowledge-enhanced-detail .knowledge-comparison-note a {
  width: fit-content;
  font-weight: 800;
}

.knowledge-enhanced-detail .knowledge-enhancement {
  padding-top: 2rem;
}

.knowledge-enhanced-detail .knowledge-enhancement > h2 {
  margin-bottom: 0.55rem;
}

.knowledge-enhanced-detail .knowledge-enhancement > p {
  margin-top: 0;
  color: var(--ink-soft);
}

.knowledge-enhanced-detail .knowledge-figure img {
  width: auto;
  max-width: min(100%, 32rem);
  height: auto;
  max-height: 20rem;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.knowledge-enhanced-detail .ffx-figure--portrait {
  width: min(100%, 32rem);
  margin-inline: auto;
}

.knowledge-enhanced-detail .ffx-figure--portrait img {
  display: block;
  max-height: 34rem;
  margin-inline: auto;
}

.knowledge-enhanced-detail .ffx-figure--wide img {
  display: block;
  width: 100%;
}

.ffx-figure-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: 0.35rem;
}

.ffx-figure-links a {
  font-weight: 750;
}

.ffx-explorer,
.ffx-air-lab {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #b9cbc8;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.35rem 0.9rem rgba(2, 46, 66, 0.07);
}

.ffx-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: #f4fbfa;
  border-bottom: 1px solid var(--line);
}

.ffx-controls label,
.ffx-preset-label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.ffx-controls select,
.ffx-preset-label select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ffx-controls input[type="range"],
.ffx-playback input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.ffx-coordinate-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--blue);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ffx-motion-stage {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.ffx-motion-visual {
  min-height: 315px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: linear-gradient(var(--sky), #fff);
  position: relative;
}

.ffx-axis-label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ffx-track {
  width: 155px;
  height: 245px;
  margin: 0.25rem auto 0;
  position: relative;
}

.ffx-height-mark {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px dashed #a7bcbc;
}

.ffx-height-mark--top {
  top: 10%;
}

.ffx-height-mark--middle {
  top: 50%;
}

.ffx-ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 4px solid #765f45;
}

.ffx-ground span {
  position: absolute;
  top: -1.15rem;
  right: 0;
  color: #765f45;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ffx-ball,
.ffx-drop-track span {
  position: absolute;
  border: 2px solid #8a5c0a;
  border-radius: 50%;
  background: #ffc857;
}

.ffx-ball {
  z-index: 3;
  top: 10%;
  left: calc(50% - 15px);
  width: 30px;
  height: 30px;
}

.ffx-vector {
  position: absolute;
  z-index: 2;
  top: 15%;
  left: calc(50% + 25px);
  width: 3px;
  transform-origin: top center;
}

.ffx-vector::after {
  position: absolute;
  bottom: -7px;
  left: -5px;
  width: 0;
  height: 0;
  border-top: 8px solid currentColor;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
}

.ffx-vector span {
  position: absolute;
  top: 40%;
  left: 7px;
  font-size: 0.72rem;
  font-weight: 900;
}

.ffx-vector--velocity {
  height: 32px;
  color: var(--blue);
  background: var(--blue);
}

.ffx-vector--acceleration {
  left: calc(50% - 34px);
  height: 45px;
  color: #d05b2b;
  background: #d05b2b;
}

.ffx-motion-status {
  width: fit-content;
  max-width: 100%;
  margin: 0.65rem auto 0;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.ffx-readouts {
  align-content: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.ffx-readouts > div {
  display: grid;
  gap: 0.25rem;
  min-height: 82px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #f8faf9;
}

.ffx-readouts span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ffx-readouts span small {
  color: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ffx-readouts strong {
  align-self: end;
  color: var(--teal);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
}

.ffx-playback {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.ffx-playback .button {
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
}

.ffx-playback label {
  font-size: 0.76rem;
  font-weight: 800;
}

.ffx-graphs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1rem;
}

.ffx-graphs figure {
  min-width: 0;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.ffx-graphs figcaption {
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.ffx-graphs svg {
  display: block;
  width: 100%;
  height: auto;
}

.ffx-graph-axis {
  stroke: #789096;
  stroke-width: 1.4;
}

.ffx-graph-zero {
  stroke: #94a8ac;
  stroke-dasharray: 5 4;
  stroke-width: 1.2;
}

.ffx-graph-grid {
  stroke: #dce7e6;
  stroke-width: 1;
}

.ffx-graph-path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.ffx-graph-marker {
  fill: #d05b2b;
  stroke: #fff;
  stroke-width: 3;
}

.ffx-graph-label {
  fill: #596c72;
  font-size: 11px;
  font-weight: 700;
}

.ffx-model-details {
  padding: 0.8rem 1rem;
}

.ffx-model-details summary {
  cursor: pointer;
  font-weight: 800;
}

.ffx-model-details p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.ffx-tool-graph-details {
  border-top: 1px solid var(--line);
}

.ffx-tool-graph-details__body {
  padding-top: 0.25rem;
}

.ffx-tool-graph-details .ffx-graphs {
  padding-top: 0.75rem;
}

.ffx-graph-extension {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #fff;
}

.ffx-graph-extension > summary {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 1rem 0.9rem 2.65rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.ffx-graph-extension > summary::-webkit-details-marker {
  display: none;
}

.ffx-graph-extension > summary::before {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  content: "+";
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1rem;
  text-align: center;
  transform: translateY(-50%);
}

.ffx-graph-extension[open] > summary::before {
  content: "−";
}

.ffx-graph-extension > summary span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.ffx-graph-extension > summary small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.ffx-graph-extension[open] > summary {
  border-bottom: 1px solid var(--line);
  background: var(--sky);
}

.ffx-graph-extension__body {
  padding: 0.25rem 1rem 1rem;
}

.ffx-graph-extension__body > p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.ffx-graph-extension__body > h3 {
  margin: 1.25rem 0 0.3rem;
}

.ffx-reference-graph {
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f8faf9;
}

.ffx-reference-graph > h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ffx-reference-graph > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.ffx-reference-graph .knowledge-figure {
  max-width: 32rem;
  margin: 1rem auto 0;
}

.ffx-graph-summary {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--teal);
  background: #f4fbfa;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.ffx-graph-extension .knowledge-figure {
  margin: 1rem 0;
}

.ffx-graph-extension .ffx-graphs {
  padding: 0.5rem 0 0;
}

.ffx-lesson-graph-card {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0.8rem;
}

.ffx-course-path-card {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #b9d9d5;
  border-left: 5px solid var(--teal);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f1fbf9 0%, #fff 70%);
  box-shadow: 0 0.45rem 1.1rem rgba(2, 46, 66, 0.07);
}

.ffx-course-path-card__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ffx-course-path-card h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.ffx-course-path-card > p:not(.ffx-course-path-card__eyebrow) {
  max-width: 48rem;
  margin: 0.65rem 0 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.ffx-course-path-card .button {
  display: inline-flex;
  width: auto;
}

.knowledge-enhanced-detail > .knowledge-courses {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #b9d9d5;
  border-left: 5px solid var(--teal);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f1fbf9 0%, #fff 70%);
  box-shadow: 0 0.45rem 1.1rem rgba(2, 46, 66, 0.07);
}

.knowledge-enhanced-detail > .knowledge-courses > h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.knowledge-enhanced-detail > .knowledge-courses .knowledge-course-list article {
  padding: 0;
  border: 0;
}

.knowledge-enhanced-detail > .knowledge-courses .knowledge-course-list h3 {
  margin-top: 0;
}

.knowledge-enhanced-detail > .knowledge-courses .button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.ffx-air-lab {
  padding: 1rem;
}

.ffx-air-lab__heading {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.ffx-air-lab__heading h3 {
  margin: 0;
}

.ffx-air-lab__heading p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.ffx-segmented {
  display: flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7f6;
}

.ffx-segmented button {
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.ffx-segmented button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}

.ffx-preset-label {
  max-width: 290px;
  margin: 0.8rem 0;
}

.ffx-air-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ffx-air-object {
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #f8faf9;
  text-align: center;
}

.ffx-air-object h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.ffx-drop-track {
  width: 135px;
  height: 175px;
  margin-inline: auto;
  position: relative;
  border-bottom: 4px solid #765f45;
  background: linear-gradient(var(--sky), #fff);
}

.ffx-drop-track span {
  top: 4%;
  left: calc(50% - 12px);
  width: 24px;
  height: 24px;
}

.ffx-drop-track span[data-shape="flat-sheet"] {
  left: calc(50% - 28px);
  width: 56px;
  height: 9px;
  border: 1px solid #6f7c7c;
  border-radius: 2px;
  background:
    linear-gradient(165deg, transparent 0 46%, #c2cccc 47% 51%, transparent 52%),
    linear-gradient(12deg, #fff 0 45%, #e8eeee 46% 54%, #fff 55%);
  box-shadow: 0 2px 3px rgba(16, 42, 51, 0.18);
  transform: rotate(-4deg);
}

.ffx-drop-track span[data-shape="flat-sheet"]::after {
  position: absolute;
  top: -3px;
  right: 7px;
  width: 12px;
  height: 5px;
  border-top: 1px solid #a4afaf;
  transform: rotate(10deg);
  content: "";
}

.ffx-drop-track span[data-shape="crumpled-sheet"] {
  left: calc(50% - 14px);
  width: 28px;
  height: 25px;
  border: 1px solid #6f7c7c;
  border-radius: 42% 58% 47% 53% / 55% 38% 62% 45%;
  background:
    linear-gradient(35deg, transparent 0 43%, #aebaba 44% 48%, transparent 49%),
    linear-gradient(145deg, transparent 0 42%, #c4cece 43% 48%, transparent 49%),
    #f9fbfa;
  box-shadow: 1px 2px 3px rgba(16, 42, 51, 0.2);
  transform: rotate(8deg);
}

.ffx-drop-track span[data-shape="crumpled-sheet"]::before,
.ffx-drop-track span[data-shape="crumpled-sheet"]::after {
  position: absolute;
  width: 9px;
  height: 8px;
  border: 1px solid #b0baba;
  border-radius: 50%;
  content: "";
}

.ffx-drop-track span[data-shape="crumpled-sheet"]::before {
  top: 3px;
  left: 4px;
  border-right: 0;
  border-bottom: 0;
}

.ffx-drop-track span[data-shape="crumpled-sheet"]::after {
  right: 3px;
  bottom: 2px;
  border-top: 0;
  border-left: 0;
}

.ffx-air-object p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.ffx-parameter-table-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.ffx-parameter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ffx-parameter-table caption {
  margin-bottom: 0.3rem;
  font-weight: 800;
  text-align: left;
}

.ffx-parameter-table th,
.ffx-parameter-table td {
  padding: 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ffx-model-caption {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ffx-investigation {
  margin-top: 1rem;
}

.ffx-investigation h3 {
  margin-top: 0;
}

.ffx-investigation li {
  margin-block: 0.25rem;
}

.ffx-checkpoint {
  margin: 1.1rem 0 0;
  padding: 1rem;
  border-left-color: var(--teal);
  background: #f7fbfa;
}

.ffx-checkpoint__label {
  margin: 0 0 0.2rem;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ffx-checkpoint h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.ffx-checkpoint > p:not(.ffx-checkpoint__label, .ffx-feedback) {
  margin: 0.45rem 0;
  line-height: 1.55;
}

.ffx-checkpoint fieldset {
  margin: 0.7rem 0 0;
  padding: 0;
  border: 0;
}

.ffx-checkpoint legend {
  margin-bottom: 0.45rem;
  font-weight: 800;
}

.ffx-checkpoint label {
  display: flex;
  gap: 0.5rem;
  align-items: start;
  margin: 0.38rem 0;
  line-height: 1.45;
}

.ffx-checkpoint input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: var(--teal);
}

.ffx-checkpoint > .button {
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
}

.ffx-checkpoint--ap {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.ffx-checkpoint--ap .ffx-checkpoint__label {
  color: #8a5c0a;
}

.ffx-check-task {
  margin: 0.7rem 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
}

.ffx-check-task p {
  margin: 0;
}

.ffx-check-task ol {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.ffx-check-task li {
  margin-block: 0.25rem;
  line-height: 1.45;
}

.ffx-reasoning-check {
  margin-top: 0.85rem;
  padding: 0;
  border-left-color: var(--teal);
  background: #fff;
}

.ffx-reasoning-check > summary,
.ffx-checkpoint > details > summary,
.ffx-challenge-card details > summary {
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.4;
}

.ffx-reasoning-check__body {
  padding: 0 0.85rem 0.8rem;
}

.ffx-reasoning-check__body p {
  margin: 0.5rem 0;
  line-height: 1.55;
}

.ffx-reasoning-check__body ol {
  margin: 0.45rem 0;
  padding-left: 1.25rem;
}

.ffx-reasoning-check__body li {
  margin-block: 0.25rem;
  line-height: 1.45;
}

.ffx-challenge-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.ffx-challenge-card {
  margin: 0;
  padding: 0.85rem;
  border-left-color: var(--teal);
  background: #fff;
}

.ffx-challenge-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.ffx-challenge-card > p {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.ffx-challenge-card > ol {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.3rem;
}

.ffx-challenge-card details {
  margin: 0.75rem -0.85rem -0.85rem;
  border-top: 1px solid var(--line);
}

.ffx-quick-check {
  margin-top: 0;
  border-left-color: var(--teal);
}

.ffx-quick-check fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ffx-quick-check legend {
  margin-bottom: 0.55rem;
  font-weight: 800;
  line-height: 1.4;
}

.ffx-quick-check label {
  display: flex;
  gap: 0.5rem;
  align-items: start;
  margin: 0.4rem 0;
  line-height: 1.4;
}

.ffx-quick-check input {
  margin-top: 0.2rem;
  accent-color: var(--teal);
}

.ffx-quick-check .button {
  margin-top: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
}

.ffx-feedback {
  min-height: 1.3em;
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.ffx-feedback[data-state="correct"] {
  color: #17603e;
}

.ffx-feedback[data-state="incorrect"] {
  color: #8a3c1b;
}

.ffx-check-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.ffx-mistakes {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.ffx-mistakes h3 {
  margin-top: 0;
}

.ffx-mistakes ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.ffx-mistakes li {
  margin-block: 0.55rem;
  line-height: 1.5;
}

.ffx-study-sheet {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--teal);
  border-radius: 0.7rem;
  background: #fff;
}

.ffx-study-sheet__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.ffx-study-sheet__header h3 {
  margin: 0;
}

.ffx-study-sheet__header p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.ffx-study-sheet__header .button {
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
}

.ffx-print-access-note {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.ffx-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.ffx-study-grid article {
  padding: 0.7rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ffx-study-grid article:nth-child(even) {
  border-right: 0;
}

.ffx-study-grid h4 {
  margin: 0 0 0.2rem;
}

.ffx-study-grid p,
.ffx-study-grid li {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ffx-study-grid ul,
.ffx-study-grid ol {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.ffx-study-grid li {
  margin-block: 0.28rem;
}

.ffx-study-grid--lower {
  margin-top: 0;
}

.ffx-study-section {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.ffx-study-section h4,
.ffx-mastery h4 {
  margin: 0 0 0.45rem;
}

.ffx-study-table-wrap {
  overflow-x: auto;
}

.ffx-study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ffx-study-table caption {
  padding-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-align: left;
}

.ffx-study-table th,
.ffx-study-table td {
  padding: 0.45rem;
  border: 1px solid var(--line);
  text-align: left;
}

.ffx-study-table thead th {
  background: #f4fbfa;
}

.ffx-equation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.ffx-equation-list p {
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #f8faf9;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ffx-mastery {
  padding: 0.8rem 0.7rem 0;
}

.ffx-mastery ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  margin: 0;
  padding-left: 1.15rem;
}

.ffx-mastery li {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.ffx-source-note {
  margin-top: 1rem;
  border-left-color: var(--blue);
  background: #f8faf9;
}

.ffx-source-note > summary {
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  font-weight: 800;
}

.ffx-source-note > div {
  padding: 0 0.85rem 0.75rem;
}

.ffx-source-note p {
  margin: 0.45rem 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 1320px) {
  .ffx-page-rail {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    width: auto;
    max-width: 760px;
    max-height: none;
    margin-top: 1rem;
    overflow: visible;
  }

  .ffx-on-this-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ffx-on-this-page strong,
  .ffx-on-this-page h2 {
    grid-column: 1 / -1;
  }

  .ffx-on-this-page ul {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ffx-responsive-table table,
  .ffx-responsive-table tbody,
  .ffx-responsive-table tr,
  .ffx-responsive-table th,
  .ffx-responsive-table td {
    display: block;
    width: 100%;
  }

  .ffx-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ffx-responsive-table tr {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    background: #fff;
  }

  .ffx-responsive-table tbody th {
    padding: 0.65rem 0.75rem;
    border: 0;
    background: #f4fbfa;
  }

  .ffx-responsive-table td {
    display: grid;
    grid-template-columns: minmax(8rem, 36%) 1fr;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .ffx-responsive-table td::before {
    color: var(--ink);
    content: attr(data-label);
    font-weight: 800;
  }
}

@media (max-width: 700px) {
  .ffx-on-this-page,
  .ffx-on-this-page ul {
    grid-template-columns: 1fr;
  }

  .ffx-early-course-cta {
    order: -1;
  }

  .ffx-early-course-cta a {
    display: inline-block;
    margin-top: 0.15rem;
  }

  .ffx-controls,
  .ffx-motion-stage,
  .ffx-air-tracks,
  .ffx-study-grid,
  .ffx-equation-list,
  .ffx-mastery ul {
    grid-template-columns: 1fr;
  }

  .ffx-study-grid article,
  .ffx-study-grid article:nth-child(even) {
    border-right: 0;
  }

  .ffx-graphs {
    grid-template-columns: 1fr;
  }

  .ffx-playback {
    grid-template-columns: auto auto;
  }

  .ffx-playback label,
  .ffx-playback input[type="range"] {
    grid-column: 1 / -1;
  }

  .ffx-air-lab__heading,
  .ffx-study-sheet__header {
    align-items: stretch;
    flex-direction: column;
  }

  .ffx-segmented {
    align-self: start;
  }

  .ffx-on-this-page {
    display: grid;
  }

  .ffx-responsive-table td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .ffx-study-table-wrap {
    overflow: visible;
  }

  .ffx-study-table,
  .ffx-study-table tbody,
  .ffx-study-table tr,
  .ffx-study-table th,
  .ffx-study-table td {
    display: block;
    width: 100%;
  }

  .ffx-study-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ffx-study-table tr {
    margin-bottom: 0.65rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
  }

  .ffx-study-table tbody th {
    border: 0;
    background: #f4fbfa;
  }

  .ffx-study-table td {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .ffx-study-table td::before {
    content: attr(data-label);
    font-weight: 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-enhanced-comparison *,
  .knowledge-enhanced-comparison *::before,
  .knowledge-enhanced-comparison *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body > header,
  body > footer,
  .knowledge-enhanced-detail > header,
  .knowledge-dependencies,
  .knowledge-courses,
  .knowledge-sequence,
  .knowledge-body > *:not(:has(.ffx-study-sheet)),
  .knowledge-body > :has(.ffx-study-sheet) > *:not(.ffx-study-sheet),
  .ffx-study-sheet .button,
  .ffx-print-access-note {
    display: none !important;
  }

  .knowledge-detail,
  .knowledge-body,
  .knowledge-body > :has(.ffx-study-sheet) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .ffx-study-sheet {
    margin: 0;
    border: 0;
  }

  .ffx-study-grid article,
  .ffx-study-section,
  .ffx-mastery,
  .ffx-equation-list p {
    break-inside: avoid;
  }
}
