/* Features page: embed-style alert mockups, legend and cards (shares ../routes/style.css). */
.rft-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

.rft-toc a {
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--rrt-card);
  border: 1px solid var(--rrt-line);
  border-radius: 999px;
}

.rft-toc a:hover,
.rft-toc a:focus-visible {
  background: rgba(47, 140, 255, 0.16);
  border-color: rgba(47, 140, 255, 0.7);
  outline: none;
}

.rrt-section {
  scroll-margin-top: 16px;
}

/* Embed mockup */
.rft-embed {
  position: relative;
  padding: 14px 16px 12px 20px;
  overflow: hidden;
  color: #dbdee1;
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.rft-embed::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--rft-accent, #22c55e);
}

.rft-embed.is-buy { --rft-accent: #22c55e; }
.rft-embed.is-core { --rft-accent: #9b59b6; }
.rft-embed.is-burn { --rft-accent: #f97316; }
.rft-embed.is-volume { --rft-accent: #2f8cff; }

.rft-embed-title {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.rft-embed b {
  color: #ffffff;
}

.rft-embed u {
  color: #00a8fc;
  text-decoration: none;
}

.rft-line {
  position: relative;
  min-height: 21px;
}

.rft-gap {
  height: 10px;
}

.rft-link {
  color: #00a8fc;
}

.rft-muted-line {
  color: #b5bac1;
  font-size: 13px;
}

.rft-n {
  position: absolute;
  left: -46px;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #0b0f1c;
  font-size: 11px;
  font-weight: 900;
  background: var(--rrt-gold);
  border-radius: 50%;
}

.is-buy {
  margin-left: 30px;
}

.rft-embed.is-buy {
  overflow: visible;
}

.rft-chart {
  position: relative;
  margin-top: 12px;
  padding: 10px;
  background: #1e1f22;
  border-radius: 6px;
}

.rft-chart svg {
  display: block;
  width: 100%;
  height: 90px;
}

.rft-chart span {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #949ba4;
  font-size: 11px;
}

.rft-embed-foot {
  margin-top: 10px;
  color: #949ba4;
  font-size: 12px;
}

.rft-big {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.rft-field-name {
  margin: 10px 0 4px;
  color: #ffffff;
  font-weight: 800;
}

.rft-pre {
  margin: 0;
  padding: 8px 10px;
  overflow-x: auto;
  color: #dbdee1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  background: #1e1f22;
  border-radius: 4px;
}

.rft-inline-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.rft-inline-fields div {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.rft-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rft-buttons span {
  padding: 6px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: #4e5058;
  border-radius: 4px;
}

/* Legend */
.rft-legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rft;
}

.rft-legend li {
  position: relative;
  padding: 10px 14px 10px 46px;
  color: var(--rrt-text);
  font-size: 15px;
  line-height: 1.5;
  background: var(--rrt-card);
  border: 1px solid var(--rrt-line);
  border-radius: 10px;
  counter-increment: rft;
}

.rft-legend li::before {
  position: absolute;
  left: 14px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #0b0f1c;
  font-size: 12px;
  font-weight: 900;
  content: counter(rft);
  background: var(--rrt-gold);
  border-radius: 50%;
}

.rft-legend b {
  color: #ffffff;
}

/* Cards */
.rft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rft-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.rft-grid article {
  padding: 16px;
  background: var(--rrt-card);
  border: 1px solid var(--rrt-line);
  border-radius: 10px;
}

.rft-grid h4 {
  margin: 0 0 6px;
  color: var(--rrt-gold);
  font-size: 16px;
}

.rft-grid p {
  margin: 0;
  color: var(--rrt-text);
  font-size: 15px;
  line-height: 1.55;
}

.rft-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.rft-bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--rrt-text);
  font-size: 16px;
  line-height: 1.55;
}

.rft-bullets b {
  color: #ffffff;
}

.rft-cmds td:nth-child(1),
.rft-cmds td:nth-child(2) {
  width: auto;
  white-space: normal;
}

.rft-cmds td:last-child {
  color: var(--rrt-muted);
  font-size: 13px;
}

.rft-group-row td {
  color: var(--rrt-gold) !important;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(215, 164, 65, 0.06);
}

.rrt-section > .rrt-note,
.rrt-panel > .rrt-note {
  margin-top: 36px;
}

@media (max-width: 900px) {
  .rft-grid,
  .rft-grid-2,
  .rft-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .is-buy {
    margin-left: 26px;
  }

  .rft-n {
    left: -42px;
  }

  .rft-inline-fields {
    grid-template-columns: 1fr;
  }

  .rft-cmds thead {
    display: none;
  }

  .rft-cmds tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--rrt-line);
  }

  .rft-cmds td {
    border-bottom: 0;
  }

  .rft-cmds td:nth-child(3),
  .rft-cmds td:nth-child(4),
  .rft-group-row td {
    grid-column: 1 / -1;
  }

  .rft-cmds td:nth-child(3) {
    padding-top: 0;
  }

  .rft-cmds tr:not(.rft-group-row) td:nth-child(1):not(:empty)::before,
  .rft-cmds tr:not(.rft-group-row) td:nth-child(2):not(:empty)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--rrt-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    content: "Discord";
  }

  .rft-cmds tr:not(.rft-group-row) td:nth-child(2):not(:empty)::before {
    content: "Telegram";
  }

  .rft-cmds td:nth-child(4) {
    padding-top: 0;
  }
}

.rft-toc + .rrt-section {
  margin-top: 36px;
}
