/* =========================================================================
   Echo and the scroll — piece 02
   ========================================================================= */

/* ---------- page tuning -------------------------------------------------
   Values this page sets differently from css/mlfk.css, plus everything only
   this page uses. Kept explicit rather than folded into the shared file so no
   other page shifts by a pixel.
   --------------------------------------------------------------------- */
  :root { --att-rgb: 184,134,11; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --att-rgb: 218,165,32; }
}
  :root[data-theme="dark"] { --att-rgb: 218,165,32; }
  .page { row-gap: clamp(2.6rem,6vw,4.2rem); }
  .band { padding: clamp(1.9rem,4.5vw,3rem) 0; }
  h1 { font-size: clamp(2.1rem,5.8vw,3.4rem); margin: 1.1rem 0 0; max-width: 20ch; }
  .lede { margin-top: 1.2rem; }
  .whofor { margin-top: 1.4rem; }
  strong { font-weight: 600; color: inherit; }
  .sec { column-gap: 2.4rem; }
  .step { padding-top: 0.55rem; font-size: 0.64rem; letter-spacing: 0.2em; color: var(--info); }
@media (max-width:840px) {
    .sec { grid-template-columns: 1fr; }
    .sec > *, .step { grid-column: 1; }
}
  .hint { color: var(--gold); }
  .btn { font-size: 0.73rem; padding: 0.38rem 0.9rem; }
  .btn[aria-pressed="true"] {
    background: var(--text-primary);
    color: var(--bg-page);
    border-color: var(--text-primary);
  }
  .btn:disabled { opacity: 0.4; cursor: default; }
  .cta { font-size: 0.92rem; padding: 0.62rem 1.5rem; }
  .cta:hover { background: var(--gold-pressed); color: #fff; }
  .cta:disabled { opacity: 0.4; cursor: default; }
  input[type=text] {
    font-family: var(--font-body);
    font-size: 1.08rem;
    width: 100%;
    max-width: 34rem;
    background: transparent;
    color: var(--text-primary);
    border: 0;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 0.5rem 0;
  }
  input[type=text]::placeholder { color: var(--text-placeholder); }
  input[type=text]:focus {
    outline: none;
    border-bottom-color: var(--gold);
    box-shadow: 0 1px 0 0 var(--gold);
  }
  .count {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
  }
  .word {
    position: absolute;
    transform: translate(-50%,-50%);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 3px;
    padding: 0.18rem 0.42rem;
    cursor: pointer;
    transition: all 180ms ease;
    white-space: nowrap;
    color: var(--text-secondary);
  }
  .word:hover { border-color: var(--text-primary); color: var(--text-primary); }
  .word.pick {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-page);
  }
  .built {
    font-family: var(--font-display);
    font-size: clamp(1.2rem,3.2vw,1.65rem);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1.2rem;
    min-height: 2.4em;
  }
  .built .new { color: var(--gold); }
  .scroll {
    display: flex;
    flex-direction: column;
    margin: 0 0 1.2rem;
    border-top: 1px solid var(--border-default);
  }
  .cand {
    gap: 0.85rem;
    padding: 0.5rem 0.2rem;
    font-size: 0.96rem;
    cursor: pointer;
    transition: background 150ms ease;
  }
  .cand:hover { background: var(--gold-subtle); }
  .cand .lbl { font-size: 0.88rem; min-width: 6.5rem; }
  .cand .bar { background: var(--emerald); }
  .cand .pct { font-size: 0.76rem; }
  .note { border-left: 2px solid var(--gold); margin: 1.4rem 0 0; font-size: 0.94rem; }
  .small { font-size: 0.88rem; color: var(--text-muted); max-width: 60ch; }
  table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
  td {
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0.4rem;
    vertical-align: top;
  }
  tr:last-child td { border-bottom: 0; }
  td:first-child { width: 46%; }
  td:last-child { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
  .bigline { max-width: 26ch; }
  .seriesnav { font-size: 0.88rem; padding-top: 1.4rem; }
  .seriesnav a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-border);
  }
  a.eyebrow { text-decoration: none; color: var(--text-muted); }
  a.eyebrow:hover { color: var(--gold); }
  .seriesnav a:hover { color: var(--gold-hover); }
  footer { font-size: 0.78rem; }
