:root {
    --tfd-blue: #2563EB;
    --tfd-blue-dark: #1D4ED8;
    --tfd-blue-soft: #EFF6FF;
    --tfd-teal: #14B8A6;
    --tfd-teal-dark: #0F766E;
    --tfd-teal-soft: #F0FDFA;
    --tfd-navy: #0F172A;
    --tfd-slate: #475569;
    --tfd-muted: #64748B;
    --tfd-line: #DCE5EF;
    --tfd-soft-line: #E8EEF5;
    --tfd-surface: #FFFFFF;
    --tfd-canvas: #F8FAFC;
    --tfd-shadow: 0 20px 60px rgba(15, 23, 42, .08);
    --tfd-shadow-soft: 0 12px 34px rgba(15, 23, 42, .055);
}

.tfd-hero,
.tfd-detail-hero,
.tfd-system-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 8%, rgba(20,184,166,.12), transparent 28%),
        radial-gradient(circle at 8% 5%, rgba(37,99,235,.10), transparent 28%),
        linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.tfd-hero::after,
.tfd-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.34), transparent 78%);
}

.tfd-hero { padding: clamp(64px, 7vw, 96px) 0; }
.tfd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .72fr); gap: clamp(44px, 7vw, 92px); align-items: center; max-width: 1200px; margin: 0 auto; }
.tfd-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--tfd-blue-dark); font-size: .74rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.tfd-kicker > span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #BFDBFE; border-radius: 9px; background: #DBEAFE; color: var(--tfd-blue-dark); }
.tfd-hero h1,
.tfd-detail-hero h1 { max-width: 780px; margin: 20px 0 18px; color: var(--tfd-navy); font-size: clamp(2.7rem, 5.5vw, 4.9rem); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.tfd-hero-copy > p,
.tfd-detail-hero p { max-width: 720px; margin: 0; color: var(--tfd-muted); font-size: 1rem; line-height: 1.72; }

.tfd-proof-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.tfd-proof-row > div { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; }
.tfd-proof-row i { margin-top: 2px; color: var(--tfd-teal-dark); }
.tfd-proof-row strong,
.tfd-proof-row small { display: block; }
.tfd-proof-row strong { color: var(--tfd-navy); font-size: .77rem; }
.tfd-proof-row small { margin-top: 2px; color: var(--tfd-muted); font-size: .67rem; line-height: 1.4; }

.tfd-search-panel { padding: clamp(24px, 3vw, 32px); border: 1px solid var(--tfd-line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--tfd-shadow); backdrop-filter: blur(12px); }
.tfd-search-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 21px; border-bottom: 1px solid var(--tfd-soft-line); }
.tfd-search-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--tfd-navy); }
.tfd-search-mark img { width: 28px; height: 28px; object-fit: contain; }
.tfd-search-panel-head span,
.tfd-search-panel-head strong { display: block; }
.tfd-search-panel-head span { color: var(--tfd-muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.tfd-search-panel-head strong { margin-top: 2px; color: var(--tfd-navy); font-size: .98rem; }
.tfd-search-form .form-label { color: #334155; font-size: .75rem; font-weight: 750; }
.tfd-search-input { position: relative; }
.tfd-search-input > i { position: absolute; left: 14px; top: 50%; z-index: 2; transform: translateY(-50%); color: var(--tfd-muted); }
.tfd-search-input .form-control { padding-left: 42px; }
.tfd-search-form .form-control,
.tfd-search-form .form-select { min-height: 50px; border: 1px solid #CBD5E1; border-radius: 12px; color: var(--tfd-navy); font-size: .86rem; }
.tfd-search-form .form-control:focus,
.tfd-search-form .form-select:focus { border-color: var(--tfd-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.tfd-search-note { display: flex; gap: 8px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--tfd-soft-line); color: var(--tfd-muted); font-size: .69rem; line-height: 1.5; }
.tfd-search-note i { margin-top: 2px; color: var(--tfd-blue); }

.tfd-btn-primary,
.tfd-btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px !important; padding: .68rem 1rem; font-size: .79rem; font-weight: 750; }
.tfd-btn-primary { background: var(--tfd-navy) !important; border-color: var(--tfd-navy) !important; color: #fff !important; }
.tfd-btn-primary:hover { background: #1E293B !important; border-color: #1E293B !important; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,23,42,.16); }
.tfd-btn-secondary { background: #fff !important; border: 1px solid #CBD5E1 !important; color: #334155 !important; }
.tfd-btn-secondary:hover { background: #F8FAFC !important; border-color: #94A3B8 !important; color: var(--tfd-navy) !important; }

.tfd-results-section,
.tfd-content-section { padding: clamp(48px, 6vw, 78px) 0; background: #fff; }
.tfd-results-toolbar,
.tfd-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.tfd-section-kicker { margin-bottom: 5px; color: var(--tfd-blue); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tfd-results-toolbar h2,
.tfd-section-heading h2 { margin: 0; color: var(--tfd-navy); font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; }
.tfd-results-toolbar p,
.tfd-section-heading p { margin: 6px 0 0; color: var(--tfd-muted); font-size: .79rem; }
.tfd-clear-link { color: var(--tfd-slate); font-size: .75rem; font-weight: 700; text-decoration: none; }
.tfd-clear-link:hover { color: var(--tfd-blue); }

.tfd-agency-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.tfd-agency-card { min-height: 218px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--tfd-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 8px 22px rgba(15,23,42,.03); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tfd-agency-card:hover { transform: translateY(-3px); border-color: #93C5FD; box-shadow: var(--tfd-shadow-soft); }
.tfd-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tfd-card-icon { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #BFDBFE; border-radius: 11px; background: #DBEAFE; color: var(--tfd-blue-dark); }
.tfd-card-icon.is-teal { border-color: #99F6E4; background: #CCFBF1; color: var(--tfd-teal-dark); }
.tfd-count-pill { padding: 5px 8px; border-radius: 999px; background: #F1F5F9; color: var(--tfd-muted); font-size: .62rem; font-weight: 750; }
.tfd-agency-body { flex: 1; padding: 22px 0; }
.tfd-agency-body h3 { margin: 0; color: var(--tfd-navy); font-size: 1rem; line-height: 1.35; font-weight: 780; }
.tfd-location { display: flex; gap: 6px; margin-top: 8px; color: var(--tfd-muted); font-size: .7rem; }
.tfd-location i { color: var(--tfd-blue); }
.tfd-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 13px; border-top: 1px solid var(--tfd-soft-line); color: #334155; font-size: .7rem; font-weight: 700; }
.tfd-card-footer i { color: var(--tfd-blue); transition: transform .18s ease; }
.tfd-agency-card:hover .tfd-card-footer i { transform: translateX(3px); }

.tfd-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; }
.tfd-pagination a,
.tfd-pagination > span { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--tfd-line); border-radius: 10px; background: #fff; color: #334155; font-size: .72rem; text-decoration: none; }
.tfd-pagination a:hover { border-color: #93C5FD; color: var(--tfd-blue); }
.tfd-pagination a.is-disabled { pointer-events: none; opacity: .45; }
.tfd-directory-notice,
.tfd-source-card { display: flex; align-items: center; gap: 14px; margin-top: 42px; padding: 18px 20px; border: 1px solid #BFDBFE; border-radius: 15px; background: var(--tfd-blue-soft); }
.tfd-notice-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: #DBEAFE; color: var(--tfd-blue-dark); }
.tfd-directory-notice strong,
.tfd-source-card strong { display: block; color: #1E3A8A; font-size: .77rem; }
.tfd-directory-notice p,
.tfd-source-card p { margin: 3px 0 0; color: var(--tfd-slate); font-size: .7rem; line-height: 1.5; }
.tfd-source-card > div { flex: 1; }

.tfd-empty-state { max-width: 680px; margin: 0 auto; padding: 56px 30px; border: 1px dashed #CBD5E1; border-radius: 20px; background: var(--tfd-canvas); text-align: center; }
.tfd-empty-icon { width: 64px; height: 64px; display: inline-grid; place-items: center; margin-bottom: 16px; border-radius: 18px; background: #DBEAFE; color: var(--tfd-blue-dark); font-size: 1.4rem; }
.tfd-empty-state h2 { margin: 0; color: var(--tfd-navy); font-size: 1.15rem; }
.tfd-empty-state p { max-width: 430px; margin: 7px auto 19px; color: var(--tfd-muted); font-size: .78rem; }

.tfd-detail-hero { padding: 34px 0 56px; }
.tfd-breadcrumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 38px; color: var(--tfd-muted); font-size: .68rem; }
.tfd-breadcrumbs a { color: #475569; text-decoration: none; font-weight: 650; }
.tfd-breadcrumbs a:hover { color: var(--tfd-blue); }
.tfd-breadcrumbs i { color: #94A3B8; font-size: .55rem; }
.tfd-detail-hero-grid,
.tfd-destination-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 42px; align-items: end; }
.tfd-detail-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.tfd-hero-location { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 8px 11px; border: 1px solid #DCE5EF; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--tfd-slate); font-size: .7rem; }
.tfd-hero-location i { color: var(--tfd-blue); }
.tfd-hero-stat-card { padding: 20px; border: 1px solid var(--tfd-line); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--tfd-shadow-soft); }
.tfd-hero-stat-card span,
.tfd-hero-stat-card strong,
.tfd-hero-stat-card small { display: block; }
.tfd-hero-stat-card span { color: var(--tfd-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.tfd-hero-stat-card strong { margin: 8px 0 4px; color: var(--tfd-navy); font-size: 2rem; line-height: 1; }
.tfd-hero-stat-card small { color: var(--tfd-muted); font-size: .68rem; }

.tfd-section-heading-spaced { margin-top: 58px; }
.tfd-fax-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tfd-fax-card { display: flex; flex-direction: column; min-height: 245px; padding: 22px; border: 1px solid var(--tfd-line); border-radius: 18px; background: #fff; box-shadow: 0 9px 26px rgba(15,23,42,.035); }
.tfd-fax-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tfd-fax-card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tfd-fax-label { padding: 5px 8px; border-radius: 999px; background: #F1F5F9; color: var(--tfd-slate); font-size: .62rem; font-weight: 750; }
.tfd-verified-pill,
.tfd-review-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: .61rem; font-weight: 800; }
.tfd-verified-pill { border: 1px solid #99F6E4; background: #F0FDFA; color: var(--tfd-teal-dark); }
.tfd-review-pill { border: 1px solid #FDE68A; background: #FFFBEB; color: #92400E; }
.tfd-fax-number { margin: 25px 0 8px; color: var(--tfd-navy); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.tfd-fax-card p { flex: 1; margin: 0 0 18px; color: var(--tfd-muted); font-size: .74rem; line-height: 1.55; }
.tfd-fax-actions { margin-top: auto; }
.tfd-unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tfd-unit-card { display: flex; align-items: center; gap: 14px; min-height: 124px; padding: 18px; border: 1px solid var(--tfd-line); border-radius: 17px; background: #fff; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tfd-unit-card:hover { transform: translateY(-2px); border-color: #93C5FD; box-shadow: var(--tfd-shadow-soft); }
.tfd-unit-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; background: #DBEAFE; color: var(--tfd-blue-dark); }
.tfd-unit-copy { flex: 1; min-width: 0; }
.tfd-unit-copy h3 { margin: 0; color: var(--tfd-navy); font-size: .9rem; font-weight: 780; }
.tfd-unit-copy p { display: flex; align-items: center; gap: 5px; margin: 5px 0 0; color: var(--tfd-muted); font-size: .66rem; }
.tfd-unit-copy span { display: block; margin-top: 8px; color: var(--tfd-blue-dark); font-size: .66rem; font-weight: 750; }
.tfd-unit-arrow { color: #94A3B8; }
.tfd-unit-card:hover .tfd-unit-arrow { color: var(--tfd-blue); }
.tfd-empty-inline { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed #CBD5E1; border-radius: 14px; background: var(--tfd-canvas); color: var(--tfd-muted); font-size: .74rem; }

.tfd-destination-hero-grid { grid-template-columns: minmax(0,1fr) minmax(360px, .6fr); align-items: center; }
.tfd-destination-label { display: inline-block; margin-top: 20px; padding: 7px 10px; border: 1px solid #CBD5E1; border-radius: 999px; background: rgba(255,255,255,.75); color: #334155; font-size: .69rem; font-weight: 700; }
.tfd-number-card { padding: 24px; border: 1px solid #BFDBFE; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: var(--tfd-shadow); }
.tfd-number-card-label { display: block; color: var(--tfd-muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.tfd-number-card > strong { display: block; margin: 10px 0 14px; color: var(--tfd-navy); font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.035em; }
.tfd-number-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tfd-number-status-row small { color: var(--tfd-muted); font-size: .64rem; }

.tfd-send-section { background: var(--tfd-canvas); }
.tfd-send-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0,1.35fr); gap: clamp(28px, 5vw, 54px); align-items: start; }
.tfd-detail-sidebar { display: grid; gap: 18px; }
.tfd-info-card,
.tfd-related-card { padding: 22px; border: 1px solid var(--tfd-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,.035); }
.tfd-info-card-head { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; margin-bottom: 4px; border-bottom: 1px solid var(--tfd-soft-line); }
.tfd-info-card-head span,
.tfd-info-card-head strong { display: block; }
.tfd-info-card-head > div:last-child span { color: var(--tfd-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.tfd-info-card-head > div:last-child strong { margin-top: 2px; color: var(--tfd-navy); font-size: .88rem; }
.tfd-definition-list { margin: 0; }
.tfd-definition-list > div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--tfd-soft-line); }
.tfd-definition-list dt { color: var(--tfd-muted); font-size: .67rem; font-weight: 650; }
.tfd-definition-list dd { margin: 0; color: var(--tfd-navy); font-size: .72rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.tfd-inline-warning { display: flex; gap: 9px; margin-top: 17px; padding: 13px; border: 1px solid #BFDBFE; border-radius: 12px; background: var(--tfd-blue-soft); }
.tfd-inline-warning > i { margin-top: 2px; color: var(--tfd-blue); }
.tfd-inline-warning strong,
.tfd-inline-warning span { display: block; }
.tfd-inline-warning strong { color: #1E3A8A; font-size: .7rem; }
.tfd-inline-warning span { margin-top: 2px; color: var(--tfd-slate); font-size: .64rem; line-height: 1.45; }
.tfd-related-card h2 { margin: 2px 0 14px; color: var(--tfd-navy); font-size: .95rem; }
.tfd-related-list { display: grid; gap: 6px; }
.tfd-related-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--tfd-soft-line); color: inherit; text-decoration: none; }
.tfd-related-list a:first-child { border-top: 0; }
.tfd-related-list strong,
.tfd-related-list small { display: block; }
.tfd-related-list strong { color: var(--tfd-navy); font-size: .7rem; }
.tfd-related-list small { margin-top: 2px; color: var(--tfd-muted); font-size: .64rem; }
.tfd-related-list i { color: var(--tfd-blue); }
.tfd-checkout-heading h2 { margin: 18px 0 9px; color: var(--tfd-navy); font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; }
.tfd-checkout-heading p { max-width: 690px; margin: 0 0 18px; color: var(--tfd-muted); font-size: .8rem; line-height: 1.6; }
.tfd-prefill-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 11px 13px; border: 1px solid #99F6E4; border-radius: 12px; background: var(--tfd-teal-soft); }
.tfd-prefill-banner > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #CCFBF1; color: var(--tfd-teal-dark); }
.tfd-prefill-banner strong,
.tfd-prefill-banner small { display: block; }
.tfd-prefill-banner strong { color: #115E59; font-size: .7rem; }
.tfd-prefill-banner small { margin-top: 2px; color: var(--tfd-slate); font-size: .63rem; }

.tfd-system-page { min-height: 68vh; display: flex; align-items: center; padding: 70px 0; }
.tfd-system-card { max-width: 700px; margin: 0 auto; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--tfd-line); border-radius: 26px; background: #fff; box-shadow: var(--tfd-shadow); text-align: center; }
.tfd-system-icon { width: 70px; height: 70px; display: inline-grid; place-items: center; margin-bottom: 20px; border-radius: 20px; background: #DBEAFE; color: var(--tfd-blue-dark); font-size: 1.6rem; }
.tfd-system-card h1 { margin: 18px 0 10px; color: var(--tfd-navy); font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.04em; }
.tfd-system-card p { max-width: 520px; margin: 0 auto 22px; color: var(--tfd-muted); font-size: .86rem; line-height: 1.65; }

@media (max-width: 991.98px) {
    .tfd-hero-grid,
    .tfd-detail-hero-grid,
    .tfd-destination-hero-grid,
    .tfd-send-layout { grid-template-columns: 1fr; }
    .tfd-hero-grid { max-width: 760px; }
    .tfd-search-panel { max-width: 680px; }
    .tfd-agency-grid,
    .tfd-unit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tfd-hero-stat-card { max-width: 320px; }
}

@media (max-width: 767.98px) {
    .tfd-hero { padding: 44px 0 54px; }
    .tfd-detail-hero { padding: 26px 0 42px; }
    .tfd-breadcrumbs { margin-bottom: 28px; }
    .tfd-hero h1,
    .tfd-detail-hero h1 { font-size: clamp(2.3rem, 12vw, 3.5rem); }
    .tfd-proof-row,
    .tfd-agency-grid,
    .tfd-unit-grid,
    .tfd-fax-grid { grid-template-columns: 1fr; }
    .tfd-proof-row { gap: 2px; }
    .tfd-results-toolbar,
    .tfd-section-heading { align-items: flex-start; flex-direction: column; }
    .tfd-directory-notice,
    .tfd-source-card { align-items: flex-start; flex-wrap: wrap; }
    .tfd-source-card .btn { width: 100%; }
    .tfd-pagination { justify-content: space-between; gap: 6px; }
    .tfd-pagination a,
    .tfd-pagination > span { padding: 0 9px; font-size: .65rem; }
    .tfd-definition-list > div { grid-template-columns: 1fr; gap: 3px; }
    .tfd-definition-list dd { text-align: left; }
    .tfd-number-card { padding: 19px; }
}
