/* =============================================================================
   lines.css — the NHL line-combination index.

   House rules, no exceptions:
     * Newsreader UPRIGHT. No slanted type anywhere.
     * Ink + blue is the whole accent grammar. Gold survives on exactly one
       thing, the U+25F7 receipt glyph, which hi-receipt.css owns. This sheet
       declares no gold value at all.
     * Semantics: mint = available, coral = out. Nothing else takes them.
     * Every colour is a token alias.

   Everything is scoped to .ln-scope so nothing leaks into the shell.
   ============================================================================= */

.ln-scope {
  --ln-field: var(--hi-surface-0);
  --ln-card: var(--hi-surface-1);
  --ln-card2: var(--hi-surface-2);
  --ln-track: var(--hi-surface-3);
  --ln-line: var(--hi-line);
  --ln-hair: var(--hi-hair);

  --ln-ink: var(--hi-ink);
  --ln-ink-2: var(--hi-ink-2);
  --ln-muted: var(--hi-muted);

  --ln-blue: var(--hi-blue);
  --ln-blue-2: var(--hi-blue-2);
  --ln-blue-soft: var(--hi-blue-soft);
  --ln-blue-line: var(--hi-blue-line);

  --ln-ok: var(--hi-mint);
  --ln-ok-soft: var(--hi-mint-soft);
  --ln-out: var(--hi-coral);
  --ln-out-soft: var(--hi-coral-soft);

  --ln-sans: "Instrument Sans", system-ui, sans-serif;
  --ln-serif: "Newsreader", Georgia, serif;
  --ln-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--ln-field);
  color: var(--ln-ink);
  font-family: var(--ln-sans);
}

/* the design system forbids slanted type; hold it upright inside the scope */
.ln-scope em, .ln-scope i, .ln-scope cite, .ln-scope address { font-style: normal; }

.ln-main { max-width: 1420px; margin: 0 auto; padding: 0 1.15rem 4.5rem; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- the hero */
.ln-hero { margin: 1.4rem 0 2.2rem; }
.ln-hero-band {
  border: 1px solid var(--ln-line);
  border-radius: 18px;
  background: var(--ln-card);
  padding: 1.5rem 1.6rem 1.4rem;
}
.ln-hero-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.1rem;
  justify-content: space-between; margin-bottom: .9rem;
}
.ln-hero-issue {
  font: 800 .6rem/1 var(--ln-sans);
  text-transform: uppercase; letter-spacing: .2em; color: var(--ln-blue);
}
.ln-hero-stamp, .ln-stamp {
  font: 500 .68rem/1.3 var(--ln-mono); color: var(--ln-muted);
}
.ln-hero h1 {
  font: 700 clamp(2rem, 4.6vw, 3.1rem)/1.04 var(--ln-serif);
  letter-spacing: -.018em; margin: 0 0 .55rem; color: var(--ln-ink);
}
.ln-hero-thesis {
  font: 400 clamp(.95rem, 1.35vw, 1.08rem)/1.55 var(--ln-serif);
  color: var(--ln-ink-2); max-width: 62ch; margin: 0 0 1.15rem;
}
.ln-hero-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem; border-top: 1px solid var(--ln-hair); padding-top: 1rem;
}
.ln-hero-rail > div { display: flex; flex-direction: column; gap: .18rem; }
.ln-hero-rail b {
  font: 700 clamp(1.15rem, 2.1vw, 1.55rem)/1 var(--ln-mono); color: var(--ln-ink);
}
.ln-hero-rail span {
  font: 600 .62rem/1.25 var(--ln-sans);
  text-transform: uppercase; letter-spacing: .13em; color: var(--ln-muted);
}
.ln-hero-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.05rem 0 0; }
.ln-hero-links a {
  font: 700 .7rem/1 var(--ln-sans); text-decoration: none;
  color: var(--ln-blue); border: 1px solid var(--ln-blue-line);
  border-radius: 999px; padding: .48rem .8rem; background: var(--ln-blue-soft);
}
.ln-hero-links a:hover { background: var(--ln-blue); color: #fff; }

/* -------------------------------------------------------------- a section */
.ln-sec { margin: 2.6rem 0 0; }
.ln-sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .5rem 1rem; margin-bottom: .55rem;
}
.ln-kicker {
  font: 800 .58rem/1 var(--ln-sans); text-transform: uppercase;
  letter-spacing: .2em; color: var(--ln-blue); margin: 0;
}
.ln-sec-head h2 {
  font: 700 clamp(1.25rem, 2.3vw, 1.7rem)/1.15 var(--ln-serif);
  margin: 0; color: var(--ln-ink); letter-spacing: -.012em;
}
.ln-sec-rule { flex: 1 1 3rem; height: 1px; background: var(--ln-hair); }

/* -------------------------------------------------------------- the sortbar */
.ln-sortbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  margin: 1rem 0 1.1rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--ln-hair);
}
.ln-sortlbl {
  font: 700 .58rem/1 var(--ln-sans); text-transform: uppercase;
  letter-spacing: .16em; color: var(--ln-muted); margin-right: .2rem;
}
.ln-sortbar button {
  font: 700 .72rem/1 var(--ln-sans); color: var(--ln-ink-2);
  background: var(--ln-card); border: 1px solid var(--ln-line);
  border-radius: 999px; padding: .46rem .8rem; cursor: pointer;
}
.ln-sortbar button:hover { border-color: var(--ln-blue); color: var(--ln-blue); }
.ln-sortbar button.is-on {
  background: var(--ln-blue); border-color: var(--ln-blue); color: #fff;
}
.ln-sortsep { flex: 1 1 auto; }
.ln-find input {
  font: 500 .78rem/1 var(--ln-sans); color: var(--ln-ink);
  background: var(--ln-card); border: 1px solid var(--ln-line);
  border-radius: 999px; padding: .5rem .9rem; min-width: 15rem;
}
.ln-find input:focus-visible { outline: 2px solid var(--ln-blue); outline-offset: 1px; }

/* ----------------------------------------------------------------- the wall */
.ln-wall {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.ln-card {
  border: 1px solid var(--ln-line); border-radius: 14px;
  background: var(--ln-card); padding: .95rem 1rem 1rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.ln-card.is-dark { border-style: dashed; }
.ln-card-head { display: flex; align-items: center; gap: .6rem; }
.ln-crest { width: 30px; height: 30px; flex: 0 0 30px; }
.ln-crest img { width: 100%; height: 100%; object-fit: contain; }
.ln-card-id { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ln-card-id a {
  font: 700 .96rem/1.15 var(--ln-serif); color: var(--ln-ink);
  text-decoration: none; letter-spacing: -.01em;
}
.ln-card-id a:hover { color: var(--ln-blue); text-decoration: underline; }
.ln-card-div {
  font: 600 .58rem/1 var(--ln-sans); text-transform: uppercase;
  letter-spacing: .14em; color: var(--ln-muted);
}
.ln-rows { display: flex; flex-direction: column; gap: .42rem; }
.ln-row { display: grid; grid-template-columns: 4.2rem 1fr; gap: .55rem; align-items: baseline; }
.ln-row > b {
  font: 700 .56rem/1.3 var(--ln-sans); text-transform: uppercase;
  letter-spacing: .13em; color: var(--ln-muted);
}
.ln-names { display: flex; flex-wrap: wrap; gap: .2rem .3rem; }
.ln-names a {
  font: 500 .8rem/1.3 var(--ln-sans); color: var(--ln-ink);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.ln-names a:hover { color: var(--ln-blue); border-bottom-color: var(--ln-blue-line); }
.ln-names .sep { color: var(--ln-muted); font: 500 .8rem/1.3 var(--ln-mono); }
.ln-names .is-out { color: var(--ln-out); }
.ln-none { font: 500 .78rem/1.4 var(--ln-sans); color: var(--ln-muted); }
.ln-src {
  font: 500 .64rem/1.4 var(--ln-mono); color: var(--ln-muted);
  border-top: 1px solid var(--ln-hair); padding-top: .5rem; margin: 0;
}
.ln-src b { color: var(--ln-ink-2); font-weight: 700; }
.ln-card-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.ln-card-links a {
  font: 700 .64rem/1 var(--ln-sans); text-decoration: none;
  color: var(--ln-blue); border: 1px solid var(--ln-blue-line);
  border-radius: 999px; padding: .34rem .62rem;
}
.ln-card-links a:hover { background: var(--ln-blue); color: #fff; }
.ln-count {
  font: 500 .72rem/1.4 var(--ln-mono); color: var(--ln-muted);
  margin: 1rem 0 0;
}

/* --------------------------------------------------------------- boundary */
.ln-method { margin-top: 3rem; }
.ln-boundary { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ln-boundary li {
  font: 400 .92rem/1.55 var(--ln-serif); color: var(--ln-ink-2);
  border-left: 2px solid var(--ln-blue-line); padding-left: .85rem;
}
.ln-foot {
  font: 400 .88rem/1.55 var(--ln-serif); color: var(--ln-muted);
  margin: 1.1rem 0 0;
}
.ln-foot a { color: var(--ln-blue); }

@media (max-width: 760px) {
  .ln-hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-find input { min-width: 0; width: 100%; }
  .ln-find { flex: 1 1 100%; }
}
