.sample-report-page {
  background: var(--ink);
}

.sample-report {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 84px;
  color: var(--text);
}

.sample-report-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.sample-report-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sample-report-logo img {
  width: 34px;
  height: 34px;
}

.sample-report-logo span {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .02em;
}

.sample-report-logo b {
  color: var(--accent-bright);
  font-weight: 400;
}

.report-kicker,
.report-section-title,
.report-metric-label,
.report-small-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.report-kicker {
  margin: 26px 0 0;
  color: var(--accent-bright);
}

.sample-report h1 {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.report-subtitle {
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.report-meta {
  min-width: 250px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
}

.report-meta p {
  margin: 0;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.report-print {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: 600 12px var(--font-sans);
  padding: 8px 12px;
}

.report-print:hover {
  border-color: var(--accent);
  color: var(--text);
}

.sample-notice {
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.report-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.report-version {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}

.report-section-title {
  margin: 0;
  color: var(--text-tertiary);
}

.mention-layout {
  display: flex;
  align-items: center;
  gap: 46px;
  margin-top: 22px;
}

.mention-pie {
  width: 142px;
  height: 142px;
  flex: 0 0 142px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: conic-gradient(
    #a3c93a 0 23.333%,
    #6fc3ee 23.333% 63.333%,
    #c8102e 63.333% 83.333%,
    #8b93a1 83.333% 100%
  );
}

.mention-legend {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mention-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto 44px;
  align-items: center;
  gap: 12px;
  margin: 11px 0;
  font-size: 14px;
}

.mention-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.mention-legend .legend-name {
  color: var(--text-secondary);
}

.mention-legend code,
.report-rank code,
.report-table .mono,
.source-rank code {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mention-legend .pct {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.report-note {
  margin: 16px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.report-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--paper);
}

.report-metric-label {
  margin: 0;
  color: var(--text-tertiary);
  letter-spacing: .08em;
}

.report-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 31px;
  line-height: 1;
}

.report-metric p:last-child {
  margin: 7px 0 0;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}

.report-rank,
.source-rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.report-rank li {
  display: grid;
  grid-template-columns: 28px minmax(150px, 220px) 1fr 28px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.rank-index {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 12px;
}

.rank-name {
  min-width: 0;
  color: var(--text-secondary);
}

.rank-name.is-brand {
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
}

.rank-you {
  margin-left: 6px;
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text-tertiary);
}

.bar-fill.is-brand {
  background: var(--accent);
}

.report-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table th {
  padding: 10px 12px 10px 0;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.report-table td {
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.intent-pill,
.ownership-pill,
.provenance-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.intent-pill.above { color: #85b93d; background: rgba(95,143,31,.12); }
.intent-pill.inline { color: #8b93a1; background: rgba(107,114,128,.12); }
.intent-pill.below { color: var(--accent-bright); background: rgba(200,16,46,.12); }

.report-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.arrow-list,
.evidence-list,
.source-grid,
.query-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.arrow-list li {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.arrow-list li::before {
  content: "→";
  flex: none;
  color: var(--accent-bright);
}

.question-row {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.question-row:first-of-type {
  margin-top: 10px;
}

.question-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.question-row-head strong {
  flex: none;
  color: var(--text);
  font-weight: 600;
}

.question-row .bar-track {
  height: 6px;
  margin-top: 10px;
}

.question-row .bar-fill {
  background: var(--accent);
}

.query-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.query-list li,
.source-grid li {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.query-list p,
.source-grid p {
  margin: 0;
}

.query-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.query-meta,
.query-rationale {
  margin-top: 6px !important;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}

.query-rationale {
  color: var(--text-secondary);
}

.provenance-pill {
  margin-top: 7px;
  border-color: transparent;
  padding: 0;
  color: var(--accent-bright);
  font-size: 10px;
}

.evidence-list li + li {
  margin-top: 20px;
}

.evidence-list h3 {
  margin: 0;
  color: var(--text);
  font: 600 14px var(--font-sans);
  letter-spacing: 0;
}

.evidence-list p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.evidence-list .muted {
  color: var(--text-tertiary);
  font-size: 12px;
}

.accuracy-type {
  color: var(--accent-bright) !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.accuracy-quote {
  margin-top: 10px !important;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--text) !important;
}

.report-small-label {
  margin-top: 12px !important;
  color: var(--text-tertiary) !important;
  font-size: 9px !important;
  letter-spacing: .08em;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.ownership-pill {
  margin-left: 6px;
  border-color: var(--border);
  color: var(--text-tertiary);
  font-size: 9px;
}

.source-detail,
.source-url {
  margin-top: 6px !important;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}

.source-url {
  overflow-wrap: anywhere;
}

.source-rank li {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr 30px;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.response-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.response-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.response-card summary {
  cursor: pointer;
  list-style: none;
}

.response-card summary::-webkit-details-marker {
  display: none;
}

.response-card summary p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.response-card summary small {
  display: block;
  margin-top: 5px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.response-card summary small::after {
  content: "Apri";
  margin-left: 8px;
  color: var(--accent-bright);
}

.response-card[open] summary small::after {
  content: "Chiudi";
}

.response-card blockquote {
  margin: 14px 0 0;
  padding-left: 13px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.response-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.response-details dt {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.response-details dd {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.response-details a,
.source-url a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.method-list,
.disclaimer-list {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.method-list {
  padding: 0;
  list-style: none;
}

.disclaimer-list {
  padding-left: 18px;
}

.report-reading-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

.sample-report-signoff {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 11px;
}

.sample-report-signoff a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-style: dotted;
}

@media (max-width: 760px) {
  .sample-report {
    width: min(100% - 32px, 960px);
    padding-top: 42px;
  }

  .sample-report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-meta {
    min-width: 0;
    text-align: left;
  }

  .report-actions {
    justify-content: flex-start;
  }

  .report-metrics,
  .report-two,
  .query-list,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .mention-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .report-rank li {
    grid-template-columns: 24px minmax(120px, 1fr) 34px;
  }

  .report-rank .bar-track {
    grid-column: 2 / -1;
  }

  .source-rank li {
    grid-template-columns: minmax(150px, 1fr) 28px;
  }

  .source-rank .bar-track {
    grid-column: 1 / -1;
  }

  .response-details,
  .sample-report-signoff {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media print {
  .nav,
  footer#footer,
  .report-actions,
  .cookie-strip {
    display: none !important;
  }

  .sample-report {
    width: 100%;
    padding: 0;
  }

  .report-card,
  .report-metric,
  .query-list li,
  .source-grid li,
  .response-card {
    break-inside: avoid;
  }
}
