/* ==========================================================================
   US People Search - common.css
   Shared by / (reverse phone) and /email (reverse email) plus the legal,
   about and error pages. Tokens, reset, page shell, header, tab strip,
   search bar, alerts, notice popup, result cards, skeleton + enter
   animations, footer and responsive rules.

   Contract notes (do not "clean up"):
   - The page JS stamps these classes and reads these ids; every selector
     below that starts with # or .cx-/.tcpa-/.email- is part of that API.
   - #cx-loader / #cx-not-found / #cx-ie are MOVED into #cards-wrap at
     runtime; they must stay class-styled (no .errors descendant rules).
   - .label / .value are h3/h4/h5 headings: UA margins are zeroed here.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: "Scrubber-Regular";
    src: url("/font/UPS.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Scrubber-Bold";
    src: url("/font/UPS.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
    /* brand */
    --navy: #436280;
    --navy-2: #516f90;
    --navy-3: #587797;
    --navy-4: #849bb4;
    --navy-dark: #425b74;
    --brand-blue: #2D5B8D;
    --red: #F60610;
    --red-2: #FF1F1F;
    --red-soft: #E95A5A;
    --red-dark: #c62828;
    --red-mid: #d9363e;
    --red-deep: #a71d2a;
    --white: #ffffff;
    --magenta: #c23e91;
    --magenta-2: #a33c7d;
    --dot-1: #c50f0f;
    --dot-3: #CA3741;
    --dot-5: #faaacc;
    --grad-wordmark: linear-gradient(to right, rgb(255, 31, 31), #516f90);
    --grad-heading: linear-gradient(to right, #436280, #516f90, #436280);

    /* status */
    --green: #158a3c;
    --green-bg: #e6f4ea;
    --green-line: #bfe3c9;
    --red-bg: #fdecec;
    --red-line: #f3b8b8;
    --amber-bg: #fff6e0;

    /* surfaces */
    --bg: #f4f6f8;
    --surface: #ffffff;
    --tint: #eef2f6;
    --tint-2: #f7f9fb;
    --line: #d9e0e7;
    --line-strong: #c5cfd9;
    --text: #2f3b46;
    --muted: #6b7a89;
    --muted-2: #8b98a5;
    --skeleton-a: #e6eaee;
    --skeleton-b: #f3f5f7;
    --skeleton-on-navy-a: rgba(255, 255, 255, 0.20);
    --skeleton-on-navy-b: rgba(255, 255, 255, 0.38);

    /* spacing scale (4/8) */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-7: 28px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;

    /* geometry */
    --radius: 0;
    --radius-chip: 2px;
    --container: 1040px;
    --gutter: 16px;
    --control-h: 60px;
    --control-h-sm: 52px;
    --search-w: 340px;
    --rule: rgb(233, 90, 90);
    --report-h: 44px;
    --badge: 24px;
    --shadow-panel: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04);
    --shadow-pop: 0 8px 24px rgba(16, 24, 40, 0.14);

    /* type */
    --font: "Scrubber-Regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-bold: "Scrubber-Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-form: "Poppins-Medium", "Scrubber-Regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fs-xs: 11px;
    --fs-sm: 13px;
    --fs-base: 16px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-input: 24px;

    /* motion */
    --t-fast: 120ms;
    --t-base: 180ms;
    --t-enter: 220ms;
}

/* --- Reset / base --------------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.4;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select {
    font: inherit;
    color: inherit;
    border-radius: var(--radius);
}

button {
    cursor: pointer;
}

a {
    color: var(--navy);
}

/* layout primitives the JS stamps on generated nodes */
.d-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.d-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.align-stretch {
    align-items: stretch;
}

.hidden {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

/* --- Page shell ----------------------------------------------------------- */

#hr {
    display: none;
}

#main {
    position: relative;
    width: 100%;
    padding: var(--s-6) var(--gutter) var(--s-16);
    flex: 1 0 auto;
    /* the search row's edge-to-edge red rule (100vw) is clipped here so it
       can never widen the document; `clip` keeps #main from becoming a
       scroll container, `hidden` is the fallback */
    overflow-x: hidden;
    overflow-x: clip;
}

/* visible per-page <h1> above the tab strip (seo markup, new UI only) */
.page-h1 {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto var(--s-4);
    font-family: var(--font-bold);
    font-size: 24px;
    line-height: 30px;
    font-weight: normal;
    text-align: center;
    color: var(--navy);
    overflow-wrap: anywhere;
}

/* every top-level block sits in the same 1040px column */
.input-form,
.tcpa-status,
.email-status,
.cx-info,
.content,
.legal,
#main > .errors {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-logo-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.site-brand {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
}

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-logo svg {
    width: 44px;
    height: 44px;
}

.site-title {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    white-space: nowrap;
}

.site-title .user-icon-container {
    position: absolute;
    top: 0;
    left: 2px;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
}

.site-title .user-icon-container svg {
    width: 13px;
    height: 13px;
}

.site-h1 {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-weight: inherit;
    text-align: left;
}

.title-begin,
.title-end {
    display: block;
    background: var(--grad-wordmark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
}

.title-begin {
    font-family: var(--font-bold);
    font-size: 26px;
    line-height: 26px;
    letter-spacing: 0.01em;
}

.title-end {
    font-family: var(--font);
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.22em;
    text-align: right;
    padding-right: 1px;
}

/* --- Search panel: tab strip + search bar --------------------------------- */

.input-form {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-panel);
    margin-bottom: var(--s-3);
}

.nav-wrap {
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: var(--tint);
}

ul.navbar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

ul.navbar li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

ul.navbar li + li {
    border-left: 1px solid var(--line);
}

a.nav-link {
    display: block;
    width: 100%;
    padding: 13px var(--s-2) 10px;
    margin-bottom: -1px;
    font-family: var(--font-bold);
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: var(--navy-3);
    text-decoration: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
    white-space: nowrap;
}

a.nav-link:hover {
    color: var(--navy);
    background: var(--tint-2);
}

a.nav-link.active,
a.nav-link[aria-current="page"] {
    color: var(--navy);
    background: var(--surface);
    border-bottom-color: var(--navy);
    cursor: default;
}

/* compact, centred search row: a ~340px field + square button, with the
   red rule running edge-to-edge behind them at their vertical centre */
.input-form > form {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding: var(--s-6) var(--s-5) var(--s-8);
    margin: 0;
}

.input-form > form:not(.report)::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: calc(var(--s-6) + var(--control-h) / 2);
    width: 100vw;
    height: 0;
    transform: translate(-50%, -1px);
    border-top: 2px solid var(--rule);
    pointer-events: none;
}

label#num_wrap,
label#email_wrap {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 1 var(--search-w);
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: text;
}

#input {
    display: block;
    width: 100%;
    height: var(--control-h);
    margin: 0;
    padding: 0 var(--s-4);
    font-family: var(--font);
    font-size: var(--fs-input);
    line-height: normal;
    letter-spacing: 0.02em;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-radius: var(--radius);
    outline: none;
    caret-color: var(--red-2);
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: textfield;
    transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

#input::placeholder {
    color: var(--muted-2);
    opacity: 0.8;
}

#input::-webkit-inner-spin-button,
#input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

label#num_wrap:focus-within #input,
label#email_wrap:focus-within #input {
    border-color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}

label#num_wrap.invalid #input,
label#email_wrap.invalid #input {
    border-color: var(--red-mid);
    box-shadow: inset 0 0 0 1px var(--red-mid);
}

#input[readonly] {
    background: var(--tint-2);
}

label p,
#invalid {
    position: absolute;
    left: 0;
    top: 100%;
    margin: 6px 0 0;
    font-family: var(--font-bold);
    font-size: var(--fs-sm);
    line-height: 16px;
    color: var(--red-mid);
    white-space: nowrap;
}

#submit {
    position: relative;
    z-index: 1;
    flex: 0 0 var(--control-h);
    width: var(--control-h);
    height: var(--control-h);
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}

#submit:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

#submit:focus-visible {
    outline: 2px solid var(--navy-4);
    outline-offset: 2px;
}

#submit:disabled,
#submit.disabled-btn,
.disabled-btn {
    opacity: 0.55;
    cursor: not-allowed !important;
}

#submit:disabled:hover,
#submit.disabled-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
}

/* --- Section heading bars ------------------------------------------------- */

.heading {
    width: 100%;
    margin: 0;
    padding: 9px var(--s-4);
    font-family: var(--font-bold);
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    color: var(--navy-dark);
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.tcpa-status,
.email-status,
.cx-info {
    margin-top: var(--s-4);
}

/* status modifiers shared by the status panels and the address badge */
.alert {
    color: var(--red-mid);
}

.safe {
    color: var(--green);
}

/* --- Result cards --------------------------------------------------------- */

.cx-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s-3);
    width: 100%;
    min-height: 80px;
    margin-top: var(--s-3);
    position: relative;
    color: var(--navy);
}

#cards-wrap.loading {
    pointer-events: none;
}

.cx-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
    text-align: left;
}

.cx-card .label,
.cx-card .value {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.cx-card .label {
    font-family: var(--font-bold);
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* header band: PERSON NAME / AGE */
.cx-basic {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    width: 100%;
    padding: 10px var(--s-4);
    color: var(--white);
    background: var(--navy);
    text-transform: capitalize;
}

.cx-basic.premium {
    background: var(--magenta);
}

.cx-name,
.cx-age {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.cx-name {
    flex: 1 1 auto;
}

.cx-age {
    flex: 0 0 auto;
    align-items: flex-end;
    text-align: right;
}

.cx-basic .label {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 3px;
}

.cx-basic .value {
    font-family: var(--font-bold);
    font-size: 22px;
    line-height: 26px;
    color: var(--white);
    overflow-wrap: anywhere;
}

/* address rows */
.cx-addresses {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-transform: uppercase;
}

.cx-address {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-3);
    width: 100%;
    padding: var(--s-2) var(--s-4);
    color: var(--navy);
    border-bottom: 1px solid var(--line);
}

.cx-address:last-of-type {
    border-bottom: 0;
}

.cx-address-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
}

.cx-address-col .label {
    margin-bottom: 2px;
}

.cx-address-col .value {
    font-family: var(--font-bold);
    font-size: 17px;
    line-height: 22px;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.home {
    flex: 1 1 36%;
}

.city {
    flex: 1 1 24%;
}

.state {
    flex: 1 1 18%;
}

.zip {
    flex: 0 0 72px;
}

.zip .value {
    white-space: nowrap;
}

/* deliverable badge: bare "D" / "N" text node, no .value child */
.cx-address-col.deliverable {
    flex: 0 0 var(--badge);
    width: var(--badge);
    height: var(--badge);
    align-self: center;
    align-items: center;
    justify-content: center;
    font-family: var(--font-bold);
    font-size: var(--fs-sm);
    line-height: 1;
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid var(--green-line);
    border-radius: var(--radius-chip);
}

.cx-address-col.deliverable.alert {
    color: var(--red-dark);
    background: var(--red-bg);
    border-color: var(--red-line);
}

/* tinted footer strip: related / emails / dob / phone numbers */
.cx-misc {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-4);
    width: 100%;
    padding: 10px var(--s-4);
    background: var(--tint-2);
    border-top: 1px solid var(--line);
    color: var(--text);
}

.cx-misc-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.cx-misc-col .label {
    margin-bottom: 4px;
}

.cx-misc-col .value {
    font-family: var(--font-bold);
    font-size: 17px;
    line-height: 22px;
    color: var(--navy);
    text-transform: capitalize;
}

.cx-emails .value,
.value.email {
    text-transform: lowercase;
    overflow-wrap: anywhere;
}

.cx-dob {
    flex: 0 0 auto;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.cx-dob .value {
    text-transform: none;
}

/* relatives / phone numbers as small square chips */
.value-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.value-container .value {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-bold);
    font-size: 17px;
    line-height: 22px;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    text-transform: capitalize;
    cursor: default;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.value.relation.po {
    color: var(--magenta-2);
    border-color: var(--magenta-2);
}

.cx-card.deceased {
    filter: grayscale(80%) opacity(0.8);
}

/* TCPA litigator banner: inserted by phone-lookup.js as the card's FIRST
   child (div.d-row.cx-litigator > i + span). "possible" = tinted strip,
   "confirmed" (.litigator-confirmed) = solid red. */
.cx-card.litigator {
    border-color: var(--red-mid);
    box-shadow: 0 0 0 1px var(--red-mid), var(--shadow-panel);
}

.cx-litigator {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--s-2);
    width: 100%;
    padding: 6px var(--s-4);
    font-family: var(--font-bold);
    font-size: var(--fs-sm);
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red-dark);
    background: var(--red-bg);
    border-bottom: 1px solid var(--red-line);
}

.cx-litigator i {
    font-size: 13px;
}

.cx-litigator span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cx-card.litigator-confirmed .cx-litigator {
    color: var(--white);
    background: var(--red-dark);
    border-bottom-color: var(--red-deep);
}

/* --- Skeleton + enter ----------------------------------------------------- */

@keyframes ups-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes ups-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ups-card-enter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.skeleton {
    color: transparent !important;
    background-color: var(--skeleton-a);
    background-image: linear-gradient(90deg, var(--skeleton-a) 0%, var(--skeleton-b) 50%, var(--skeleton-a) 100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: ups-shimmer 1.4s linear infinite;
    border-radius: var(--radius-chip);
    pointer-events: none;
    user-select: none;
}

/* the skeleton card itself keeps the real card chrome; its slots shimmer */
.cx-card.skeleton {
    color: inherit !important;
    background-color: var(--surface);
    background-image: none;
    animation: none;
    border-radius: var(--radius);
}

.cx-card.skeleton .label,
.cx-card.skeleton .value,
.cx-card.skeleton .cx-address-col.deliverable {
    display: block;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    border: 0;
    padding: 0;
    background-color: var(--skeleton-a);
    background-image: linear-gradient(90deg, var(--skeleton-a) 0%, var(--skeleton-b) 50%, var(--skeleton-a) 100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: ups-shimmer 1.4s linear infinite;
    border-radius: var(--radius-chip);
}

.cx-card.skeleton .cx-basic .label,
.cx-card.skeleton .cx-basic .value {
    background-color: var(--skeleton-on-navy-a);
    background-image: linear-gradient(90deg, var(--skeleton-on-navy-a) 0%, var(--skeleton-on-navy-b) 50%, var(--skeleton-on-navy-a) 100%);
}

/* slot sizes: same vertical rhythm as the real text they replace.
   real .label = 14px line (+ 3/2/4px margin in basic/address/misc),
   real address .value = 22px line, real name .value = 26px line,
   real chips = 22px line + 4px padding + 2px border = 28px tall. */
.cx-card.skeleton .label {
    height: 10px;
    width: 56px;
    margin: 2px 0 5px;
}

.cx-card.skeleton .cx-address-col .label {
    margin: 2px 0 4px;
}

.cx-card.skeleton .cx-name .label { width: 72px; }
.cx-card.skeleton .cx-age .label  { width: 24px; }

.cx-card.skeleton .cx-basic .value {
    height: 18px;
    margin: 4px 0;
}

.cx-card.skeleton .cx-name .value { width: 160px; }
.cx-card.skeleton .cx-age .value  { width: 28px; }

.cx-card.skeleton .cx-address-col .value {
    height: 16px;
    margin: 3px 0;
}

.cx-card.skeleton .home .value  { width: 140px; }
.cx-card.skeleton .city .value  { width: 90px; }
.cx-card.skeleton .state .value { width: 24px; }
.cx-card.skeleton .zip .value   { width: 44px; }

.cx-card.skeleton .home .label  { width: 44px; }
.cx-card.skeleton .city .label  { width: 24px; }
.cx-card.skeleton .state .label { width: 30px; }
.cx-card.skeleton .zip .label   { width: 18px; }

.cx-card.skeleton .cx-address-col.deliverable {
    width: var(--badge);
    height: var(--badge);
    flex-basis: var(--badge);
}

.cx-card.skeleton .cx-misc .label {
    width: 52px;
    margin: 2px 0 6px;
}

.cx-card.skeleton .cx-misc .value {
    height: 28px;
    width: 96px;
    margin: 0;
}

.cx-card.skeleton .value-container .value {
    display: block;
}

.cx-card.enter {
    animation: ups-card-enter var(--t-enter) ease-out both;
}

/* --- Status rows (shared rules; panel specifics live in phone.css/email.css) */

.tcpa-value,
.email-value {
    display: inline-block;
    max-width: 60%;
    text-align: right;
    overflow-wrap: anywhere;
}

.tcpa-value.populated,
.email-value.populated {
    animation: ups-fade-in var(--t-base) ease-out both;
}

#tcpa.loading .tcpa-value:not(.populated),
#email.loading .email-value:not(.populated) {
    width: 80px;
    height: 16px;
    max-width: 80px;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    font-size: 0;
    line-height: 16px;
    overflow: hidden;
    background-color: var(--skeleton-a);
    background-image: linear-gradient(90deg, var(--skeleton-a) 0%, var(--skeleton-b) 50%, var(--skeleton-a) 100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: ups-shimmer 1.4s linear infinite;
    border-radius: var(--radius-chip);
}

/* --- Pre-search empty state (inside #cards-wrap, new UI only) ------------- */

#cx-empty.cx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    width: 100%;
    padding: 40px 16px;
    font-family: var(--font);
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
}

#cx-empty.cx-empty p {
    margin: 0;
}

#cx-empty.cx-empty svg,
#cx-empty.cx-empty img,
#cx-empty.cx-empty i {
    width: 28px;
    height: 28px;
    font-size: 28px;
    color: var(--muted-2);
    opacity: 0.8;
}

/* --- Result prompts (moved into #cards-wrap by the JS) -------------------- */

.cx-prompt {
    position: relative;
    margin: var(--s-10) auto;
    line-height: 20px;
}

#cx-not-found,
#cx-ie {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    font-family: var(--font-bold);
    font-size: var(--fs-lg);
    color: var(--navy);
}

#cx-not-found span,
#cx-ie span {
    display: inline-flex;
    align-items: center;
}

#cx-not-found h1 {
    margin: 0 var(--s-2) 0 0;
    font-family: var(--font-bold);
    font-size: 40px;
    line-height: 1;
    color: var(--navy);
}

.cx-loader {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-3) 0;
}

@keyframes ups-dot {
    0%   { transform: scale(1); }
    50%  { transform: scale(2); }
    100% { transform: scale(1); }
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    animation: ups-dot 0.7s infinite;
}

.dot:nth-child(1) { animation-delay: 0.1s; background: var(--dot-1); }
.dot:nth-child(2) { animation-delay: 0.2s; background: var(--navy-3); }
.dot:nth-child(3) { animation-delay: 0.3s; background: var(--dot-3); }
.dot:nth-child(4) { animation-delay: 0.4s; background: var(--navy); }
.dot:nth-child(5) { animation-delay: 0.5s; background: var(--dot-5); }

/* --- Alerts / toasts ------------------------------------------------------ */

@keyframes ups-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#alert-container {
    position: fixed;
    top: var(--s-3);
    right: var(--s-3);
    z-index: 99;
    width: 360px;
    max-width: calc(100vw - 2 * var(--s-3));
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    pointer-events: none;
}

#alert-container > * {
    pointer-events: auto;
}

.alert.error,
.alert-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 20px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow-wrap: anywhere;
    animation: ups-drop 0.25s ease-out both;
    transition: opacity 0.3s ease;
}

.alert.error {
    color: var(--red-dark);
    background: var(--red-bg);
    border-color: var(--red-line);
    border-left-color: var(--red-mid);
}

.alert.error i {
    font-size: 16px;
    color: var(--red-mid);
}

.alert-box.cancel {
    color: var(--red-dark);
    background: var(--red-bg);
    border-color: var(--red-line);
    border-left-color: var(--red-mid);
}

.alert-box.success {
    color: var(--green);
    background: var(--green-bg);
    border-color: var(--green-line);
    border-left-color: var(--green);
}

.alert-box strong {
    font-family: var(--font-bold);
    font-weight: normal;
}

/* --- Notice popup (#loader, loader.hbs) ----------------------------------- */

#loader {
    display: none;
    position: relative;
    width: calc(100% - 2 * var(--gutter));
    max-width: 860px;
    margin: var(--s-6) auto 0;
    padding: var(--s-5) var(--s-6);
    font-family: var(--font);
    font-size: var(--fs-md);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    height: auto;
    opacity: 1;
    transition: height 0s ease-out 1s, opacity 1s ease-out;
}

#loader h3 {
    margin: 0 0 var(--s-2);
    font-family: var(--font-bold);
    font-size: var(--fs-lg);
    color: var(--navy);
}

#loader .outer {
    margin: var(--s-1) 0 var(--s-3);
    padding-left: var(--s-5);
    font-size: var(--fs-md);
    line-height: 1.5;
}

.outer > li {
    margin: var(--s-1) 0;
}

.outer ul {
    list-style-type: none;
}

#loader a {
    color: var(--brand-blue);
}

#loader .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 14px;
    font-family: var(--font-bold);
    font-size: var(--fs-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red-mid);
    cursor: pointer;
}

#loader .close:hover {
    color: var(--red);
}

/* --- Simple content pages ------------------------------------------------- */

.content {
    padding: var(--s-6);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-panel);
    font-size: var(--fs-md);
    line-height: 1.6;
}

/* --- Footer --------------------------------------------------------------- */

footer {
    width: 100%;
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--gutter) var(--s-5);
}

.footer-tagline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4) var(--s-6);
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.footer-brand svg {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    align-self: center;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand-begin,
.footer-brand-end {
    display: block;
    background: var(--grad-wordmark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-brand-begin {
    font-family: var(--font-bold);
    font-size: 18px;
    line-height: 18px;
}

.footer-brand-end {
    font-family: var(--font);
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0.24em;
    text-align: right;
}

.contact-us {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 40px;
    padding: 0 var(--s-5);
    font-family: var(--font-bold);
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    outline: 0;
    transition: background-color var(--t-fast) ease;
}

.contact-us:hover {
    color: var(--white);
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-2) var(--s-6);
    margin: var(--s-6) 0 var(--s-5);
    padding: var(--s-4) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.footer-links a {
    font-family: var(--font-bold);
    font-size: 16px;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--red-mid);
}

.footer-disclaimer {
    display: block;
    max-width: 760px;
    margin: 0 auto var(--s-3);
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
}

.copyrights {
    display: block;
    font-size: var(--fs-sm);
    color: var(--muted-2);
    text-align: center;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --container: 100%;
    }
}

@media (max-width: 768px) {
    #main {
        padding-top: var(--s-4);
        padding-bottom: var(--s-12);
    }

    .input-form > form {
        padding: var(--s-5) var(--s-4) var(--s-8);
    }

    .input-form > form:not(.report)::before {
        top: calc(var(--s-5) + var(--control-h) / 2);
    }

    .footer-links {
        gap: var(--s-2) var(--s-5);
    }
}

@media (max-width: 640px) {
    :root {
        --control-h: var(--control-h-sm);
    }

    #input {
        font-size: 20px;
        padding: 0 var(--s-3);
    }

    #submit {
        font-size: 22px;
    }

    .input-form > form {
        padding: var(--s-4) var(--s-3) var(--s-7);
    }

    .input-form > form:not(.report)::before {
        top: calc(var(--s-4) + var(--control-h) / 2);
    }

    a.nav-link {
        padding: 11px var(--s-1) 8px;
        font-size: 15px;
    }

    .heading {
        font-size: 18px;
        line-height: 24px;
        padding: 8px var(--s-3);
    }

    .page-h1 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: var(--s-3);
    }

    .cx-basic {
        padding: 10px var(--s-3);
    }

    .cx-basic .value {
        font-size: 20px;
    }

    /* home address takes the first line; city / state / zip share the
       second; the badge (last in DOM) is pinned to the right of that line */
    .cx-address {
        flex-wrap: wrap;
        gap: var(--s-1) var(--s-3);
        padding: var(--s-2) calc(var(--s-3) + var(--badge) + var(--s-3)) var(--s-2) var(--s-3);
    }

    .home {
        flex: 1 1 100%;
    }

    .city {
        flex: 1 1 auto;
    }

    .state {
        flex: 0 1 auto;
    }

    .zip {
        flex: 0 0 auto;
        min-width: 44px;
    }

    .cx-address-col.deliverable,
    .cx-card.skeleton .cx-address-col.deliverable {
        position: absolute;
        right: var(--s-3);
        bottom: 11px;
        align-self: auto;
    }

    .cx-address-col .value {
        font-size: 16px;
    }

    .cx-misc-col .value,
    .value-container .value {
        font-size: 16px;
    }

    .cx-misc {
        padding: 10px var(--s-3);
    }

    .cx-litigator {
        padding: 6px var(--s-3);
    }

    .footer {
        padding: var(--s-5) var(--gutter) var(--s-4);
    }
}

@media (max-width: 480px) {
    /* the field takes the whole row only on narrow phones */
    label#num_wrap,
    label#email_wrap {
        flex: 1 1 auto;
    }

    .site-logo-container {
        padding: 12px var(--gutter);
    }

    .site-logo svg {
        width: 38px;
        height: 38px;
    }

    .site-title {
        padding-top: 9px;
    }

    .title-begin {
        font-size: 22px;
        line-height: 22px;
    }

    .title-end {
        font-size: 10px;
        line-height: 12px;
    }

    .site-title .user-icon-container,
    .site-title .user-icon-container svg {
        width: 11px;
        height: 11px;
    }

    #alert-container {
        left: var(--s-3);
        right: var(--s-3);
        width: auto;
        max-width: none;
    }

    .footer-tagline {
        flex-direction: column;
        justify-content: center;
    }

    .contact-us {
        width: 100%;
    }

    .footer-links {
        gap: var(--s-2) var(--s-4);
    }

    .footer-links a {
        font-size: 15px;
    }
}

/* --- Motion preferences --------------------------------------------------- */

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

    .skeleton,
    .cx-card.skeleton .label,
    .cx-card.skeleton .value,
    .cx-card.skeleton .cx-address-col.deliverable,
    #tcpa.loading .tcpa-value:not(.populated),
    #email.loading .email-value:not(.populated) {
        animation: none !important;
        background-image: none;
    }
}

/* ==========================================================================
   Tuning pass (owner feedback, 2026-09-26)
   - Weight consistency: Scrubber-Bold is declared at 600 and Scrubber-Regular
     at 500. Any rule asking for 700/bold on the bold face, or 600 on the
     regular face, gets a synthesised weight that looks different from the
     neighbours. Pin every bold rule to 600 and every regular rule to 500.
   - Sizes one step up, leading tighter, card label->value gap closed,
     relatives chips in the regular face, wider search button.
   ========================================================================== */
body { font-size: 17px; line-height: 1.3; font-weight: 500; }
.page-h1, .heading, .cx-basic .value, .cx-card .label, .cx-address-col .value, .cx-misc .value,
a.nav-link, .footer-links a, .contact-us, .title-begin, .title-end, .btn-primary, .btn-secondary,
.tcpa-label, .tcpa-value, .email-label, .email-value {
    font-family: var(--font-bold); font-weight: 600;
}
.page-h1 { font-size: 26px; line-height: 30px; margin-bottom: 14px; }
.heading { font-size: 21px; line-height: 24px; padding: 8px var(--s-4); }
a.nav-link { font-size: 17px; line-height: 20px; }
.footer-links a { font-size: 17px; }
/* person card: close the label -> value gap, tighten leading */
.cx-basic { padding: 8px var(--s-4); }
.cx-card .label { font-size: 12px; line-height: 13px; }
.cx-basic .label { margin-bottom: 1px; }
.cx-basic .value { font-size: 23px; line-height: 24px; }
.cx-address { padding: 6px var(--s-4); }
.cx-address-col .label { margin-bottom: 1px; }
.cx-address-col .value { font-size: 18px; line-height: 20px; }
.cx-misc .label { margin-bottom: 1px; }
.cx-misc .value { font-size: 18px; line-height: 20px; }
/* relatives / related values: regular face, not bold */
.value.relation, .value.relation.po { font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 20px; }
/* search button a little wider (height unchanged so the red rule stays centred) */
#submit { flex: 0 0 84px; width: 84px; }
@media (max-width: 640px) {
    .page-h1 { font-size: 19px; line-height: 22px; }
    .heading { font-size: 19px; line-height: 22px; }
    a.nav-link { font-size: 16px; }
    .cx-basic .value { font-size: 21px; line-height: 22px; }
    .cx-address-col .value, .cx-misc .value { font-size: 17px; line-height: 19px; }
    .tcpa-label, .tcpa-value, .email-label, .email-value { font-size: 18px; line-height: 21px; }
    #submit { flex: 0 0 68px; width: 68px; }
}

/* Skeleton re-tune to the tightened type (2026-09-26). Each bar's box
   (height + vertical margins) equals the real text line it stands in for:
   label 13px line + 1px margin = 14; basic value 24; address/misc value 20. */
.cx-card.skeleton .label,
.cx-card.skeleton .cx-address-col .label,
.cx-card.skeleton .cx-misc .label { height: 10px; margin: 2px 0 2px; }
.cx-card.skeleton .cx-basic .value { height: 18px; margin: 3px 0; }
.cx-card.skeleton .cx-address-col .value { height: 16px; margin: 2px 0; }
.cx-card.skeleton .cx-misc .value { height: 26px; margin: 0; }
@media (max-width: 640px) {
    .cx-card.skeleton .cx-basic .value { height: 18px; margin: 2px 0; }          /* real: 22px line */
    .cx-card.skeleton .cx-address-col .value { height: 15px; margin: 2px 0; }    /* real: 19px line */
    .cx-card.skeleton .cx-misc .value { height: 25px; }
}

/* Focus state (owner: "very strong colored border appears") - keep the 1px
   hairline, tint it navy, add only a faint halo; no fill change, navy caret. */
#input:focus, #input:focus-visible,
label#num_wrap input:focus, label#email_wrap input:focus {
    outline: none;
    border: 1px solid var(--navy);
    box-shadow: none;
    background: var(--white);
    caret-color: var(--navy);
}
#report-form input:focus, #report-form select:focus,
.form-stack .form-input:focus, .form-stack .form-select:focus, .form-stack .form-textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: none;
}

/* 2026-09-26 follow-ups: tighter status rows, lightly-bold smaller relative
   chips, and the focus halo must win over the legacy inset-shadow rule. */
.tcpa-row, .email-row { min-height: 0; padding: 4px var(--s-4); }
.value.relation, .value.relation.po { font-family: var(--font-bold); font-weight: 600; font-size: 15px; line-height: 18px; padding: 2px 4px; }
#input:focus, #input:focus-visible, label#num_wrap input#input:focus, label#email_wrap input#input:focus,
.input-form input#input:focus {
    border: 1px solid var(--navy) !important;
    box-shadow: none !important;
    outline: none !important;
}
@media (max-width: 640px) {
    .tcpa-row, .email-row { padding: 4px var(--s-3); }
    .value.relation, .value.relation.po { font-size: 14px; line-height: 17px; }
}
/* skeleton misc bar tracks the smaller relative chips (real misc row -2px) */
.cx-card.skeleton .cx-misc .value { height: 24px; }
@media (max-width: 640px) { .cx-card.skeleton .cx-misc .value { height: 23px; } }
