/*! BestTexasArchitects.com longread components v1.0 (2026-11-29)
 *  Shared by all informational articles. Uses the variables from /css/site.css. No per-article CSS.
 *  Breakpoints checked: 320 / 390 / 680 / 900 / 1440 px.
 */
.lr-article { max-width: 860px; }
.lr-article > * { min-width: 0; }
.lr-wide { max-width: 100%; }

/* meta row + byline */
.lr-article .lr-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0 6px; padding: 0; list-style: none; }
.lr-meta li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.lr-byline { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.lr-byline a { color: var(--muted); text-decoration: underline; }

/* direct answer */
.lr-answer { border: 1px solid #cfdcf7; border-left: 5px solid var(--blue); border-radius: var(--radius); background: var(--blue-soft); padding: 22px 24px; margin: 8px 0 26px; }
.lr-answer h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); font-weight: 800; }
.lr-answer p { margin: 0 0 12px; color: var(--ink); font-size: 18px; line-height: 1.6; }
.lr-answer p:last-child { margin-bottom: 0; }
.lr-answer ul { margin: 6px 0 14px; padding-left: 20px; color: var(--text); }
.lr-answer li { margin: 0 0 6px; line-height: 1.55; }

/* table of contents */
.lr-toc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 22px; margin: 0 0 34px; }
.lr-toc h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.lr-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.lr-toc li { break-inside: avoid; margin: 0 0 7px; font-size: 15px; line-height: 1.45; }
.lr-toc a { text-decoration: none; }
.lr-toc a:hover { text-decoration: underline; }

/* body typography */
.lr-article section { margin: 0 0 42px; scroll-margin-top: 84px; }
.lr-article h2.sec { margin-top: 0; scroll-margin-top: 84px; }
.lr-article h3 { margin: 22px 0 8px; color: var(--ink); font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.lr-article p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; }
.lr-article ul, .lr-article ol { margin: 0 0 18px; padding-left: 22px; }
.lr-article li { margin: 0 0 8px; font-size: 17px; line-height: 1.65; }
.lr-editorial-note { border-left: 4px solid var(--line-strong); background: var(--surface); padding: 14px 18px; margin: 18px 0; border-radius: 0 10px 10px 0; font-size: 15.5px; line-height: 1.6; }
.lr-editorial-note p, .lr-editorial-note li { font-size: 15.5px; }
.lr-editorial-note p:last-child { margin-bottom: 0; }
.lr-caveat { border: 1px solid #f0d9b5; background: #fff8ec; border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-size: 15.5px; line-height: 1.6; color: #4a3200; }
.lr-caveat p { font-size: 15.5px; margin: 0 0 8px; }
.lr-caveat p:last-child { margin-bottom: 0; }

/* figures (informational SVG) */
.lr-figure { margin: 26px 0 30px; }
.lr-figure img, .lr-figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.lr-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* tables */
.lr-table-wrap { margin: 18px 0 8px; }
.lr-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.5; }
.lr-table caption { text-align: left; padding: 0 0 10px; color: var(--muted); font-size: 14px; }
.lr-table th, .lr-table td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lr-table thead th { background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.lr-table tbody th[scope="row"] { background: #fbfcfe; font-weight: 700; color: var(--ink); }
.lr-table tr.lr-ref th, .lr-table tr.lr-ref td { background: #f7f9fc; }
.lr-table td ul { margin: 0; padding-left: 18px; }
.lr-table td li { font-size: 15px; margin: 0 0 4px; }
.lr-table .lr-src-link { word-break: break-word; }

/* narrow screens: stack rows as labelled cards (semantic roles are set in the markup) */
@media (max-width: 760px) {
  .lr-table--stack, .lr-table--stack thead, .lr-table--stack tbody, .lr-table--stack tr, .lr-table--stack th, .lr-table--stack td { display: block; width: 100%; }
  .lr-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lr-table--stack tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; overflow: hidden; background: #fff; }
  .lr-table--stack th, .lr-table--stack td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .lr-table--stack tr > :last-child { border-bottom: 0; }
  .lr-table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .lr-table--stack tbody th[scope="row"] { background: var(--surface); }
}
/* the nine-column reported-ranges table needs more room before it can sit in a row layout */
@media (max-width: 1180px) {
  .lr-table--wide, .lr-table--wide thead, .lr-table--wide tbody, .lr-table--wide tr, .lr-table--wide th, .lr-table--wide td { display: block; width: 100%; }
  .lr-table--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lr-table--wide tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; overflow: hidden; background: #fff; }
  .lr-table--wide tbody th[scope="row"] { background: var(--surface); border: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .lr-table--wide td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .lr-table--wide tr > :last-child { border-bottom: 0; }
  .lr-table--wide td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .lr-table--wide tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lr-table--wide tbody th[scope="row"] { grid-column: 1 / -1; }
  .lr-table--wide td { border-right: 1px solid var(--line); }
  .lr-table--wide td:nth-of-type(even) { border-right: 0; }
}

/* worked-example pills / cards */
.lr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.lr-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; }
.lr-card h3 { margin: 0 0 6px; font-size: 16px; }
.lr-card p { margin: 0; font-size: 15px; line-height: 1.55; }
.lr-card .lr-big { display: block; margin: 2px 0 4px; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lr-illus { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* calculator */
.lr-calc { border: 1px solid var(--line-strong); border-radius: 18px; background: #fff; padding: 24px; margin: 18px 0 26px; box-shadow: var(--shadow-sm); }
.lr-calc fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.lr-calc legend { padding: 0; margin: 0 0 8px; color: var(--ink); font-weight: 700; font-size: 16px; }
.lr-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lr-model { position: relative; display: block; }
.lr-model input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.lr-model span { display: block; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px 12px 42px; background: #fff; font-weight: 600; color: var(--ink); line-height: 1.35; min-height: 48px; position: relative; font-size: 15.5px; }
.lr-model span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; }
.lr-model small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 13px; }
.lr-model input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.lr-model input:checked + span::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 4px, #fff 5px); }
.lr-model input:focus-visible + span { outline: 3px solid #93b4ff; outline-offset: 2px; }
.lr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0 0 14px; }
.lr-field { display: block; min-width: 0; }
.lr-field label, .lr-field .lr-label { display: block; margin: 0 0 5px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.lr-field input[type="text"] { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 16px; }
.lr-field input[type="text"]:focus-visible { outline: 3px solid #93b4ff; outline-offset: 1px; border-color: var(--blue); }
.lr-field input[aria-invalid="true"] { border-color: #b42318; background: #fff6f5; }
.lr-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.lr-error { margin: 5px 0 0; color: #b42318; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.lr-error[hidden], .lr-calc [hidden] { display: none !important; }
.lr-summary-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff0ee; border: 1px solid #f3b9b2; color: #8a1c12; font-size: 14.5px; font-weight: 600; }
.lr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.lr-btn:hover { background: var(--blue-dark); }
.lr-btn:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
.lr-btn--ghost { background: #fff; color: var(--blue-dark); }
.lr-btn--ghost:hover { background: var(--blue-soft); }

.lr-results { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.lr-results h3 { margin: 0 0 12px; font-size: 18px; }
.lr-results dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lr-results dt, .lr-results dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.lr-results dt { color: var(--text); }
.lr-results dd { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-results .lr-total { background: var(--blue-soft); }
.lr-results .lr-total dd, .lr-results .lr-total dt { color: var(--ink); font-weight: 800; background: var(--blue-soft); }
.lr-results dl > :nth-last-child(-n+2) { border-bottom: 0; }
.lr-results .lr-basis { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.lr-results-note { margin: 12px 0 0; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.lr-results-note strong { color: var(--ink); }
.lr-tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

/* compact promoted block under the calculator results (separate from the independent calculation) */
.lr-cta { margin-top: 26px; border: 1px dashed var(--line-strong); border-radius: 16px; background: #fcfdff; padding: 16px; display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 18px; align-items: center; }
.lr-cta__media { display: block; border-radius: 10px; overflow: hidden; background: var(--surface); }
.lr-cta__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.lr-cta__label { display: inline-block; margin: 0 0 6px; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lr-cta__title { margin: 0 0 6px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.2; font-weight: 700; }
.lr-cta__text { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--text); }
.lr-cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lr-cta__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); background: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.lr-cta__btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.lr-cta__btn:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
.lr-cta__note { color: var(--muted); font-size: 13px; }

/* sources / related */
.lr-sources { padding-left: 22px; }
.lr-sources li { font-size: 15.5px; line-height: 1.55; margin-bottom: 9px; }
.lr-source-group { margin: 18px 0 6px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.lr-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 0; }
.lr-related a { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; color: var(--ink); text-decoration: none; height: 100%; }
.lr-related a:hover { border-color: var(--blue); text-decoration: none; }
.lr-related b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }
.lr-related span { color: var(--text); font-size: 14.5px; line-height: 1.5; }
.lr-article .lr-city-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; list-style: none; }
.lr-city-links li { margin: 0; }
.lr-city-links a { display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 600; background: #fff; }

@media (max-width: 900px) {
  .lr-cards, .lr-related { grid-template-columns: 1fr; }
  .lr-toc ol { columns: 1; }
}
@media (max-width: 680px) {
  .lr-answer { padding: 18px 16px; }
  .lr-answer p { font-size: 17px; }
  .lr-article p, .lr-article li { font-size: 16.5px; }
  .lr-calc { padding: 16px 14px; border-radius: 14px; }
  .lr-models, .lr-fields { grid-template-columns: 1fr; }
  .lr-cta { grid-template-columns: 1fr; gap: 12px; }
  .lr-cta__media { max-width: 320px; }
  .lr-results dt, .lr-results dd { padding: 10px 12px; font-size: 15px; }
  .lr-actions .lr-btn { flex: 1 1 100%; }
}
@media (max-width: 360px) {
  .lr-results dd { white-space: normal; }
  .lr-meta li { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lr-article * { scroll-behavior: auto !important; } }

@media (min-width: 1181px) {
  .lr-article .lr-reported { width: min(100vw - 44px, 1220px); max-width: none; }
}

@media (min-width: 1181px) {
  .lr-reported .lr-table--wide td:nth-of-type(5) { width: 26%; }
}

/* in-text links are underlined so they do not rely on color alone */
.lr-article p a, .lr-article li a, .lr-article td a, .lr-article figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.lr-article .lr-cta__btn, .lr-article .lr-toc a, .lr-article .lr-related a, .lr-article .lr-city-links a, .lr-article .lr-btn { text-decoration: none; }
.lr-results-note:first-of-type { margin-top: 14px; }
