/* GeoCalc Studio — IDENTITY layer.
   The four things that make a page read as a worked-example sheet rather than a dashboard:
     1. step number in the left rail (mono, --ink-3)
     2. marginalia — the source/table/warning note beside the step it belongs to
     3. the double rule under the title block
     4. the GIVEN · SOLUTION · ANSWER small-caps lexicon
   NOTHING derived from HandCalc or Spanlab may enter this file. Keep it small enough
   that a reviewer can check that rule by reading it. */

/* 1 — step number in the rail */
.b-rail .rail-n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  line-height: 1.9;
  display: block;
}
.b-rail .rail-n.eqn { font-size: 11px; }
/* ⓘ affordance: shown only where the margin column is gone (≤1180px) */
.b-rail .rail-i {
  display: none;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
}
.b-rail .rail-i:hover { color: var(--earth); }

/* 2 — marginalia */
.b-note .note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 11px;
  border-left: 1px solid var(--rule);
  margin-bottom: 10px;
}
.b-note .note .n-src { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.b-note .note table.gc { margin: 4px 0 0; font-size: 12.5px; }
.b-note .note table.gc th, .b-note .note table.gc td { padding: 2px 5px; }

/* popover form of the same note below 1180px */
.note-pop {
  position: absolute;
  z-index: 45;
  width: min(340px, calc(100vw - 28px));
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(30, 26, 20, .12);
  padding: 12px 14px;
  font-size: 13px;
}
.note-pop .note { border-left: 0; padding-left: 0; margin-bottom: 0; }
.note-pop .pop-close { position: absolute; top: 4px; right: 6px; background: none; border: 0; cursor: pointer; color: var(--ink-3); font-family: var(--font-mono); }
@media (max-width: 1180px) {
  .b-rail .rail-i { display: block; }
}

/* The Calculations tab (core/engine.js .tool-panel) never has a third column, at any
   width, so the ⓘ popover is the note's ONLY path there — not just below 1180px. */
.tool-panel .blk { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
.tool-panel .blk > .b-note { display: none; }
.tool-panel .b-rail .rail-i { display: block; }
.tool-panel .rail-n { font-size: 12px; }

/* 3 — double rule under the title block */
.title-blk { border-bottom: 3px double var(--rule); padding-bottom: 14px; }

/* 4 — GIVEN · SOLUTION · ANSWER lexicon */
.lex {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lex-rule { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; }
.lex-rule::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
