/* Styling for the static, crawlable per-ticker pages under
   public/companies/<ticker>.html (see scripts/generate_company_pages.py).
   Deliberately minimal -- these pages exist to be crawled and to hand off
   to company.html?ticker=X's full interactive view, not to replicate it. */

.company-page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.company-page-title {
  margin: 0 0 4px 0;
  font-size: 1.6rem;
  line-height: 1.25;
}

/* These pages make the company name the <h1>; the shared header's site
   name is a <span> here, styled to match base.css's .header-content h1. */
.header-content .site-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
}

.company-page-container h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px 0;
}

.company-page-cta {
  margin: 0 0 8px 0;
  color: var(--color-text-muted);
}

.company-page-cta a {
  font-weight: 600;
  margin-right: 6px;
}

.company-page-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.company-page-fin {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.company-page-fin caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.company-page-fin th,
.company-page-fin td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
  white-space: nowrap;
}

.company-page-fin th[scope="row"] {
  text-align: left;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: var(--color-surface);
}

.company-page-fin thead th {
  font-weight: 700;
  color: var(--color-text-muted);
}

.company-page-fin tbody tr:last-child th,
.company-page-fin tbody tr:last-child td {
  border-bottom: none;
}

.company-page-faq h3 {
  font-size: 1rem;
  margin: 16px 0 4px 0;
}

.company-page-faq p {
  margin: 0;
}

.company-page-industry {
  color: var(--color-text-muted);
  margin: 0 0 16px 0;
}

.company-page-summary {
  margin: 0 0 20px 0;
}

.company-page-stats {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.company-page-stats th,
.company-page-stats td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.company-page-stats tr:last-child th,
.company-page-stats tr:last-child td {
  border-bottom: none;
}

.company-page-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.similar-companies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.similar-company-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 110px;
  text-decoration: none;
  color: inherit;
}

.similar-company-ticker {
  font-weight: 700;
  font-size: 0.85rem;
}

.similar-company-name {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Breadcrumb, industry hub pages and the A-Z directory
   (scripts/generate_company_pages.py: write_hub_pages). */
.company-page-breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
}

.similar-companies-all {
  margin: 12px 0 0 0;
  font-weight: 600;
}

.industry-table td:first-child {
  color: var(--color-text-muted);
}

.industry-table tbody th[scope="row"] {
  white-space: normal;
  min-width: 180px;
}

.industry-fy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.industry-index,
.industry-related,
.directory-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  columns: 3 240px;
  column-gap: 24px;
}

.industry-index li,
.industry-related li,
.directory-list li {
  break-inside: avoid;
  padding: 3px 0;
  color: var(--color-text-muted);
}

.industry-count {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.directory-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 8px 0 16px 0;
}

.directory-ticker {
  font-size: 0.75rem;
  margin-left: 4px;
}
