/* SOC 101: lesson and course-page styles. Self-contained; uses the site's CSS variables from /style.css. */
.page-article .article-col { min-width: 0; }
.page-article .sidenotes.long { position: static; }
.prose ul.plain { margin: 0.75rem 0 0 1.1rem; color: var(--muted); }
.prose ul.plain li { margin: 0.35rem 0; }
.prose h3 { margin: 1.6rem 0 0.4rem; font-size: 1.3rem; }
.viz { margin: 2rem 0; border: 1px solid var(--rule); background: #0f0e0d; padding: 0.9rem; }
.viz svg { display: block; width: 100%; height: auto; }
.viz figcaption { padding: 0 0.15rem 0.1rem; }
.viz-btn { font-family: var(--font-chrome); font-size: var(--size-small); letter-spacing: 0.04em; background: transparent; color: var(--paper); border: 1px solid var(--rule); padding: 0.5rem 0.85rem; min-height: 44px; min-width: 44px; cursor: pointer; border-radius: 2px; }
.viz-btn:hover { border-color: var(--dust); color: var(--dust); }
.viz-btn[aria-pressed="true"] { border-color: var(--paper); background: rgba(232,228,220,0.08); }
.viz-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.viz-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 0.8rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.check { margin: 2.25rem 0 0; max-width: 38rem; }
.check details { border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
.check summary { cursor: pointer; color: var(--paper); font-family: var(--font-body); font-size: var(--size-body); }
.check details p { color: var(--muted); margin: 0.5rem 0 0.2rem; }
.check summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.listen-article { margin: 0 0 1.75rem; padding: 0.75rem 0.9rem; border: 1px solid var(--rule); background: var(--bg-band); max-width: 42rem; }
.listen-article-label { display: block; margin: 0 0 0.45rem; font-family: var(--font-chrome); font-size: var(--size-small); letter-spacing: 0.04em; color: var(--dust); }
.listen-article audio { display: block; width: 100%; height: 40px; color-scheme: dark; }
.listen-article-meta { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }
.diagram-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.diagram-hint { display: none; }
@media (max-width: 640px) {
  .diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram-scroll svg { min-width: 640px; }
  .diagram-hint { display: block; margin: 0.35rem 0 0; font-family: var(--font-chrome); font-size: var(--size-label); color: var(--muted); }
}

/* SVG text in the figures */
.sv-h { font-family: var(--font-display); font-size: 26px; fill: #E8E4DC; }
.sv-t { font-family: var(--font-chrome); font-size: 15px; fill: #C4B49A; letter-spacing: 0.04em; }
.sv-s { font-family: var(--font-body); font-size: 16px; fill: #B9B4AA; }
.sv-xs { font-family: var(--font-chrome); font-size: 13px; fill: #8E8A82; }
.sv-name { font-family: var(--font-display); font-size: 19px; fill: #E8E4DC; }

/* Figure: one scene, three lenses */
.lens-panel { border-top: 1px solid var(--rule); padding: 0.8rem 0 0.2rem; }
.lens-panel h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.lens-panel .lens-q { font-family: var(--font-chrome); font-size: var(--size-small); color: var(--dust); margin: 0 0 0.5rem; }
.lens-panel p { margin: 0 0 0.45rem; font-family: var(--font-body); font-size: var(--size-small); line-height: 1.55; color: var(--muted); }
.lens-panel .lens-who { color: var(--paper); border-left: 2px solid var(--dust); padding-left: 0.65rem; }
.lens-js .lens-panel[hidden] { display: none; }

/* Flashcards: tap a card to flip it */
.flash { margin: 2.5rem 0 0; max-width: 42rem; }
.flash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.7rem; margin: 0.6rem 0 0; }
.flash-card { border: 1px solid var(--rule); background: linear-gradient(180deg, #1b1916 0%, #131210 100%); min-height: 8.5rem; }
.flash-card summary { list-style: none; cursor: pointer; padding: 1rem 0.9rem; min-height: 8.5rem; display: flex; flex-direction: column; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--paper); }
.flash-card summary::-webkit-details-marker { display: none; }
.flash-card summary span { display: block; margin-top: 0.5rem; font-family: var(--font-chrome); font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.flash-card[open] summary { min-height: 0; padding-bottom: 0.3rem; font-size: 1.05rem; color: var(--dust); }
.flash-card[open] summary span { display: none; }
.flash-card p { margin: 0; padding: 0 0.9rem 1rem; font-family: var(--font-body); font-size: var(--size-small); line-height: 1.5; color: var(--paper); }
.flash-card summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.flash-note { font-family: var(--font-chrome); font-size: var(--size-label); color: var(--muted); margin: 0.3rem 0 0; }

/* Course page: lessons not posted yet */
.course-row-planned { color: var(--muted); cursor: default; }
.course-row-planned .course-row-title { color: var(--muted); }
.course-row-planned:hover .course-row-title { color: var(--muted); }

/* Course page: lessons marked "Coming soon" (same treatment as PHIL 101) */
.course-row.is-soon { cursor: default; }
.course-row.is-soon .course-row-title { color: var(--muted); }
.course-row.is-soon .whisper-label { color: var(--muted); }

/* Section markers: small line icons before each lead question (no emoji on the site). */
.chunk-mark { display: flex; align-items: center; gap: 0.6rem; margin: 2.25rem 0 0.2rem; font-family: var(--font-chrome); font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chunk-mark svg { width: 1.6rem; height: 1.6rem; flex: none; stroke: var(--dust); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chunk-mark + .lead-q { margin-top: 0.3rem; }

/* One-minute summary, try-it boxes, and quotes */
.soc-box { border: 1px solid var(--rule); border-left: 3px solid var(--dust); background: var(--bg-band); padding: 0.9rem 1.1rem; margin: 1.25rem 0; max-width: 42rem; }
.soc-box h3 { font-family: var(--font-chrome); font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); margin: 0 0 0.45rem; font-weight: 400; }
.soc-box ul { margin: 0; padding-left: 1.1rem; }
.soc-box li { margin: 0.25rem 0; color: var(--paper); }
.soc-box p { margin: 0.3rem 0; }
.soc-quote { border-left: 2px solid var(--dust); padding: 0.2rem 0 0.2rem 1rem; margin: 1.1rem 0; max-width: 40rem; font-family: var(--font-display); font-size: var(--size-lead); line-height: 1.45; }
.soc-quote cite { display: block; font-family: var(--font-chrome); font-size: var(--size-label); color: var(--muted); font-style: normal; margin-top: 0.4rem; }
.prose ul.plain strong { color: var(--paper); }
.photo-credit { margin: 2rem 0 0; font-family: var(--font-chrome); font-size: var(--size-label); color: var(--muted); }
.ex-table caption.visually-hidden { caption-side: top; }
/* Mobile: wide tables scroll inside their box; long reference URLs wrap instead of widening the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) { .table-scroll .ex-table { min-width: 560px; } }
.refs a, .photo-credit a { overflow-wrap: anywhere; }
