/* Shared styles for the state sales-guideline pages (tx, ca, il, ma, ct; EN + ES). Page-specific overrides stay inline in each page. */
:root {
  --solrite-cyan: #00fff4;
  --solrite-teal: #009b8f;
  --solrite-dark: #002d2b;
  --solrite-mid: #004d49;
  --solrite-deep: #001a19;
  --light-teal: #e0faf8;
  --soft-white: #F4FFFE;
  --text-primary: #001e1c;
  --text-secondary: #2d5c59;
  --text-muted: #6aada8;
  --border: #c7eeeb;
  --success: #009b8f;
  --danger: #EF4444;
  --warning: #00d4c8;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Aileron', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--soft-white);
  overflow-x: hidden;
}
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--solrite-dark);
  border-bottom: 2px solid var(--solrite-cyan);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-text {
  font-size: 1.25rem;
  color: #fff;
}
.nav-logo-text span {
  color: var(--solrite-cyan);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #a8dbd8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--solrite-cyan);
}
.hero {
  position: relative;
  height: 380px;
  background: linear-gradient(135deg, var(--solrite-dark) 0%, var(--solrite-mid) 60%, #004d49 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--solrite-teal), var(--solrite-cyan), var(--solrite-teal));
}
.hero-sun {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,244,0.25) 0%, rgba(0,255,244,0.05) 60%, transparent 70%);
}
.hero-content {
  text-align: center;
  padding: 2rem;
}
.hero-eyebrow {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--solrite-cyan);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero h1 span {
  color: var(--solrite-cyan);
}
.hero-sub {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}
.page-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,45,43,0.06);
}
.toc-title {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.toc ul {
  list-style: none;
}
.toc li + li {
  margin-top: 0.35rem;
}
.toc a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.toc a:hover {
  color: var(--solrite-cyan);
  background: rgba(0,255,244,0.06);
  border-left-color: var(--solrite-teal);
}
.main-content {
  min-width: 0;
}
.section {
  margin-bottom: 3.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.section-header h2 {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--solrite-dark);
}
.section-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--solrite-cyan), var(--solrite-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-icon svg {
  color: #fff;
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details:hover {
  box-shadow: 0 2px 12px rgba(0,45,43,0.07);
}
details[open] {
  border-color: var(--solrite-cyan);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 700;
  color: var(--solrite-dark);
  letter-spacing: -0.01em;
}
summary::-webkit-details-marker {
  display: none;
}
.summary-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
details[open] .summary-chevron {
  transform: rotate(180deg);
  color: var(--solrite-cyan);
}
.detail-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.detail-body ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}
.detail-body li {
  margin-bottom: 0.35rem;
}
.detail-body p + p {
  margin-top: 0.75rem;
}
.rejection-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rejection-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff0ef;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.6rem 0.8rem;
  color: var(--solrite-dark);
}
.rejection-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.not-vpp-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.not-vpp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff0ef;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.7rem 0.9rem;
  color: var(--solrite-mid);
  font-weight: 500;
}
.callout {
  background: linear-gradient(135deg, #e0faf8, #c7eeeb);
  border: 1px solid var(--border);
  border-left: 4px solid var(--solrite-teal);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  color: var(--solrite-dark);
  line-height: 1.6;
}
.callout strong {
  color: var(--solrite-mid);
}
.vpp-levels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}
.vpp-level {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.vpp-level-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--solrite-cyan), var(--solrite-teal));
  color: var(--solrite-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vpp-level-content h4 {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--solrite-dark);
  margin-bottom: 0.4rem;
}
.vpp-level-content p {
  color: var(--text-secondary);
  line-height: 1.65;
}
.sizing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.sizing-table th {
  background: var(--solrite-dark);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  text-align: left;
}
.sizing-table th:first-child {
  border-radius: 8px 0 0 0;
}
.sizing-table th:last-child {
  border-radius: 0 8px 0 0;
}
.sizing-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.sizing-table tr:nth-child(even) td {
  background: #F8FAFC;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16,185,129,0.1);
  color: var(--solrite-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.7rem;
  font-size: 0.775rem;
  font-weight: 600;
}
.page-section-title {
  color: var(--solrite-dark);
  margin-bottom: 0.5rem;
}
.page-section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 3rem 0;
}
.pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--solrite-dark);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.pdf-link:hover {
  background: var(--solrite-cyan);
  transform: translateY(-1px);
}
.pdf-link svg {
  flex-shrink: 0;
}
.ext-link {
  color: var(--solrite-cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--solrite-cyan);
  transition: opacity 0.2s;
}
.ext-link:hover {
  opacity: 0.75;
}
.bp-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}
.bp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.bp-card-num {
  width: 28px;
  height: 28px;
  background: var(--solrite-teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.bp-card-content h4 {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--solrite-dark);
  margin-bottom: 0.3rem;
}
.bp-card-content p {
  color: var(--text-secondary);
  line-height: 1.65;
}
.monitoring-examples {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1rem 0;
}
.monitoring-card {
  background: var(--solrite-mid);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: #a8dbd8;
  line-height: 1.7;
}
.monitoring-card strong {
  color: var(--solrite-teal);
}
footer {
  background: var(--solrite-dark);
  color: var(--text-muted);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 2px solid var(--solrite-teal);
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.check-icon {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
strong {
  font-weight: 600;
  color: var(--text-primary);
}
em {
  font-style: italic;
}
@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
  .nav-links {
    display: none;
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(0,45,43,0.05) 2px, rgba(0,45,43,0.05) 4px );
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,45,43,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}
.toc-title::before {
  content: '> ';
  color: var(--solrite-cyan);
}
.section-icon {
  border-radius: 4px;
  position: relative;
}
.hero h1::after {
  content: '_';
  color: var(--solrite-cyan);
  animation: blink 1.1s step-end infinite;
  margin-left: 3px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
summary {
  font-family: 'Unisans', 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
}
.sizing-table th {
  font-family: 'Aileron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.vpp-level-num {
  border-radius: 4px;
  font-family: 'Aileron', sans-serif;
  font-size: 0.85rem;
}
.bp-card-num {
  border-radius: 3px;
  font-family: 'Aileron', sans-serif;
}
.footer-copy {
  font-family: 'Aileron', sans-serif;
  font-size: 0.72rem;
}
.rejection-item {
  font-family: 'Aileron', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
}
.not-vpp-item {
  font-family: 'Aileron', sans-serif;
  font-size: 0.82rem;
}
.nav-logo-text {
  font-family: 'Aileron', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.monitoring-card {
  border-left: 3px solid var(--solrite-teal);
  position: relative;
}
details[open] {
  box-shadow: 0 0 0 1px rgba(0,255,244,0.3), 0 4px 20px rgba(0,255,244,0.08);
}
.pdf-link {
  letter-spacing: 0.02em;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-content {
  animation: fadeUp 0.7s ease both;
}
details {
  animation: fadeUp 0.4s ease both;
}

/* ─── SHARED ADDITIONS (2026-11) ─── */

/* Tables scroll inside their own wrapper instead of being clipped by body overflow-x:hidden */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Anchor jumps land below the sticky nav (68px) */
.section[id], .section [id] {
  scroll-margin-top: 88px;
}

/* Phone jump bar: hidden on desktop (the sidebar .toc is used there) */
.jump-bar {
  display: none;
}

@media (max-width: 860px) {
  .jump-bar {
    display: flex;
    gap: 0.5rem;
    position: sticky;
    top: 68px;
    z-index: 99;
    padding: 0.5rem 1rem;
    background: var(--solrite-deep);
    border-bottom: 1px solid var(--solrite-mid);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .jump-bar::-webkit-scrollbar {
    display: none;
  }
  .jump-bar a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--solrite-mid);
    border-radius: 999px;
    background: var(--solrite-dark);
    color: var(--light-teal);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
  }
  .jump-bar a.active {
    background: var(--solrite-cyan);
    border-color: var(--solrite-cyan);
    color: var(--solrite-deep);
  }
  .section[id], .section [id] {
    scroll-margin-top: 140px;
  }
  .table-scroll table {
    min-width: 480px;
  }
}

/* Before-you-submit quick reference (top of each state page) */
.submit-box {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--solrite-teal);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.2rem;
  margin: 0 0 2rem;
  box-shadow: 0 4px 18px rgba(15, 43, 70, .06);
}
.submit-box h2 {
  font-size: 1.05rem;
  margin: 0 0 .75rem;
  color: var(--solrite-dark);
}
.submit-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .5rem 1.25rem;
}
.submit-box li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.submit-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--solrite-teal);
  font-weight: 700;
}
.submit-box li.warn::before {
  content: "!";
  color: var(--danger);
}
.submit-box .submit-box-note {
  margin: .75rem 0 0;
  font-size: .85em;
  color: var(--text-muted);
}
.submit-box a {
  color: var(--solrite-mid);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--solrite-teal);
  text-underline-offset: 2px;
}
