/* texas-directory.net. Signal direction, Texas blue accent, light-dark() tokens. */
:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --ground: light-dark(#ffffff, #0d1117);
  --panel: light-dark(#f4f6f9, #161b24);
  --panel-2: light-dark(#e9eef5, #1d2430);
  --ink: light-dark(#10131a, #eef1f6);
  --ink-2: light-dark(#4a5363, #a9b2c1);
  --line: light-dark(#dde3ec, #2a3240);
  --blue: light-dark(#0b3d91, #8fb4ff);
  --blue-ink: light-dark(#0b3d91, #0d1117);
  --blue-fill: light-dark(#0b3d91, #8fb4ff);
  --blue-rgb: 11 61 145;
  --red: light-dark(#a50d34, #ff8fa6);
  --ok: light-dark(#17703a, #7fdc9e);
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* reset, rules R1 to R3 and R10 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16.5px/1.6 var(--font); }
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin-top: 1.6em; }
p, li { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
table { border-collapse: collapse; }
td, th { font-variant-numeric: tabular-nums; }
textarea { field-sizing: content; min-block-size: 3lh; max-block-size: 12lh; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.txs-skip { position: absolute; left: -999px; top: 0; background: var(--blue-fill); color: #fff; padding: .6rem 1rem; z-index: 50; }
.txs-skip:focus { left: 1rem; }
.txs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* bar */
.txs-bar { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); view-transition-name: bar; }
.txs-bar__in { max-width: var(--wrap); margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; gap: 1rem; }
.txs-mark { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.05rem; flex-shrink: 0; }
.txs-mark svg { width: 30px; height: 30px; color: var(--blue); }
.txs-mark em { font-style: normal; color: var(--blue); }
.txs-nav { margin-left: auto; display: flex; gap: .3rem; flex-shrink: 0; }
.txs-nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-weight: 550; font-size: .95rem; }
.txs-nav a:hover, .txs-nav a[aria-current] { color: var(--ink); background: var(--panel); }
.txs-nav a[href="/register/"] { color: #fff; background: var(--blue-fill); }
@media (prefers-color-scheme: dark) { .txs-nav a[href="/register/"] { color: #0d1117; } }
.txs-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .5rem; cursor: pointer; }
.txs-menu span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 3px 0; }
.txs-drawer { border: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(320px, 86vw); padding: 3.5rem 1.2rem 1.2rem; background: var(--ground); color: var(--ink);
  transition: opacity .2s, translate .2s, display .2s allow-discrete, overlay .2s allow-discrete; opacity: 0; translate: 1.5rem 0; }
.txs-drawer[open] { opacity: 1; translate: 0; }
@starting-style { .txs-drawer[open] { opacity: 0; translate: 1.5rem 0; } }
.txs-drawer::backdrop { background: rgb(0 0 0 / .45); }
.txs-drawer nav { display: grid; gap: .3rem; }
.txs-drawer nav a { padding: .8rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.txs-drawer__x { position: absolute; top: .8rem; right: .8rem; font-size: 1.6rem; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; padding: .3rem .6rem; }
@media (max-width: 859.98px) { .txs-nav { display: none; } .txs-menu { display: block; } }

/* layout */
.txs-main { max-width: var(--wrap); margin: 0 auto; padding: 1.2rem 16px 3rem; }
.txs-trail { font-size: .88rem; color: var(--ink-2); margin-bottom: 1rem; }
.txs-trail a { color: var(--ink-2); }

/* buttons, R5 restates foreground after region rules */
.txs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.05rem; border-radius: 9px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; text-box: trim-both cap alphabetic; }
.txs-btn:hover { border-color: var(--blue); }
.txs-btn--go { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; }
@media (prefers-color-scheme: dark) { .txs-btn--go { color: #0d1117; } }
.txs-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }

/* hero and search */
.txs-hero { padding: 2.2rem 0 1rem; max-width: 760px; }
.txs-hero p { font-size: 1.12rem; color: var(--ink-2); }
.txs-find { display: flex; gap: .5rem; margin: 1.2rem 0 .4rem; }
.txs-find input { flex: 1; min-width: 0; min-height: 50px; padding: .6rem 1rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-size: 1.05rem; background: var(--ground); color: var(--ink); }
.txs-find input:focus { border-color: var(--blue); outline: none; }

/* bite, glance */
.txs-bite { font-size: 1.12rem; max-width: 70ch; }
.txs-photo { margin: 1rem 0 0; max-width: 640px; }
.txs-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.txs-photo figcaption { font-size: .92rem; margin-top: .35rem; }
.txs-chip { display: inline-block; font-size: .82rem; font-weight: 650; color: var(--blue); background: rgb(var(--blue-rgb) / .08); padding: .2rem .6rem; border-radius: 99px; margin: 0 0 .7rem; }
.txs-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; }
.txs-glance div { background: var(--panel); padding: .75rem .9rem; }
.txs-glance dt { font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.txs-glance dd { font-weight: 650; overflow-wrap: anywhere; }
.txs-note { background: var(--panel); border-left: 4px solid var(--blue); padding: .7rem 1rem; border-radius: 0 8px 8px 0; }

/* chips and index */
.txs-chips { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.txs-chips a { display: inline-flex; gap: .45rem; align-items: center; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .94rem; }
.txs-chips a:hover { border-color: var(--blue); }
.txs-chips span, .txs-index span { color: var(--ink-2); font-size: .85em; font-variant-numeric: tabular-nums; }
.txs-index { columns: 3 220px; padding: 0; list-style: none; }
.txs-index li { padding: .3rem 0; break-inside: avoid; }
.txs-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* dense rows, the card shape */
.txs-rows { list-style: none; padding: 0; margin: .5rem 0; border-top: 1px solid var(--line); }
.txs-row { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .8rem .2rem; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 72px; }
.txs-row__name { font-weight: 650; font-size: 1.04rem; text-decoration: none; color: var(--ink); grid-column: 1; }
.txs-row__name:hover { color: var(--blue); text-decoration: underline; }
.txs-row__meta { grid-column: 1; margin: 0; font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: center; }
.txs-row__tel { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 650; white-space: nowrap; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; background: var(--panel); color: var(--blue); }
@media (max-width: 479.98px) { .txs-row { grid-template-columns: 1fr; } .txs-row__tel { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .3rem; } }
.txs-open { font-size: .82rem; font-weight: 700; color: var(--ok); }
.txs-open[data-state="closed"] { color: var(--ink-2); }
.txs-open--big { font-size: .95rem; margin: 0; }
.txs-more summary { cursor: pointer; font-weight: 650; color: var(--blue); padding: .7rem 0; }

/* entry */
.txs-entry__head { padding: .6rem 0 0; max-width: 820px; }
.txs-entry__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; }
@media (max-width: 899.98px) { .txs-entry__body { grid-template-columns: 1fr; } }
.txs-hours { width: 100%; max-width: 460px; }
.txs-hours th, .txs-hours td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--line); }
.txs-hours th { font-weight: 600; width: 40%; }
.txs-links { padding-left: 1.1rem; }
.txs-side h2 { font-size: 1.05rem; }
.txs-claim { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.txs-claim h2 { margin-top: 0; }
.txs-fine { font-size: .86rem; color: var(--ink-2); }

/* faq, exclusive accordion that animates open */
.txs-faq details { border-bottom: 1px solid var(--line); }
.txs-faq summary { cursor: pointer; padding: .8rem 0; font-weight: 650; list-style-position: outside; }
.txs-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .25s, content-visibility .25s allow-discrete; }
.txs-faq details:open::details-content { block-size: auto; }
.txs-faq p { margin: 0 0 .9rem; }

/* map */
.txs-map { margin: 1.2rem 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-height: 64px; display: grid; place-items: center; overflow: hidden; }
.txs-map.is-live { height: 360px; display: block; }
.txs-map--wide.is-live { height: 440px; }
.txs-map__go { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 650; padding: 1.1rem; cursor: pointer; }
.leaflet-tile { filter: saturate(.45) contrast(.95); }

/* why */
.txs-why { margin-top: 2.5rem; background: var(--panel); border-radius: var(--radius); padding: 1.4rem; }
.txs-why h2 { margin-top: 0; }
.txs-why ul { padding-left: 1.1rem; }

/* form */
.txs-formwrap { max-width: 720px; }
.txs-form { display: grid; gap: 1rem; }
.txs-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.txs-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; display: grid; gap: .4rem; }
.txs-form fieldset label { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.txs-form input:not([type=radio]), .txs-form select, .txs-form textarea { font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); color: var(--ink); min-height: 46px; }
.txs-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.txs-hp { position: absolute; left: -9999px; }
.txs-prose { max-width: 720px; }

/* footer */
.txs-foot { border-top: 1px solid var(--line); background: var(--panel); }
.txs-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 2rem 16px 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.txs-foot__name { font-weight: 750; margin: 0; }
.txs-foot nav { display: grid; gap: .3rem; align-content: start; }
.txs-foot nav a { color: var(--ink-2); }
.txs-foot__fine { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 1.5rem; font-size: .84rem; color: var(--ink-2); }
.txs-count { color: var(--ink-2); }
