/* texas-directory.net. The almanac: limestone paper by day, Big Bend night sky after dark.
   Young Serif for heads and numbers, Public Sans for reading. Bluebonnet is the link color, sunset is for emphasis only. */
:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --ground: light-dark(#f5efe4, #10131c);
  --paper: light-dark(#fbf8f2, #171b27);
  --panel: light-dark(#ece3d3, #1e2332);
  --ink: light-dark(#211b16, #f1ebdf);
  --ink-2: light-dark(#5b5046, #b9b0a3);
  --line: light-dark(#ddd0bb, #2d3345);
  --blue: light-dark(#2c4a9a, #a9bdff);
  --blue-fill: light-dark(#2c4a9a, #a9bdff);
  --on-blue: light-dark(#ffffff, #10131c);
  --sun: light-dark(#a8411a, #ff9c6b);
  --sage: light-dark(#4b6644, #a9c99f);
  --land: light-dark(#e6dac6, #1b2030);
  --dot: light-dark(#a8411a, #ffb38a);
  --dot-off: light-dark(#bcae97, #4a5168);
  --radius: 4px;
  --wrap: 1180px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, 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: 17px/1.62 var(--sans); }
@media (prefers-color-scheme: dark) {
  /* a few fixed stars behind the page after dark, never animated */
  body { background-image: radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 52%), radial-gradient(1px 1px at 68% 9%, #fff6 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 84% 31%, #fff5 50%, transparent 52%), radial-gradient(1px 1px at 33% 42%, #fff4 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 64%, #fff4 50%, transparent 52%), radial-gradient(1px 1px at 7% 77%, #fff3 50%, transparent 52%);
    background-attachment: fixed; }
}
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-top: 1.8em; }
p, li { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
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: var(--on-blue); 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); }

/* ribbon and bar */
.txs-ribbon { margin: 0; background: var(--ink); color: var(--ground); text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .45rem 16px; font-weight: 600; }
.txs-ribbon span { color: var(--dot); margin: 0 .4rem; }
.txs-ribbon i { font-style: normal; }
@media (max-width: 599.98px) { .txs-ribbon i { display: none; } }
.txs-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 3px double var(--line); view-transition-name: bar; }
.txs-bar__in { max-width: var(--wrap); margin: 0 auto; padding: .75rem 16px; display: flex; align-items: center; gap: 1rem; }
.txs-mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.txs-mark svg { width: 38px; height: 38px; fill: var(--sun); }
.txs-mark b { font-weight: 400; color: var(--sun); }
.txs-nav { margin-left: auto; display: flex; gap: .15rem; flex-shrink: 0; }
.txs-nav a { color: var(--ink); text-decoration: none; padding: .45rem .65rem; font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; }
.txs-nav a:hover, .txs-nav a[aria-current] { border-bottom-color: var(--sun); }
.txs-nav a[href="/register/"] { color: var(--on-blue); background: var(--blue-fill); border-radius: var(--radius); margin-left: .4rem; border-bottom: 0; }
.txs-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .55rem; cursor: pointer; }
.txs-menu span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }
.txs-drawer { border: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(330px, 86vw); padding: 3.5rem 1.2rem 1.2rem; background: var(--paper); 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(16 19 28 / .5); }
.txs-drawer nav { display: grid; }
.txs-drawer nav a { padding: .85rem .4rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.txs-drawer__x { position: absolute; top: .8rem; right: .8rem; font-size: 1.7rem; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; padding: .3rem .6rem; }
@media (max-width: 999.98px) { .txs-nav { display: none; } .txs-menu { display: block; } }

/* layout */
.txs-main { max-width: var(--wrap); margin: 0 auto; padding: 1.4rem 16px 3.5rem; }
.txs-trail { font-size: .88rem; color: var(--ink-2); margin-bottom: 1rem; }
.txs-trail a { color: var(--ink-2); }
.txs-kicker { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }

/* buttons, R5 restates foreground after region rules */
.txs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.15rem; border-radius: var(--radius); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-box: trim-both cap alphabetic; }
.txs-btn:hover { background: var(--ink); color: var(--ground); }
.txs-btn--go { background: var(--blue-fill); border-color: var(--blue-fill); color: var(--on-blue); }
.txs-btn--go:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.txs-btn--ghost { border-color: var(--line); }
.txs-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0; }

/* hero */
.txs-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 1.5rem 0 1rem; }
@media (max-width: 899.98px) { .txs-hero { grid-template-columns: 1fr; gap: 1rem; } }
.txs-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.txs-find { display: flex; gap: .5rem; margin: 1.3rem 0 .3rem; max-width: 560px; }
.txs-find input { flex: 1; min-width: 0; min-height: 54px; padding: .6rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 1.05rem; background: var(--paper); color: var(--ink); }
.txs-find input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }

/* the Texas dot map */
.txs-tx { margin: 0; }
.txs-tx svg { width: 100%; height: auto; display: block; overflow: visible; }
.txs-tx__land { fill: var(--land); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.txs-dot circle { fill: var(--dot-off); stroke: var(--ground); stroke-width: 1.2; transition: r .15s; }
.txs-dot.is-on circle { fill: var(--dot); fill-opacity: .82; }
.txs-dot:hover circle, .txs-dot:focus-visible circle { fill: var(--blue); fill-opacity: 1; }
.txs-dot:focus-visible { outline: none; }
.txs-tx__names text { font: 600 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 4px; stroke-linejoin: round; }
.txs-tx__names text.is-focus { font: 700 26px var(--serif); fill: var(--sun); stroke-width: 6px; }
.txs-tx figcaption { font-size: .88rem; color: var(--ink-2); margin-top: .4rem; text-align: center; }
.txs-cityhead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, .8fr); gap: 2rem; align-items: center; }
@media (max-width: 799.98px) { .txs-cityhead { grid-template-columns: 1fr; } .txs-cityhead .txs-tx { max-width: 360px; } }
.txs-place { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; }
.txs-place > * { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); text-decoration: none; }
.txs-place a { color: var(--sun); border-color: currentColor; }

/* numbers band */
.txs-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-block: 3px double var(--line); margin: 1.5rem 0 .5rem; }
.txs-numbers div { padding: 1.1rem 1rem; border-left: 1px solid var(--line); }
.txs-numbers div:first-child { border-left: 0; }
.txs-numbers dt { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); line-height: 1; color: var(--sun); font-variant-numeric: lining-nums; }
.txs-numbers dd { color: var(--ink-2); font-size: .95rem; margin-top: .35rem; }

/* fact cards, popover sources */
.txs-deck__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.txs-deck__head a { font-weight: 700; }
.txs-facts { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.txs-facts--tight { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.txs-fact { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sun); padding: 1rem 1.1rem 2.6rem; }
.txs-facts li:nth-child(3n+2) { border-top-color: var(--blue); }
.txs-facts li:nth-child(3n) { border-top-color: var(--sage); }
.txs-fact__k { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.txs-fact__t { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; }
.txs-src { position: absolute; left: 1.1rem; bottom: .8rem; background: none; border: 0; padding: .2rem 0; font: 600 .82rem var(--sans); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.txs-src__tip { margin: 0; inset: auto; position-area: top span-right; position-try-fallbacks: flip-block; margin-bottom: .4rem; max-width: 280px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: .9rem; box-shadow: 0 8px 24px rgb(0 0 0 / .14); }
.txs-aside-fact { position: relative; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sun); padding: 1rem 1.1rem 2.6rem; margin-bottom: 1.2rem; }
.txs-know { margin-top: 1rem; }

/* regions */
.txs-regions { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.txs-regions a { display: grid; gap: .2rem; height: 100%; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.txs-regions a:hover { border-color: var(--sun); }
.txs-regions b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.txs-regions span { color: var(--sun); font-weight: 700; font-size: .92rem; }
.txs-regions small { color: var(--ink-2); font-size: .9rem; }

/* bite, glance */
.txs-bite { font-size: 1.13rem; max-width: 68ch; }
.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: var(--radius); display: block; }
.txs-photo figcaption { font-size: .9rem; margin-top: .35rem; color: var(--ink-2); }
.txs-chip { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin: 0 0 .7rem; }
.txs-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 3px double var(--line); margin: 1.3rem 0; }
.txs-glance div { padding: .8rem .9rem; border-left: 1px solid var(--line); }
.txs-glance div:first-child { border-left: 0; }
.txs-glance dt { font-size: .74rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.txs-glance dd { font-family: var(--serif); font-size: 1.15rem; overflow-wrap: anywhere; }
.txs-note { background: var(--paper); border-left: 4px solid var(--blue); padding: .75rem 1rem; }

/* 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 .8rem; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; }
.txs-chips a:hover { border-color: var(--sun); }
.txs-chips span, .txs-index span { color: var(--sun); font-size: .85em; font-weight: 700; font-variant-numeric: tabular-nums; }
.txs-index { columns: 3 220px; padding: 0; list-style: none; }
.txs-index li { padding: .35rem 0; break-inside: avoid; border-bottom: 1px dotted var(--line); }
.txs-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* dense rows, the card shape: a ledger */
.txs-rows { list-style: none; padding: 0; margin: .5rem 0; border-top: 2px solid var(--ink); }
.txs-row { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 76px; }
.txs-row__name { font-family: var(--serif); font-size: 1.12rem; 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: 700; white-space: nowrap; text-decoration: none; padding: .5rem .8rem; border: 1.5px solid var(--blue); border-radius: var(--radius); color: var(--blue); }
.txs-row__tel:hover { background: var(--blue-fill); color: var(--on-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: .35rem; } }
.txs-open { font-size: .82rem; font-weight: 700; color: var(--sage); }
.txs-open[data-state="closed"] { color: var(--ink-2); }
.txs-open--big { font-size: .95rem; margin: 0; }
.txs-more summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: .7rem 0; }

/* entry */
.txs-entry__head { padding: .6rem 0 0; max-width: 840px; }
.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.15rem; }
.txs-claim { background: var(--ink); color: var(--ground); padding: 1.2rem; border-radius: var(--radius); }
.txs-claim h2 { margin-top: 0; color: var(--ground); }
.txs-claim .txs-btn--go { background: #ffb38a; border-color: #ffb38a; color: #10131c; }
.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: .85rem 0; font-weight: 700; 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; }

/* leaflet map behind a click */
.txs-map { margin: 1.2rem 0; border-radius: var(--radius); background: var(--paper); 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: 700; padding: 1.1rem; cursor: pointer; }
.leaflet-tile { filter: saturate(.45) sepia(.15) contrast(.95); }

/* why */
.txs-why { margin-top: 2.8rem; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 1.5rem; }
.txs-why h2 { margin-top: 0; }
.txs-why ul { padding-left: 1.1rem; }

/* facts page */
.txs-prose--wide { max-width: 860px; }
.txs-factlist { padding-left: 1.4rem; }
.txs-factlist li { padding: .55rem 0; border-bottom: 1px dotted var(--line); }
.txs-factlist li::marker { font-family: var(--serif); color: var(--sun); }
.txs-factlist p { margin: 0; font-size: 1.05rem; }
.txs-factlist .txs-cite { font-size: .85rem; color: var(--ink-2); margin-top: .2rem; }

/* 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; background: var(--paper); }
.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: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); 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: 3px double var(--line); background: var(--paper); }
.txs-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 2.2rem 16px 1rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 799.98px) { .txs-foot__in { grid-template-columns: 1fr; } }
.txs-foot__name { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.txs-foot__h { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.txs-foot__fact { font-family: var(--serif); font-size: 1.02rem; border-left: 3px solid var(--sun); padding-left: .8rem; }
.txs-foot__fact span { display: block; font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.txs-foot nav { display: grid; gap: .35rem; align-content: start; }
.txs-foot nav a { color: var(--ink); }
.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); }

/* TDLR license block */
.txs-lic { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sage); padding: .9rem 1.1rem; margin: 1.2rem 0; }
.txs-lic h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.txs-lic__line { margin: 0 0 .4rem; }
.txs-lic .txs-fine { margin: 0; }
