.discovery {
  font-family: system-ui, sans-serif;
  color: #141414;
  background: #fff;
  line-height: 1.65;
  margin: auto;
  max-width: 1100px;
  padding: 24px;
  overflow-wrap: anywhere;
}
.discovery header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 3px solid #141414;
  padding-bottom: 22px;
}
.discovery a {
  color: #2449db;
  text-underline-offset: 4px;
}
.discovery .wordmark {
  font-weight: 950;
  font-size: 26px;
  letter-spacing: -1px;
  color: #141414;
}
.discovery nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.discovery main {
  padding: 38px 0;
  max-width: 900px;
}
.discovery h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 20px 0 36px;
}
.discovery h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}
.discovery h3,
.discovery dt {
  font-weight: 750;
  text-transform: capitalize;
}
.discovery .eyebrow {
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.discovery section,
.discovery article {
  border-top: 2px solid #141414;
  margin-top: 30px;
  padding-top: 20px;
}
.discovery dl {
  margin: 12px 0;
}
.discovery dt {
  margin-top: 14px;
}
.discovery dd {
  margin: 3px 0 14px;
  padding-left: 16px;
  border-left: 3px solid #e2e5f4;
  white-space: pre-wrap;
}
.discovery li {
  margin: 14px 0;
}
.discovery ul {
  padding-left: 24px;
}
.discovery p {
  white-space: pre-wrap;
}
.discovery details {
  margin-top: 20px;
  border: 2px solid #141414;
  padding: 18px;
  white-space: pre-wrap;
}
.discovery summary {
  font-weight: 750;
  cursor: pointer;
  text-transform: capitalize;
}
.discovery .notice {
  background: #ffe36b;
  padding: 22px;
  border: 2px solid #141414;
  box-shadow: 5px 5px 0 #141414;
}
.discovery .next-step-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 14px 24px;
  max-width: 100%;
  background: #355bea;
  color: #fff;
  border: 2px solid #141414;
  box-shadow: 4px 4px 0 #141414;
  font-weight: 750;
  font-size: 18px;
  text-decoration: none;
  line-height: 1.4;
}
.discovery .next-step-button:hover {
  background: #2449db;
}
.discovery .next-step-button:focus-visible {
  outline: 3px solid #141414;
  outline-offset: 6px;
}
.discovery .next-step-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #141414;
}
.discovery footer {
  border-top: 3px solid #141414;
  padding: 24px 0;
}
@media print {
  .discovery nav,
  .discovery header,
  .discovery footer {
    display: none;
  }
  .discovery {
    max-width: none;
    padding: 0;
  }
  .discovery details {
    break-inside: avoid;
  }
}

/* Structured report: compact panels and a data-driven visual encoding card. */
.discovery.analysis-document { max-width: 1280px; font-family: 'DM Sans', system-ui, sans-serif; }
.analysis-document main { max-width: none; }
.analysis-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.analysis-copy { min-width: 0; }
.discovery .assessment-panel { margin-top: 24px; padding-top: 18px; }
.discovery .assessment-panel:first-child { margin-top: 0; }
.assessment-panel h2 { display: flex; align-items: center; gap: 12px; font-family: 'Space Grotesk', sans-serif; }
.panel-index { background: #355bea; color: white; padding: 5px 9px; font-size: 15px; }
.report-summary { font-size: 19px; line-height: 1.6; }
.encoding-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.encoding-tag { background: #eef1ff; border: 1px solid #b6c1f6; padding: 8px 12px; max-width: 100%; box-sizing: border-box; }
.encoding-tag > span, .encoding-card span:not(.level-scale span) { display: block; font-size: 10px; letter-spacing: .08em; font-weight: 750; }
.encoding-tag > div { font-weight: 650; font-size: 14px; }
.encoding-tag:nth-child(even) { background: #fff4b9; border-color: #d1b940; }
.discovery .report-numbered-list { padding-left: 24px; margin: 10px 0; white-space: normal; }
.discovery .report-numbered-list li { padding-left: 4px; margin: 8px 0; font-weight: 400; line-height: 1.6; }
.panel-takeaway { margin: 12px 0; }
.discovery .analysis-layout details { padding: 10px 12px; font-size: 14px; white-space: normal; border: 1px solid #a5acb8; background: #fff; }
.discovery .analysis-layout details p { white-space: pre-wrap; }
.text-remainder[hidden], .text-toggle[hidden] { display: none; }
.discovery .text-toggle { display: inline; background: none; border: 0; padding: 0; margin-left: .25em; color: #2449db; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.discovery .text-toggle:focus-visible { outline: 2px solid #2449db; outline-offset: 3px; }
@media print { .text-remainder[hidden] { display: inline; } .text-toggle { display: none !important; } }
.encoding-unknown, .encoding-caption { color: #535966; font-size: 12px; }
.encoding-card { position: sticky; top: 20px; border: 2px solid #17191e; box-shadow: 3px 3px #17191e; background: white; }
.encoding-top { background: #355bea; color: white; padding: 12px 16px; }
.discovery .encoding-top h2 { font: 700 22px/1.2 'Space Grotesk', sans-serif; margin: 0; }
.encoding-content { padding: 14px; }
.glance-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.glance-stats > div > span { display: block; font-size: 10px; font-weight: 750; line-height: 1.4; }
.glance-value { display: block; font: 700 36px/1.3 'Space Grotesk', sans-serif; }
.glance-value small { font-size: 16px; color: #535966; }
.glance-confidence { display: block; font-size: 19px; line-height: 1.3; margin-top: 6px; }
.glance-missing { display: block; font-size: 14px; margin-top: 6px; }
.discovery .analysis-layout .glance-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.glance-tag { min-width: 0; max-width: 100%; background: #eef1ff; border: 1px solid #b6c1f6; padding: 6px 9px; box-sizing: border-box; }
.glance-tag:nth-child(even) { background: #fff4b9; border-color: #d1b940; }
.discovery .analysis-layout .glance-tag dt { font-size: 10px; line-height: 1.3; margin: 0 0 3px; }
.discovery .analysis-layout .glance-tag dd { font-size: 12px; font-weight: 650; line-height: 1.4; margin: 0; padding: 0; border: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.encoding-card .encoding-caption { font-size: 10px; line-height: 1.4; margin: 12px 0 0; }

/* Lead with the summary; keep evidence readable without visual crowding. */
.discovery .report-overview { margin: 0 0 32px; padding: 20px 24px; border: 0; border-left: 5px solid #355bea; background: #f2f4ff; font-size: 18px; }
.report-overview .eyebrow { font-size: 12px; margin: 0 0 8px; }
.discovery .assessment-panel h2 { margin: 0 0 16px; }
.discovery .report-highlights { padding-left: 22px; }
.discovery .report-highlights li { margin: 8px 0; }
.discovery .watch-for-panel { padding: 22px; border: 2px solid #17191e; border-left: 6px solid #355bea; background: #fff6cd; }
.discovery .watch-for-panel > .report-numbered-list { margin: 0; padding-left: 28px; }
.discovery .watch-for-panel > .report-numbered-list > li { padding: 10px 0 10px 8px; margin: 0; border-bottom: 1px solid #d9cf9e; }
.discovery .watch-for-panel > .report-numbered-list > li:last-child { border-bottom: 0; }
.discovery .watch-for-panel > .report-numbered-list > li::marker { color: #2449db; font-weight: 800; font-size: 1.15em; }
.discovery details > summary { line-height: 1.5; }
.discovery details[open] > summary { margin-bottom: 16px; }
.discovery .analysis-layout dl { display: grid; gap: 6px; }
.discovery .analysis-layout dt { margin: 12px 0 0; color: #424b60; font-size: 12px; }
.discovery .analysis-layout dd { margin: 0 0 10px; padding-left: 12px; line-height: 1.6; }
.discovery .report-prose { white-space: normal; }
.discovery .report-prose h3 { margin: 24px 0 10px; padding-top: 14px; border-top: 1px solid #d2d7e3; }
.discovery .report-prose p { margin: 10px 0; }
.discovery .report-prose li { margin: 8px 0; }
@media (max-width: 900px) {
 .analysis-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .encoding-card { position: static; max-height: none; grid-row: 1; width: 100%; box-sizing: border-box; }
}
@media print { .analysis-layout { display: block; } .encoding-card { position: static; max-height: none; overflow: visible; box-shadow: none; break-inside: avoid; } }
