/*
  Texas Food Truck Permits — 2026 facelift layer.
  Loaded after each page's inline <style>, so it refreshes all 15 page templates without
  rewriting them. Brand stays navy + gold, headlines stay Barlow Condensed. Body copy moves
  to Public Sans, the page canvas warms up, and every button, link, table and footer gets
  consistent states. Remove the <link> tag to roll back.
*/
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --fl-navy: #1a2e4a;
  --fl-navy-deep: #111e30;
  --fl-gold: #c9a84c;
  --fl-gold-bright: #e0c168;
  --fl-paper: #f8f6f1;
  --fl-paper-line: #e7e1d3;
  --fl-ink: #1c2b3a;
  --fl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --off: var(--fl-paper);
}

/* ---------- canvas + reading type ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Public Sans", "Barlow", system-ui, sans-serif;
  background-color: var(--fl-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0, "kern" 1;
}
/* header chrome keeps Barlow so menu widths stay exactly as designed */
nav, .nav-mobile-panel { font-family: "Barlow", system-ui, sans-serif; }
:not(nav *):is(p, li, td, dd, blockquote, summary, label, input, select, textarea) { font-family: "Public Sans", "Barlow", system-ui, sans-serif; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -0.012em; }
::selection { background: var(--fl-gold); color: var(--fl-navy-deep); }

/* body links: quiet underline that firms up on hover */
:is(main, article, .article, .article-body, .layout, .content, section) :is(p, li, td) a:not([class*="btn"]):not([class*="cta"]) {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.15s var(--fl-ease), color 0.15s var(--fl-ease);
}
:is(main, article, .article, .article-body, .layout, .content, section) :is(p, li, td) a:not([class*="btn"]):not([class*="cta"]):hover {
  text-decoration-color: currentColor;
}

/* ---------- header ---------- */
nav {
  background-color: color-mix(in srgb, var(--fl-navy-deep) 92%, transparent) !important;
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -22px rgba(0, 0, 0, 0.7);
}
nav :is(.nav-links, .links) a:not(.cta):not([class*="btn"]) { position: relative; transition: color 0.15s var(--fl-ease); }
nav :is(.nav-links, .links) a:not(.cta):not([class*="btn"])::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: var(--fl-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s var(--fl-ease);
}
nav :is(.nav-links, .links) a:not(.cta):not([class*="btn"]):hover::after { transform: scaleX(1); }

/* ---------- hero: navy lit from the upper right, closed by a gold rule ---------- */
/* (the DSHS-login pages use a white hero, so they keep their own) */
:root:not(:has(link[rel="canonical"][href*="blog-texas-dshs-login"])) :is(.hero, .article-hero, .page-hero, .pr-hero) {
  background-image: radial-gradient(110% 130% at 88% -25%, rgba(74, 133, 187, 0.26) 0%, rgba(74, 133, 187, 0) 58%) !important;
  box-shadow: inset 0 -3px 0 var(--fl-gold);
}

/* ---------- buttons: one interaction language everywhere ---------- */
a:is([class*="btn"], [class*="cta"]):not(.cta-inline):not(.cta-full):not(.cta-box):not(.cta-band):not(.cta-note):not(.cta-mid),
:is(.cta-inline, .cta-full, .kit-cta, .inline-cta, .cta-box, .cta-band, .bottom-cta, .icta) a,
button[type="submit"], input[type="submit"] {
  transition: transform 0.15s var(--fl-ease), box-shadow 0.15s var(--fl-ease), background-color 0.15s var(--fl-ease), color 0.15s var(--fl-ease), filter 0.15s var(--fl-ease);
}
a:is([class*="btn"], [class*="cta"]):not(.cta-inline):not(.cta-full):not(.cta-box):not(.cta-band):not(.cta-note):not(.cta-mid):hover,
:is(.cta-inline, .cta-full, .kit-cta, .inline-cta, .cta-box, .cta-band, .bottom-cta, .icta) a:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(17, 30, 48, 0.6);
  filter: brightness(1.04);
}
a:is([class*="btn"], [class*="cta"]):active, button[type="submit"]:active { transform: translateY(0); box-shadow: none; }

/* ---------- tables ---------- */
:is(main, article, .article, .article-body, .layout, section) table { box-shadow: 0 0 0 1px var(--fl-paper-line); }
:is(main, article, .article, .article-body, .layout, section) th { letter-spacing: 0.06em; }
:is(main, article, .article, .article-body, .layout, section) tbody tr td { transition: background-color 0.12s var(--fl-ease); }
:is(main, article, .article, .article-body, .layout, section) tbody tr:hover td { background-color: #f6efd9; }

/* ---------- footer: readable (old footers used 25–45% white on navy) ---------- */
footer, footer p, footer .fine, footer small { color: rgba(255, 255, 255, 0.68) !important; }
footer strong { color: #fff; }
footer a { color: var(--fl-gold-bright) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(224, 193, 104, 0.4); }
footer a:hover { text-decoration-color: var(--fl-gold-bright); }

/* ---------- keyboard focus ---------- */
:focus-visible { outline: 3px solid var(--fl-gold); outline-offset: 2px; }
nav :focus-visible, footer :focus-visible, :is(.hero, .article-hero, .page-hero, .pr-hero) :focus-visible { outline-color: var(--fl-gold-bright); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- DIY Success Kit: inline box (in articles) + slide-in offer (assets/kit-offer.js) ---------- */
.tfp-kit {
  background: #fff; border: 1px solid var(--fl-paper-line); border-top: 4px solid var(--fl-gold);
  padding: 1.4rem 1.6rem; margin: 2.25rem 0; box-shadow: 0 10px 28px -20px rgba(17, 30, 48, 0.45);
}
.tfp-kit-tag {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em;
  color: #8a6d1a; margin: 0 0 0.35rem;
}
.tfp-kit-title, .tfp-kit-offer-title {
  font-family: "Barlow Condensed", sans-serif !important; font-weight: 800; font-size: 1.35rem; line-height: 1.15;
  color: var(--fl-navy); margin: 0 0 0.5rem !important;
}
.tfp-kit-copy, .tfp-kit-offer-body { font-size: 0.95rem !important; line-height: 1.65 !important; color: #4d6070; margin: 0 0 1rem !important; }
.tfp-kit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.tfp-kit-btn {
  display: inline-block; background: var(--fl-gold); color: var(--fl-navy-deep) !important; text-decoration: none !important;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7rem 1.35rem;
}
.tfp-kit-more { font-weight: 600; font-size: 0.92rem; color: #2d6aa0 !important; text-decoration: none !important; }
.tfp-kit-more:hover { text-decoration: underline !important; }
.tfp-kit-note { font-size: 0.8rem !important; color: #7d8a96 !important; margin: 0.85rem 0 0 !important; }

.tfp-kit-offer {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: min(360px, calc(100vw - 24px));
  background: var(--fl-navy-deep); color: #fff; padding: 1.25rem 1.3rem 1.2rem;
  border-top: 4px solid var(--fl-gold); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
  transform: translateY(24px); opacity: 0; transition: transform 0.26s var(--fl-ease), opacity 0.26s var(--fl-ease);
}
.tfp-kit-offer.is-in { transform: none; opacity: 1; }
.tfp-kit-offer .tfp-kit-tag { color: var(--fl-gold-bright); }
.tfp-kit-offer .tfp-kit-offer-title { color: #fff; font-size: 1.3rem; padding-right: 1.5rem; }
.tfp-kit-offer .tfp-kit-offer-body { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem !important; }
.tfp-kit-offer .tfp-kit-more { color: var(--fl-gold-bright) !important; }
.tfp-kit-offer-x {
  position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.7); font-size: 1.6rem; line-height: 1;
}
.tfp-kit-offer-x:hover { color: #fff; }
@media (max-width: 600px) {
  .tfp-kit { padding: 1.2rem 1.15rem; }
  .tfp-kit-offer { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .tfp-kit-offer.has-sticky { bottom: 84px; }
  .tfp-kit-btn { width: 100%; text-align: center; }
}

/* ---------- Full-Service: payment plan by arrangement ---------- */
.tfp-plan-note { font-size: 0.85rem !important; line-height: 1.5 !important; color: #4d6070 !important; margin: 0.7rem 0 0 !important; text-align: center; }
.tfp-plan-note a { color: #1a2e4a !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
