/* The two hallways, Faults (faults.html, 2026-11-01) and Folds (folds.html,
   2026-11-04): a list of steps, lessons with animations, and practice
   problems. One stylesheet for both, so they cannot drift apart. Built on
   the site's colours (site.css). */
.wrap { max-width: 860px; margin: 0 auto; padding: 14px 16px 60px; }
.wrap h1 { font-size: 26px; margin: 10px 0 6px; }
.wrap h2 { font-size: 22px; margin: 2px 0 10px; }
.wrap h2:focus { outline: none; }
.wrap h3 { font-size: 19px; margin: 0 0 10px; }
.lede { max-width: 66ch; margin: 0 0 16px; font-size: 17px; line-height: 1.55; }
.kicker { margin: 0; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.steps { display: grid; gap: 12px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.step h2 { margin: 0; font-size: 20px; }
.step .status { margin: 0; color: var(--muted); }
.step.locked { background: #f7f6f2; }
.step.locked h2 { color: var(--muted); }
button { font: inherit; border-radius: 6px; padding: 8px 16px; min-height: 40px; cursor: pointer;
  background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
button:hover { background: var(--accent-soft); }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: #fff; }
button.primary:hover { background: #1d4c5d; }
button.big { margin-top: 8px; padding: 10px 22px; font-size: 17px; }
button.quiet { margin-top: 26px; border-color: var(--line); color: var(--muted); font-size: 14px; min-height: 34px; }
button.back { border: 0; padding: 4px 0; min-height: 0; color: var(--accent); background: none; margin-bottom: 8px; }
button.back:hover { text-decoration: underline; background: none; }
button:disabled { opacity: .55; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 52px; min-height: 36px; padding: 4px 10px; font-size: 15px; }
/* A solved chip is filled and carries a check, so it does not rest on colour alone. */
.chip.done { background: #2f7a4a; border-color: #2f7a4a; color: #fff; }
.chip.done::after { content: " \2713"; }
.lesson { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 0 0 14px; }
.lesson p { margin: 10px 0 0; max-width: 66ch; line-height: 1.55; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.example { margin: 0; border: 1px solid #ecebe7; border-radius: 6px; padding: 6px; background: #fff; }
.example svg, .example img { display: block; width: 100%; height: auto; border-radius: 4px; }
.example img { aspect-ratio: 4 / 3; object-fit: cover; background: #e9e6df; }
.example svg { aspect-ratio: 4 / 3; }
.example figcaption { font-size: 15px; margin-top: 6px; }
.example .credit { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.example .credit a { color: var(--muted); }
.pending { aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 4px; display: grid; place-items: center; color: var(--muted); }
b { font-weight: 700; }
/* Glossary words, as on the Problems tab. */
.term { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; position: relative; touch-action: manipulation; }
.term:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.term .def {
  display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5;
  width: min(320px, 80vw); background: var(--ink); color: #fff; font-size: 14px; line-height: 1.4;
  padding: 8px 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); text-decoration: none;
  font-weight: 400; white-space: normal; text-align: left; cursor: default;
}
@media (hover: hover) { .term:hover .def { display: block; } }
.term:focus-visible .def, .term.open .def { display: block; }
.feedback .term .def { bottom: auto; top: calc(100% + 6px); }
.term .def b { display: block; margin-bottom: 2px; }
.term .def .xref { text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.term .def .xref:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.term .def .back { display: inline-block; margin-top: 6px; color: #d9e2ec; font-size: 13px; }
.term .def .note { display: block; margin-top: 4px; color: #d9e2ec; font-size: 13px; }
.term .def .from { color: #b9c4d0; font-size: 12px; }
.anim { margin: 0; border: 1px solid #ecebe7; border-radius: 6px; padding: 6px; }
.anim .stage svg { display: block; width: 100%; height: auto; }
.anim .stage > svg { max-width: 520px; margin: 0 auto; }
.anim .stage .with-arrows, .anim.still .stage > svg, .anim.wide .stage > svg { max-width: 760px; margin: 0 auto; }
.with-arrows { display: flex; align-items: center; gap: 2px; }
.with-arrows .pic { flex: 1; min-width: 0; }
.side-arrow { width: 34px; flex: 0 0 34px; height: auto; }
.controls { display: flex; gap: 8px; margin-top: 8px; }
.close { font-size: 17px; max-width: 66ch; }
.practice-pic { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.practice-pic svg { display: block; width: 100%; height: auto; }
/* under a fold block (Folds Step 5): the little strat column, and on a
   top-alone problem the map of its top; the map takes its own row on a
   phone, so it is never drawn too small to read */
.fold-under { margin: 8px 0 0; }
.fold-under figure, figure.colbox { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
figure.colbox { float: right; margin: 8px 0 8px 14px; }
figure.colbox svg { display: block; }
.fold-clear { clear: both; }
.fold-under .mapbox svg { display: block; width: 100%; height: auto; }
.fold-under figcaption { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.map-tap { fill: transparent; cursor: pointer; }
.map-tap:hover { fill: rgba(36, 94, 115, 0.12); }
@media (max-width: 600px) {
  /* the map is drawn at half size on a phone: its numbers grow to match */
  .fold-under .mapview text.lbl { font-size: 34px; stroke-width: 7px; }
  figure.colbox { float: none; display: inline-block; margin: 8px 0 0; }
}
.blk { fill: transparent; cursor: pointer; }
.blk:hover { fill: rgba(36, 94, 115, 0.12); }
.blk:focus { outline: none; }
.blk:focus-visible { fill: rgba(36, 94, 115, 0.16); stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 5; }
/* Step 6's blocks: the taps are each face, in the order drawn; the shape a
   keyboard reaches lies over them, takes no taps, and shows the hover */
.blk-tap { fill: transparent; cursor: pointer; }
.blk-key { pointer-events: none; }
.blk-key.hover { fill: rgba(36, 94, 115, 0.12); }
.prompt { font-size: 19px; font-weight: 700; margin: 12px 0 4px; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.names { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.names button { flex: 1; max-width: 200px; font-weight: 600; }
/* a name stays on one line ("Strike-slip" broke at its hyphen on a phone) */
.names button.name { white-space: nowrap; }
/* The name buttons stay hidden until the first tap is right: display:flex
   above would otherwise override the hidden attribute (2026-11-04; Step 4
   showed Normal and Reverse from the start). */
.names[hidden] { display: none; }
.names button.chosen { background: var(--accent); color: #fff; opacity: 1; }
.feedback { font-size: 17px; line-height: 1.5; max-width: 66ch; margin: 10px 0; min-height: 1.5em; }
.feedback.good { border-left: 4px solid #2f7a4a; padding-left: 10px; }
.feedback.bad { border-left: 4px solid #c8102e; padding-left: 10px; }
.done-note { font-weight: 600; }
/* The line under a fold picture that says which number is oldest (2026-11-04). */
.key { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.banner { background: #c8102e; color: #fff; padding: 10px 16px; }
@media (max-width: 600px) {
  /* On a phone the fold pictures shrink to half size or less, so their
     numbers and fold names are drawn larger, and the frames around them
     are slimmer, to stay readable (2026-11-04). The Faults tab stays as it
     was. */
  body[data-hallway="folds"] .practice-pic svg text.lbl, body[data-hallway="folds"] .anim .stage svg text.lbl { font-size: 24px; stroke-width: 5px; }
  body[data-hallway="folds"] .anim .stage svg text.word { font-size: 26px; stroke-width: 6px; }
  body[data-hallway="folds"] .lesson { padding: 12px 10px; }
  body[data-hallway="folds"] .anim { padding: 2px; border: 0; }
  body[data-hallway="folds"] .practice-pic { padding: 2px; }
  .examples { grid-template-columns: 1fr; }
  .wrap h1 { font-size: 23px; }
  .side-arrow { width: 22px; flex-basis: 22px; }
}
