/* Specialty landing pages — extends rubrica.css */

.specialty-page {
  background: var(--parchment);
  min-height: calc(100vh - 80px);
}

.specialty-hero {
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 80px) clamp(48px, 6vw, 80px);
  max-width: 960px;
  margin: 0 auto;
}

.specialty-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rubric);
  margin: 0 0 24px;
}

.specialty-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px;
}

.specialty-hero h1 em {
  font-style: italic;
  color: var(--rubric);
  font-weight: 300;
}

.specialty-hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--graphite);
  margin: 0 0 32px;
  max-width: 720px;
}

.specialty-hero .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.specialty-hero .freemium-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  margin: clamp(32px, 4vw, 48px) 0;
}

.stat-card {
  padding: clamp(24px, 3vw, 40px);
  text-align: left;
  border-right: 1px solid var(--rule);
}

.stat-card:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Audience / blurb section */
.audience-blurb {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 80px);
  font-size: 18px;
  line-height: 1.7;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule);
}

.audience-blurb p {
  margin: 0;
}

/* Section utilities */
.specialty-page section {
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

.specialty-page section:not(.specialty-hero):not(.stats-strip):not(.audience-blurb):not(.cta-band) {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}

.specialty-page h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}

.specialty-page .section-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0 0 32px;
  max-width: 760px;
}

/* Procedure table */
.proc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 8px;
}

.proc-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}

.proc-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bone);
  color: var(--ink-soft);
  vertical-align: middle;
}

.proc-table code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--rubric);
}

.proc-table .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.proc-table-foot,
.payor-grid-foot {
  margin-top: 24px;
  font-size: 14px;
  color: var(--slate);
}

/* Payor grid */
.payor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.payor-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
}

.payor-chip-name {
  color: var(--ink-soft);
  font-weight: 500;
}

.payor-chip-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
}

/* Q&A accordions */
.qa-item {
  border-bottom: 1px solid var(--bone);
  padding: 20px 0;
}

.qa-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::before {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  color: var(--rubric);
  flex-shrink: 0;
  transition: transform 0.18s ease;
  width: 20px;
  display: inline-block;
}

.qa-item[open] summary::before {
  content: '−';
}

.qa-item summary h3 {
  display: inline;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.qa-item p {
  margin: 14px 0 0 36px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--graphite);
}

/* Methodology strip */
.methodology-strip p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--graphite);
  margin: 0 0 18px;
  max-width: 820px;
}

.methodology-strip code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--rubric);
}

.methodology-strip a {
  color: var(--rubric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA band */
.cta-band {
  background: var(--midnight);
  color: var(--cream);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 80px);
  text-align: center;
  margin-top: 0;
}

.cta-band h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 16px;
}

.cta-band p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.78);
  margin: 0 auto 32px;
  max-width: 580px;
}

.cta-band .btn.lg {
  font-size: 16px;
  padding: 16px 28px;
}

/* Related */
.related-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.related-section h2 {
  margin-bottom: 24px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--bone);
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, padding 0.15s ease;
}

.related-card:last-child {
  border-bottom: 1px solid var(--bone);
}

.related-card:hover {
  color: var(--rubric);
  padding-left: 8px;
}

.related-arrow {
  color: var(--rubric);
  font-family: var(--mono);
  flex-shrink: 0;
  width: 20px;
  display: inline-block;
}

/* Footer columns (mirrors topbar nav for SEO) */
.footer-v2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
  margin-bottom: 24px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.5);
  margin: 0 0 14px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.85);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--cream);
}

/* Mobile */
@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .stat-card:nth-child(2n) {
    border-right: none;
  }
}


/* CPT codes that link to per-CPT pages: keep the code-pill look, add subtle hover */
.proc-table a:has(code) {
  text-decoration: none;
  display: inline-block;
}
.proc-table a:hover code {
  background: var(--rubric);
  color: var(--cream);
}
