/* ============================================================================
   STUDENT DEVELOPER GUIDE — 5041 TRAINING HUB CSS

   This file controls visual styling. HTML supplies the content; CSS decides how
   that content looks and is arranged.

   IMPORTANT IDEAS FOR STUDENTS
   - A selector such as .dt-card styles every element with class="dt-card".
   - A selector such as #quizResult targets one unique id="quizResult" element.
   - More specific selectors can override less specific selectors.
   - Rules later in a stylesheet can override earlier rules when specificity is
     equal. This is called the CSS cascade.
   - CSS variables such as var(--red) come from a shared :root rule. Reuse them
     instead of hard-coding colors when possible.
   - !important forces a declaration to win many cascade conflicts. Use it only
     when necessary; too many !important rules make future editing difficult.
   - display:grid is used heavily for card layouts. grid-template-columns controls
     the number and size of columns; gap controls spacing between items.
   - max-width and margin: 0 auto are commonly used to keep content readable and
     horizontally centered.
   - Media queries near the bottom of many files adjust layouts for smaller screens.

   WHEN ADDING NEW STYLES
   1. Reuse an existing class if it already creates the appearance you need.
   2. If the style is module-specific, use the module prefix already in this file
      (for example dt-, judge-, media-, safety-) to avoid accidental conflicts.
   3. Put related rules together and add a short section comment.
   4. Test the slide at both large and small browser sizes.
   5. Avoid changing a shared selector unless you intend to change every page that
      uses it.
============================================================================ */
/* 5041 Training Hub stylesheet: FRC-trainings/modules/motors-additions.css
   Organized during cleanup; selectors preserved to maintain module appearance. */

/* 5041 Motion and Motors Training Module additions */
/* STUDENT NOTE: Typography/spacing rule for `.motor-hero h1, .motor-hero .cytitle`. These values affect readability and vertical space on slides. */
.motor-hero h1,
.motor-hero .cytitle {
  max-width: 1080px;
  margin: 0 auto;
}

/* STUDENT NOTE: Typography/spacing rule for `.motor-slide h2, .motor-vertical h2, .motor-quiz h2`. These values affect readability and vertical space on slides. */
.motor-slide h2,
.motor-vertical h2,
.motor-quiz h2 {
  font-size: 1.42em;
  margin-bottom: 0.42rem;
}

/* STUDENT NOTE: Styles elements matched by `.motor-intro`. Search the HTML for these class/id names before changing a shared rule. */
.motor-intro {
  max-width: 1000px;
  margin: 0 auto 0.65rem;
  font-size: 0.58em;
  line-height: 1.22;
}

/* STUDENT NOTE: Layout rule for `.motor-grid-2, .motor-grid-3, .motor-grid-4, .motor-click-grid`. Grid properties here control columns, gaps, and alignment. */
.motor-grid-2,
.motor-grid-3,
.motor-grid-4,
.motor-click-grid {
  display: grid;
  gap: 0.7rem;
  max-width: 1100px;
  margin: 0 auto;
}
/* STUDENT NOTE: Layout rule for `.motor-grid-2`. Grid properties here control columns, gaps, and alignment. */
.motor-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
/* STUDENT NOTE: Layout rule for `.motor-grid-3`. Grid properties here control columns, gaps, and alignment. */
.motor-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* STUDENT NOTE: Layout rule for `.motor-grid-4`. Grid properties here control columns, gaps, and alignment. */
.motor-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
/* STUDENT NOTE: Layout rule for `.motor-click-grid`. Grid properties here control columns, gaps, and alignment. */
.motor-click-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* STUDENT NOTE: Styles elements matched by `.motor-card, .motor-click-card, .meter-card, .scenario-card`. Search the HTML for these class/id names before changing a shared rule. */
.motor-card,
.motor-click-card,
.meter-card,
.scenario-card {
  background: var(--light);
  border-left: 10px solid var(--red);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

/* STUDENT NOTE: Styles elements matched by `.motor-card.dark`. Search the HTML for these class/id names before changing a shared rule. */
.motor-card.dark {
  background: var(--black);
  color: var(--white);
}
/* STUDENT NOTE: Typography/spacing rule for `.motor-card.dark h3, .motor-card.dark p, .motor-card.dark li`. These values affect readability and vertical space on slides. */
.motor-card.dark h3,
.motor-card.dark p,
.motor-card.dark li {
  color: var(--white);
}

/* STUDENT NOTE: Typography/spacing rule for `.motor-card h3, .motor-click-card h3, .meter-card h3, .scenario-card h3`. These values affect readability and vertical space on slides. */
.motor-card h3,
.motor-click-card h3,
.meter-card h3,
.scenario-card h3 {
  margin: 0 0 0.28rem;
  font-size: 0.68em;
}

/* STUDENT NOTE: Typography/spacing rule for `.motor-card p, .motor-click-card p, .meter-card p, .scenario-card p`. These values affect readability and vertical space on slides. */
.motor-card p,
.motor-click-card p,
.meter-card p,
.scenario-card p {
  margin: 0;
  font-size: 0.42em;
  line-height: 1.18;
}

/* STUDENT NOTE: Styles elements matched by `.motor-card li`. Search the HTML for these class/id names before changing a shared rule. */
.motor-card li {
  font-size: 0.43em;
  line-height: 1.18;
  margin-bottom: 0.12rem;
}

/* STUDENT NOTE: Styles elements matched by `.motor-card ul`. Search the HTML for these class/id names before changing a shared rule. */
.motor-card ul {
  margin: 0.25rem 0 0;
  padding-left: 0.85em;
}

/* STUDENT NOTE: Styles elements matched by `.motor-callout`. Search the HTML for these class/id names before changing a shared rule. */
.motor-callout {
  max-width: 1050px;
  margin: 0.7rem auto 0;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  border-left: 10px solid var(--red);
  border-radius: 8px;
}
/* STUDENT NOTE: Typography/spacing rule for `.motor-callout p`. These values affect readability and vertical space on slides. */
.motor-callout p {
  margin: 0;
  font-size: 0.5em;
  line-height: 1.18;
}

/* STUDENT NOTE: Styles elements matched by `.motor-flow`. Search the HTML for these class/id names before changing a shared rule. */
.motor-flow {
  display: grid;
  grid-template-columns: 1fr 0.18fr 1fr 0.18fr 1fr 0.18fr 1fr;
  gap: 0.45rem;
  align-items: center;
  max-width: 1050px;
  margin: 0.75rem auto 0;
}

/* STUDENT NOTE: Styles elements matched by `.motor-flow.wide-flow`. Search the HTML for these class/id names before changing a shared rule. */
.motor-flow.wide-flow {
  grid-template-columns: 1fr 0.12fr 1fr 0.12fr 1fr 0.12fr 1fr 0.12fr 1fr;
}

/* STUDENT NOTE: Styles elements matched by `.motor-node`. Search the HTML for these class/id names before changing a shared rule. */
.motor-node {
  min-height: 95px;
  background: var(--white);
  border: 3px solid var(--black);
  border-left: 10px solid var(--red);
  border-radius: 8px;
  padding: 0.45rem;
  font-family: "Droid Sans", Arial, sans-serif;
  font-size: 0.48em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* STUDENT NOTE: Styles elements matched by `.red-node`. Search the HTML for these class/id names before changing a shared rule. */
.red-node {
  background: var(--red);
  color: var(--white);
}
/* STUDENT NOTE: Styles elements matched by `.motor-arrow`. Search the HTML for these class/id names before changing a shared rule. */
.motor-arrow {
  text-align: center;
  color: var(--red);
  font-size: 0.9em;
  font-weight: 700;
}

/* STUDENT NOTE: Styles elements matched by `.speed-torque-layout`. Search the HTML for these class/id names before changing a shared rule. */
.speed-torque-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  max-width: 750px;
  margin: 0 auto;
}

/* STUDENT NOTE: Styles elements matched by `.compact-cards .motor-card`. Search the HTML for these class/id names before changing a shared rule. */
.compact-cards .motor-card {
  min-height: 130px;
}
/* STUDENT NOTE: Styles elements matched by `.motor-compare .panel li`. Search the HTML for these class/id names before changing a shared rule. */
.motor-compare .panel li {
  font-size: 0.48em;
  line-height: 1.2;
}
/* STUDENT NOTE: Typography/spacing rule for `.motor-compare .panel p`. These values affect readability and vertical space on slides. */
.motor-compare .panel p {
  font-size: 0.48em;
  line-height: 1.2;
}

/* STUDENT NOTE: Styles elements matched by `.motor-click-card`. Search the HTML for these class/id names before changing a shared rule. */
.motor-click-card {
  border: none;
  border-left: 10px solid var(--red);
  color: var(--black);
  font-family: inherit;
  cursor: pointer;
  min-height: 150px;
}

/* STUDENT NOTE: Styles elements matched by `.motor-click-card:hover, .motor-click-card:focus`. Search the HTML for these class/id names before changing a shared rule. */
.motor-click-card:hover,
.motor-click-card:focus {
  outline: 4px solid var(--red);
  outline-offset: 3px;
  transform: translateY(-2px);
}
/* STUDENT NOTE: Styles elements matched by `.motor-click-card.viewed`. Search the HTML for these class/id names before changing a shared rule. */
.motor-click-card.viewed {
  border-left-color: var(--gray);
  opacity: 0.86;
}
/* STUDENT NOTE: Typography/spacing rule for `.motor-click-card.viewed h3::after`. These values affect readability and vertical space on slides. */
.motor-click-card.viewed h3::after {
  content: " ✓";
  color: var(--gray);
}

/* STUDENT NOTE: Styles elements matched by `.sort-bank, .sort-targets`. Search the HTML for these class/id names before changing a shared rule. */
.sort-bank,
.sort-targets {
  max-width: 1050px;
  margin: 0 auto;
}
/* STUDENT NOTE: Styles elements matched by `.sort-bank`. Search the HTML for these class/id names before changing a shared rule. */
.sort-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  background: var(--light);
  border: 3px dashed var(--gray);
  border-radius: 8px;
  min-height: 85px;
}
/* STUDENT NOTE: Styles elements matched by `.sort-chip`. Search the HTML for these class/id names before changing a shared rule. */
.sort-chip {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 7px;
  padding: 0.35rem 0.5rem;
  font-size: 0.4em;
  line-height: 1.15;
  font-weight: 700;
  color: #222;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
/* STUDENT NOTE: Styles elements matched by `.sort-chip.dragging`. Search the HTML for these class/id names before changing a shared rule. */
.sort-chip.dragging {
  opacity: 0.45;
}
/* STUDENT NOTE: Interaction state for `.sort-chip.correct`. JavaScript may add/remove this class to provide visual feedback or control access. */
.sort-chip.correct {
  border-color: #2e7d32;
  background: #e6f4ea;
}
/* STUDENT NOTE: Interaction state for `.sort-chip.incorrect`. JavaScript may add/remove this class to provide visual feedback or control access. */
.sort-chip.incorrect {
  border-color: #b00020;
  background: #fdecea;
}
/* STUDENT NOTE: Styles elements matched by `.sort-targets`. Search the HTML for these class/id names before changing a shared rule. */
.sort-targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.7rem;
}
/* STUDENT NOTE: Styles elements matched by `.sort-zone`. Search the HTML for these class/id names before changing a shared rule. */
.sort-zone {
  min-height: 210px;
  background: var(--light);
  border-left: 10px solid var(--red);
  border-radius: 8px;
  padding: 0.55rem;
}
/* STUDENT NOTE: Typography/spacing rule for `.sort-zone h3`. These values affect readability and vertical space on slides. */
.sort-zone h3 {
  font-size: 0.68em;
  text-align: center;
  margin: 0 0 0.4rem;
}
/* STUDENT NOTE: Styles elements matched by `.sort-list`. Search the HTML for these class/id names before changing a shared rule. */
.sort-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 150px;
}
/* STUDENT NOTE: Styles elements matched by `.sort-bank.drag-over, .sort-zone.drag-over`. Search the HTML for these class/id names before changing a shared rule. */
.sort-bank.drag-over,
.sort-zone.drag-over {
  outline: 4px solid var(--red);
  outline-offset: 2px;
}
/* STUDENT NOTE: Styles elements matched by `.activity-controls`. Search the HTML for these class/id names before changing a shared rule. */
.activity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}
/* STUDENT NOTE: Styles elements matched by `.activity-feedback`. Search the HTML for these class/id names before changing a shared rule. */
.activity-feedback {
  min-width: 240px;
  margin: 0;
  font-size: 0.46em;
  font-weight: 700;
}

/* STUDENT NOTE: Styles elements matched by `.scenario-card`. Search the HTML for these class/id names before changing a shared rule. */
.scenario-card {
  max-width: 1000px;
  margin: 0 auto;
}
/* STUDENT NOTE: Typography/spacing rule for `.scenario-card p`. These values affect readability and vertical space on slides. */
.scenario-card p {
  font-size: 0.52em;
  margin-bottom: 0.5rem;
}
/* STUDENT NOTE: Styles elements matched by `.scenario-options`. Search the HTML for these class/id names before changing a shared rule. */
.scenario-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
/* STUDENT NOTE: Button styling for `.scenario-options button`. Keep hover/selected/correct states visually consistent with the base button. */
.scenario-options button {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  color: var(--black);
  font-size: 0.42em;
  font-family: "Droid Sans", Arial, sans-serif;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
/* STUDENT NOTE: Button styling for `.scenario-options button:hover, .scenario-options button:focus`. Keep hover/selected/correct states visually consistent with the base button. */
.scenario-options button:hover,
.scenario-options button:focus {
  background: var(--red);
  color: var(--white);
}
/* STUDENT NOTE: Button styling for `.scenario-options button.correct`. Keep hover/selected/correct states visually consistent with the base button. */
.scenario-options button.correct {
  border-color: #2e7d32;
  background: #e6f4ea;
  color: var(--black);
}
/* STUDENT NOTE: Button styling for `.scenario-options button.incorrect`. Keep hover/selected/correct states visually consistent with the base button. */
.scenario-options button.incorrect {
  border-color: #b00020;
  background: #fdecea;
  color: var(--black);
}
/* STUDENT NOTE: Styles elements matched by `.scenario-feedback`. Search the HTML for these class/id names before changing a shared rule. */
.scenario-feedback {
  margin-top: 0.45rem !important;
  font-weight: 700;
}

/* STUDENT NOTE: Styles elements matched by `.motor-modal`. Search the HTML for these class/id names before changing a shared rule. */
.motor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
/* STUDENT NOTE: Styles elements matched by `.motor-modal.open`. Search the HTML for these class/id names before changing a shared rule. */
.motor-modal.open {
  display: flex;
}
/* STUDENT NOTE: Styles elements matched by `.motor-modal-box`. Search the HTML for these class/id names before changing a shared rule. */
.motor-modal-box {
  width: min(860px, 90vw);
  background: var(--white);
  border: 5px solid var(--black);
  border-left: 16px solid var(--red);
  border-radius: 10px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
/* STUDENT NOTE: Typography/spacing rule for `.motor-modal-box h2`. These values affect readability and vertical space on slides. */
.motor-modal-box h2 {
  margin: 0 0 0.4rem;
  font-size: 2em;
}
/* STUDENT NOTE: Typography/spacing rule for `.motor-modal-box p`. These values affect readability and vertical space on slides. */
.motor-modal-box p {
  font-size: 1em;
  line-height: 1.22;
  margin: 0 0 0.5rem;
}
/* STUDENT NOTE: Styles elements matched by `.motor-modal-box li`. Search the HTML for these class/id names before changing a shared rule. */
.motor-modal-box li {
  font-size: 1em;
  line-height: 1.22;
  margin-bottom: 0.15rem;
}
/* STUDENT NOTE: Styles elements matched by `.motor-modal-close`. Search the HTML for these class/id names before changing a shared rule. */
.motor-modal-close {
  position: absolute;
  top: 0.25rem;
  right: 0.45rem;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 0.85em;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

/* STUDENT NOTE: Responsive breakpoint. Rules inside this block apply only when the screen matches this condition. */
@media (max-width: 900px) {
  /* STUDENT NOTE: Layout rule for `.motor-grid-4, .motor-click-grid`. Grid properties here control columns, gaps, and alignment. */
  .motor-grid-4,
  .motor-click-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* STUDENT NOTE: Layout rule for `.motor-grid-3`. Grid properties here control columns, gaps, and alignment. */
  .motor-grid-3 {
    grid-template-columns: 1fr;
  }
  /* STUDENT NOTE: Styles elements matched by `.motor-flow, .motor-flow.wide-flow`. Search the HTML for these class/id names before changing a shared rule. */
  .motor-flow,
  .motor-flow.wide-flow {
    grid-template-columns: 1fr;
  }
  /* STUDENT NOTE: Styles elements matched by `.motor-arrow`. Search the HTML for these class/id names before changing a shared rule. */
  .motor-arrow {
    display: none;
  }
/* STUDENT NOTE: Styles elements matched by `} .motor-modal-layout`. Search the HTML for these class/id names before changing a shared rule. */
}

.motor-modal-layout {
  /* STUDENT NOTE: Layout rule for `display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 1rem; align-items: center; } .motor-modal-text`. Grid properties here control columns, gaps, and alignment. */
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.motor-modal-text {
  /* STUDENT NOTE: Image styling for `min-width: 0; } .motor-modal-image-wrap`. max-width/max-height/object-fit are commonly used to keep images inside the slide. */
  min-width: 0;
}

.motor-modal-image-wrap {
  /* STUDENT NOTE: Image styling for `background: var(--light); border: 3px solid var(--black); border-left: 10px solid var(--red); border-radius: 8px; padding: 0.5rem; } .motor-modal-image`. max-width/max-height/object-fit are commonly used to keep images inside the slide. */
  background: var(--light);
  border: 3px solid var(--black);
  border-left: 10px solid var(--red);
  border-radius: 8px;
  padding: 0.5rem;
}

.motor-modal-image {
  /* STUDENT NOTE: Styles elements matched by `width: 100%; max-width: 320px; max-height: 260px; object-fit: contain; display: block; margin: 0 auto; background: var(--white); border-radius: 6px; } @media (max-width: 800px)`. Search the HTML for these class/id names before changing a shared rule. */
  width: 100%;
  max-width: 320px;
  max-height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: var(--white);
  border-radius: 6px;
}

@media (max-width: 800px) {
  /* STUDENT NOTE: Styles elements matched by `.motor-modal-layout`. Search the HTML for these class/id names before changing a shared rule. */
  .motor-modal-layout {
    grid-template-columns: 1fr;
  }

  /* STUDENT NOTE: Image styling for `.motor-modal-image`. max-width/max-height/object-fit are commonly used to keep images inside the slide. */
  .motor-modal-image {
    max-height: 190px;
  }
/* STUDENT NOTE: Image styling for `} .reveal img.trade-off-img`. max-width/max-height/object-fit are commonly used to keep images inside the slide. */
}

.reveal img.trade-off-img {
  /* STUDENT NOTE: Typography/spacing rule for `width: 50%; max-width: 600px; height: auto; display: block; margin-left: auto; margin-right: auto; } .motor-slide h2, .motor-vertical h2, .motor-quiz h2, .reveal .motor-slide h2, .reveal .motor-vertical h2, .reveal .motor-quiz h2`. These values affect readability and vertical space on slides. */
  width: 50%;
  max-width: 600px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Electronics style match patch
   Keeps the module-specific layout, but matches the electronics module's
   title sizing, content width, card spacing, card typography, and sort styling.
   This patch intentionally does NOT force slide titles to text-align:center. */

.motor-slide h2,
.motor-vertical h2,
.motor-quiz h2,
.reveal .motor-slide h2,
.reveal .motor-vertical h2,
.reveal .motor-quiz h2 {
  /* STUDENT NOTE: Styles elements matched by `font-size: 1.45em; margin-bottom: 0.45rem; } .motor-intro, .reveal .motor-intro`. Search the HTML for these class/id names before changing a shared rule. */
  font-size: 1.45em;
  margin-bottom: 0.45rem;
}

.motor-intro,
.reveal .motor-intro {
  /* STUDENT NOTE: Layout rule for `max-width: 950px; margin: 0 auto 0.8rem; font-size: 0.62em; line-height: 1.25; } .motor-grid-2, .motor-grid-3, .motor-grid-4, .motor-click-grid, .reveal .motor-grid-2, .reveal .motor-grid-3, .reveal .motor-grid-4, .reveal .motor-click-grid`. Grid properties here control columns, gaps, and alignment. */
  max-width: 950px;
  margin: 0 auto 0.8rem;
  font-size: 0.62em;
  line-height: 1.25;
}

.motor-grid-2,
.motor-grid-3,
.motor-grid-4,
.motor-click-grid,
.reveal .motor-grid-2,
.reveal .motor-grid-3,
.reveal .motor-grid-4,
.reveal .motor-click-grid {
  /* STUDENT NOTE: Styles elements matched by `gap: 0.8rem; max-width: 1050px; margin: 0 auto; } .motor-card, .motor-click-card, .meter-card, .scenario-card, .reveal .motor-card, .reveal .motor-click-card, .reveal .meter-card, .reveal .scenario-card`. Search the HTML for these class/id names before changing a shared rule. */
  gap: 0.8rem;
  max-width: 1050px;
  margin: 0 auto;
}

.motor-card,
.motor-click-card,
.meter-card,
.scenario-card,
.reveal .motor-card,
.reveal .motor-click-card,
.reveal .meter-card,
.reveal .scenario-card {
  /* STUDENT NOTE: Typography/spacing rule for `background: var(--light); border-left: 10px solid var(--red); border-radius: 8px; padding: 0.75rem 0.85rem; text-align: left; } .motor-card h3, .motor-click-card h3, .meter-card h3, .scenario-card h3, .reveal .motor-card h3, .reveal .motor-click-card h3, .reveal .meter-card h3, .reveal .scenario-card h3`. These values affect readability and vertical space on slides. */
  background: var(--light);
  border-left: 10px solid var(--red);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.motor-card h3,
.motor-click-card h3,
.meter-card h3,
.scenario-card h3,
.reveal .motor-card h3,
.reveal .motor-click-card h3,
.reveal .meter-card h3,
.reveal .scenario-card h3 {
  /* STUDENT NOTE: Typography/spacing rule for `margin: 0 0 0.35rem; font-size: 0.72em; } .motor-card p, .motor-click-card p, .meter-card p, .scenario-card p, .reveal .motor-card p, .reveal .motor-click-card p, .reveal .meter-card p, .reveal .scenario-card p`. These values affect readability and vertical space on slides. */
  margin: 0 0 0.35rem;
  font-size: 0.72em;
}

.motor-card p,
.motor-click-card p,
.meter-card p,
.scenario-card p,
.reveal .motor-card p,
.reveal .motor-click-card p,
.reveal .meter-card p,
.reveal .scenario-card p {
  /* STUDENT NOTE: Styles elements matched by `margin: 0; font-size: 0.45em; line-height: 1.25; } .motor-card li, .reveal .motor-card li`. Search the HTML for these class/id names before changing a shared rule. */
  margin: 0;
  font-size: 0.45em;
  line-height: 1.25;
}

.motor-card li,
.reveal .motor-card li {
  /* STUDENT NOTE: Styles elements matched by `font-size: 0.5em; line-height: 1.22; margin-bottom: 0.16rem; } .motor-callout, .reveal .motor-callout`. Search the HTML for these class/id names before changing a shared rule. */
  font-size: 0.5em;
  line-height: 1.22;
  margin-bottom: 0.16rem;
}

.motor-callout,
.reveal .motor-callout {
  /* STUDENT NOTE: Typography/spacing rule for `max-width: 950px; margin: 0.8rem auto 0; padding: 0.6rem 0.8rem; background: var(--white); border-left: 10px solid var(--red); border-radius: 8px; } .motor-callout p, .reveal .motor-callout p`. These values affect readability and vertical space on slides. */
  max-width: 950px;
  margin: 0.8rem auto 0;
  padding: 0.6rem 0.8rem;
  background: var(--white);
  border-left: 10px solid var(--red);
  border-radius: 8px;
}

.motor-callout p,
.reveal .motor-callout p {
  /* STUDENT NOTE: Styles elements matched by `margin: 0; font-size: 0.56em; line-height: 1.25; } .motor-flow, .reveal .motor-flow`. Search the HTML for these class/id names before changing a shared rule. */
  margin: 0;
  font-size: 0.56em;
  line-height: 1.25;
}

.motor-flow,
.reveal .motor-flow {
  /* STUDENT NOTE: Styles elements matched by `max-width: 1050px; margin: 0.8rem auto 0; } .motor-node, .reveal .motor-node`. Search the HTML for these class/id names before changing a shared rule. */
  max-width: 1050px;
  margin: 0.8rem auto 0;
}

.motor-node,
.reveal .motor-node {
  /* STUDENT NOTE: Typography/spacing rule for `min-height: 92px; padding: 0.6rem 0.5rem; font-size: 0.48em; } .sort-bank, .sort-targets, .reveal .sort-bank, .reveal .sort-targets`. These values affect readability and vertical space on slides. */
  min-height: 92px;
  padding: 0.6rem 0.5rem;
  font-size: 0.48em;
}

.sort-bank,
.sort-targets,
.reveal .sort-bank,
.reveal .sort-targets {
  /* STUDENT NOTE: Styles elements matched by `max-width: 1050px; margin-left: auto; margin-right: auto; } .sort-bank, .reveal .sort-bank`. Search the HTML for these class/id names before changing a shared rule. */
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.sort-bank,
.reveal .sort-bank {
  /* STUDENT NOTE: Typography/spacing rule for `gap: 0.4rem; padding: 0.45rem; min-height: 86px; } .sort-chip, .reveal .sort-chip`. These values affect readability and vertical space on slides. */
  gap: 0.4rem;
  padding: 0.45rem;
  min-height: 86px;
}

.sort-chip,
.reveal .sort-chip {
  /* STUDENT NOTE: Styles elements matched by `padding: 0.35rem 0.5rem; font-size: 0.42em; line-height: 1.15; } .sort-targets, .reveal .sort-targets`. Search the HTML for these class/id names before changing a shared rule. */
  padding: 0.35rem 0.5rem;
  font-size: 0.42em;
  line-height: 1.15;
}

.sort-targets,
.reveal .sort-targets {
  /* STUDENT NOTE: Styles elements matched by `gap: 0.8rem; margin-top: 0.7rem; } .sort-zone, .reveal .sort-zone`. Search the HTML for these class/id names before changing a shared rule. */
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.sort-zone,
.reveal .sort-zone {
  /* STUDENT NOTE: Typography/spacing rule for `min-height: 210px; padding: 0.55rem; } .sort-zone h3, .reveal .sort-zone h3`. These values affect readability and vertical space on slides. */
  min-height: 210px;
  padding: 0.55rem;
}

.sort-zone h3,
.reveal .sort-zone h3 {
  /* STUDENT NOTE: Styles elements matched by `font-size: 0.68em; text-align: center; margin: 0 0 0.4rem; } .sort-list, .reveal .sort-list`. Search the HTML for these class/id names before changing a shared rule. */
  font-size: 0.68em;
  text-align: center;
  margin: 0 0 0.4rem;
}

.sort-list,
.reveal .sort-list {
  /* STUDENT NOTE: Styles elements matched by `gap: 0.35rem; min-height: 150px; } .activity-controls, .reveal .activity-controls`. Search the HTML for these class/id names before changing a shared rule. */
  gap: 0.35rem;
  min-height: 150px;
}

.activity-controls,
.reveal .activity-controls {
  /* STUDENT NOTE: Styles elements matched by `gap: 0.65rem; margin-top: 0.55rem; } .activity-feedback, .reveal .activity-feedback`. Search the HTML for these class/id names before changing a shared rule. */
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.activity-feedback,
.reveal .activity-feedback {
  /* STUDENT NOTE: Shared CSS variables. Change these carefully because many pages may reuse these values. */
  min-width: 240px;
  font-size: 0.46em;
}

/* Shared slide width patch
   Uses the widest recurring content width from the judging/motors/safety modules.
   Keep this block at the bottom of the file so it overrides earlier module rules. */
:root {
  /* STUDENT NOTE: Layout rule for `--shared-slide-width: 1120px; } .reveal .slides section > :is( [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], [class*=""], .quiz-card, .sort-bank, .sort-targets, .troubleshooting-sort, .order-list, .documentation-table, .component-grid, .sensor-grid, .doc-grid, figure, table, ul, ol )`. Grid properties here control columns, gaps, and alignment. */
  --shared-slide-width: 1120px;
}

/* Main direct slide content containers */
.reveal .slides section > :is(
  [class*="intro"],
  [class*="grid"],
  [class*="layout"],
  [class*="split"],
  [class*="callout"],
  [class*="flow"],
  [class*="chain"],
  [class*="table"],
  [class*="wrap"],
  [class*="panel"],
  [class*="bank"],
  [class*="targets"],
  [class*="process"],
  [class*="actions"],
  .quiz-card,
  .sort-bank,
  .sort-targets,
  .troubleshooting-sort,
  .order-list,
  .documentation-table,
  .component-grid,
  .sensor-grid,
  .doc-grid,
  figure,
  table,
  ul,
  ol
) {
  /* STUDENT NOTE: Layout rule for `max-width: var(--shared-slide-width); } .reveal :is( .elec-grid-2, .elec-grid-3, .elec-grid-4, .component-grid, .sensor-grid, .doc-grid, .power-flow, .can-chain, .sort-bank, .sort-targets, .troubleshooting-sort, .documentation-table-wrap, .judge-grid-2, .judge-grid-3, .judge-grid-4, .judge-photo-split, .dialogue-grid, .response-grid, .judge-sort-bank, .judge-sort-targets, .award-chip-grid, .award-output, .motor-grid-2, .motor-grid-3, .motor-grid-4, .motor-click-grid, .motor-flow, .speed-torque-layout, .safety-grid-2, .safety-grid-3, .safety-grid-4, .safety-source-grid, .safety-tool-grid, .safety-split, .review-grid, .safety-resource-grid, .impact-repair-grid, .three-choice-grid, .maintenance-grid, .weight-card-grid, .weight-do-dont, .wd-layout )`. Grid properties here control columns, gaps, and alignment. */
  max-width: var(--shared-slide-width);
}

/* Common module-specific containers that may not be direct children */
.reveal :is(
  .elec-grid-2,
  .elec-grid-3,
  .elec-grid-4,
  .component-grid,
  .sensor-grid,
  .doc-grid,
  .power-flow,
  .can-chain,
  .sort-bank,
  .sort-targets,
  .troubleshooting-sort,
  .documentation-table-wrap,
  .judge-grid-2,
  .judge-grid-3,
  .judge-grid-4,
  .judge-photo-split,
  .dialogue-grid,
  .response-grid,
  .judge-sort-bank,
  .judge-sort-targets,
  .award-chip-grid,
  .award-output,
  .motor-grid-2,
  .motor-grid-3,
  .motor-grid-4,
  .motor-click-grid,
  .motor-flow,
  .speed-torque-layout,
  .safety-grid-2,
  .safety-grid-3,
  .safety-grid-4,
  .safety-source-grid,
  .safety-tool-grid,
  .safety-split,
  .review-grid,
  .safety-resource-grid,
  .impact-repair-grid,
  .three-choice-grid,
  .maintenance-grid,
  .weight-card-grid,
  .weight-do-dont,
  .wd-layout
) {
  /* STUDENT NOTE: Styles elements matched by `max-width: var(--shared-slide-width); } .reveal .slides section .motor-card.dark`. Search the HTML for these class/id names before changing a shared rule. */
  max-width: var(--shared-slide-width);
}

.reveal .slides section .motor-card.dark {
  /* STUDENT NOTE: Typography/spacing rule for `background: var(--black) !important; color: var(--white) !important; } .reveal .slides section .motor-card.dark h3, .reveal .slides section .motor-card.dark p, .reveal .slides section .motor-card.dark li`. These values affect readability and vertical space on slides. */
  background: var(--black) !important;
  color: var(--white) !important;
}

.reveal .slides section .motor-card.dark h3,
.reveal .slides section .motor-card.dark p,
.reveal .slides section .motor-card.dark li {
  color: var(--white) !important;
}