/* Rayva market report — faithful translation of "Rayva Market Report v2.dc.html".
   The design renders inside a letter-size doc-page (0.7in margins); on the web
   that becomes a centered white sheet on the ghost background. */

.sheet {
  max-width: 816px; /* 8.5in at 96dpi, like the design's doc-page */
  margin: 36px auto 72px;
  background: #fff;
  border-radius: 6px;
  box-shadow:
    0 1px 3px rgba(23, 23, 23, 0.1),
    0 24px 60px rgba(23, 23, 23, 0.12);
  padding: 67px; /* 0.7in */
  font-size: 13.5px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .sheet {
    margin: 0 0 48px;
    border-radius: 0;
    padding: 28px 20px;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sheet {
    margin: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ── Masthead + cover ─────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.masthead img {
  height: 30px;
}
.masthead .tag {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.cover {
  background: var(--night);
  border-radius: 22px;
  padding: 40px 40px 34px;
  color: var(--ghost);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.cover .mark {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 260px;
  height: 260px;
  opacity: 0.14;
}
.cover .mark img {
  width: 100%;
  height: 100%;
}
.cover .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 14px;
  position: relative;
}
.cover h1 {
  font-family: var(--font-display), var(--font-ui);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.05;
  margin: 0 0 12px;
  position: relative;
  max-width: 560px;
}
.cover .sub {
  font-size: 15px;
  color: var(--ghost-72);
  margin: 0;
  max-width: 520px;
  position: relative;
}

/* ── Stat tiles ───────────────────────────────────────────────────────── */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}
@media (max-width: 700px) {
  .stat-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-tile {
  background: rgba(240, 239, 246, 0.7);
  border-radius: 16px;
  padding: 16px 18px;
}
.stat-tile.coral {
  background: #fff1ee;
}
.stat-tile.honey {
  background: var(--honey-tile);
}
.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-tile .cap {
  font-size: 11px;
  color: var(--charcoal);
  margin-top: 5px;
}

/* ── Exec summary + callouts ──────────────────────────────────────────── */
.exec {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-left: 5px solid var(--coral);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 34px;
}
.exec .k {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tomato);
}
.exec p {
  margin: 0 0 10px;
}
.exec p:last-child {
  margin-bottom: 0;
}
.callout {
  margin: 0 0 30px;
  padding: 14px 18px;
  background: rgba(240, 239, 246, 0.6);
  border-radius: 14px;
}

/* ── Section headings ─────────────────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.sec-num {
  position: relative;
  width: 34px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-num svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--coral);
}
.sec-num span {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.sec-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.doc-table.dense {
  font-size: 12px;
}
.doc-table thead tr {
  background: var(--ink);
  color: var(--ghost);
  text-align: left;
}
.doc-table th {
  padding: 9px 12px;
  font-weight: 700;
}
.doc-table th:first-child {
  border-radius: 10px 0 0 10px;
}
.doc-table th:last-child {
  border-radius: 0 10px 10px 0;
}
.doc-table td {
  padding: 9px 12px;
}
.doc-table tbody tr {
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}
.doc-table tbody tr:last-child {
  border-bottom: none;
}
.doc-table tbody tr:nth-child(even) {
  background: rgba(240, 239, 246, 0.5);
}
.doc-table td.b {
  font-weight: 700;
}
.doc-table td.dim {
  color: var(--charcoal);
}

/* ── Mini charts ──────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.mini-card {
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 16px;
  padding: 18px;
}
.mini-card .t {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}
.mini-card .s {
  font-size: 11px;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  height: 120px;
  padding: 0 8px;
}
.mini-bars .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.mini-bars .v {
  font-weight: 700;
  font-size: 13px;
}
.mini-bars .bar {
  width: 100%;
  border-radius: 10px 10px 3px 3px;
  background: rgba(23, 23, 23, 0.15);
}
.mini-bars .bar.coral {
  background: var(--coral);
}
.mini-bars .y {
  font-size: 11px;
  color: var(--charcoal);
}
.leave-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.leave-row .heads {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.leave-row .heads span:last-child {
  font-weight: 700;
}
.leave-row .track {
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
}
.leave-row .track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

/* ── Rural tiles + lists ──────────────────────────────────────────────── */
.rural-tile {
  border-radius: 16px;
  padding: 20px;
}
.rural-tile.coral {
  background: #fff1ee;
}
.rural-tile.honey {
  background: var(--honey-tile);
}
.rural-tile .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.rural-tile .cap {
  font-size: 12px;
  color: var(--charcoal);
  margin-top: 4px;
}
.doc-list {
  margin: 0 0 30px;
  padding-left: 20px;
}
.doc-list li {
  margin-bottom: 6px;
}
.doc-list li:last-child {
  margin-bottom: 0;
}

/* ── Market sizing ────────────────────────────────────────────────────── */
.gmv-banner {
  background: var(--night);
  border-radius: 18px;
  padding: 24px 26px;
  color: var(--ghost);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 28px;
}
@media (max-width: 700px) {
  .gmv-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.gmv-banner .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.gmv-banner .cap {
  font-size: 11.5px;
  color: rgba(247, 246, 251, 0.6);
  margin-top: 4px;
  max-width: 150px;
}
.gmv-banner .rule {
  width: 1px;
  align-self: stretch;
  background: rgba(247, 246, 251, 0.15);
}
.gmv-banner .body {
  font-size: 13px;
  color: var(--ghost-85);
}
.gmv-banner .body strong {
  color: var(--ghost);
}
.frame-card {
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
}
.frame-card .t {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.frame-card .d {
  font-size: 12.5px;
  color: var(--charcoal);
}

/* ── Moats ────────────────────────────────────────────────────────────── */
.moat-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}
.moat-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
}
.moat-card .rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--tomato);
  width: 24px;
  flex: none;
  line-height: 1.1;
}
.moat-card .d {
  color: var(--charcoal);
}

/* ── Options + sequence ───────────────────────────────────────────────── */
.option-card {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.option-card .verdict {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.option-card .verdict.rejected {
  color: var(--error);
}
.option-card .verdict.warn {
  color: #e08a17;
}
.option-card .t {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.option-card .d {
  font-size: 12.5px;
  color: var(--charcoal);
}
.option-pick {
  border: 1.5px solid var(--coral);
  background: #fff1ee;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.option-pick .verdict {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 6px;
}
.option-pick .t {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.option-pick .d {
  font-size: 13px;
  color: var(--charcoal);
}
.seq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 700px) {
  .seq-grid {
    grid-template-columns: 1fr;
  }
}
.seq-card {
  background: rgba(240, 239, 246, 0.7);
  border-radius: 16px;
  padding: 18px;
}
.seq-card.coral {
  background: #fff1ee;
}
.seq-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.seq-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.15);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.seq-num.coral {
  background: var(--coral);
}
.seq-num.honey {
  background: var(--honey);
}
.seq-when {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.seq-card .t {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.seq-card .d {
  font-size: 12px;
  color: var(--charcoal);
}

/* ── Sources ──────────────────────────────────────────────────────────── */
.sources-block {
  border-top: 2px solid rgba(23, 23, 23, 0.12);
  padding-top: 14px;
}
.sources-block .k {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.sources-block p {
  font-size: 11px;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.7;
}
