/* ============================================
   REPORT — Institutional research presentation.
   Typographic authority, information density,
   print-first design.
   ============================================ */

/* ── Page ── */
.report-page {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.report {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Back link ── */
.report__back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-40);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 200ms;
  font-family: var(--font-display);
}

.report__back:hover {
  color: var(--ink);
}

/* ── Top bar: brand + actions ── */
.report__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.report__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.report__actions {
  display: flex;
  gap: 0.5rem;
}

.report__btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-40);
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  transition: 120ms ease;
  transition-property: color, border-color;
}

.report__btn:hover {
  color: var(--ink);
  border-color: var(--ink-40);
}

/* ── Header ── */
.report__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.report__identity {
  margin-bottom: 0.5rem;
}

.report__ticker {

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  display: block;
  margin-bottom: 0.25rem;
}

.report__company {

  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.report__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: baseline;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-60);
  margin-top: 0.75rem;
}

.report__meta > span:not(:last-child)::after {
  content: "\b7";
  margin: 0 0.5rem;
  color: var(--ink-20);
}

.report__price {
  font-weight: 600;
  color: var(--ink);
}

/* ── Brief (the thesis) ── */
.report__brief {
  margin-bottom: 2rem;
  font-size: 17px;
  font-weight: 420;
  line-height: 1.65;
  color: var(--ink);
}

.report__brief p {
  margin: 0 0 0.75rem;
}

.report__brief p:last-child {
  margin-bottom: 0;
}

/* ── Data strip (scenarios + catalyst) ── */
.report__data-strip {
  margin-bottom: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ── Scenarios ── */
.report__scenarios {
  font-variant-numeric: tabular-nums;
}

.report__scenarios-header {

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.75rem;
}

.report__scenario {
  display: grid;
  grid-template-columns: 64px 56px 48px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
  padding: 0.2rem 0;
}

.report__scenario-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report__scenario--up .report__scenario-label { color: var(--color-positive); }
.report__scenario--down .report__scenario-label { color: var(--color-negative); }
.report__scenario--base .report__scenario-label { color: var(--ink-40); }

.report__scenario-target {
  font-weight: 600;
  color: var(--ink);
}

.report__scenario-prob {
  color: var(--ink-60);
  font-weight: 500;
}

.report__scenario-desc {
  color: var(--ink-60);
}

/* ── Next catalyst ── */
.report__next-event {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.report__scenarios + .report__next-event {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.report__next-event-label {

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: block;
  margin-bottom: 0.25rem;
}

/* ── Sections ── */
.report__sections {
  border-top: 2px solid var(--ink);
}

.report-section {
  border-bottom: 1px solid var(--border-light);
}

/* Heading row */
.report-section__heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: opacity 120ms ease;
}

@media (any-hover: hover) {
  .report-section__heading:hover {
    opacity: 0.7;
  }
}

/* Section number */
.report-section__number {

  font-size: 14px;
  font-weight: 600;
  color: var(--ink-20);
  min-width: 1.5rem;
  flex-shrink: 0;
}

.report-section__title-group {
  flex: 1;
  min-width: 0;
}

.report-section__title {

  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.report-section__summary {
  font-size: 13px;
  color: var(--ink-40);
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

.report-section--open .report-section__summary {
  display: none;
}

/* Caret */
.report-section__caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-20);
  transition: rotate 150ms ease-out;
  rotate: 0deg;
  margin-top: 0.2rem;
}

.report-section--open .report-section__caret {
  rotate: 90deg;
}

/* ── Section body ── */
.report-section__body {
  padding: 0 0 1.5rem 2.25rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.report-section__body p {
  margin: 0 0 0.75rem;
}

.report-section__body p:last-child {
  margin-bottom: 0;
}

/* Sub-headings */
.report-body__sub {

  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
  line-height: 1.3;
}

.report-body__sub:first-child {
  margin-top: 0;
}

/* Numbered items */
.report-body__numbered {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

/* Bullet lists */
.report-body__list {
  list-style: none;
  padding-left: 1rem;
  margin: 0.25rem 0 0.75rem;
}

.report-body__list li {
  position: relative;
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 15px;
  line-height: 1.5;
}

.report-body__list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--ink-40);
}

/* Signal blocks (validate / break / watch) */
.report-body__signals {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--border-light);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.5;
}

.report-body__signals p {
  margin: 0.25rem 0;
}

.report-body__validates {
  color: var(--color-positive);
  font-weight: 600;
}

.report-body__breaks {
  color: var(--color-negative);
  font-weight: 600;
}

.report-body__watch {
  color: var(--ink-60);
  font-weight: 400;
}

/* ── Tables ── */
.report-body__table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.report-body__table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.report-body__table th {
  background: var(--surface);
  font-weight: 600;
  text-align: left;
  padding: 6px 10px;
  border-bottom: 2px solid var(--ink-20);
  white-space: nowrap;
}

.report-body__table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border-light);
}

.report-body__table tr:last-child td {
  border-bottom: none;
}

.report-body__table strong {
  font-weight: 600;
}

/* Inline bold */
.report-section__body strong {
  font-weight: 600;
}

/* ── Description ── */
.report__description {
  font-size: 15px;
  color: var(--ink-60);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* ── Badges ── */
.report__badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.report__badge {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  color: var(--ink-60);
  background: color-mix(in oklch, var(--ink) 4%, var(--paper));
}

/* ── Watch button active ── */
.report__btn--watching {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}

/* ── Filing alerts strip ── */
.report__alerts {
  border-left: 3px solid var(--ink-40);
  padding: 0.75rem 1rem;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.report__alert-row {
  display: flex;
  gap: 0.75rem;
  font-size: 14px;
  padding: 0.15rem 0;
}

.report__alert-type {
  font-weight: 600;
  color: var(--ink);
}

.report__alert-date {
  font-variant-numeric: tabular-nums;
  color: var(--ink-40);
}

.report__alert-desc {
  color: var(--ink-60);
}

/* ── Calendar ── */
.report__calendar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.report__calendar-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.5rem;
}

.report__calendar-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  font-size: 14px;
  color: var(--ink-60);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.report__calendar-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}

/* ── Appendix tabs ── */
.report__appendix {
  margin-top: 2.5rem;
}

.report__appendix-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
}

.report__appendix-tab {
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-40);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 200ms, border-color 200ms;
  font-family: inherit;
}

.report__appendix-tab:hover {
  color: var(--ink-60);
}

.report__appendix-tab--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.report__appendix-panel {
  display: none;
  padding-top: 1.5rem;
}

.report__appendix-panel--active {
  display: block;
}

/* ── Gate CTA ── */
.report__gate {
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border-radius: 8px;
  text-align: center;
}

.report__gate-inner {
  max-width: 400px;
  margin: 0 auto;
}

.report__gate-text {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.report__gate-sub {
  font-size: 15px;
  color: var(--ink-60);
  margin: 0 0 1.25rem;
}

.report__gate-btn {
  display: inline-block;
  padding: 0.65rem 2rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 200ms;
}

.report__gate-btn:hover {
  opacity: 0.85;
}

/* ── Citation links ── */
.report__citation-link {
  color: var(--ink-60);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  transition: color 200ms, text-decoration-color 200ms;
}

.report__citation-link:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-40);
}

/* ── Footer ── */
.report__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-40);
}

.report__attribution {

  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.report__sources {
  margin-bottom: 0.75rem;
}

.report__disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-20);
}

/* ============================================
   COMPANY STATUS BAR — Processing lifecycle
   ============================================ */
.company-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 12px;
}

.company-status:empty { display: none; }

.company-status__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.company-status__item {
  color: var(--ink-40);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 11px;
}

.company-status__item:not(:last-child)::after {
  content: "\b7";
  margin-left: 0.5rem;
  color: var(--ink-20);
}

.company-status__item--link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 120ms;
}

.company-status__item--link:hover { opacity: 0.7; }

.company-status__btn {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink-40);
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 120ms, border-color 120ms;
}

.company-status__btn:hover {
  color: var(--ink);
  border-color: var(--ink-40);
}

.company-status__btn--submit {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.company-status__btn--submit:hover {
  opacity: 0.85;
  color: var(--paper);
}

.company-status__btn--cancel {
  border-color: transparent;
  color: var(--ink-40);
}

.company-status__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.company-status__textarea {
  width: 100%;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  resize: vertical;
  outline: none;
  transition: border-color 150ms;
}

.company-status__textarea:focus {
  border-color: var(--border);
}

.company-status__form-actions {
  display: flex;
  gap: 0.5rem;
}

.company-status__requested {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink-40);
  white-space: nowrap;
}

/* ── Print ── */
@media print {
  .report-page {
    background: white;
  }

  .report {
    max-width: 100%;
    padding: 0;
    font-size: 11pt;
  }

  .report__topbar {
    display: none;
  }

  .report-section__body {
    display: block !important;
  }

  .report-section__body[hidden] {
    display: block !important;
  }

  .report-section__caret {
    display: none;
  }

  .report-section__summary {
    display: none;
  }

  .report-section__heading {
    cursor: default;
  }

  .report-section__heading:hover {
    opacity: 1;
  }

  .report__disclaimer {
    color: var(--ink-40);
  }
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .report {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .report {
    padding: 1.25rem 1rem;
    font-size: 14px;
  }

  .report__topbar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .report__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .report__company {
    font-size: 1.5rem;
  }

  .report__meta {
    font-size: 13px;
  }

  .report__brief {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .report__data-strip {
    margin-bottom: 1.5rem;
  }

  .report__scenario {
    grid-template-columns: 52px 48px 40px 1fr;
    gap: 0.5rem;
    font-size: 13px;
  }

  .report-section__heading {
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .report-section__title {
    font-size: 1.1rem;
  }

  .report-section__body {
    padding-left: 1.75rem;
    font-size: 14px;
  }

  .report-body__sub {
    font-size: 14px;
  }

  .report-body__signals {
    padding: 0.5rem 0.75rem;
    font-size: 12px;
  }

  .report__footer {
    margin-top: 2rem;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .company-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 400px) {
  .report {
    padding: 1rem 0.75rem;
  }

  .report__scenario {
    grid-template-columns: 44px 44px 36px 1fr;
    gap: 0.35rem;
    font-size: 12px;
  }

  .report__scenario-label {
    font-size: 11px;
  }
}
