/* /currencies — Structure publication treatment.
   Page title and findings stay distinct; controls, rows and data bars remain legible without colour. */

body { line-height: 1.7; }

.mx-page {
  width: 100%;
  max-width: var(--layout-box-page);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
  box-sizing: border-box;
}

.mx-hero {
  padding: var(--rhythm-page-top-clear) 0 var(--rhythm-section-compact);
  border-bottom: 0;
}

.mx-hero-eyebrow,
.mx-section-title,
.market-structure-kicker,
.structure-stat-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-metadata-ink);
}

.mx-hero-eyebrow { margin: 0 0 0.75rem; }

.mx-hero-title {
  max-width: 16ch;
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--theme-ink-primary);
}

.mx-finding {
  max-width: var(--layout-measure-reading);
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--theme-ink-primary);
}

.mx-hero-sub,
.currencies-launch-note,
.structure-summary-copy,
.structure-caveat,
.mx-section-desc,
.market-structure-copy,
.mx-card-desc,
.currencies-note {
  max-width: var(--layout-measure-reading);
}

.mx-hero-sub {
  margin: 0.75rem 0 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--theme-ink-secondary);
}

.currencies-launch-note {
  margin-top: 0.75rem;
  color: var(--theme-metadata-ink);
}

.mx-section {
  padding: var(--rhythm-section-compact) 0;
  border-top: 1px solid var(--theme-rule-standard);
}

.mx-section-head {
  margin-bottom: var(--rhythm-title-content);
}

.mx-section-title { margin: 0 0 0.35rem; }

.mx-section-desc {
  margin: 0;
  color: var(--theme-ink-muted);
}

/* The summary is a record register, not a raised status card. */
.structure-summary {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.structure-summary-head {
  align-items: baseline;
  margin: 0 0 var(--rhythm-title-content);
}

.structure-summary-title {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--theme-ink-primary);
}

.structure-summary-copy,
.structure-caveat {
  color: var(--theme-ink-secondary);
}

.structure-status-row {
  gap: 0;
  align-items: baseline;
}

.structure-status {
  min-height: 0;
  padding: 0 0.55rem;
  border: 0;
  border-left: 1px solid var(--theme-rule-standard);
  border-radius: 0;
  background: transparent;
  font-size: 0.66rem;
  color: var(--theme-metadata-ink);
}

.structure-status:first-child { padding-left: 0; border-left: 0; }

.structure-stat-grid {
  gap: 0;
  margin: 0 0 1rem;
  border-block: 1px solid var(--theme-rule-standard);
}

.structure-stat {
  padding: 0.85rem 1rem;
  border: 0;
  border-right: 1px solid var(--theme-rule-standard);
  border-radius: 0;
  background: transparent;
}

.structure-stat:first-child { padding-left: 0; }
.structure-stat:last-child { border-right: 0; }

.structure-stat-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--theme-ink-primary);
}

.structure-caveat {
  margin: 0.55rem 0 0;
  padding: 0;
  border: 0;
  font-size: 0.82rem;
}

.structure-link-row {
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.structure-link-row a,
.market-structure-link {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--theme-rule-interactive);
  border-radius: 0;
  background: transparent;
  color: var(--theme-ink-link);
  text-decoration: none;
}

.structure-link-row a:hover,
.market-structure-link:hover { color: var(--theme-ink-link-hover); background: transparent; }

.structure-link-row a:focus-visible,
.market-structure-link:focus-visible,
.currencies-range-btn:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

/* Board: one open figure with a single finding headline. */
.market-structure-card,
.mx-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.market-structure-kicker { margin: 0 0 0.45rem; padding: 0; border: 0; background: transparent; }

.market-structure-title {
  max-width: var(--layout-measure-reading);
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--theme-ink-primary);
}

.market-structure-copy {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--theme-ink-secondary);
}

.currencies-board-head {
  margin: var(--rhythm-title-content) 0 0;
  padding: 0;
  border: 0;
}

.currencies-range-list,
.currencies-scope-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 100%;
  border: 1px solid var(--theme-rule-interactive);
  border-radius: 2px;
}

.currencies-range-list:empty,
.currencies-scope-list:empty { display: none; }

.currencies-range-btn {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-left: 1px solid var(--theme-rule-interactive);
  border-radius: 0;
  background: transparent;
  color: var(--theme-ink-secondary);
  transition: color 100ms cubic-bezier(0, 0, 0.2, 1);
}

.currencies-range-btn:first-child { border-left: 0; }

.currencies-range-btn:hover {
  border-color: var(--theme-rule-interactive);
  background: transparent;
  color: var(--theme-ink-primary);
  transform: none;
}

.currencies-range-btn.is-active {
  border-color: var(--theme-rule-interactive);
  background: transparent;
  color: var(--theme-ink-primary);
  box-shadow: inset 0 -2px 0 var(--theme-ink-primary);
}

.currencies-range-btn[disabled] { opacity: 0.5; }

.issuer-viz {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.issuer-viz-header {
  margin: 0;
  padding: 0.7rem 0;
  border-block: 1px solid var(--theme-rule-standard);
  color: var(--theme-metadata-ink);
}

.issuer-viz-header span:last-child { color: var(--theme-metadata-ink); }

.issuer-viz-row {
  border-bottom-color: var(--theme-rule-subtle);
}

.issuer-viz-name,
.issuer-viz-pct { color: var(--theme-ink-primary); }

.issuer-viz-rank,
.issuer-viz-supply,
.issuer-viz-submeta { color: var(--theme-ink-muted); }

.issuer-viz-bar {
  height: 4px;
  border-radius: 0;
  background: var(--theme-rule-standard);
}

.issuer-viz-bar-fill,
.issuer-viz-bar-fill.is-positive {
  border-radius: 0;
  background: var(--theme-ink-primary);
  box-shadow: none;
}

.issuer-viz-bar-fill.is-negative {
  background: var(--theme-status-negative-ink);
  box-shadow: none;
}

.issuer-viz-bar-fill.is-flat { background: var(--theme-ink-muted); box-shadow: none; }

.issuer-viz-tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.issuer-viz-tag.is-new,
.issuer-viz-tag.is-up,
.issuer-viz-tag.is-neutral { color: var(--theme-ink-secondary); }
.issuer-viz-tag.is-down { color: var(--theme-status-negative-ink); }

.currencies-row-mark { display: none; }

.currencies-note {
  margin: 0.8rem 0 0;
  color: var(--theme-metadata-ink);
}

/* Interpretation remains two editorial notes, not a tile grid. */
.mx-cards {
  gap: 0 2rem;
}

.mx-card {
  padding: 1rem 0;
  border-top: 1px solid var(--theme-rule-standard);
}

.mx-card-top,
.mx-card-body { padding: 0; }

.mx-card-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-ink-primary);
}

.mx-card-body { margin-top: 0.55rem; }
.mx-card-desc { color: var(--theme-ink-secondary); }

.currencies-offers {
  gap: 0;
  border-block: 1px solid var(--theme-rule-subtle);
}

.currencies-chip {
  min-height: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-left: 1px solid var(--theme-rule-subtle);
  border-radius: 0;
  background: transparent;
  color: var(--theme-metadata-ink);
}

.currencies-chip:first-child { padding-left: 0; border-left: 0; }

/* The shared movement script may load after this file; extra specificity keeps its currency panel
   in the same open publication register. */
body main .tm-panel {
  max-width: var(--layout-measure-reading);
  margin: 0;
  padding: var(--rhythm-section-compact) 0;
  border: 0;
  border-top: 1px solid var(--theme-rule-standard);
  border-radius: 0;
  background: transparent;
}

body main .tm-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-ink-primary);
}

body main .tm-card { border-top-color: var(--theme-rule-standard); }
body main .tm-pos { color: var(--theme-ink-primary); }
body main .tm-neg { color: var(--theme-status-negative-ink); }
body main .tm-empty--single { max-width: var(--layout-measure-compact); margin: 0.75rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .currencies-range-btn { transition: none; }
}

@media (max-width: 860px) {
  .structure-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-stat:nth-child(2) { border-right: 0; }
  .structure-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--theme-rule-standard); }
  .structure-stat:nth-child(3) { padding-left: 0; }
}

@media (max-width: 700px) {
  .currencies-board-head { align-items: flex-start; }
  .currencies-range-list,
  .currencies-scope-list { width: fit-content; }
}

@media (max-width: 480px) {
  .mx-hero-title { font-size: 2rem; }
  .issuer-viz-row { gap: 0.5rem 0.75rem; }
  .currencies-range-btn { min-height: 40px; }
}
