/* TradeShield free license checker — shared styles for /texas-license-lookup/ and the city pages. */
:root {
  --ink: #121311;
  --ink-2: #3A3934;
  --muted: #66655D;
  --paper: #F3F1EA;
  --card: #FBFAF6;
  --white: #ffffff;
  --line: #DAD5C7;
  --line-2: #CFCABB;
  --lime: #D7FF3A;
  --red: #C9341F;
  --red-bg: #FBE7E3;
  --amber: #8A5A00;
  --amber-bg: #FFF1CC;
  --green: #1F6B2E;
  --green-bg: #E3F2DF;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.ts-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.ts-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.ts-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; font-stretch: 85%; }
.ts-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ts-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.ts-nav a.link { text-decoration: none; color: var(--ink-2); }
.ts-nav a.link:hover { color: var(--ink); }
@media (max-width: 640px) { .ts-nav a.link { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; padding: 0 16px; height: 44px; font-family: var(--sans); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.btn-lime:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Hero */
.hero { padding: 48px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E0402B; }
h1 { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: clamp(38px, 6.2vw, 64px); line-height: .98; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16ch; }
h1 mark { background: linear-gradient(transparent 58%, var(--lime) 58%); color: inherit; padding: 0 .05em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 0; }

/* Checker card */
.checker { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); padding: 20px; margin: 28px 0 12px; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.tabs button { border: 0; background: var(--card); padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink-2); font-family: var(--sans); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 480px) { .tabs { display: flex; width: 100%; } .tabs button { flex: 1; white-space: nowrap; padding: 10px 8px; font-size: 14px; } }
.fields { display: grid; gap: 12px; grid-template-columns: 1.5fr 1.2fr auto; align-items: end; }
.fields.name-mode { grid-template-columns: 1.4fr 1.1fr 0.9fr auto; }
@media (max-width: 820px) { .fields, .fields.name-mode { grid-template-columns: 1fr 1fr; } .fields .go { grid-column: 1 / -1; } .fields .wide { grid-column: 1 / -1; } }
@media (max-width: 480px) { .fields, .fields.name-mode { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="search"], select {
  height: 46px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); padding: 0 12px;
  font-size: 16px; color: var(--ink); font-family: var(--sans); width: 100%;
}
input::placeholder { color: #8f8d84; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Results */
.status-line { font-size: 14px; color: var(--muted); margin: 16px 0 8px; min-height: 1.4em; }
.status-line.err { color: var(--red); }
.results { display: grid; gap: 10px; }
.result { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--card); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; }
.result .who { font-weight: 700; font-size: 17px; }
.result .biz { font-size: 14px; color: var(--ink-2); }
.result .meta { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.result .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.result .exp { font-size: 14px; color: var(--ink-2); }
.result .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .result { grid-template-columns: 1fr; } .result .right { text-align: left; justify-items: start; } }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.soon { background: var(--amber-bg); color: var(--amber); }
.pill.bad { background: var(--red-bg); color: var(--red); }
.remind { grid-column: 1 / -1; border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px; }
.remind form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .remind form { grid-template-columns: 1fr; } }
.remind .check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.remind .msg { grid-column: 1 / -1; font-size: 14px; margin: 0; }
.remind .msg.ok { color: var(--green); font-weight: 600; }
.remind .msg.err { color: var(--red); }

/* Crew CTA */
.crew { background: var(--ink); color: #ECEAE2; border-radius: 10px; padding: 24px; margin: 20px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.crew h2 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 26px; line-height: 1.1; margin: 0 0 6px; color: var(--white); }
.crew p { margin: 0; color: #A3A69C; }
@media (max-width: 720px) { .crew { grid-template-columns: 1fr; } }

/* Content sections */
section.block { padding: 36px 0; border-top: 1px solid var(--line); }
h2.sec { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px; }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 6px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stat .n { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: 40px; line-height: 1; }
.stat .l { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.source { font-size: 13px; color: var(--muted); }
table.facts { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { background: var(--card); font-size: 13px; color: var(--ink-2); }
table.facts tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
details.faq { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 14px 16px; margin: 0 0 10px; max-width: 760px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { background: var(--white); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 12px; text-decoration: none; font-size: 15px; }
.links a:hover { border-color: var(--ink); }

/* Footer */
.ts-footer { background: var(--ink); color: #A3A69C; padding: 32px 0; margin-top: 40px; font-size: 14px; }
.ts-footer a { color: #ECEAE2; }
.ts-footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.ts-footer p { margin: 0 0 8px; }
