/* TX Notary Index: "Porch Light" design system. Warm, local, quick to scan on a phone. No framework. */
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/SchibstedGrotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Body Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 98%; ascent-override: 97%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Head Fallback"; src: local("Arial Bold"), local("Arial"), local("Liberation Sans"); font-weight: 700; size-adjust: 97%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

:root {
  /* Color */
  --cream: #fbf6ee;
  --cream-2: #f3ebdd;
  --card: #ffffff;
  --ink: #1e1b17;
  --ink-2: #45403a;
  --muted: #5f5952;
  --line: #e7ddcc;
  --line-2: #cfc2ab;
  --night: #123a39;          /* header and footer */
  --night-2: #0c2a29;
  --night-ink: #f6efe2;
  --night-muted: #bfd0cc;
  --clay: #b8410e;           /* brand mark, kickers, focus */
  --teal: #0e5f5b;           /* actions */
  --teal-hover: #0a4744;
  --teal-tint: #e3f0ee;
  --ok: #1c6638;
  --ok-bg: #e5f2e7;
  --ok-line: #a9d1b3;
  --warn: #7a4600;
  --warn-bg: #fcf0d9;
  --warn-line: #e8c98c;

  /* Type */
  --body: "Figtree", "Body Fallback", Arial, sans-serif;
  --head: "Schibsted Grotesk", "Head Fallback", Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --fs-display: clamp(2rem, 1.4rem + 2.8vw, 3.3rem);

  /* Space (4px base) and shape */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r-sm: 6px;   /* chips, inputs, buttons */
  --r: 12px;     /* cards and panels */
  --lift: 0 1px 0 rgba(30, 27, 23, 0.04), 0 2px 8px -4px rgba(30, 27, 23, 0.12);
  --max: 74rem;
  --narrow: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); line-height: 1.6; min-height: 100vh; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--fs-display); margin: var(--s2) 0 var(--s4); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: var(--fs-xl); margin: var(--s7) 0 var(--s3); }
h3 { font-size: var(--fs-md); margin: var(--s5) 0 var(--s2); }
p, ul, ol { margin: 0 0 var(--s4); }
li { margin-bottom: var(--s2); }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(var(--narrow), calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; left: var(--s3); top: -3rem; background: var(--ink); color: #fff; padding: var(--s2) var(--s3); z-index: 30; border-radius: var(--r-sm); }
.skip:focus { top: var(--s3); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Header ---------------------------------------------------------------- */
.site-header { background: var(--night); color: var(--night-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--night-ink); text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand-logo { width: 2.2rem; height: 2.2rem; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-family: var(--head); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand-mark span { color: #f3b48f; }
.brand-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--night-muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: var(--s1) var(--s4); font-size: var(--fs-sm); }
.nav a { color: var(--night-ink); text-decoration: none; padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: #fff; border-bottom-color: rgba(246, 239, 226, 0.5); }
.nav a[aria-current="page"] { border-bottom-color: #f3b48f; color: #fff; }

.trust-notice { background: var(--cream-2); color: var(--ink-2); font-size: var(--fs-xs); padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.trust-notice .wrap { display: flex; gap: var(--s2); align-items: baseline; }
.trust-notice svg { flex: none; width: 0.9rem; height: 0.9rem; position: relative; top: 0.15rem; color: var(--clay); }

/* ---- Page heads ------------------------------------------------------------ */
.hero { padding: var(--s6) 0 var(--s5); }
.hero:has(+ .wrap.narrow) > .wrap { width: min(var(--narrow), calc(100% - 2.5rem)); }
.kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin: 0; }
.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 42rem; }
.meta { font-size: var(--fs-sm); color: var(--muted); }
.cite { font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s6); }

/* Home hero: headline left, search panel right */
.home-hero { padding: var(--s6) 0 var(--s7); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: start; }
.home-hero h1 { max-width: 16ch; }
.home-hero .lede { font-size: 1.02rem; }
@media (min-width: 64rem) { .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: var(--s8); } .home-hero h1 { margin-top: var(--s4); } }

/* ---- Panels, search, filters ---------------------------------------------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); padding: var(--s5); margin: 0 0 var(--s5); }
.search-panel { border-top: 4px solid var(--clay); }
.search-panel h2 { font-size: var(--fs-lg); margin: 0 0 var(--s2); }
.search-panel > p { font-size: var(--fs-sm); color: var(--ink-2); }
.search-panel h3 { font-family: var(--body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: var(--s5) 0 var(--s2); }
.search-row { display: flex; gap: var(--s2); align-items: flex-end; }
.search-row label { flex: 1; font-weight: 700; font-size: var(--fs-sm); }
label { display: block; font-weight: 700; font-size: 0.94rem; }
input[type=search], input[type=text], input[type=url], input[type=email], select, textarea { display: block; width: 100%; margin-top: var(--s1); font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0.7rem 0.8rem; min-height: 3rem; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3rem; padding: 0.6rem 1.25rem; font: inherit; font-weight: 700; color: #fff; background: var(--teal); border: 0; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--teal-hover); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 0; }
.filters label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); background: var(--cream); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0.45rem 0.75rem; min-height: 2.6rem; cursor: pointer; user-select: none; }
.filters label:hover { border-color: var(--teal); }
.filters input { accent-color: var(--teal); width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }
.filters label:has(input:checked) { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-hover); }
.search-panel .meta { font-size: var(--fs-xs); margin-bottom: var(--s2); }

/* ---- Callouts --------------------------------------------------------------- */
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: var(--r-sm); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }
.callout p:last-child { margin-bottom: 0; }
.callout.info { border-left-color: var(--teal); background: var(--teal-tint); margin-top: var(--s4); }
.disclosure { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-sm); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }
.disclosure p:last-child { margin-bottom: 0; }
.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); margin: var(--s6) 0 var(--s4); }
.how svg { width: 3rem; height: 3rem; color: var(--ok); }
.how p { margin: 0; color: var(--ink-2); }
@media (min-width: 48rem) { .how { grid-template-columns: 3.5rem minmax(0, 1fr); padding: var(--s5) var(--s6); } }

/* ---- Home: city index and guide links -------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); border-bottom: 2px solid var(--ink); padding-bottom: var(--s2); margin: var(--s4) 0 0; }
.section-head h2 { margin: 0; }
.city-index { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; grid-template-columns: minmax(0, 1fr); }
.city-index li { margin: 0; border-bottom: 1px solid var(--line); }
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s4); align-items: center; padding: var(--s5) 0; text-decoration: none; color: var(--ink); }
.city-row h3 { margin: 0; font-size: var(--fs-xl); }
.city-row p { grid-column: 1; margin: 0; color: var(--ink-2); font-size: 0.95rem; max-width: 40rem; }
.city-row .go { grid-row: 1 / span 2; grid-column: 2; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--teal); font-size: 1.2rem; }
.city-row:hover h3 { color: var(--teal); }
.city-row:hover .go { background: var(--teal); border-color: var(--teal); color: #fff; }
.guide-links { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s6); }
.guide-links li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-link { display: block; padding: var(--s4) 0; text-decoration: none; color: var(--ink-2); }
.guide-link h3 { margin: 0 0 var(--s1); font-size: var(--fs-md); color: var(--ink); }
.guide-link p { margin: 0; font-size: var(--fs-sm); }
.guide-link:hover h3 { color: var(--teal); text-decoration: underline; text-underline-offset: 0.18em; }
@media (min-width: 48rem) { .guide-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guide-links li { border-bottom: 0; border-top: 1px solid var(--line); } }

/* ---- City page ------------------------------------------------------------- */
.city-hero { padding-bottom: var(--s5); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.stats li { margin: 0; display: flex; flex-direction: column; }
.stats b { font-family: var(--head); font-size: 2rem; line-height: 1; color: var(--ink); font-weight: 700; }
.stats span { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s1); }
.stats .ok b { color: var(--ok); }
.directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.directory-side .panel { margin-bottom: var(--s4); }
.listing-toolbar label { font-size: var(--fs-sm); }
#listing-filters .meta { font-size: var(--fs-xs); margin: var(--s3) 0 var(--s2); }
.listing-meta { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 var(--s3); }
.listing-list { display: grid; gap: var(--s4); }
@media (min-width: 64rem) {
  .directory { grid-template-columns: 19rem minmax(0, 1fr); gap: var(--s6); }
  .directory-side { position: sticky; top: var(--s4); max-height: calc(100vh - 2rem); overflow-y: auto; }
  .directory-side .filters { flex-direction: column; }
  .directory-side .filters label { width: 100%; }
}

/* Listing card */
.listing-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; }
.listing-card[hidden] { display: none; }
.lc-status { display: flex; align-items: center; gap: var(--s2); padding: 0.55rem var(--s5); font-size: var(--fs-sm); font-weight: 700; border-bottom: 1px solid; }
.lc-status svg { width: 1.1rem; height: 1.1rem; flex: none; }
.lc-status.yes { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.lc-status.no { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.lc-body { padding: var(--s4) var(--s5) var(--s5); }
.lc-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3) var(--s5); align-items: start; }
.listing-card h3 { margin: 0; font-size: var(--fs-lg); }
.listing-card .biz { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.lc-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-site { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.9rem; padding: 0.55rem 1rem; border-radius: var(--r-sm); background: var(--teal); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; max-width: 100%; }
.btn-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-site svg { width: 1rem; height: 1rem; flex: none; }
.btn-site:hover { background: var(--teal-hover); color: #fff; }
@media (min-width: 40rem) { .lc-head { grid-template-columns: minmax(0, 1fr) auto; } }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: var(--s4) 0 var(--s3); }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; padding: 0.3rem 0.55rem; border-radius: var(--r-sm); background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag.t-apostille { background: #f6e3d8; border-color: #e7bfa8; color: #7d2e0a; }
.tag.t-ron { background: var(--teal-tint); border-color: #b5d6d2; color: var(--teal-hover); }
.listing-card .detail { color: var(--ink-2); margin-bottom: var(--s3); }
.lc-facts { margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.lc-facts p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.lc-facts strong { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.muted-note { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--s2); }
.lc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); border-top: 1px dashed var(--line); padding-top: var(--s3); margin-top: var(--s3); }
.lc-foot .meta { margin: 0; }
details.sources { font-size: var(--fs-sm); }
details.sources summary { cursor: pointer; color: var(--teal); font-weight: 700; }
details.sources ul { margin: var(--s2) 0 0; padding-left: 1.1rem; }
details.sources li { overflow-wrap: anywhere; color: var(--muted); }
.lc-foot details[open] { flex-basis: 100%; }

/* ---- Article pages (apostille, online notarization, about, disclosure, forms) */
.wrap.narrow > h2 { padding-top: var(--s4); border-top: 1px solid var(--line); margin-top: var(--s6); }
.wrap.narrow ul { padding-left: 1.2rem; }
.wrap.narrow li::marker { color: var(--clay); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 0.94rem; margin: var(--s4) 0 var(--s5); }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--night); color: var(--night-ink); font-family: var(--head); font-size: var(--fs-sm); letter-spacing: 0.01em; }
table.compare tbody td:first-child { font-weight: 700; color: var(--ink); width: 22%; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3) var(--s4) var(--s2); margin: 0 0 var(--s4); }
legend { font-weight: 700; padding: 0 var(--s1); }
fieldset label { display: flex; align-items: center; gap: var(--s2); font-weight: 400; padding: 0.35rem 0; min-height: 2.4rem; }
fieldset input { accent-color: var(--teal); width: 1.1rem; height: 1.1rem; margin: 0; }
.req { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: var(--fs-sm); color: var(--ink-2); background: var(--cream-2); border-radius: var(--r-sm); padding: var(--s4); }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { margin-top: var(--s8); background: var(--night-2); color: var(--night-muted); padding: var(--s7) 0 var(--s6); font-size: var(--fs-sm); }
.site-footer a { color: var(--night-ink); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--night-ink); font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 0 0 var(--s3); }
.footer-brand svg { width: 2rem; height: 2rem; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { max-width: 42rem; margin: 0 0 var(--s3); }
.footer-legal { border-top: 1px solid rgba(246, 239, 226, 0.15); margin-top: var(--s5); padding-top: var(--s4); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s7); } }

/* ---- Small screens --------------------------------------------------------- */
@media (max-width: 60rem) {
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--s3); }
  .nav { overflow-x: auto; scrollbar-width: none; margin: 0 -1.25rem; padding: var(--s1) 1.25rem var(--s2); gap: var(--s4); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 40rem) {
  html { font-size: 100%; }
  .wrap, .narrow { width: calc(100% - 2rem); }
  .nav { margin-inline: -1rem; padding-inline: 1rem; }
  .hero, .home-hero { padding-top: var(--s5); }
  .panel { padding: var(--s4); }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-row .btn { width: 100%; }
  .lc-status { padding-inline: var(--s4); }
  .lc-body { padding: var(--s4); }
  .btn-site { width: 100%; justify-content: center; }
  #listing-filters .filters { flex-wrap: nowrap; overflow-x: auto; margin: var(--s2) calc(-1 * var(--s4)) 0; padding: 0 var(--s4) var(--s1); scrollbar-width: none; }
  #listing-filters .filters label { flex: none; }
  .stats b { font-size: 1.7rem; }
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare td { display: block; width: 100%; }
  table.compare tr { border-bottom: 1px solid var(--line-2); }
  table.compare tbody td:first-child { width: 100%; background: var(--cream-2); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* FAQ page */
.faq .faq-item { margin: 0; padding: var(--s5) 0 0; border-top: 1px solid var(--line); }
.faq .faq-item:first-child { border-top: 0; padding-top: 0; }
.faq .faq-item h2 { margin-top: 0; font-size: var(--fs-lg); }
