/* disclose.css — the "what am I actually buying" layer.
   ===================================================================
   Loaded AFTER redesign.css and overrides nothing of it. mf-redesign's whole
   task was getting the table above the fold on a phone; the brief for this one
   says clarity should cost very little vertical space on mobile. So the budget
   is deliberate and small:

     always-visible one-liner   ~1 line (it shares the existing .notice bar
                                 rather than adding a second bar)
     "What am I looking at?"    1 line closed, and it starts closed on a phone

   Nothing here is position:fixed, nothing overlays the table, and nothing is
   added above the header. The only permanently-visible new pixels are the
   collapsed <summary>. */

/* ------------------------------------------------------- the one-line note --
   Rides inside the existing .notice bar. The bar already exists on every page,
   already survives both breakpoints, and already has mf-realtime's freshness
   line beside it — putting this there costs zero new vertical space on desktop
   and one wrapped line on a phone. */
.dsc-1 { color: var(--text-2); }
.dsc-1 strong { color: var(--text); font-weight: 620; }
.notice .dsc-1 { display: inline; }

.dsc-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.dsc-more:hover { color: var(--accent-2); }

/* --------------------------------------------------------------- the panel --
   One line when closed. `content-visibility` keeps the closed body out of
   layout entirely so the ~4 KB of copy inside costs nothing until it is opened. */
.dsc-panel {
  margin: 0 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  content-visibility: auto;
  contain-intrinsic-size: auto 44px;
}
.dsc-panel > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  border-radius: var(--r);
}
.dsc-panel > summary::-webkit-details-marker { display: none; }
.dsc-panel > summary::after {
  content: '';
  margin-left: auto;
  width: 7px; height: 7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
  flex: none;
}
.dsc-panel[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.dsc-panel > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.dsc-q { font-weight: 660; color: var(--text); }
.dsc-hint { color: var(--muted); font-size: 13px; }
.dsc-body { padding: 0 12px 12px; }

/* ------------------------------------------------------------ the fact list --
   Two columns on a wide screen so six facts do not become a scroll of their
   own; one column below 900px. The coloured rule on the left encodes the kind
   at a glance — green for what IS true, red for what never is, amber for the
   two that need watching — and the kind is also in the wording, so the colour
   is reinforcement and never the only carrier of meaning. */
.dsc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
.dsc-f {
  border-left: 3px solid var(--line-2);
  padding: 2px 0 2px 11px;
  font-size: 13.5px;
  line-height: 1.5;
}
.dsc-f b { display: block; color: var(--text); font-weight: 640; margin-bottom: 2px; }
.dsc-f span { display: block; color: var(--text-2); }
.dsc-is    { border-left-color: var(--up); }
.dsc-not   { border-left-color: var(--down); }
.dsc-watch { border-left-color: var(--accent-2); }
.dsc-both  { border-left-color: var(--eq-2); }

.dsc-foot { margin: 12px 0 0; font-size: 13.5px; }
.dsc-foot a { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------- the coin-page disclosure --
   Not a footnote and not a tooltip. It is a full-width block with the specific
   warnings for THIS coin at the top, because a general truth a reader has seen
   five times is easy to skip and "this pool cannot trade" is not. */
.dsc-coin {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  padding: 16px 18px;
}
.dsc-lede {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
}
.dsc-lede strong { font-weight: 660; }

.dsc-warns { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.dsc-warns li {
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid;
}
.dsc-warns b { display: block; font-weight: 660; margin-bottom: 2px; }
.dsc-w-stop { background: var(--down-bg); border-color: var(--down); color: var(--down); }
.dsc-w-stop span { color: var(--text-2); }
.dsc-w-warn { background: var(--accent-bg); border-color: var(--accent-2); color: var(--accent); }
.dsc-w-warn span { color: var(--text-2); }

/* ------------------------------------------------- about the paired stock --
   The nominative-use block. Visually distinct from the coin's own identity on
   purpose: teal (the equity colour used throughout), clearly captioned, and
   sitting well below the coin's hero. A reader should never be able to mistake
   this mark for the coin's own. */
.dsc-und {
  border: 1px solid var(--eq-2);
  border-radius: var(--r-lg);
  background: var(--eq-band);
  padding: 14px 16px;
}
.dsc-und-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dsc-und-h > div { min-width: 0; }
/* The equity mark, at the one size and in the one place it is allowed to be
   large. `.logo-ph.is-eq` is the same teal monogram the leaderboard's stock
   chip uses, so a licensed company logo dropped into assets/logos/stock/ later
   inherits this slot and no other. */
.dsc-und-mk {
  width: 40px; height: 40px;
  font-size: 14px;
  border-radius: var(--r);
  flex: none;
}
.dsc-und-h b { display: block; font-size: 17px; font-weight: 660; color: var(--text); }
.dsc-und-h i { display: block; font-style: normal; font-size: 12.5px; color: var(--eq); }
.dsc-und-l { margin: 0; display: grid; gap: 8px; }
.dsc-und-l > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 124, 114, .16);
  font-size: 13.5px;
  line-height: 1.5;
}
.dsc-und-l > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dsc-und-l dt { margin: 0; color: var(--eq); font-weight: 600; }
.dsc-und-l dd { margin: 0; color: var(--text-2); }
.dsc-und-l dd b { color: var(--down); font-weight: 640; }
.dsc-und-l code {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--text-2);
}
.dsc-tm {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid rgba(11, 124, 114, .16);
  padding-top: 10px;
}

/* ------------------------------------------------------- /disclosures page --
   A reading column, not a data surface. Measure capped near 70ch because these
   are paragraphs and the rest of the site's full-bleed grid is wrong for them. */
.dsc-page { max-width: 760px; margin: 0 auto; padding: 8px 0 56px; }
.dsc-page .dsc-hero { margin: 0 0 28px; }
.dsc-page .dsc-hero h1 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; font-weight: 680; }
.dsc-page .dsc-hero p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.dsc-sec {
  border-left: 3px solid var(--line-2);
  padding: 0 0 0 16px;
  margin: 0 0 26px;
}
.dsc-sec h2 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; font-weight: 660; }
.dsc-sec p { margin: 0 0 8px; font-size: 15px; line-height: 1.62; color: var(--text-2); }
.dsc-src {
  font-size: 12.5px !important;
  color: var(--muted) !important;
  margin: 8px 0 0 !important;
}
/* The "Not advice" note is the last block on /disclosures and wants air above
   it. This was an inline style="margin-top:20px" in gen-disclosures.mjs, which
   the site's own CSP (`style-src 'self'`, no unsafe-inline) blocked outright —
   so the margin never applied and every load of the disclosures page logged a
   CSP violation. Same rule, in a stylesheet, where the CSP allows it. */
.dsc-src-last { margin-top: 20px !important; }
.dsc-src span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--faint);
  margin-right: 6px;
}
.dsc-page .dsc-tm {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 12px 14px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
  margin-top: 28px;
}

/* --------------------------------------------------- the per-row flag chip --
   A pool priced in a stock token that barely exists cannot report a usable
   price, and that is a fact about one row. It gets one character on the stock
   chip rather than a banner: 6,514 rows have no budget for a sentence each, and
   a warning that pushes the table below the fold on a phone is a warning nobody
   reaches. Colour is not the only carrier — it has an aria-label spelling the
   whole thing out, and a tooltip on hover and on focus. */
.plate-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  margin-left: 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  flex: none;
}
.plate-flag.stop { background: var(--down); color: #fff; }
.plate-flag.warn { background: var(--accent-2); color: #2a1a04; }

/* ------------------------------------------------------------- narrow view --
   Below 900px everything collapses to one column. The panel and the fact list
   are the only things that were multi-column, and both degrade cleanly. */
@media (max-width: 900px) {
  .dsc-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 760px) {
  .dsc-panel { margin-bottom: 8px; }
  .dsc-panel > summary { padding: 8px 10px; font-size: 13.5px; }
  /* The hint is the first thing to go: the question carries the meaning and
     the phone has no room for a subtitle on it. */
  .dsc-hint { display: none; }
  .dsc-body { padding: 0 10px 10px; }
  .dsc-f { font-size: 13px; }
  .dsc-coin { padding: 13px 13px; border-radius: var(--r); }
  .dsc-lede { font-size: 14.5px; }
  .dsc-und { padding: 12px 13px; border-radius: var(--r); }
  .dsc-und-l > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dsc-und-l dt { font-size: 12.5px; }
  .dsc-page .dsc-hero h1 { font-size: 24px; }
  .dsc-sec h2 { font-size: 17px; }
  .dsc-sec p { font-size: 14.5px; }
}
