/* State-specific visual shell.  Content and shared compliance behavior stay
   in compliance.css; these selectors only give the Texas pages their calmer
   reading rhythm and keep the high-school tables legible on a phone. */
.state-law,
.compliance-page.state-tx,
.state-high-school.state-texas {
  --tx-ink: #203128;
  --tx-green: #276044;
  --tx-soft: #f3f8f4;
  --tx-line: #d7e3da;
}

/* Screen only: paper keeps the Texas inks above (Codex's review of F-59,
   2026-10-10: in print the night ink drew the title at 1.2:1 on white). */
@media screen {
  /* Night values (2026-10-07 review, F-59). These four had none, so the dark
     theme drew the title in #203128 on #2b3035 (1.02:1) and its own light
     ink on the musts box's #f3f8f4 ground. */
  [data-bs-theme="dark"] .state-law,
  [data-bs-theme="dark"] .compliance-page.state-tx,
  [data-bs-theme="dark"] .state-high-school.state-texas {
    --tx-ink: #e6ece7;
    --tx-green: #9dc7a8;
    --tx-soft: #1f2a23;
    --tx-line: #3b473e;
  }
  [data-bs-theme="dark"] .state-law .cmp-intro,
  [data-bs-theme="dark"] .compliance-page.state-tx .cmp-intro,
  [data-bs-theme="dark"] .state-high-school.state-texas .state-tldr {
    background: linear-gradient(135deg, var(--tx-soft), var(--bs-body-bg) 72%);
  }
  [data-bs-theme="dark"] .state-high-school.state-texas .tx-reference-card,
  [data-bs-theme="dark"] .state-high-school.state-texas .tx-college-row,
  [data-bs-theme="dark"] .state-high-school.state-texas .tx-college-context,
  [data-bs-theme="dark"] .state-high-school.state-texas .tx-plan-row { background: var(--bs-body-bg); }
  [data-bs-theme="dark"] .state-high-school.state-texas .tx-plan-detail { color: var(--bs-secondary-color); }
}

.state-law .cmp-page-header,
.compliance-page.state-tx .cmp-page-header,
.state-high-school.state-texas > h1 {
  max-width: 48rem;
}

.state-law .cmp-page-header h1,
.compliance-page.state-tx .cmp-page-header h1,
.state-high-school.state-texas > h1 {
  color: var(--tx-ink);
  letter-spacing: -.02em;
}

.state-law .cmp-intro,
.compliance-page.state-tx .cmp-intro,
.state-high-school.state-texas .state-tldr {
  border-color: var(--tx-line);
  background: linear-gradient(135deg, var(--tx-soft), #fff 72%);
}

.state-law .cmp-musts,
.compliance-page.state-tx .cmp-musts {
  border-left: .3rem solid var(--tx-green);
  padding: .85rem 1rem;
  background: var(--tx-soft);
  border-top-left-radius: var(--tr-accent-edge-radius, 0px);
  border-bottom-left-radius: var(--tr-accent-edge-radius, 0px);
}

.state-law .cmp-glance,
.compliance-page.state-tx .cmp-glance,
.state-law .cmp-law-card,
.state-law .state-signup,
.state-high-school.state-texas .state-tldr,
.state-high-school.state-texas .state-signup {
  border-color: var(--tx-line);
  box-shadow: 0 .25rem 1rem rgba(32, 49, 40, .05);
}

.state-high-school.state-texas .tx-reference-card,
.state-high-school.state-texas .tx-college-row,
.state-high-school.state-texas .tx-college-context {
  margin-top: .75rem;
  border: 1px solid var(--tx-line);
  background: #fff;
}

.state-high-school.state-texas .tx-reference-card > summary,
.state-high-school.state-texas .tx-college-row > summary,
.state-high-school.state-texas .tx-college-context > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  cursor: pointer;
  padding: .8rem 1rem;
  color: var(--tx-green);
}

.state-high-school.state-texas .tx-reference-card > :not(summary),
.state-high-school.state-texas .tx-college-row > :not(summary),
.state-high-school.state-texas .tx-college-context > :not(summary) {
  margin-inline: 1rem;
}

.state-high-school.state-texas .tx-college-row {
  margin-bottom: .65rem;
}

.state-high-school.state-texas .tx-plan-glance {
  padding: 1rem;
  border: 1px solid var(--tx-line);
  border-radius: .375rem;
  background: var(--tx-soft);
}

.state-high-school.state-texas .tx-section-lead {
  max-width: 62ch;
}

.state-high-school.state-texas .tx-plan-rows {
  display: grid;
  gap: .45rem;
}

.state-high-school.state-texas .tx-plan-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  gap: .15rem .75rem;
  padding: .55rem .65rem;
  border: 1px solid var(--tx-line);
  border-radius: .3rem;
  background: #fff;
}

.state-high-school.state-texas .tx-plan-credit {
  color: var(--tx-green);
  font-size: .9rem;
  white-space: nowrap;
}

.state-high-school.state-texas .tx-plan-detail {
  grid-column: 1 / -1;
  color: #46584d;
  font-size: .9rem;
  line-height: 1.35;
}

.state-law .cmp-step h2,
.compliance-page.state-tx .cmp-step h2,
.state-high-school.state-texas section > h2 {
  color: var(--tx-ink);
}

.state-high-school.state-texas .state-credit-table,
.state-high-school.state-texas .table {
  border-color: var(--tx-line);
}

.state-high-school.state-texas .state-credit-table thead th,
.state-high-school.state-texas .table thead th {
  background: var(--tx-soft);
  color: var(--tx-ink);
}

.state-high-school.state-texas .state-credit-table tbody th {
  min-width: 9rem;
}

.state-high-school.state-texas .state-signup {
  border-width: 1px !important;
  border-left: .3rem solid var(--tx-green) !important;
  border-top-left-radius: var(--tr-accent-edge-radius, 0px);
  border-bottom-left-radius: var(--tr-accent-edge-radius, 0px);
}

@media (max-width: 767.98px) {
  .state-law,
  .compliance-page.state-tx,
  .state-high-school.state-texas { padding-top: 1rem !important; }
  .state-law .cmp-page-header,
  .state-high-school.state-texas > h1 { margin-bottom: 1rem; }
  .state-law .cmp-page-header h1,
  .state-high-school.state-texas > h1 { font-size: clamp(1.55rem, 6vw, 1.85rem); line-height: 1.14; }
  .state-high-school.state-texas > .lead { margin-bottom: .85rem; font-size: 1rem; line-height: 1.35; }
  .state-high-school.state-texas .state-tldr { font-size: .9rem; line-height: 1.4; }
  .state-high-school.state-texas .state-tldr ul { padding-left: 1.2rem; }
  .state-high-school.state-texas .state-tldr li + li { margin-top: .35rem; }
  .state-high-school.state-texas section > h2 { font-size: 1.12rem; line-height: 1.25; }
  .state-law .cmp-intro,
  .state-high-school.state-texas .state-tldr { padding: 1rem; }
  .state-high-school.state-texas .table-responsive { margin-inline: -.25rem; }
  .state-high-school.state-texas .state-credit-table { min-width: 38rem; }
  .state-high-school.state-texas .state-signup .btn { width: 100%; margin-bottom: .35rem; }
  .state-high-school.state-texas .tx-reference-card > summary,
  .state-high-school.state-texas .tx-college-row > summary,
  .state-high-school.state-texas .tx-college-context > summary { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .state-high-school.state-texas .tx-plan-glance { padding: .85rem; }
  .state-high-school.state-texas .tx-plan-row { grid-template-columns: minmax(7rem, 1fr) auto; font-size: .9rem; }
  .state-high-school.state-texas .tx-plan-detail { font-size: .82rem; }
}
