.comp-report-page {
  padding-top: 96px;
  overflow-x: hidden;
}

.comp-report-page .market-section {
  padding-top: 92px;
}

.context-grid,
.active-market-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.context-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.context-card,
.active-market-grid article,
.chart-panel,
.more-info-section {
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 22px 58px rgba(31, 23, 17, 0.08);
}

.context-card,
.active-market-grid article {
  padding: 24px;
}

.context-card span,
.active-market-grid span {
  display: block;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.context-card strong,
.active-market-grid strong {
  display: block;
  margin-top: 12px;
  color: #bd8440;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.context-card-subject {
  border-left: 6px solid #78846d;
  background: linear-gradient(180deg, rgba(237, 242, 231, 0.72), rgba(255, 250, 244, 0.9));
}

.context-card-sold {
  border-left: 6px solid #bd8440;
  background: linear-gradient(180deg, rgba(242, 223, 189, 0.52), rgba(255, 250, 244, 0.86));
}

.context-card-subject strong,
.active-market-grid article:first-child strong {
  color: #78846d;
}

.context-card-sold strong {
  color: #bd8440;
}

.context-card p,
.active-market-grid p,
.chart-copy p,
.more-info-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.55;
}

.chart-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: center;
  margin-top: 22px;
  padding: 30px;
}

.chart-copy h3,
.more-info-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 600;
  line-height: 0.98;
}

.market-line-chart {
  width: 100%;
  min-height: 240px;
}

.market-line-chart line {
  stroke: rgba(49, 37, 26, 0.18);
  stroke-width: 2;
}

.market-line-chart polyline {
  stroke: #78846d;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-line-chart circle {
  fill: #fffaf4;
  stroke: #78846d;
  stroke-width: 4;
}

.market-line-chart text {
  fill: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
}

.active-ladder-panel {
  grid-template-columns: 0.82fr 1.18fr;
}

.active-price-ladder {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ladder-row {
  display: grid;
  grid-template-columns: minmax(126px, 0.78fr) minmax(120px, 1fr) minmax(88px, auto);
  gap: 10px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(49, 37, 26, 0.1);
}

.ladder-row span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.ladder-row strong {
  color: #bd8440;
  font-size: 0.98rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.ladder-row em {
  grid-column: 1 / -1;
  margin-top: -5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.ladder-row.is-subject {
  padding: 12px 12px;
  border: 1px solid rgba(120, 132, 109, 0.34);
  background: rgba(237, 242, 231, 0.62);
}

.ladder-row.is-subject strong,
.ladder-row.is-subject span {
  color: #78846d;
}

.ladder-bar {
  position: relative;
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(189, 132, 64, 0.14);
}

.ladder-bar::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #bd8440;
}

.ladder-row.is-subject .ladder-bar {
  background: rgba(120, 132, 109, 0.18);
}

.ladder-row.is-subject .ladder-bar::before {
  background: #78846d;
}

.active-market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.active-market-grid article:first-child {
  border-left: 6px solid #78846d;
  background: linear-gradient(180deg, rgba(237, 242, 231, 0.72), rgba(255, 250, 244, 0.9));
}

.active-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.active-signal-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid #bd8440;
  background: linear-gradient(180deg, rgba(242, 223, 189, 0.44), rgba(255, 250, 244, 0.86));
  box-shadow: 0 22px 58px rgba(31, 23, 17, 0.08);
}

.active-signal-card span,
.active-rank {
  display: block;
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.active-signal-card strong {
  display: block;
  margin-top: 12px;
  color: #bd8440;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 2.25vw, 2.3rem);
  font-weight: 700;
  line-height: 0.98;
}

.active-signal-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.active-signal-subject {
  border-left-color: #78846d;
  background: linear-gradient(180deg, rgba(237, 242, 231, 0.72), rgba(255, 250, 244, 0.9));
}

.active-signal-subject strong {
  color: #78846d;
}

.active-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.active-thumb-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(189, 132, 64, 0.62);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 18px 42px rgba(31, 23, 17, 0.07);
}

.active-thumb-card img,
.active-thumb-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.active-thumb-photo-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(49, 37, 26, 0.1), rgba(189, 132, 64, 0.22)),
    linear-gradient(160deg, #d8cdbf, #f4eadf 52%, #c8b69f);
}

.active-thumb-photo-placeholder span {
  padding: 7px 9px;
  background: rgba(22, 19, 15, 0.74);
  color: #fff7ef;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.active-thumb-copy {
  min-width: 0;
  padding: 16px 16px 15px;
}

.active-thumb-copy strong {
  display: block;
  margin-top: 7px;
  color: #bd8440;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.active-thumb-copy h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.active-thumb-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.active-thumb-copy em {
  display: block;
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.active-thumb-lower {
  border-left-color: #bd8440;
  background: linear-gradient(180deg, rgba(242, 223, 189, 0.34), rgba(255, 250, 244, 0.88));
}

.active-thumb-subject {
  border-color: rgba(120, 132, 109, 0.46);
  border-left-color: #78846d;
  background: linear-gradient(180deg, rgba(237, 242, 231, 0.72), rgba(255, 250, 244, 0.9));
}

.active-thumb-subject .active-rank,
.active-thumb-subject strong,
.active-thumb-subject em {
  color: #78846d;
}

.more-info-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
}

.source-links-section {
  padding-top: 0;
}

.source-links-section a {
  color: var(--accent-deep);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1080px) {
  .comp-report-page {
    padding-top: 82px;
  }

  .context-grid,
  .active-market-grid,
  .active-signal-grid,
  .chart-panel,
  .active-ladder-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .comp-report-page .site-header {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    padding-right: 12px;
    padding-left: 12px;
  }

  .comp-report-page .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .comp-report-page .brand-mark {
    flex: 0 0 42px;
  }

  .comp-report-page .brand-copy {
    max-width: 136px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .comp-report-page .header-contact {
    flex: 0 0 auto;
    gap: 8px;
  }

  .comp-report-page .header-cta {
    max-width: 96px;
    font-size: 0.78rem;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  .comp-report-page .header-avatar {
    width: 48px;
    height: 48px;
  }

  .context-grid,
  .active-market-grid,
  .active-signal-grid,
  .active-thumb-grid,
  .chart-panel,
  .active-ladder-panel {
    grid-template-columns: 1fr;
  }

  .active-thumb-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .active-thumb-card img,
  .active-thumb-photo-placeholder {
    min-height: 156px;
  }

  .ladder-row {
    grid-template-columns: 1fr minmax(92px, auto);
  }

  .ladder-row .ladder-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ladder-row strong {
    text-align: right;
  }

  .more-info-section {
    display: block;
    padding: 24px;
  }

  .more-info-section .button {
    width: 100%;
    margin-top: 24px;
  }
}
