/* TX eWaste directory styles. Calm slate blue with one warm amber accent. System fonts only. */
:root {
  --navy: #16304a;
  --navy-2: #1d3d5c;
  --blue: #1f4e79;
  --blue-hover: #163a5c;
  --accent: #a84a08;
  --accent-hover: #8a3c05;
  --accent-soft: #fbeee2;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #4a5566;
  --line: #d8dde4;
  --line-strong: #b9c1cc;
  --focus: #e08a2c;
  --yes: #0b6b4b;
  --no: #8a1c1c;
  --maybe: #7a4a00;
  --unknown: #4a5566;
  --verified-bg: #e3f3ec; --verified-fg: #0b5c43; --verified-line: #b5dcc9;
  --listed-bg: #edf1f6; --listed-fg: #34465c; --listed-line: #cfd8e3;
  --possible-bg: #fdf2e2; --possible-fg: #6e3f00; --possible-line: #efd2a8;
  --review-bg: #fff6d9; --review-fg: #5f4300; --review-line: #ecd68e;
  --cred-bg: #e7eff9; --cred-fg: #1f4e79; --cred-line: #c4d5ea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(22, 48, 74, .06), 0 2px 8px rgba(22, 48, 74, .06);
  --shadow-lg: 0 4px 18px rgba(22, 48, 74, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { vertical-align: middle; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1:focus, h2:focus, [tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.1rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; margin: .5em 0 0; }
.break { word-break: break-all; }

/* Skip link */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--blue); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 750; font-size: 1.15rem; letter-spacing: .01em; }
.brand-tag { font-size: .78rem; color: #c9d6e3; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: #e8eef5; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 550; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.coverage { background: var(--accent-soft); border-bottom: 1px solid #efd5bd; color: #5c2c05; font-size: .92rem; }
.coverage .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; gap: 8px; align-items: center; }
.coverage svg { flex: none; color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #24486b 100%); color: #fff; padding: 56px 0 44px; }
.hero h1 { color: #fff; font-size: 2.6rem; max-width: 18ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: #f2c9a0; margin-bottom: .6em; }
.lede { font-size: 1.12rem; color: #dbe5ef; max-width: 60ch; }

/* Search bar */
.searchbar { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 5px 5px 5px 12px; gap: 8px; max-width: 720px; box-shadow: var(--shadow); }
.searchbar-lg { margin: 24px 0 22px; padding: 7px 7px 7px 16px; border: 0; box-shadow: var(--shadow-lg); }
.searchbar-icon { color: var(--muted); display: flex; }
.searchbar input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 4px; color: var(--text); background: transparent; }
.searchbar input:focus { outline: none; }
.searchbar:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--blue); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-hover); }
.btn-quiet { background: transparent; color: var(--blue); padding-left: 6px; padding-right: 6px; text-decoration: underline; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* Chips */
.service-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.service-bar-label { color: #dbe5ef; font-size: .92rem; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; font-size: .92rem; font-weight: 550; }
.chip:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.chip-n { background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 0 8px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.chip-ghost { background: transparent; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: -22px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.stats > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: .82rem; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Sections */
.section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.how { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.how p { margin: 0; }

/* City grid */
.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.city-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; height: 100%; }
.city-card:hover { border-color: var(--blue); transform: translateY(-1px); color: var(--text); }
.city-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.city-count { color: var(--muted); font-size: .9rem; }
.city-grid li:first-child { grid-column: span 2; }
.city-card-lead { background: linear-gradient(135deg, #fff 0%, #f1f5fa 100%); border-color: var(--line-strong); }
.city-card-lead .city-name { font-size: 1.3rem; }

/* Page */
.page { padding-top: 22px; padding-bottom: 56px; }
.page-narrow { max-width: 820px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-strong); }
.page-head { margin-bottom: 22px; }
.page-head .searchbar { margin-top: 14px; }
.page-intro { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }

/* List layout */
.list-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 16px; }
.filters-box summary { padding: 14px 18px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filters-box summary::-webkit-details-marker { display: none; }
.filters-box summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.filters-box[open] summary::after { content: "-"; }
.filters-active { color: var(--accent); font-weight: 600; margin-left: auto; margin-right: 8px; }
.filters-body { padding: 0 18px 16px; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 8px; }
.filters legend { font-weight: 650; font-size: .9rem; color: var(--navy); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.filters ul { list-style: none; margin: 0; padding: 0; clear: both; }
.filters li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.filters input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.filters label { display: flex; justify-content: space-between; flex: 1; gap: 8px; cursor: pointer; font-size: .95rem; }
.filters .count { align-self: flex-start; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; background: var(--bg); border-radius: 999px; padding: 0 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.result-count { margin: 0; font-weight: 650; color: var(--navy); }
.sort { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; color: var(--text); padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .15s; }
.card:hover { border-color: var(--line-strong); }
.card-cat { margin: 0 0 2px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.card-title { font-size: 1.15rem; margin: 0 0 6px; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { text-decoration: underline; color: var(--blue); }
.card-addr { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); margin: 0 0 10px; font-size: .95rem; }
.card-addr svg { margin-top: 3px; flex: none; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.fact-k { color: var(--muted); }
.fact-v { font-weight: 600; }
.st-yes { color: var(--yes); }
.st-no { color: var(--no); }
.st-maybe { color: var(--maybe); }
.st-unknown { color: var(--unknown); font-weight: 500; }
.card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; min-width: 230px; }
.card-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.card-more { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; text-decoration: none; margin-top: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; padding: 4px 9px; border-radius: 999px; border: 1px solid; line-height: 1.3; }
.badge-verified { background: var(--verified-bg); color: var(--verified-fg); border-color: var(--verified-line); }
.badge-listed { background: var(--listed-bg); color: var(--listed-fg); border-color: var(--listed-line); }
.badge-possible { background: var(--possible-bg); color: var(--possible-fg); border-color: var(--possible-line); }
.badge-review { background: var(--review-bg); color: var(--review-fg); border-color: var(--review-line); }
.badge-cred { background: var(--cred-bg); color: var(--cred-fg); border-color: var(--cred-line); }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; }

/* Detail */
.detail-head { margin-bottom: 22px; }
.detail-head .badges { justify-content: flex-start; }
.detail-head h1 { margin-bottom: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.1rem; margin-bottom: 12px; }
.panel dl { margin: 0; }
.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); font-size: .93rem; }
.kv dd { margin: 0; }
.sub { margin: 6px 0 0; font-size: .93rem; }
.sub-k { color: var(--muted); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 9px; font-size: .9rem; }
.hours { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.panel-sources { background: #fafbfc; }
.sources { list-style: none; margin: 12px 0 0; padding: 0; }
.sources li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.src-k { display: block; font-weight: 650; color: var(--navy); font-size: .85rem; }
.callout { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; border: 1px solid; }
.callout svg { flex: none; margin-top: 3px; }
.callout-review { background: var(--review-bg); border-color: var(--review-line); color: var(--review-fg); }
.callout-maybe { background: var(--possible-bg); border-color: var(--possible-line); color: var(--possible-fg); }
.callout-proto { background: var(--cred-bg); border-color: var(--cred-line); color: var(--cred-fg); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.contact-line svg { flex: none; margin-top: 3px; color: var(--muted); }
.contact-actions { display: grid; gap: 8px; margin-top: 18px; }
.nearby { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.nearby h2 { font-size: 1.05rem; }
.nearby ul { list-style: none; margin: 0; padding: 0; }
.nearby li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.nearby li:first-child { border-top: 0; }
.nearby a { font-weight: 600; }
.near-meta, .near-badge { font-size: .85rem; color: var(--muted); }
.nearby p { margin: 10px 0 0; font-size: .92rem; }

/* Form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.type-pick { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.type-pick legend { font-weight: 650; color: var(--navy); margin-bottom: 8px; padding: 0; }
.radio { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--cred-bg); }
.radio input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.field { margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.hint { margin: -2px 0 6px; font-size: .88rem; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.field input[readonly] { background: var(--bg); color: var(--muted); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.has-error input, .has-error textarea { border-color: var(--no); }
.field-error { color: var(--no); font-size: .9rem; margin: 5px 0 0; font-weight: 600; }
.form-alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
.form-alert p { margin: 0 0 8px; }
.form-alert p:last-child { margin: 0; }
.form-alert-error { background: #fbeaea; border: 1px solid #e4b4b4; color: var(--no); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--muted); }
.success { background: var(--surface); border: 1px solid var(--verified-line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.success-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--verified-bg); color: var(--verified-fg); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.success-icon svg { width: 24px; height: 24px; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.success-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .label-list { list-style: none; padding: 0; }
.prose .label-list li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.facts-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 12px 0 8px; }
.facts-table th, .facts-table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); }
.facts-table th { font-weight: 500; color: var(--muted); }
.facts-table td { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.cta-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }

/* Footer */
.site-footer { background: var(--navy); color: #d3dee9; margin-top: 40px; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand { font-weight: 750; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; padding-bottom: 22px; color: #b9c8d8; font-size: .85rem; }
.footer-base p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .list-layout { grid-template-columns: 1fr; gap: 14px; }
  .filters-box { position: static; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  h1 { font-size: 1.65rem; }
  .hero { padding: 34px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .lede { font-size: 1rem; }
  .header-inner { padding-top: 10px; padding-bottom: 6px; }
  .brand-tag { display: none; }
  .site-nav a { padding: 6px 8px; font-size: .9rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats dd { font-size: 1.25rem; }
  .city-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { grid-template-columns: 1fr; padding: 16px; }
  .card-side { align-items: flex-start; text-align: left; min-width: 0; }
  .card-side .badges { justify-content: flex-start; }
  .card-more { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .field-row { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .searchbar .btn { padding: 10px 14px; }
  .service-bar-label { width: 100%; }
}
.view { min-height: 100vh; }
