/* PHY 101 styles. Loaded after /style.css and /assets/pilot/neuron-pilot.css; uses the site's variables only. */

/* Section markers: small line icons in front of each section question (no emoji on the site). */
.phy-mark { display: flex; align-items: flex-start; gap: 0.6rem; }
.phy-ico {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-top: 0.1rem;
  border: 1px solid var(--dust); border-radius: 50%;
  color: var(--dust);
}
.phy-ico svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Short "one idea" call-outs */
.phy-key {
  max-width: 38rem; margin: 1.1rem 0 1.4rem; padding: 0.8rem 1rem;
  border-left: 3px solid var(--dust); background: var(--bg-band);
  font-family: var(--font-body); font-size: var(--size-body); color: var(--paper);
}
.phy-key b { color: var(--dust); font-weight: 600; }

/* Equation line */
.phy-eq { font-family: var(--font-chrome); color: var(--paper); font-size: 1.05rem; letter-spacing: 0.02em; }

/* Quick recap */
.phy-recap { max-width: 38rem; margin: 2.25rem 0 0; }
.phy-recap ol { margin: 0.5rem 0 0 1.2rem; padding: 0; color: var(--muted); }
.phy-recap li { margin: 0.45rem 0; }
.phy-recap li b { color: var(--paper); font-weight: 600; }

/* Flashcards: tap a card to flip it */
.phy-cards { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; max-width: 52rem; }
.phy-card { perspective: 900px; }
.phy-card button {
  position: relative; display: block; width: 100%; min-height: 9rem; padding: 0;
  background: transparent; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: left;
}
.phy-card .face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem;
  padding: 0.9rem 1rem; border: 1px solid var(--rule); background: #0f0e0d;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.45s ease;
}
.phy-card .front { font-family: var(--font-display); font-size: var(--size-title-3); line-height: 1.3; color: var(--paper); }
.phy-card .back { transform: rotateY(180deg); font-family: var(--font-body); font-size: var(--size-small); line-height: 1.45; color: var(--muted); border-color: var(--dust); }
.phy-card .face small { font-family: var(--font-chrome); font-size: var(--size-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dust); }
.phy-card button[aria-pressed="true"] .front { transform: rotateY(180deg); }
.phy-card button[aria-pressed="true"] .back { transform: rotateY(360deg); }
.phy-card button:focus-visible .face { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .phy-card .face { transition: none; } }

/* Drop simulator (Figure 1.4) */
.drop-stage { display: grid; grid-template-columns: 1fr; }
.drop-stage svg { max-height: 26rem; }
.drop-readout { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.25rem 1rem; margin: 0.5rem 0 0; font-family: var(--font-chrome); font-size: var(--size-small); color: var(--muted); }
.drop-readout b { color: var(--paper); font-weight: 400; }
.drop-label { font-family: var(--font-chrome); font-size: 15px; fill: #E8E4DC; }
.drop-sub { font-family: var(--font-chrome); font-size: 12px; fill: #8E8A82; }

/* Course page outline (index): a row's extra detail under its title */
.phy-row-more { margin: 0 0 0.9rem; font-family: var(--font-body); font-size: var(--size-small); color: var(--muted); line-height: 1.45; }
.phy-row-more p { margin: 0.25rem 0; }
.phy-row-more b { color: var(--dust); font-weight: 600; font-family: var(--font-chrome); font-size: var(--size-label); letter-spacing: 0.06em; text-transform: uppercase; margin-right: 0.35rem; }
.course-row.is-planned { color: var(--muted); }
.course-row.is-planned .course-row-title { color: var(--paper); }

/* Puck simulator (Lesson 2, Figure 2.4) */
.puck-lane { transition: fill 0.3s ease; }
.lane-none { fill: #1a1c22; }
.lane-ice { fill: #1d262c; }
.lane-wood { fill: #2a2016; }
.lane-carpet { fill: #2a1b1e; }
.puck-msg { min-height: 1.5em; margin: 0.4rem 0 0; font-family: var(--font-body); font-size: var(--size-small); color: var(--paper); }

/* Long source URLs (e.g. NASA nssdc pages with underscores) have no break points and pushed the page sideways on 360-390 px phones.
   Let link text in the reference list and media credits wrap anywhere. Scoped to PHY 101 pages (this file), Oct 4. */
.refs a, .media-credits a { overflow-wrap: anywhere; }
