/* Public state law and lease pages (/laws/<state>, /lease-agreement/<state>,
   the lease type guides). Owner-approved design, September 24, 2026: the
   Texas preview. Scoped to .slp; every color is a token from tokens.css or
   btn-action.css. Statute citations are the one highlighted element, in the
   brand-deep trio (not a status, role or attention color), always with an icon
   and words, never color alone.

   public-design-system.css forces h2 and h3 to 17px Open Sans inside
   #main-content; DESIGN.md sets an 18px floor for card titles, so the page
   headings below restate size and face with enough specificity to win. */

.slp { background: var(--surface-canvas); color: var(--text); }
.slp-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.slp :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--btn-action-ring); outline-offset: 3px; border-radius: var(--radius-sm); }

.slp-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 32px; }
.slp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.public-design #main-content .slp .slp-crumbs li { font-size: 13px; line-height: 20px; }
.slp-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.slp-crumbs a { color: inherit; text-decoration: none; }
.slp-crumbs a:hover { text-decoration: underline; }
.public-design #main-content .slp h1 { margin: 0 0 12px; text-wrap: balance; }
.slp-checked { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 20px; color: var(--text-muted); }
.public-design #main-content .slp p.slp-checked { font-size: 13px; line-height: 20px; }
.slp-checked strong { color: var(--text); font-weight: 600; }
.slp-checked .slp-ok { display: inline-flex; align-items: center; gap: 6px; }
.slp-checked svg { flex: none; color: var(--brand-deep); }
.slp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; line-height: 22px; text-decoration: none; border: 1px solid transparent; }
.slp-btn-action { background: var(--btn-action-bg); color: var(--btn-action-fg); }
.slp-btn-action:hover { background: var(--btn-action-hover); color: var(--btn-action-fg); }
.slp-btn-secondary { background: var(--surface); color: var(--interaction-ink); border-color: var(--interaction-border); }
.slp-btn-secondary:not(:disabled):not([aria-disabled="true"]):hover { background: var(--interaction-bg); color: var(--interaction-hover-ink); }

.slp-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 24px; padding-block: 28px 40px; align-items: start; }
.slp-toc { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.public-design #main-content .slp .slp-toc h2 { font-family: "Open Sans", Arial, sans-serif !important; font-size: 14px; line-height: 22px; margin: 0 0 8px; }
.slp-toc input { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 12px; font-size: 14px; line-height: 22px; background: var(--surface); color: var(--text); }
.slp-toc-group { margin-top: 12px; }
.public-design #main-content .slp .slp-toc-group > p { margin: 0 0 4px; font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.slp-toc ul { list-style: none; margin: 0; padding: 0; }
.public-design #main-content .slp .slp-toc li { font-size: 13px; line-height: 20px; }
.slp-toc li a { display: block; padding: 5px 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-secondary); }
.slp-toc li a:hover { background: var(--surface-alt); color: var(--text); }
.public-design #main-content .slp p.slp-toc-empty { color: var(--text-muted); font-size: 13px; margin: 10px 0 0; }
.slp-toc-mobile { display: none; }
.slp-lease-toc > a { display: block; padding: 6px 8px; font-size: 13px; line-height: 20px; color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-sm); }
.slp-lease-toc > a:hover { background: var(--surface-alt); color: var(--text); }
.slp-lease-preview { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 14px; }
.slp-lease-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.slp-lease-preview figcaption { color: var(--text-secondary); font-size: 14px; line-height: 24px; }
.slp-local-guide { scroll-margin-top: 88px; }
.pr-state-lease-page :is(h2[id], section[id]) { scroll-margin-top: 88px; }

.slp-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.slp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; min-width: 0; }
.public-design #main-content .slp :is(h2, h3) { font-family: "Poppins", "Open Sans", Arial, sans-serif !important; font-weight: 600; letter-spacing: normal; text-wrap: balance; }
.public-design #main-content .slp h2.slp-h2 { font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.public-design #main-content .slp h3.slp-h3 { font-size: 18px; line-height: 26px; margin: 0; }
.slp-measure { max-width: var(--measure); }
.public-design #main-content .slp .slp-brief p { margin: 0; color: var(--text-secondary); }

.slp-kn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.slp-kn > div { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slp-kn dt { font-size: 13px; line-height: 20px; color: var(--text-muted); font-weight: 600; min-height: 40px; }
.slp-kn dd { margin: 0; }
.slp-kn .slp-kn-val { font: 600 20px/28px "Poppins", "Open Sans", Arial, sans-serif; font-variant-numeric: tabular-nums; color: var(--text); }
.slp-kn .slp-kn-note { font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.slp-kn .slp-kn-cite { margin-top: auto; padding-top: 6px; }

.slp-group { display: grid; gap: 14px; scroll-margin-top: 88px; }
.slp-topic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 12px; scroll-margin-top: 88px; min-width: 0; }
.slp-topic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.slp-topic-art-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.slp-topic-art-heading img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.slp-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface-alt); color: var(--text-secondary); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 12px; line-height: 18px; font-weight: 600; }
.slp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.public-design #main-content .slp p.slp-rule { margin: 0; max-width: var(--measure); color: var(--text); }
.slp-cites { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.slp-cite { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; background: var(--brand-deep-tint); border: 1px solid var(--brand-deep-border); color: var(--brand-deep); border-radius: var(--radius-sm); padding: 1px 7px; font-weight: 600; font-size: 12.5px; line-height: 20px; text-decoration: none; white-space: normal; vertical-align: baseline; }
.slp-cite:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; border-color: currentColor; }
.slp-cite svg { flex: none; }
.slp-more { border-top: 1px solid var(--border-hairline); }
.slp-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-top: 4px; font-weight: 600; color: var(--text); }
.slp-more > summary::-webkit-details-marker { display: none; }
.slp-more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 2px; }
.slp-more[open] > summary::before { transform: rotate(45deg); }
.slp-details { margin: 0; padding: 4px 0 2px; list-style: none; display: grid; gap: 10px; }
.public-design #main-content .slp .slp-details li { position: relative; padding-left: 16px; max-width: calc(var(--measure) + 16px); color: var(--text-secondary); }
.slp-details li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.slp-details .slp-see { color: var(--text-muted); font-size: 13px; }
.slp-lease-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; background: var(--surface-alt); border-radius: var(--radius-md); padding: 12px 14px; }
.slp-lease-note svg { grid-row: span 2; margin-top: 2px; color: var(--text); }
.slp-lease-note b { font-weight: 700; font-size: 13px; line-height: 20px; }
.public-design #main-content .slp .slp-lease-note p { margin: 0; color: var(--text-secondary); max-width: var(--measure); }

.slp-local { display: grid; gap: 10px; }
.slp-local-item { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 12px 14px; background: var(--surface); }
.public-design #main-content .slp .slp-local-item p { margin: 0; max-width: var(--measure); color: var(--text-secondary); }
.slp-local-item b { display: block; margin-bottom: 2px; }

.slp-faq { display: grid; gap: 8px; }
.slp-faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.slp-faq details[open] { border-color: var(--border-strong); }
.slp-faq summary { list-style: none; cursor: pointer; min-height: 48px; padding: 13px 44px 13px 16px; position: relative; font-weight: 600; color: var(--text); }
.slp-faq summary::-webkit-details-marker { display: none; }
.slp-faq summary::after { content: "+"; position: absolute; right: 16px; top: 11px; font-size: 20px; color: var(--text-muted); }
.slp-faq details[open] summary::after { content: "\2212"; }
.slp-faq .slp-ans { padding: 0 16px 14px; display: grid; gap: 10px; }
.public-design #main-content .slp .slp-ans p { margin: 0; max-width: var(--measure); color: var(--text-secondary); }

.slp-src { list-style: none; margin: 0; padding: 0; }
.public-design #main-content .slp .slp-src li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--border-hairline); }
.slp-src li:first-child { border-top: 0; }
.slp-src a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.slp-src span { color: var(--text-muted); font-size: 13px; }
.public-design #main-content .slp p.slp-src-meta { margin: 12px 0 0; color: var(--text-muted); font-size: 13px; line-height: 20px; }
.slp-unread summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 10px; }
.slp-unread summary::-webkit-details-marker { display: none; }
.slp-unread summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.slp-unread[open] summary::before { transform: rotate(45deg); }
.slp-unread ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.public-design #main-content .slp .slp-unread li { color: var(--text-secondary); }

.slp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.slp-related a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; text-decoration: none; background: var(--surface); min-height: 72px; color: var(--text); }
.slp-related a:hover { border-color: var(--border-strong); }
.slp-related b { font-weight: 600; }
.slp-related span { color: var(--text-muted); font-size: 13px; line-height: 20px; }
.public-design #main-content .slp p.slp-compare { margin: 12px 0 0; font-size: 13px; line-height: 22px; color: var(--text-muted); }
.slp-compare a { color: var(--text); }
.slp-states { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.slp-states select { min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 8px 12px; font-size: 14px; line-height: 22px; background: var(--surface); color: var(--text); max-width: 100%; }
.slp-legal { border-top: 1px solid var(--border); padding-top: 16px; }
.public-design #main-content .slp .slp-legal p { margin: 0 0 6px; max-width: 90ch; color: var(--text-muted); font-size: 13px; line-height: 20px; }

.slp-clauses { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.public-design #main-content .slp .slp-clauses li { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 6px; align-content: start; background: var(--surface); }
.slp-clauses b { font-weight: 600; font-size: 15px; line-height: 22px; }
.public-design #main-content .slp .slp-clauses p { margin: 0; color: var(--text-secondary); }
.slp-doc { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 24px 28px; margin-top: 12px; display: grid; gap: 16px; }
.slp-doc .pd-preserve, .public-design #main-content .slp .slp-doc p.slp-doc-text { font: 400 15px/1.5 "Times New Roman", Times, serif !important; margin: 0; text-align: justify; }
.public-design #main-content .slp .slp-doc p.slp-doc-title { font: 700 15px/1.5 "Times New Roman", Times, serif !important; text-align: center; letter-spacing: .04em; margin: 0; }
.slp-doc section { display: grid; gap: 6px; }
.public-design #main-content .slp .slp-doc p.slp-doc-src { margin: 0; font-size: 12px; line-height: 18px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slp-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.slp-type { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.slp-type b { font: 600 18px/26px "Poppins", "Open Sans", Arial, sans-serif; }
.public-design #main-content .slp .slp-type p { margin: 0; color: var(--text-secondary); }
.slp-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: slp-step; }
.public-design #main-content .slp .slp-steps li { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; background: var(--surface); counter-increment: slp-step; display: grid; gap: 4px; align-content: start; }
.slp-steps li::before { content: counter(slp-step); font: 600 18px/26px "Poppins", "Open Sans", Arial, sans-serif; color: var(--brand-deep); }
.slp-steps b { font-weight: 600; }
.public-design #main-content .slp .slp-steps p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 20px; }
.slp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 12px; background: var(--surface); }
.slp-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.slp-table th, .slp-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--border-hairline); font-size: 14px; line-height: 22px; }
.slp-table thead th { border-top: 0; font-size: 12px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-alt); }
.slp-table td:first-child { font-weight: 600; white-space: nowrap; }
.slp-table td { color: var(--text-secondary); }
.slp-table td a { color: var(--text); }
.slp-states-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.slp-states-grid a { color: var(--text); text-decoration: none; }
.slp-states-grid a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .slp-kn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slp-related, .slp-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slp-steps, .slp-states-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .slp-layout { grid-template-columns: minmax(0, 1fr); }
  .slp-toc { display: none; }
  .slp-toc-mobile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  .slp-toc-mobile summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 48px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
  .slp-toc-mobile summary::-webkit-details-marker { display: none; }
  .slp-toc-mobile summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
  .slp-toc-mobile[open] summary::before { transform: rotate(45deg); }
  .slp-toc-mobile .slp-toc-body { padding: 0 16px 14px; columns: 2; column-gap: 20px; }
  .slp-toc-mobile a { display: block; padding: 4px 0; font-size: 13px; line-height: 20px; color: var(--text-secondary); text-decoration: none; break-inside: avoid; }
  .slp-clauses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .slp-lease-preview { grid-template-columns: minmax(0, 1fr); }
  .slp-lease-preview > a { max-width: 240px; margin-inline: auto; }
  .slp-wrap { padding-inline: 16px; }
  .slp-hero { padding-block: 24px; }
  .slp-actions .slp-btn { width: 100%; }
  .slp-kn { gap: 8px; }
  .slp-kn > div { padding: 12px; }
  .slp-kn .slp-kn-val { font-size: 18px; line-height: 26px; }
  .slp-card, .slp-topic { padding: 16px; }
  .slp-related, .slp-types, .slp-steps { grid-template-columns: minmax(0, 1fr); }
  .slp-toc-mobile .slp-toc-body { columns: 1; }
  .slp-doc { padding: 18px 16px; }
  .public-design #main-content .slp .slp-doc p.slp-doc-text { font-size: 14px !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .slp-btn, .slp-cite, .slp-related a { transition: background-color .18s ease, border-color .18s ease; }
}
