/* Page-specific styles, layered on top of ../../theme.css and ../dlmm.css. */

.lp-hero {
  padding-top: 56px;
  padding-bottom: 40px;
}

.lp-hero .hero-badge {
  margin-bottom: 4px;
}

.lp-meta {
  font-size: 13px;
  color: #555;
}

/* Table of contents */

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #222;
  background-color: #111;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
}

.toc a:hover {
  border-color: #1B9E3E;
  color: #fff;
}

/* Prose */

.prose {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 700;
  scroll-margin-top: 24px;
}

.prose .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #1B9E3E;
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 8px;
}

.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: #b3b3b3;
}

.prose p strong {
  color: #fff;
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.prose li {
  font-size: 15px;
  line-height: 1.6;
  color: #b3b3b3;
}

.prose li::marker {
  color: #1B9E3E;
}

.prose li strong {
  color: #fff;
}

.prose a {
  color: #1B9E3E;
  text-decoration: underline;
}

.prose a:hover {
  color: #24c94f;
}

.prose code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  background-color: #161616;
  border: 1px solid #262626;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: #e0e0e0;
}

/* Sections as cards, consistent with dlmm.css's .feature-card language */

.lp-section {
  border-top: 1px solid #1a1a1a;
  padding-top: 48px;
  padding-bottom: 8px;
}

/* Architecture diagram */

.diagram {
  overflow-x: auto;
  border: 1px solid #222;
  background-color: #0b0b0b;
  border-radius: 10px;
  padding: 20px;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Bin price formula */

.bc-formula-box {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.bc-formula {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 15px;
  color: #9fd8ac;
  padding: 4px 0;
}

.bc-formula-example {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 12.5px;
  color: #888;
}

/* Bin composition diagram */

.bc-svg {
  display: block;
  width: 100%;
  height: auto;
}

.bc-bar-x {
  fill: #8b5cf6;
}

.bc-bar-y {
  fill: #3b82f6;
}

.bc-active-outline {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.bc-bin-label {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 12px;
  fill: #888;
}

.bc-bin-label-active {
  fill: #fff;
  font-weight: 700;
}

.bc-active-tag {
  font-family: "Ubuntu", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  fill: #fff;
}

.bc-axis-line {
  stroke: #333;
  stroke-width: 1.5;
}

.bc-axis-arrow {
  fill: #333;
}

.bc-axis-label {
  font-family: "Ubuntu", sans-serif;
  font-size: 11px;
  fill: #666;
}

/* Distribution-shape examples */

.dist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dist-card {
  border: 1px solid #222;
  background-color: #111;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.dist-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 4px;
}

.db-bar {
  fill: #2a2a2a;
}

.db-bar-accent {
  fill: #1B9E3E;
}

.db-axis {
  stroke: #2a2a2a;
  stroke-width: 1;
}

.dist-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.dist-card p {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.dg-box {
  fill: url(#box-fill);
  stroke: #262626;
  stroke-width: 1.5;
}

.dg-box-accent {
  stroke: #1B9E3E;
  fill: url(#box-fill-accent);
}

.dg-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: #fff;
}

.dg-sub {
  font-family: "Ubuntu", sans-serif;
  font-size: 11.5px;
  fill: #888;
}

.dg-line {
  stroke-width: 1.5;
}

.dg-line-accent {
  stroke: #1B9E3E;
}

.dg-line-muted {
  stroke: #555;
}

.dg-pill {
  stroke-width: 1;
}

.dg-pill-accent {
  fill: #0d150f;
  stroke: #1e4229;
}

.dg-pill-muted {
  fill: #0f0f0f;
  stroke: #262626;
}

.dg-dot {
  stroke: #0b0b0b;
  stroke-width: 1.5;
}

.dg-dot-accent {
  fill: #1B9E3E;
}

.dg-dot-muted {
  fill: #555;
}

.dg-edge {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 10.5px;
}

.dg-edge-accent {
  fill: #1B9E3E;
}

.dg-edge-muted {
  fill: #999;
}

.dg-legend-text {
  font-family: "Ubuntu", sans-serif;
  font-size: 11px;
  fill: #777;
}

/* Instruction / doc tables */

.lp-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}

.lp-table th,
.lp-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: top;
}

.lp-table th {
  background-color: #111;
  color: #888;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lp-table td {
  color: #b3b3b3;
}

.lp-table td code {
  color: #e0e0e0;
}

.lp-table tr:last-child td {
  border-bottom: none;
}

.lp-table .tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: -10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.tag-open {
  background-color: rgba(27, 158, 62, 0.14);
  color: #1B9E3E;
}

.tag-gated {
  background-color: rgba(230, 184, 0, 0.14);
  color: #e6b800;
}

/* Security list */

.security-grid {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.security-item {
  display: flex;
  column-gap: 12px;
  border: 1px solid #222;
  background-color: #111;
  border-radius: 10px;
  padding: 16px 18px;
}

.security-item-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}

.security-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.security-item p {
  margin: 0;
  font-size: 14px;
}

/* Status footer block */

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-card {
  flex: 1;
  min-width: 200px;
  border: 1px solid #222;
  background-color: #111;
  border-radius: 10px;
  padding: 16px 18px;
}

.status-card .status-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.status-card code {
  font-size: 13px;
  word-break: break-all;
}

/* theme.css sets background-color: black on every element via `*` — the cards above have
   their own background-color, but each card's *nested* elements (div/h3/p/code/...) also get
   painted black by that same universal rule, covering the card's background. Force only the
   descendants transparent, not the card containers themselves. */

.security-item *,
.status-card *,
.lp-table td *,
.diagram *,
.dist-card * {
  background-color: transparent;
}

@media (max-width: 640px) {
  .dist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  /* Below this width a 3-column table doesn't fit; turn each row into a left-aligned,
     stacked card instead of a horizontally-scrolling table (which also left table-cell
     text-align unreliable in narrow collapsed columns on some mobile browsers). */
  .lp-table,
  .lp-table tbody,
  .lp-table tr {
    display: block;
    width: 100%;
  }

  .lp-table thead {
    display: none;
  }

  .lp-table tr {
    padding: 14px 0;
    border-bottom: 1px solid #1a1a1a;
  }

  .lp-table tr:last-child {
    border-bottom: none;
  }

  .lp-table td {
    display: block;
    text-align: left;
    padding: 4px 14px;
    border-bottom: none;
  }
}
