/* ================================================================
   MARKETPLACE CSS — Single Source of Truth
   File: public/css/marketplace.css
   All marketplace views reference this file. No inline <style> blocks,
   no inline style= attributes, no hardcoded hex colors in blades.

   BRAND: The :root variables below mirror config/brand.php one-for-one.
   Any color used anywhere in this file MUST reference a --brand-*
   or --ink-* variable. Literal hex codes are a violation of the
   switchboard rule and will be swept the next time this file is
   touched.

   FONTS: EB Garamond (serif, headings) and Barlow Condensed
   (sans, labels/UI) are loaded via @font-face from public/fonts/brand/
   and applied to all marketplace content via `.mp-wrap`, `.pfp`, and
   the body-level `.marketplace` hook.
   ================================================================ */

/* --- Brand @font-face (EB Garamond + Barlow Condensed, SIL OFL) --- */
@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/brand/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/brand/EBGaramond-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('/fonts/brand/BarlowCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('/fonts/brand/BarlowCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Brand palette — single source of truth, mirrors config/brand.php --- */
:root {
    /* Core NSG brand (from prohrhq.com switchboard) */
    --brand-navy:        #1a2744;
    --brand-navy-deep:   #0f1a30;
    --brand-gold:        #b8922a;
    --brand-gold-light:  #d4aa45;
    --brand-cream:       #f9f6ef;
    --brand-cream-dim:   #ede8dc;
    --brand-ink:         #2c2c2c;
    --brand-rule:        #c8b89a;
    --brand-muted:       #888888;

    /* Neutral ramp — one canonical grayscale used for text, borders, bg */
    --ink-1:             #111827;  /* strongest text */
    --ink-2:             #1f2937;
    --ink-3:             #374151;  /* body text */
    --ink-4:             #4b5563;
    --ink-5:             #6b7280;  /* muted text */
    --ink-6:             #9ca3af;  /* placeholder / disabled */
    --ink-7:             #d1d5db;  /* strong border */
    --ink-8:             #e5e7eb;  /* soft border */
    --ink-9:             #f3f4f6;  /* hover bg */
    --ink-10:            #f9fafb;  /* page bg tint */
    --ink-white:         #ffffff;

    /* State colors (success / error / warn / info) */
    --state-ok:          #16a34a;
    --state-ok-bg:       #dcfce7;
    --state-ok-ink:      #166534;
    --state-err:         #dc2626;
    --state-err-bg:      #fef2f2;
    --state-err-ink:     #991b1b;
    --state-warn:        #b45309;
    --state-warn-bg:     #fef3c7;
    --state-warn-ink:    #92400e;
    --state-info:        #2563eb;
    --state-info-bg:     #eff6ff;
    --state-info-ink:    #1e40af;

    /* Typography */
    --font-serif:        'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:         'Barlow Condensed', -apple-system, 'Segoe UI', sans-serif;
    --font-ui:           'Barlow Condensed', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Marketplace body hook — applies brand typography to every page --- */
.mp-wrap, .pfp, .st-wrap, .sd-wrap {
    font-family: var(--font-ui);
    color: var(--ink-2);
    background: var(--brand-cream);
}
.mp-wrap h1, .mp-wrap h2, .mp-wrap h3,
.pfp h1, .pfp h2, .pfp h3,
.st-wrap h1, .sd-wrap h1 {
    font-family: var(--font-serif);
    color: var(--brand-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* --- Layout / Container --- */
.mp-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 15px; }
.mp-wrap--narrow { max-width: 700px; }
.mp-wrap--medium { max-width: 800px; }
.mp-wrap--detail { max-width: 900px; }

/* --- Navigation --- */
.mp-nav { padding: 12px 0; border-bottom: 1px solid var(--ink-8); margin-bottom: 20px; }
.mp-nav a { color: var(--brand-navy); text-decoration: none; font-size: 0.9rem; font-weight: 500; margin-right: 16px; }
.mp-nav span { color: var(--ink-6); }

/* --- Page Headers --- */
.mp-header { margin-bottom: 24px; }
.mp-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; color: var(--ink-1); }
.mp-header p { color: var(--ink-5); font-size: 0.95rem; margin: 0; }

/* --- Search / Filter Forms --- */
.mp-search { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.mp-search input[type="text"],
.mp-search input[type="email"] { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 0.95rem; }
.mp-search select { padding: 8px 12px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 0.95rem; min-width: 120px; }
.mp-search button { padding: 8px 20px; background: var(--brand-navy); color: var(--ink-white); border: none; border-radius: 4px; font-size: 0.95rem; cursor: pointer; }
.mp-search button:hover { background: var(--brand-navy-deep); }

/* --- Pagination --- */
.mp-pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.mp-pager a, .mp-pager span { display: inline-block; padding: 6px 12px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 0.85rem; text-decoration: none; color: var(--ink-3); }
.mp-pager a:hover { background: var(--ink-9); }
.mp-pager .active { background: var(--brand-navy); color: var(--ink-white); border-color: var(--brand-navy); }

/* --- Empty / Prompt States --- */
.mp-empty { text-align: center; padding: 40px 20px; color: var(--ink-5); }
.mp-results-count { color: var(--ink-5); font-size: 0.85rem; margin-bottom: 12px; }

/* --- Badges / Tags --- */
.mp-badge { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; font-weight: 600; }
.mp-badge-claimed, .cd-badge-claimed { background: var(--state-ok-bg); color: var(--state-ok-ink); }
.mp-badge-interstate, .cd-badge-interstate { background: var(--state-info-bg); color: var(--brand-navy-deep); }
.mp-badge-intrastate, .cd-badge-intrastate { background: var(--state-warn-bg); color: var(--state-warn-ink); }
.cd-badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; font-weight: 600; margin-right: 6px; }

/* --- Generic Tag --- */
.mp-tag { display: inline-block; padding: 2px 8px; background: var(--ink-9); border-radius: 3px; font-size: 0.8rem; color: var(--ink-3); }

/* --- CTA Buttons --- */
.mp-cta { display: inline-block; padding: 8px 20px; background: var(--state-ok); color: var(--ink-white); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.cc-btn { display: inline-block; padding: 10px 24px; background: var(--brand-navy); color: var(--ink-white); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.cc-btn:hover { background: var(--brand-navy-deep); color: var(--ink-white); }

/* --- Carrier Directory Table --- */
.mp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mp-table th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--ink-8); font-weight: 600; color: var(--ink-3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.mp-table td { padding: 10px 8px; border-bottom: 1px solid var(--ink-9); vertical-align: top; }
.mp-table tr:hover td { background: var(--ink-10); }
.mp-name { font-weight: 600; color: var(--ink-1); }
.mp-name a { color: var(--brand-navy); text-decoration: none; }
.mp-name a:hover { text-decoration: underline; }
.mp-dba { color: var(--ink-5); font-size: 0.85rem; }
.mp-loc { color: var(--ink-4); }
@media (max-width: 768px) {
    .mp-table th:nth-child(4), .mp-table td:nth-child(4),
    .mp-table th:nth-child(5), .mp-table td:nth-child(5) { display: none; }
}

/* --- Carrier Detail Page --- */
.cd-header { margin-bottom: 28px; }
.cd-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--ink-1); margin-bottom: 4px; }
.cd-header .cd-dba { color: var(--ink-5); font-size: 1rem; margin-bottom: 6px; }
.cd-header .cd-dot { color: var(--ink-6); font-size: 0.9rem; }
.cd-section { margin-bottom: 28px; }
.cd-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; border-bottom: 1px solid var(--ink-8); padding-bottom: 6px; }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.cd-field label { display: block; font-size: 0.75rem; color: var(--ink-6); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.cd-field span { font-size: 0.95rem; color: var(--ink-2); }
.cd-claim { display: inline-block; padding: 10px 24px; background: var(--brand-navy); color: var(--ink-white); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-top: 12px; }
.cd-claim:hover { background: var(--brand-navy-deep); color: var(--ink-white); }
.cd-jobs-empty { color: var(--ink-5); padding: 16px 0; }
.cd-job { padding: 12px 0; border-bottom: 1px solid var(--ink-9); }
.cd-job:last-child { border-bottom: none; }
.cd-job h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.cd-job h3 a { color: var(--brand-navy); text-decoration: none; }
.cd-job p { color: var(--ink-5); font-size: 0.9rem; margin: 0; }
@media (max-width: 600px) { .cd-grid { grid-template-columns: 1fr; } }

/* --- Job Detail Page --- */
.jd-header { margin-bottom: 28px; }
.jd-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--ink-1); margin-bottom: 6px; }
.jd-carrier { font-size: 1rem; color: var(--ink-4); margin-bottom: 8px; }
.jd-carrier a { color: var(--brand-navy); text-decoration: none; }
.jd-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.jd-tag { display: inline-block; padding: 4px 10px; background: var(--ink-9); border-radius: 4px; font-size: 0.85rem; color: var(--ink-3); font-weight: 500; }
.jd-posted { color: var(--ink-6); font-size: 0.85rem; }
.jd-section { margin-bottom: 28px; }
.jd-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; border-bottom: 1px solid var(--ink-8); padding-bottom: 6px; }
.jd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.jd-field label { display: block; font-size: 0.75rem; color: var(--ink-6); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.jd-field span { font-size: 0.95rem; color: var(--ink-2); }
.jd-desc { color: var(--ink-3); line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 600px) { .jd-grid { grid-template-columns: 1fr; } }

/* --- Driver Detail Page --- */
.dd-header { margin-bottom: 28px; }
.dd-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--ink-1); margin-bottom: 6px; }
.dd-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dd-tag { display: inline-block; padding: 4px 10px; background: var(--ink-9); border-radius: 4px; font-size: 0.85rem; color: var(--ink-3); font-weight: 500; }
.dd-section { margin-bottom: 28px; }
.dd-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; border-bottom: 1px solid var(--ink-8); padding-bottom: 6px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.dd-field label { display: block; font-size: 0.75rem; color: var(--ink-6); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.dd-field span { font-size: 0.95rem; color: var(--ink-2); }
.dd-summary { color: var(--ink-3); line-height: 1.6; white-space: pre-wrap; }
.dd-posted { color: var(--ink-6); font-size: 0.85rem; }
@media (max-width: 600px) { .dd-grid { grid-template-columns: 1fr; } }

/* --- Forms (create, edit, post) --- */
.jf-header { margin-bottom: 24px; }
.jf-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--ink-1); margin-bottom: 4px; }
.jf-header p { color: var(--ink-5); font-size: 0.9rem; margin: 0; }
.jf-section { margin-bottom: 24px; }
.jf-section h2 { font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; border-bottom: 1px solid var(--ink-8); padding-bottom: 6px; }
.jf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.jf-field { margin-bottom: 4px; }
.jf-field label { display: block; font-size: 0.8rem; color: var(--ink-5); margin-bottom: 3px; font-weight: 500; }
.jf-field input, .jf-field select, .jf-field textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 0.95rem; font-family: inherit; }
.jf-field textarea { min-height: 100px; resize: vertical; }
.jf-field-full { grid-column: span 2; }
.jf-submit { display: inline-block; padding: 12px 32px; background: var(--brand-navy); color: var(--ink-white); border: none; border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.jf-submit:hover { background: var(--brand-navy-deep); }
.jf-error { color: var(--state-err); font-size: 0.8rem; margin-top: 2px; }
.jf-errors { padding: 12px 16px; background: var(--state-err-bg); border: 1px solid var(--state-err-bg); border-radius: 4px; margin-bottom: 16px; color: var(--state-err-ink); }
.jf-info { padding: 12px 16px; background: var(--state-warn-bg); border: 1px solid var(--state-warn); border-radius: 4px; margin-bottom: 16px; color: var(--state-warn-ink); }
.jf-success { padding: 12px 16px; background: var(--state-ok-bg); border: 1px solid var(--state-ok-bg); border-radius: 4px; margin-bottom: 16px; color: var(--state-ok-ink); }
.jf-pending { padding: 10px 14px; background: var(--state-info-bg); border: 1px solid var(--brand-navy); border-radius: 4px; margin-bottom: 16px; color: var(--ink-2); font-size: 0.9rem; }
.jf-readonly { background: var(--ink-10); color: var(--ink-5); }
.jf-status-warn { padding: 8px 12px; background: var(--state-warn-bg); border: 1px solid var(--state-warn); border-radius: 4px; color: var(--state-warn-ink); font-size: 0.85rem; margin-top: 8px; }
.jf-hint { font-size: 0.78rem; color: var(--ink-5); margin: 4px 0 0; line-height: 1.4; }
.jf-hero-preview { margin: 4px 0 8px; border: 1px solid var(--ink-8); border-radius: 4px; overflow: hidden; max-width: 480px; background: var(--ink-10); }
.jf-hero-preview img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; }
.jf-field input[type="file"] { padding: 6px; background: var(--ink-10); cursor: pointer; }
.jf-radio-group, .jf-check-group { display: flex; flex-direction: column; gap: 8px; }
.jf-radio, .jf-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--ink-8); border-radius: 4px; cursor: pointer; font-size: 0.9rem; line-height: 1.4; background: var(--ink-white); }
.jf-radio:hover, .jf-check:hover { border-color: var(--ink-6); }
.jf-radio input, .jf-check input { margin: 2px 0 0; flex-shrink: 0; }
.jf-radio span, .jf-check span { flex: 1; }
.jf-radio strong, .jf-check strong { display: inline; font-weight: 600; color: var(--ink-2); }
@media (max-width: 600px) { .jf-grid { grid-template-columns: 1fr; } .jf-field-full { grid-column: span 1; } }

/* --- Confirmation Pages (claimed, created, posted) --- */
.cc-success { background: var(--state-ok-bg); border: 1px solid var(--state-ok-bg); border-radius: 6px; padding: 24px; margin-bottom: 24px; }
.cc-success h1 { font-size: 1.4rem; font-weight: 700; color: var(--state-ok-ink); margin: 0 0 8px; }
.cc-success p { color: var(--state-ok-ink); margin: 0 0 4px; font-size: 0.95rem; }
.cc-section { margin-bottom: 24px; }
.cc-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.cc-token-box { background: var(--ink-10); border: 1px solid var(--ink-8); border-radius: 4px; padding: 16px; margin-bottom: 16px; }
.cc-token-box p { margin: 0 0 8px; color: var(--ink-4); font-size: 0.9rem; }
.cc-token-link { display: block; word-break: break-all; background: var(--ink-white); border: 1px solid var(--ink-7); border-radius: 4px; padding: 10px 12px; font-family: monospace; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 8px; }
.cc-warn { background: var(--state-warn-bg); border: 1px solid var(--state-warn-bg); border-radius: 4px; padding: 12px 16px; color: var(--state-warn-ink); font-size: 0.9rem; }

/* --- Apply Result Page --- */
.ar-box { border-radius: 6px; padding: 24px; margin-bottom: 24px; }
.ar-success { background: var(--state-ok-bg); border: 1px solid var(--state-ok-bg); }
.ar-success h1 { color: var(--state-ok-ink); }
.ar-info { background: var(--state-info-bg); border: 1px solid var(--state-info-bg); }
.ar-info h1 { color: var(--brand-navy-deep); }
.ar-warn { background: var(--state-warn-bg); border: 1px solid var(--state-warn-bg); }
.ar-warn h1 { color: var(--state-warn-ink); }
.ar-box h1 { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.ar-box p { margin: 0 0 4px; font-size: 0.95rem; }

/* --- Job Listing Cards --- */
.jl-card { padding: 16px 0; border-bottom: 1px solid var(--ink-9); }
.jl-card:last-child { border-bottom: none; }
.jl-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; }
.jl-title a { color: var(--brand-navy); text-decoration: none; }
.jl-title a:hover { text-decoration: underline; }
.jl-carrier { color: var(--ink-4); font-size: 0.9rem; margin: 0 0 6px; }
.jl-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-5); font-size: 0.85rem; }
.jl-tag { display: inline-block; padding: 2px 8px; background: var(--ink-9); border-radius: 3px; font-size: 0.8rem; color: var(--ink-3); }

/* --- Driver Listing Cards --- */
.dl-card { padding: 16px 0; border-bottom: 1px solid var(--ink-9); }
.dl-name { font-size: 1.05rem; font-weight: 600; color: var(--ink-1); margin: 0 0 4px; }
.dl-name a { color: var(--brand-navy); text-decoration: none; }
.dl-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-5); font-size: 0.85rem; }
.dl-tag { display: inline-block; padding: 2px 8px; background: var(--ink-9); border-radius: 3px; font-size: 0.8rem; color: var(--ink-3); }

/* --- Carrier card (carriers directory, parallel to driver card) --- */
.cl-card { padding: 20px 0; border-bottom: 1px solid var(--ink-9); }
.cl-card:last-child { border-bottom: none; }
.cl-name { font-size: 1.15rem; font-weight: 700; color: var(--ink-1); margin: 0 0 4px; line-height: 1.3; }
.cl-name a { color: var(--brand-navy); text-decoration: none; }
.cl-name a:hover { text-decoration: underline; }
.cl-dba { font-size: 0.85rem; color: var(--ink-5); margin-bottom: 6px; font-style: italic; }
.cl-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-5); font-size: 0.85rem; margin-bottom: 12px; align-items: center; }
.cl-dot { font-family: monospace; background: var(--ink-9); padding: 2px 8px; border-radius: 3px; }
.cl-tag { display: inline-block; padding: 2px 8px; background: var(--ink-9); border-radius: 3px; font-size: 0.78rem; color: var(--ink-3); }
.cl-tag-claimed { background: var(--state-ok, #16a34a); color: white; }
.cl-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-stat { min-width: 80px; }
.cl-stat-num { font-size: 1.05rem; font-weight: 700; color: var(--ink-1); }
.cl-stat-text .cl-stat-num { font-size: 0.95rem; font-weight: 600; }
.cl-stat-lbl { font-size: 0.75rem; color: var(--ink-5); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.cl-cta { margin-top: 8px; font-size: 0.85rem; }
.cl-cta a { color: var(--brand-navy); text-decoration: none; font-weight: 600; }
.cl-cta a:hover { text-decoration: underline; }
.cl-list { margin-top: 16px; }
@media (max-width: 600px) { .cl-stats { gap: 16px; } .cl-stat { min-width: 70px; } }

/* --- Search Page --- */
.ms-header { margin-bottom: 24px; }
.ms-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; color: var(--ink-1); }
.ms-search { display: flex; gap: 10px; margin-bottom: 24px; }
.ms-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 1rem; }
.ms-search button { padding: 10px 24px; background: var(--brand-navy); color: var(--ink-white); border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.ms-section { margin-bottom: 32px; }
.ms-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ink-8); }
.ms-section h2 span { color: var(--ink-6); font-weight: 400; font-size: 0.9rem; }
.ms-item { padding: 10px 0; border-bottom: 1px solid var(--ink-9); }
.ms-item:last-child { border-bottom: none; }
.ms-title { font-weight: 600; margin: 0 0 2px; }
.ms-title a { color: var(--brand-navy); text-decoration: none; }
.ms-meta { color: var(--ink-5); font-size: 0.85rem; }
.ms-tag { display: inline-block; padding: 2px 6px; background: var(--ink-9); border-radius: 3px; font-size: 0.78rem; color: var(--ink-3); }
.ms-empty { color: var(--ink-6); font-style: italic; padding: 8px 0; }
.ms-prompt { text-align: center; padding: 40px 20px; color: var(--ink-5); }
.ms-count { color: var(--ink-5); font-size: 0.9rem; margin-bottom: 16px; }

/* --- Start / Entrance Page --- */
.st-wrap { max-width: 800px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.st-headline { font-size: 1.8rem; font-weight: 700; color: var(--ink-1); margin-bottom: 8px; }
.st-sub { font-size: 1.05rem; color: var(--ink-5); margin-bottom: 40px; }
.st-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.st-cards--two { grid-template-columns: 1fr 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
.st-card { display: block; padding: 32px 20px; background: var(--ink-white); border: 2px solid var(--ink-8); border-radius: 10px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.st-card:hover { border-color: var(--brand-navy); box-shadow: 0 4px 12px rgba(37,99,235,0.12); }
.st-card-icon { font-size: 2.4rem; margin-bottom: 12px; }
.st-card-title { font-size: 1.15rem; font-weight: 700; color: var(--ink-1); margin-bottom: 6px; }
.st-card-desc { font-size: 0.9rem; color: var(--ink-5); line-height: 1.4; }
.st-returning { margin: 28px auto 0; max-width: 640px; padding: 12px 16px; font-size: 0.85rem; color: var(--ink-5); border-top: 1px solid var(--ink-8); text-align: center; line-height: 1.5; }

/* --- Start Carrier: claim form block (primary action on /start/carrier) --- */
.st-claim-block { max-width: 560px; margin: 0 auto 32px; padding: 28px 24px; background: var(--ink-white); border: 2px solid var(--ink-8); border-radius: 10px; text-align: left; }
.st-claim-title { font-size: 1.25rem; font-weight: 700; color: var(--ink-1); margin: 0 0 4px; text-align: center; }
.st-claim-sub { font-size: 0.9rem; color: var(--ink-5); margin: 0 0 18px; text-align: center; }
.st-claim-errors { padding: 10px 14px; background: var(--state-warn-bg); border: 1px solid var(--state-warn); border-radius: 4px; color: var(--state-warn-ink); margin-bottom: 14px; font-size: 0.88rem; }
.st-claim-errors div + div { margin-top: 4px; }
.st-claim-form { display: flex; flex-direction: column; gap: 12px; }
.st-claim-field { display: flex; flex-direction: column; gap: 4px; }
.st-claim-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); }
.st-claim-field input { padding: 10px 12px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 0.95rem; background: var(--ink-white); }
.st-claim-field input:focus { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.st-req { color: var(--state-err); }
.st-claim-actions { margin-top: 4px; }
.st-claim-btn { width: 100%; padding: 12px 20px; background: var(--brand-navy); color: var(--ink-white); border: none; border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.st-claim-btn:hover { filter: brightness(1.08); }
.st-claim-note { margin: 14px 0 0; font-size: 0.78rem; color: var(--ink-5); line-height: 1.5; text-align: center; }
@media (max-width: 600px) { .st-claim-block { padding: 20px 16px; } }
@media (max-width: 600px) { .st-cards, .st-cards--two { grid-template-columns: 1fr; } .st-headline { font-size: 1.4rem; } }

/* --- Start Driver (Guided Finder) --- */
.sd-header { text-align: center; margin-bottom: 28px; }
.sd-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--ink-1); margin-bottom: 6px; }
.sd-header p { color: var(--ink-5); font-size: 0.95rem; }
.sd-types { display: flex; gap: 16px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.sd-type { display: block; padding: 20px 28px; background: var(--ink-white); border: 2px solid var(--ink-8); border-radius: 8px; text-decoration: none; text-align: center; min-width: 160px; transition: border-color 0.15s; }
.sd-type:hover { border-color: var(--brand-navy); }
.sd-type.active { border-color: var(--brand-navy); background: var(--state-info-bg); }
.sd-type-title { font-size: 1.1rem; font-weight: 700; color: var(--ink-1); margin-bottom: 4px; }
.sd-type-desc { font-size: 0.8rem; color: var(--ink-5); }
.sd-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.sd-filters select { padding: 8px 12px; border: 1px solid var(--ink-7); border-radius: 4px; font-size: 0.95rem; }
.sd-filters button { padding: 8px 20px; background: var(--brand-navy); color: var(--ink-white); border: none; border-radius: 4px; cursor: pointer; }
.sd-count { text-align: center; color: var(--ink-5); font-size: 0.9rem; margin-bottom: 16px; }
.sd-cta { display: inline-block; margin-top: 24px; padding: 10px 24px; background: var(--state-ok); color: var(--ink-white); border-radius: 4px; text-decoration: none; font-weight: 600; }

.cc-btn--secondary { background: var(--ink-9); color: var(--ink-1); padding: 8px 16px; border-radius: 4px; text-decoration: none; font-size: 0.9rem; }
.cc-btn--secondary:hover { background: var(--ink-8); }

/* ================================================================
   PROFILE PAGE (/p/{slug})
   Single responsive layout for carriers, drivers, owner-operators.
   Every rule lives here — no inline styles in blades, no per-page CSS.
   Dynamic hero image is passed via CSS custom property --pfp-hero-bg.

   BRAND PALETTE: The canonical NSG brand palette lives in
   config/brand.php (navy var(--brand-navy), cream var(--brand-cream), gold var(--brand-gold), etc.)
   and is used by OgImageController to render /p/{slug}/og.png.
   The .pfp-* variables below are currently a blue accent variant
   from the profile-page v2 pass. Aligning them to the config/brand.php
   palette is a separate, scoped task.
   ================================================================ */

.pfp {
    /* .pfp-* custom properties are now aliases to brand/ink/state vars.
       Every rule below still references var(--pfp-*) so the 400+ lines
       of .pfp-* layout rules didn't have to change. Only the palette
       swaps — blue accent yesterday, navy/gold brand today. */
    --pfp-ink:         var(--ink-1);
    --pfp-muted:       var(--ink-5);
    --pfp-muted-2:     var(--ink-6);
    --pfp-line:        var(--ink-8);
    --pfp-surface:     var(--ink-white);
    --pfp-surface-2:   var(--ink-10);
    --pfp-accent:      var(--brand-navy);
    --pfp-accent-dark: var(--brand-navy-deep);
    --pfp-accent-ink:  var(--brand-navy-deep);
    --pfp-gold:        var(--brand-gold);
    --pfp-ok:          var(--state-ok-ink);
    --pfp-ok-bg:       var(--state-ok-bg);
    --pfp-warn:        var(--state-warn-ink);
    --pfp-warn-bg:     var(--state-warn-bg);
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 18px 80px;
    color: var(--pfp-ink);
    font-family: var(--font-ui);
    line-height: 1.55;
}

/* --- Action bar (above hero) --- */
.pfp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 18px;
    flex-wrap: wrap;
}
.pfp-back {
    color: var(--pfp-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pfp-back:hover { color: var(--pfp-accent); }
.pfp-actions-right { display: flex; gap: 8px; flex-wrap: wrap; }
.pfp-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--pfp-surface);
    color: var(--pfp-ink);
    border: 1px solid var(--pfp-line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pfp-btn:hover { border-color: var(--pfp-muted-2); background: var(--pfp-surface-2); }
.pfp-btn[disabled] { opacity: 0.7; cursor: default; }
.pfp-btn--primary {
    background: var(--pfp-accent);
    color: var(--ink-white);
    border-color: var(--pfp-accent);
}
.pfp-btn--primary:hover { background: var(--pfp-accent-dark); border-color: var(--pfp-accent-dark); color: var(--ink-white); }

/* --- Hero --- */
/* Hero renders cream-background with navy text to match the OG share
   card (config/brand.php palette). A navy top band + gold accent stripe
   echo the OG image framing. A subtle star watermark sits at right.
   When a user-supplied hero_image URL is set, --pfp-hero-bg puts the
   image behind a cream wash so text stays legible on any source. */
.pfp-hero {
    position: relative;
    border-radius: 14px;
    padding: 56px 44px 44px;
    color: var(--brand-navy);
    overflow: hidden;
    background-color: var(--brand-cream);
    background-image:
        linear-gradient(180deg, rgba(249, 246, 239, 0.92) 0%, rgba(249, 246, 239, 0.82) 55%, rgba(249, 246, 239, 0.7) 100%),
        var(--pfp-hero-bg, none);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--ink-8);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -14px rgba(26, 39, 68, 0.18);
}
.pfp-hero::before {
    /* Navy top band + gold accent stripe — echoes the OG card framing */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy) 80%, var(--brand-gold) 80%, var(--brand-gold) 100%);
    z-index: 2;
}
.pfp-hero::after {
    /* Brand star watermark — right side, very subtle */
    content: "";
    position: absolute;
    right: -30px;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    background: url('/image/brand/star.svg') no-repeat center / contain;
    opacity: 0.07;
    pointer-events: none;
}
.pfp-hero-inner { position: relative; z-index: 1; max-width: 760px; padding-top: 14px; }

.pfp-kind {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--brand-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
}
.pfp-name {
    font-family: var(--font-serif);
    font-size: 2.9rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--brand-navy);
    text-shadow: none;
}
.pfp-sub {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink-4);
    margin: 0 0 6px;
}
.pfp-headline {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ink-3);
    margin: 6px 0 18px;
    line-height: 1.5;
    max-width: 640px;
}
.pfp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink-4);
    margin-top: 6px;
}
.pfp-meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 500; }
.pfp-meta-dot { color: var(--ink-6); }
.pfp-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pfp-badge--verified { background: var(--state-ok-bg); color: var(--state-ok-ink); border: 1px solid var(--state-ok-bg); }
.pfp-badge--unclaimed { background: var(--state-warn-bg); color: var(--state-warn-ink); border: 1px solid var(--state-warn-bg); }
.pfp-badge--interstate { background: var(--state-info-bg); color: var(--state-info-ink); border: 1px solid var(--state-info-bg); }

/* --- Stats strip --- */
.pfp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    background: var(--pfp-surface);
    border: 1px solid var(--pfp-line);
    border-radius: 12px;
    margin: -24px 24px 28px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px -12px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}
.pfp-stat {
    padding: 18px 20px;
    border-right: 1px solid var(--pfp-line);
    text-align: center;
}
.pfp-stat:last-child { border-right: none; }
.pfp-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pfp-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.pfp-stat-lbl {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pfp-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Body layout: 2-col on desktop, stacked on mobile --- */
.pfp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}
.pfp-main { min-width: 0; }
.pfp-side { min-width: 0; }

/* --- Cards --- */
.pfp-card {
    background: var(--pfp-surface);
    border: 1px solid var(--pfp-line);
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 20px;
}
.pfp-card h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pfp-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
    padding: 0;
    border: none;
}
.pfp-card p { margin: 0 0 10px; color: var(--ink-3); font-size: 0.98rem; line-height: 1.65; }
.pfp-card p:last-child { margin-bottom: 0; }

.pfp-prose { font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.pfp-prose p:first-child { margin-top: 0; }

/* --- Fact grid (replaces bordered tables) --- */
.pfp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 24px;
}
.pfp-fact { min-width: 0; }
.pfp-fact-lbl {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pfp-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}
.pfp-fact-val {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pfp-ink);
    word-wrap: break-word;
}
.pfp-fact-val--muted { color: var(--pfp-muted); font-weight: 400; }

/* --- Tags / chip list --- */
.pfp-chip-group { margin-top: 16px; }
.pfp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pfp-chip {
    display: inline-block;
    padding: 5px 12px;
    background: var(--state-info-bg);
    color: var(--brand-navy-deep);
    border: 1px solid var(--state-info-bg);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* --- Side card: contact / verify / share --- */
.pfp-side .pfp-card { padding: 20px 22px; }
.pfp-side-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pfp-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.pfp-side-note { font-size: 0.88rem; color: var(--ink-4); margin: 0; line-height: 1.55; }
.pfp-side-value { margin: 0; font-weight: 600; color: var(--pfp-ink); }
.pfp-contact-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--pfp-line); }
.pfp-contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.pfp-contact-row:first-child { padding-top: 0; }
.pfp-contact-row a { color: var(--pfp-accent); text-decoration: none; font-weight: 600; word-break: break-word; }
.pfp-contact-row a:hover { text-decoration: underline; }

.pfp-link-list { list-style: none; margin: 0; padding: 0; }
.pfp-link-list li { padding: 8px 0; border-bottom: 1px solid var(--pfp-line); }
.pfp-link-list li:last-child { border-bottom: none; }
.pfp-link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--pfp-ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.pfp-link-list a:hover { color: var(--pfp-accent); }
.pfp-link-list a::after { content: "↗"; color: var(--pfp-muted-2); font-size: 0.85rem; }

/* --- Open positions list --- */
.pfp-jobs { display: flex; flex-direction: column; gap: 14px; }
.pfp-job {
    display: block;
    padding: 16px 18px;
    background: var(--pfp-surface-2);
    border: 1px solid var(--pfp-line);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.pfp-job:hover { border-color: var(--pfp-accent); background: var(--ink-white); }
.pfp-job-title { font-size: 1rem; font-weight: 700; color: var(--pfp-ink); margin: 0 0 4px; }
.pfp-job-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--pfp-muted); }
.pfp-job-pay { color: var(--pfp-ok); font-weight: 700; }

/* --- Empty state card --- */
.pfp-empty {
    padding: 32px 26px;
    text-align: center;
    color: var(--pfp-muted);
}
.pfp-empty strong { display: block; color: var(--pfp-ink); font-size: 1.02rem; margin-bottom: 6px; }
.pfp-empty p { color: var(--pfp-muted); font-size: 0.92rem; margin: 0; }

/* --- Claim CTA card (unclaimed carriers) --- */
.pfp-claim {
    background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 100%);
    color: var(--ink-white);
    padding: 24px 26px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    text-align: center;
}
.pfp-claim h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: var(--ink-white); }
.pfp-claim p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); margin: 0 0 14px; }
.pfp-claim a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--ink-white);
    color: var(--pfp-accent-ink);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}
.pfp-claim a:hover { background: var(--ink-10); }

/* --- Shareable URL footer --- */
.pfp-foot {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--pfp-line);
    text-align: center;
    color: var(--pfp-muted);
    font-size: 0.82rem;
}
.pfp-foot p { margin: 0 0 6px; }
.pfp-foot-url {
    display: inline-block;
    padding: 6px 12px;
    background: var(--pfp-surface-2);
    border: 1px solid var(--pfp-line);
    border-radius: 6px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    color: var(--pfp-ink);
    cursor: pointer;
    font-size: 0.8rem;
}
.pfp-foot-url:hover { background: var(--ink-white); border-color: var(--pfp-accent); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .pfp-body { grid-template-columns: 1fr; }
    .pfp-side { order: 2; }
    .pfp-stats { margin-left: 0; margin-right: 0; }
    .pfp-hero { padding: 44px 28px 40px; }
    .pfp-name { font-size: 2.1rem; }
    .pfp-headline { font-size: 1.02rem; }
}
@media (max-width: 600px) {
    .pfp { padding: 10px 12px 60px; }
    .pfp-hero { padding: 36px 22px 32px; border-radius: 10px; }
    .pfp-name { font-size: 1.7rem; }
    .pfp-kind { font-size: 0.68rem; margin-bottom: 14px; }
    .pfp-headline { font-size: 0.98rem; }
    .pfp-stats { margin: -18px 8px 22px; grid-template-columns: repeat(2, 1fr); }
    .pfp-stat { border-right: 1px solid var(--pfp-line); border-bottom: 1px solid var(--pfp-line); padding: 14px 12px; }
    .pfp-stat:nth-child(2n) { border-right: none; }
    .pfp-stat:nth-last-child(-n+2):nth-child(2n+1), .pfp-stat:last-child { border-bottom: none; }
    .pfp-stat-num { font-size: 1.35rem; }
    .pfp-card { padding: 18px 18px; border-radius: 10px; }
    .pfp-facts { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
    .pfp-actions { padding-bottom: 12px; }
    .pfp-btn { padding: 7px 12px; font-size: 0.8rem; }
}

/* --- Print styles --- */
/* Print CSS uses intentional black/white literal codes — print
   output bypasses the brand palette by design. */
@media print {
    @page { margin: 0.5in; }
    body { background: var(--ink-white); }
    .mp-nav, .pfp-actions, .pfp-foot, .pfp-claim { display: none !important; }
    .pfp { max-width: 100%; padding: 0; color: #000; }
    .pfp-hero {
        background: #fff !important;
        color: #000 !important;
        padding: 0 0 20px;
        border-bottom: 3px solid #000;
        border-radius: 0;
        box-shadow: none;
    }
    .pfp-hero::after { display: none; }
    .pfp-name { color: #000 !important; text-shadow: none; font-size: 1.8rem; }
    .pfp-sub, .pfp-headline, .pfp-meta { color: #333 !important; }
    .pfp-kind { background: #000 !important; color: #fff !important; border: none; }
    .pfp-badge { background: #eee !important; color: #000 !important; border-color: #999 !important; }
    .pfp-stats {
        margin: 16px 0;
        box-shadow: none;
        border-radius: 0;
        page-break-inside: avoid;
    }
    .pfp-body { display: block; }
    .pfp-card {
        border: 1px solid #ccc !important;
        border-radius: 0;
        page-break-inside: avoid;
        margin-bottom: 14px;
        padding: 14px 16px;
    }
    .pfp-side { margin-top: 14px; }
    a { color: #000 !important; text-decoration: none; }
    .pfp-chip { background: #f5f5f5 !important; color: #000 !important; border-color: #ccc !important; }
    .pfp-job { background: #fff !important; border: 1px solid #ccc !important; }
}

/* ================================================================
   MARKETPLACE UTILITY CLASSES (.mk-*)
   Shared utilities referenced by every marketplace blade. Replaces
   the inline style= attributes that used to litter the blade files.
   All colors reference --brand-* / --ink-* / --state-* variables.
   ================================================================ */

/* --- Buttons --- */
.mk-btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.mk-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.mk-btn--ok      { background: var(--state-ok);   color: var(--ink-white); }
.mk-btn--ok:hover{ background: var(--state-ok-ink);           color: var(--ink-white); }
.mk-btn--info    { background: var(--state-info); color: var(--ink-white); }
.mk-btn--info:hover { background: var(--brand-navy-deep);         color: var(--ink-white); }
.mk-btn--navy    { background: var(--brand-navy); color: var(--ink-white); }
.mk-btn--navy:hover { background: var(--brand-navy-deep); color: var(--ink-white); }
.mk-btn--purple  { background: var(--brand-gold);      color: var(--ink-white); }
.mk-btn--purple:hover { background: var(--brand-gold-light); color: var(--ink-white); }
.mk-btn--gold    { background: var(--brand-gold);      color: var(--ink-white); }
.mk-btn--gold:hover   { background: var(--brand-gold-light); color: var(--ink-white); }
.mk-btn--muted   { background: var(--ink-9);      color: var(--ink-3); }
.mk-btn--muted:hover { background: var(--ink-8);  color: var(--ink-3); }

.mk-btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--ink-5);
    text-decoration: none;
}
.mk-btn-small:hover { color: var(--ink-3); }

/* --- Alerts --- */
.mk-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}
.mk-alert--err  { background: var(--state-err-bg);  border-color: var(--state-err-bg); color: var(--state-err-ink); }
.mk-alert--warn { background: var(--state-warn-bg); border-color: var(--state-warn); color: var(--state-warn-ink); }
.mk-alert--ok   { background: var(--state-ok-bg);   border-color: var(--state-ok-bg); color: var(--state-ok-ink); }
.mk-alert--sm   { padding: 10px 14px; margin-bottom: 12px; font-size: 0.9rem; }

/* --- Form inputs (when outside .jf-field) --- */
.mk-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--ink-7);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}
.mk-input--fluid {
    flex: 1;
    min-width: 200px;
    width: auto;
}
.mk-input--lg { padding: 10px 14px; font-size: 1rem; }

/* --- Text color / typography utilities --- */
.mk-text-body   { color: var(--ink-4); }
.mk-text-muted  { color: var(--ink-5); }
.mk-text-dim    { color: var(--ink-6); }
.mk-text-err    { color: var(--state-err); font-size: 0.8rem; }
.mk-text-link   { color: var(--state-info); text-decoration: none; }
.mk-text-link:hover { text-decoration: underline; }
.mk-text-xs     { font-size: 0.8rem; }
.mk-bold        { font-weight: 700; }

/* --- Spacing utilities (token scale: 3=12px, 4=16px, 6=24px) --- */
.mk-mt-3 { margin-top: 12px; }
.mk-mt-4 { margin-top: 16px; }
.mk-mb-2 { margin-bottom: 8px; }
.mk-mb-4 { margin-bottom: 16px; }
.mk-mb-6 { margin-bottom: 24px; }
.mk-ml-3 { margin-left: 12px; }

/* --- Layout utilities --- */
.mk-span-2   { grid-column: span 2; }
.mk-flex-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-flex-row--tight { gap: 8px; }

/* --- Apply-to-job box (job-detail) --- */
.mk-apply-box {
    background: var(--ink-10);
    border: 1px solid var(--ink-8);
    border-radius: 6px;
    padding: 20px;
    margin-top: 8px;
}
.mk-apply-box h2 {
    border: none;
    padding: 0;
    margin-bottom: 8px;
}
.mk-apply-box .mk-note {
    color: var(--ink-5);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ================================================================
   Priority 3 — Contact request system
   Contact form on profile, driver inbox list, inbox request detail,
   and the full-application share hard gate. All additions use the
   existing --brand-* / --ink-* / --state-* tokens.
   ================================================================ */

/* --- Contact form card in driver profile aside --- */
.pfp-contact-card { border: 1px solid var(--pfp-line); }
.pfp-contact-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pfp-contact-form input,
.pfp-contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--ink-7);
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: inherit;
}
.pfp-contact-form textarea { min-height: 80px; resize: vertical; }
.pfp-contact-form button { margin-top: 4px; }
.pfp-contact-success {
    padding: 10px 12px;
    background: var(--state-ok-bg);
    color: var(--state-ok-ink);
    border: 1px solid var(--state-ok);
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 8px 0 0;
}
.pfp-contact-error {
    padding: 10px 12px;
    background: var(--state-err-bg);
    color: var(--state-err-ink);
    border: 1px solid var(--state-err);
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 8px 0 0;
}

/* --- Driver inbox list --- */
.mp-inbox-list { display: flex; flex-direction: column; gap: 12px; }
.mp-inbox-item {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--ink-8);
    border-radius: 6px;
    background: var(--ink-white);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mp-inbox-item:hover {
    border-color: var(--brand-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mp-inbox-item--pending { border-left: 4px solid var(--state-warn); }
.mp-inbox-item--approved { border-left: 4px solid var(--state-ok); }
.mp-inbox-item--declined { border-left: 4px solid var(--ink-6); }
.mp-inbox-item--expired { border-left: 4px solid var(--ink-7); }
.mp-inbox-item--revoked { border-left: 4px solid var(--state-err); }
.mp-inbox-item-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.mp-inbox-item-head strong { color: var(--ink-1); }
.mp-inbox-snippet {
    margin: 6px 0;
    color: var(--ink-4);
    font-size: 0.9rem;
    line-height: 1.45;
}
.mp-inbox-meta {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--ink-5);
}
.mp-inbox-shared { color: var(--state-ok-ink); font-weight: 600; }

/* --- Inbox status pill (reusable in list and detail) --- */
.mp-inbox-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: auto;
}
.mp-inbox-status--pending { background: var(--state-warn-bg); color: var(--state-warn-ink); }
.mp-inbox-status--approved { background: var(--state-ok-bg); color: var(--state-ok-ink); }
.mp-inbox-status--declined { background: var(--ink-9); color: var(--ink-4); }
.mp-inbox-status--expired { background: var(--ink-9); color: var(--ink-5); }
.mp-inbox-status--revoked { background: var(--state-err-bg); color: var(--state-err-ink); }

/* --- Inbox request detail --- */
.mp-inbox-body {
    padding: 16px;
    background: var(--ink-10);
    border: 1px solid var(--ink-8);
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink-2);
    margin-bottom: 16px;
}
.mp-inbox-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 0.88rem;
    color: var(--ink-3);
}
.mp-inbox-facts strong { color: var(--ink-2); }
@media (max-width: 600px) { .mp-inbox-facts { grid-template-columns: 1fr; } }

/* --- Full-application share hard gate --- */
.mp-share-warn {
    padding: 20px 24px;
    background: var(--state-warn-bg);
    border: 2px solid var(--state-warn);
    border-radius: 6px;
    margin-bottom: 24px;
    color: var(--state-warn-ink);
}
.mp-share-warn h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--state-warn-ink); }
.mp-share-warn p { margin: 0 0 10px; line-height: 1.55; }
.mp-share-warn ul { margin: 8px 0 12px 20px; padding: 0; }
.mp-share-warn li { margin-bottom: 4px; line-height: 1.5; }
.mp-share-warn strong { color: var(--state-warn-ink); }

/* --- Submit button variants and action row --- */
.jf-submit--secondary {
    background: var(--ink-white);
    color: var(--ink-3);
    border: 1px solid var(--ink-7);
}
.jf-submit--secondary:hover { background: var(--ink-9); border-color: var(--ink-6); }
.jf-submit--warn {
    background: var(--state-warn);
    color: var(--ink-white);
}
.jf-submit--warn:hover { background: var(--state-warn-ink); }
.jf-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.jf-actions .jf-submit { text-decoration: none; text-align: center; }

/* ================================================================
   GUIDEPOST FRONT DOOR (.gp-*)  — 2026-04-06
   Reusable "start or continue" entry pattern. Used by the driver
   start menu; carrier/vendor entries can @include the same partial.
   ================================================================ */
.gp-door { padding: 24px 0 48px; }
.gp-headline {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem; font-weight: 700; color: var(--ink-1);
    text-align: center; margin: 0 0 8px;
}
.gp-subline {
    text-align: center; color: var(--ink-5);
    font-size: 1rem; line-height: 1.5; margin: 0 0 32px;
}
.gp-cards {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}
@media (min-width: 720px) {
    .gp-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.gp-card {
    display: block; position: relative;
    padding: 24px 20px 28px;
    background: var(--ink-white);
    border: 2px solid var(--ink-7);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.gp-card:hover, .gp-card:focus-within {
    border-color: var(--brand-navy);
    background: var(--ink-10);
    transform: translateY(-1px);
}
.gp-card--start  { border-color: var(--brand-navy); }
.gp-card--start:hover { background: var(--brand-cream); }
.gp-card--continue summary { list-style: none; cursor: pointer; display: block; }
.gp-card--continue summary::-webkit-details-marker { display: none; }
.gp-card-eyebrow {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.75rem; font-weight: 600;
    color: var(--brand-gold); margin-bottom: 6px;
}
.gp-card-title {
    display: block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.35rem; font-weight: 700; color: var(--ink-1);
    margin-bottom: 8px;
}
.gp-card-desc {
    display: block; color: var(--ink-4);
    font-size: 0.95rem; line-height: 1.5;
}
.gp-card-arrow {
    position: absolute; top: 24px; right: 20px;
    font-size: 1.4rem; color: var(--brand-navy); font-weight: 700;
}
.gp-card-expand {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--ink-8);
}
.gp-expand-lede { margin: 0 0 8px; color: var(--ink-3); line-height: 1.5; }
.gp-expand-help { margin: 0 0 6px; color: var(--ink-4); font-size: 0.9rem; }
.gp-expand-phone { margin: 0; font-size: 1.05rem; }
.gp-expand-phone a {
    color: var(--brand-navy); font-weight: 600; text-decoration: none;
    border-bottom: 1px solid var(--brand-gold);
}
.gp-secondary {
    text-align: center; margin-top: 24px;
    font-size: 0.9rem;
}
.gp-secondary a { color: var(--ink-5); text-decoration: none; }
.gp-secondary a:hover { color: var(--brand-navy); text-decoration: underline; }

/* ================================================================
   DRIVER START — SCREEN 2 (.ds-*)  — 2026-04-06
   Minimal 5-field create form with the sign-in-link promise block.
   ================================================================ */
.ds-header { margin-bottom: 20px; }
.ds-header h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--ink-1); margin: 0 0 6px;
}
.ds-lede { color: var(--ink-5); font-size: 0.95rem; margin: 0; }
.ds-promise {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; margin-bottom: 24px;
    background: var(--brand-cream); border: 1px solid var(--brand-rule);
    border-radius: 8px;
}
.ds-promise-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.ds-promise-body {
    color: var(--ink-3); font-size: 0.93rem; line-height: 1.55;
}
.ds-promise-body strong { display: block; color: var(--ink-1); margin-bottom: 3px; }
.ds-form { display: block; }
.ds-field { margin-bottom: 20px; }
.ds-field label, .ds-field-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem; font-weight: 600;
    color: var(--ink-2); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.ds-field input[type="text"],
.ds-field input[type="email"],
.ds-field input[type="tel"] {
    width: 100%; padding: 14px 14px;
    font-size: 1rem; font-family: inherit;
    border: 1.5px solid var(--ink-7); border-radius: 6px;
    background: var(--ink-white); color: var(--ink-1);
}
.ds-field input:focus {
    outline: none; border-color: var(--brand-navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.12);
}
.ds-hint {
    margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-5); line-height: 1.4;
}
.ds-row { display: grid; grid-template-columns: 1fr 90px; gap: 12px; margin-bottom: 20px; }
.ds-row .ds-field { margin-bottom: 0; }
.ds-pills {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.ds-pill {
    position: relative; display: inline-block;
    padding: 14px 22px;
    background: var(--ink-white); border: 1.5px solid var(--ink-7);
    border-radius: 999px; cursor: pointer;
    font-weight: 600; color: var(--ink-3);
    transition: all 0.12s;
    min-width: 100px; text-align: center;
}
.ds-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ds-pill:hover { border-color: var(--ink-5); }
.ds-pill:has(input:checked) {
    background: var(--brand-navy); color: var(--ink-white);
    border-color: var(--brand-navy);
}
.ds-submit {
    display: block; width: 100%;
    padding: 16px 24px; margin-top: 8px;
    background: var(--brand-navy); color: var(--ink-white);
    border: none; border-radius: 6px;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: background 0.15s;
}
.ds-submit:hover { background: var(--brand-navy-deep); }
.ds-foot {
    margin: 14px 0 0; font-size: 0.78rem;
    color: var(--ink-5); text-align: center; line-height: 1.5;
}

/* ================================================================
   DRIVER POSTED — SUCCESS SCREEN (.dp-*)  — 2026-04-06
   Shows the sign-in link with copy/share and a continue CTA.
   ================================================================ */
.dp-success { text-align: center; padding: 24px 0 8px; }
.dp-checkmark {
    display: inline-flex; width: 56px; height: 56px;
    background: var(--state-ok); color: var(--ink-white);
    border-radius: 50%; font-size: 2rem; font-weight: 700;
    align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.dp-success h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.8rem; font-weight: 700; color: var(--ink-1);
    margin: 0 0 8px;
}
.dp-sub { color: var(--ink-4); margin: 0 0 28px; line-height: 1.5; }
.dp-link-card {
    padding: 20px; background: var(--brand-cream);
    border: 2px solid var(--brand-gold); border-radius: 8px;
    margin-bottom: 24px;
}
.dp-link-label {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.82rem; font-weight: 600; color: var(--brand-gold);
    margin-bottom: 8px;
}
.dp-link-url {
    padding: 12px; background: var(--ink-white);
    border: 1px solid var(--ink-7); border-radius: 4px;
    font-family: 'Courier New', monospace; font-size: 0.85rem;
    color: var(--ink-2); word-break: break-all;
    margin-bottom: 12px;
}
.dp-link-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dp-link-copy, .dp-link-share {
    flex: 1; min-width: 100px;
    padding: 12px 18px;
    background: var(--brand-navy); color: var(--ink-white);
    border: none; border-radius: 6px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.dp-link-copy:hover, .dp-link-share:hover { background: var(--brand-navy-deep); }
.dp-link-foot {
    margin: 0; font-size: 0.85rem;
    color: var(--ink-4); line-height: 1.55;
}
.dp-link-foot a { color: var(--brand-navy); font-weight: 600; }
.dp-continue-btn {
    display: block; width: 100%;
    padding: 16px; margin-bottom: 14px;
    background: var(--state-ok); color: var(--ink-white);
    border-radius: 6px; text-align: center;
    text-decoration: none; font-weight: 700; font-size: 1.05rem;
    transition: background 0.15s;
}
.dp-continue-btn:hover { background: #0f7a37; color: var(--ink-white); }
.dp-later {
    text-align: center; font-size: 0.85rem;
    color: var(--ink-5); margin: 0;
}

/* ================================================================
   SAMPLE CARD (.sc-*)  — 2026-04-06
   Live preview of what a carrier sees. JS updates text spans via
   data-samplecard-target attributes.
   ================================================================ */
.sc-card {
    margin: 0 0 28px; padding: 20px 22px;
    background: var(--ink-white);
    border: 1.5px solid var(--brand-gold);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.sc-eyebrow {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.72rem; font-weight: 600;
    color: var(--brand-gold); margin-bottom: 10px;
}
.sc-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--ink-1); margin-bottom: 4px;
}
.sc-loc {
    font-size: 0.9rem; color: var(--ink-4); margin-bottom: 12px;
}
.sc-headline {
    font-size: 0.95rem; color: var(--ink-2);
    font-weight: 600; line-height: 1.45; margin-bottom: 8px;
}
.sc-meta {
    font-size: 0.88rem; color: var(--ink-4); line-height: 1.5; margin-bottom: 10px;
}
.sc-sep { color: var(--ink-6); margin: 0 6px; }
.sc-avail {
    display: inline-block;
    padding: 4px 10px; background: var(--state-ok-bg);
    color: var(--state-ok-ink); border-radius: 4px;
    font-size: 0.82rem; font-weight: 600;
    margin-bottom: 12px;
}
.sc-privacy-note {
    padding-top: 12px; margin-top: 8px;
    border-top: 1px solid var(--ink-8);
    font-size: 0.78rem; color: var(--ink-5); line-height: 1.5; font-style: italic;
}

/* ================================================================
   DRIVER COMPLETION — SCREEN 3 (.dc-*)  — 2026-04-06
   Tap-chip profile builder. Chips, radios, checks, privacy panel.
   ================================================================ */
.dc-header { margin: 16px 0 24px; }
.dc-header h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.7rem; font-weight: 700; color: var(--ink-1); margin: 0 0 4px;
}
.dc-lede { margin: 0; color: var(--ink-5); font-size: 0.95rem; }

.dc-form { display: block; }
.dc-section {
    padding: 20px 0; border-bottom: 1px solid var(--ink-8);
}
.dc-section:last-of-type { border-bottom: none; }
.dc-section--privacy {
    background: var(--brand-cream);
    margin: 20px -15px; padding: 20px 15px;
    border-top: 1px solid var(--brand-rule);
    border-bottom: 1px solid var(--brand-rule);
    border-radius: 6px;
}
.dc-section-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem; font-weight: 700; color: var(--ink-1);
    margin: 0 0 12px;
}
.dc-multi, .dc-optional {
    display: inline-block; margin-left: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem; font-weight: 400;
    color: var(--ink-5); text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dc-privacy-lede {
    margin: 0 0 16px; color: var(--ink-3); font-size: 0.92rem; line-height: 1.5;
}
.dc-field { margin-bottom: 16px; }
.dc-field label, .dc-field-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.dc-input {
    width: 100%; padding: 12px 14px;
    font-size: 1rem; font-family: inherit;
    border: 1.5px solid var(--ink-7); border-radius: 6px;
    background: var(--ink-white); color: var(--ink-1);
}
.dc-input:focus {
    outline: none; border-color: var(--brand-navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.12);
}
.dc-input--readonly { background: var(--ink-10); color: var(--ink-5); cursor: not-allowed; }
.dc-input--narrow { max-width: 240px; }
.dc-textarea {
    width: 100%; min-height: 90px; padding: 12px 14px;
    font-size: 0.95rem; font-family: inherit;
    border: 1.5px solid var(--ink-7); border-radius: 6px;
    resize: vertical;
}
.dc-grid { display: grid; grid-template-columns: 1fr; gap: 12px 16px; margin-bottom: 12px; }
@media (min-width: 600px) {
    .dc-grid { grid-template-columns: 1fr 1fr; }
}
.dc-field--state { max-width: 110px; }
.dc-hint {
    margin: 6px 0 0; font-size: 0.8rem; color: var(--ink-5); line-height: 1.4;
}

/* Chips — the main tap target for screen 3 */
.dc-chips {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.dc-chip {
    position: relative; display: inline-block;
    padding: 12px 20px;
    background: var(--ink-white);
    border: 1.5px solid var(--ink-7); border-radius: 999px;
    cursor: pointer; user-select: none;
    font-size: 0.95rem; font-weight: 500; color: var(--ink-3);
    transition: all 0.12s;
}
.dc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dc-chip:hover { border-color: var(--ink-5); background: var(--ink-10); }
.dc-chip:has(input:checked) {
    background: var(--brand-navy); color: var(--ink-white);
    border-color: var(--brand-navy); font-weight: 600;
}
.dc-chips--multi .dc-chip:has(input:checked) {
    background: var(--brand-gold); color: var(--ink-white); border-color: var(--brand-gold);
}

/* Radios and checkboxes in list form (privacy section) */
.dc-radio-list, .dc-check-list {
    display: flex; flex-direction: column; gap: 10px;
}
.dc-radio, .dc-check {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    background: var(--ink-white);
    border: 1px solid var(--ink-8); border-radius: 6px;
    cursor: pointer; font-size: 0.92rem; color: var(--ink-3); line-height: 1.45;
}
.dc-radio:hover, .dc-check:hover { border-color: var(--ink-6); }
.dc-radio input, .dc-check input {
    flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; cursor: pointer;
}
.dc-radio strong, .dc-check strong { color: var(--ink-1); }
.dc-check--stub { opacity: 0.55; cursor: not-allowed; background: var(--ink-10); }
.dc-check--stub input { cursor: not-allowed; }
.dc-soon {
    display: inline-block; margin-left: 8px; padding: 2px 8px;
    background: var(--ink-8); color: var(--ink-5);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; border-radius: 3px;
}

/* Hero preview */
.dc-hero-preview { margin-bottom: 12px; }
.dc-hero-preview img {
    display: block; max-width: 100%; max-height: 180px;
    border-radius: 6px; border: 1px solid var(--ink-8);
}

/* Collapsed full-application details block */
.dc-details {
    border: 1px dashed var(--ink-7); border-radius: 6px;
    background: var(--ink-10); padding: 0;
}
.dc-summary {
    padding: 14px 16px; cursor: pointer; list-style: none;
    display: flex; flex-direction: column; gap: 2px;
}
.dc-summary::-webkit-details-marker { display: none; }
.dc-summary > span:first-child {
    font-weight: 600; color: var(--ink-2);
}
.dc-summary-hint { font-size: 0.82rem; color: var(--ink-5); }
.dc-details[open] .dc-summary { border-bottom: 1px solid var(--ink-8); }
.dc-details-body { padding: 16px; }

.dc-submit {
    display: block; width: 100%;
    padding: 16px 24px; margin: 24px 0 0;
    background: var(--brand-navy); color: var(--ink-white);
    border: none; border-radius: 6px;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: background 0.15s;
}
.dc-submit:hover { background: var(--brand-navy-deep); }

/* ================================================================
   INBOX PREVIEW on driver edit screen (.dc-inbox-*) — 2026-04-06
   Light summary of start_contact_requests at the top of screen 3.
   Full inbox lives at /inbox/{token} (existing ContactController).
   ================================================================ */
.dc-inbox-preview {
    margin: 0 0 28px; padding: 16px 18px;
    background: var(--state-info-bg);
    border: 1px solid var(--state-info);
    border-radius: 8px;
}
.dc-inbox-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; gap: 10px; flex-wrap: wrap;
}
.dc-inbox-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem; font-weight: 700; color: var(--state-info-ink);
    margin: 0;
}
.dc-inbox-badge {
    display: inline-block; margin-left: 8px;
    padding: 2px 10px; background: var(--state-warn);
    color: var(--ink-white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; border-radius: 999px;
}
.dc-inbox-all {
    color: var(--state-info-ink); text-decoration: none;
    font-size: 0.88rem; font-weight: 600;
}
.dc-inbox-all:hover { text-decoration: underline; }
.dc-inbox-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.dc-inbox-item {
    padding: 12px 14px; background: var(--ink-white);
    border: 1px solid var(--ink-8); border-radius: 6px;
}
.dc-inbox-item--pending { border-left: 3px solid var(--state-warn); }
.dc-inbox-item--approved { border-left: 3px solid var(--state-ok); }
.dc-inbox-item--declined { border-left: 3px solid var(--state-err); }
.dc-inbox-from { font-size: 0.95rem; color: var(--ink-1); margin-bottom: 4px; }
.dc-inbox-co {
    display: inline-block; margin-left: 6px;
    color: var(--ink-5); font-size: 0.85rem;
}
.dc-inbox-msg {
    font-size: 0.88rem; color: var(--ink-4);
    line-height: 1.45; margin-bottom: 6px;
}
.dc-inbox-meta {
    display: flex; gap: 10px; align-items: center;
    font-size: 0.78rem; color: var(--ink-5);
}
.dc-inbox-status {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase; letter-spacing: 0.04em;
    font-weight: 600; padding: 2px 8px; border-radius: 3px;
}
.dc-inbox-status--pending  { background: var(--state-warn-bg); color: var(--state-warn-ink); }
.dc-inbox-status--approved { background: var(--state-ok-bg); color: var(--state-ok-ink); }
.dc-inbox-status--declined { background: var(--state-err-bg); color: var(--state-err-ink); }

/* ================================================================
   Hoffman Report — Safety Grade Card
   ----------------------------------------------------------------
   Visual reference: 2023 Hoffman Strategies Monthly Carrier
   Compliance Snapshot reports (PDF letter-size). The card lives
   inside .mp-wrap--detail and renders as a paper-feel document
   with letterhead, peer cohort context line, prominent letter
   grade, and a per-BASIC table.

   Severity bucket -> color mapping comes from CarrierGradingService
   ::severityForLetter() and uses the existing --state-* tokens so
   the safety grade card stays consistent with the rest of the
   marketplace.
   ================================================================ */

.sg-paper {
    background: var(--ink-white);
    border: 1px solid var(--brand-rule);
    border-top: 4px solid var(--brand-navy);
    border-radius: 2px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.06);
    font-family: var(--font-serif);
    color: var(--brand-ink);
}
@media (max-width: 600px) {
    .sg-paper { padding: 20px 18px; }
}

.sg-letterhead {
    text-align: center;
    border-bottom: 1px solid var(--brand-rule);
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.sg-letterhead h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0 0 4px;
    border: none;
    padding: 0;
    letter-spacing: 0.01em;
}
.sg-letterhead .sg-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-5);
}

.sg-grade-block {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--brand-cream);
    border: 1px solid var(--brand-rule);
    border-radius: 4px;
}
@media (max-width: 600px) {
    .sg-grade-block { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }
}

.sg-grade-letter {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 14px 18px;
    text-align: center;
    border-radius: 4px;
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1;
}
.sg-grade-letter .sg-letter {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 4px;
}
.sg-grade-letter .sg-comment {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.sg-grade--positive {
    background: var(--state-ok-bg);
    color: var(--state-ok-ink);
    border: 1px solid var(--state-ok);
}
.sg-grade--neutral {
    background: var(--state-info-bg);
    color: var(--state-info-ink);
    border: 1px solid var(--state-info);
}
.sg-grade--caution {
    background: var(--state-warn-bg);
    color: var(--state-warn-ink);
    border: 1px solid var(--state-warn);
}
.sg-grade--warning {
    background: var(--state-err-bg);
    color: var(--state-err-ink);
    border: 1px solid var(--state-err);
}
.sg-grade--unknown {
    background: var(--ink-9);
    color: var(--ink-5);
    border: 1px solid var(--ink-7);
}

.sg-grade-context {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--brand-ink);
}
.sg-grade-context strong {
    color: var(--brand-navy);
    font-weight: 700;
}
.sg-grade-context .sg-summary-perc {
    display: block;
    margin-top: 4px;
    color: var(--ink-4);
    font-size: 0.85rem;
    font-style: italic;
}

.sg-section-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-navy);
    margin: 22px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--brand-rule);
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--brand-ink);
}
.sg-table thead th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1.5px solid var(--brand-navy);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--brand-navy);
}
.sg-table thead th.sg-num { text-align: right; }
.sg-table tbody td {
    padding: 9px 6px;
    border-bottom: 1px dotted var(--brand-rule);
    vertical-align: middle;
}
.sg-table tbody td.sg-num { text-align: right; font-variant-numeric: tabular-nums; }
.sg-table tbody tr:last-child td { border-bottom: 1px solid var(--brand-rule); }
.sg-basic-name { font-weight: 600; color: var(--brand-navy); }

/* Per-row letter pills inside the BASIC table */
.sg-pill {
    display: inline-block;
    min-width: 32px;
    padding: 2px 8px;
    text-align: center;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.sg-pill--positive { background: var(--state-ok-bg);   color: var(--state-ok-ink); }
.sg-pill--neutral  { background: var(--state-info-bg); color: var(--state-info-ink); }
.sg-pill--caution  { background: var(--state-warn-bg); color: var(--state-warn-ink); }
.sg-pill--warning  { background: var(--state-err-bg);  color: var(--state-err-ink); }
.sg-pill--unknown  { background: var(--ink-9);         color: var(--ink-5); }

/* Acute/Critical chip */
.sg-ac-yes {
    display: inline-block;
    padding: 2px 8px;
    background: var(--state-err-bg);
    color: var(--state-err-ink);
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sg-ac-no {
    color: var(--ink-6);
    font-size: 0.85rem;
}

.sg-inspection-summary {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--brand-cream);
    border-left: 3px solid var(--brand-gold);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--brand-ink);
}
.sg-inspection-summary strong { color: var(--brand-navy); }

.sg-source-line {
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-6);
}

.sg-no-records {
    text-align: center;
    padding: 24px 16px;
    background: var(--brand-cream);
    border: 1px dashed var(--brand-rule);
    border-radius: 4px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-4);
}
.sg-no-records .sg-no-records-headline {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 6px;
}

/* ----------------------------------------------------------------
   Hoffman Report — General Information sheet
   Used by the FMCSA Record section above the Safety Grade card
   so both sections share one paper-feel visual language.
   ---------------------------------------------------------------- */
.sg-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    margin-bottom: 4px;
}
@media (max-width: 600px) {
    .sg-info-grid { grid-template-columns: 1fr; gap: 12px 0; }
}
.sg-info-row { min-width: 0; }
.sg-info-row--full { grid-column: 1 / -1; }
.sg-info-row label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-navy);
    margin-bottom: 2px;
}
.sg-info-row .sg-info-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--brand-ink);
    word-wrap: break-word;
}
.sg-info-row .sg-info-value a {
    color: var(--brand-navy);
    text-decoration: none;
    border-bottom: 1px dotted var(--brand-navy);
}
.sg-info-row .sg-info-value a:hover {
    border-bottom-style: solid;
}
.sg-info-row .sg-info-value .sg-info-aux {
    display: block;
    font-size: 0.85rem;
    color: var(--ink-5);
    margin-top: 1px;
}

/* Hazmat / authority chips inside the General Information sheet */
.sg-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sg-chip--interstate { background: var(--state-info-bg); color: var(--state-info-ink); }
.sg-chip--intrastate { background: var(--state-warn-bg); color: var(--state-warn-ink); }
.sg-chip--hazmat     { background: var(--state-err-bg);  color: var(--state-err-ink); }
.sg-chip--passenger  { background: var(--brand-cream-dim); color: var(--brand-navy); }
.sg-chip--claimed    { background: var(--state-ok-bg);  color: var(--state-ok-ink); }
.sg-chip--status-active   { background: var(--state-ok-bg); color: var(--state-ok-ink); }
.sg-chip--status-inactive { background: var(--ink-8); color: var(--ink-3); border: 1px solid var(--ink-7); }

/* Action buttons row inside an .sg-paper sheet */
.sg-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--brand-rule);
}
.sg-action-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    transition: opacity 0.15s;
}
.sg-action-btn:hover { opacity: 0.85; }
.sg-action-btn--call  { background: var(--state-ok);   color: var(--ink-white); }
.sg-action-btn--email { background: var(--state-info); color: var(--ink-white); }
.sg-action-btn--fmcsa { background: var(--ink-white); color: var(--brand-navy); border-color: var(--brand-navy); }

/* =========================================================================
   Carrier Search v0.1 — typeahead dropdown for /carriers
   =========================================================================
   Matches the flex layout of .mp-search (line 127). The input lives inside
   .mp-search-input-wrap so we can anchor the absolute-positioned dropdown
   to the input width, not the entire form (the state select + button sit
   alongside at their own widths).
   Added 2026-04-08 as part of BITE-SEARCH-V01.
   ========================================================================= */

.mp-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
}
.mp-search-input-wrap input[type="text"] {
    flex: 1;
    width: 100%;
}

.mp-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--brand-cream);
    border: 1px solid var(--brand-rule);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(15, 26, 48, 0.12);
    max-height: 420px;
    overflow-y: auto;
}
.sug-row {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--brand-cream-dim);
    color: var(--brand-ink);
    text-decoration: none;
    cursor: pointer;
}
.sug-row:last-child { border-bottom: none; }
.sug-row:hover,
.sug-row.sug-active { background: var(--brand-cream-dim); }
.sug-name {
    font-weight: 600;
    color: var(--brand-navy);
    font-size: 0.95rem;
    line-height: 1.3;
}
.sug-dba {
    font-size: 0.8rem;
    color: var(--brand-muted);
    font-style: italic;
    margin-top: 2px;
}
.sug-meta {
    font-size: 0.8rem;
    color: var(--brand-muted);
    margin-top: 3px;
}
.sug-empty {
    padding: 14px;
    color: var(--brand-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================================
   Hoffman Report — collapsible wrapper on carrier detail page
   Wraps .sg-paper in <details> so search cards can deep-link
   to #hoffman-report and auto-open. Uses existing brand tokens.
   ============================================================ */
.sg-report-toggle {
    margin: 0 0 28px;
    border: 1px solid var(--brand-rule);
    border-top: 4px solid var(--brand-navy);
    border-radius: 2px;
    background: var(--ink-white);
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.06);
    overflow: hidden;
}
.sg-report-toggle[open] {
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.08);
}
.sg-report-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 18px 24px;
    font-family: var(--font-serif);
    color: var(--brand-navy);
}
.sg-report-summary::-webkit-details-marker { display: none; }
.sg-report-summary::marker { content: ''; }
.sg-report-summary__title {
    font-weight: 600;
    font-size: 1.15rem;
}
.sg-report-summary__meta {
    flex: 1;
    color: var(--ink-5);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.sg-report-summary__grade { margin-left: auto; }
.sg-report-summary::after {
    content: '▸';
    color: var(--ink-5);
    font-size: 0.9rem;
    transition: transform 0.15s ease;
}
.sg-report-toggle[open] .sg-report-summary::after { transform: rotate(90deg); }

/* Paper sits inside the details wrapper — strip its own frame */
.sg-paper--hoffman-expanded {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--brand-rule);
    border-radius: 0;
    box-shadow: none;
}

/* Carrier-card "See full report" link */
.cl-card-report-row {
    margin-top: 10px;
}
.cl-card-link--report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-rule);
    padding-bottom: 1px;
}
.cl-card-link--report:hover {
    color: var(--brand-gold);
    border-bottom-color: var(--brand-gold);
}
.cl-card-link--report::before {
    content: '📋';
    font-size: 0.85rem;
}

/* ============================================================
   Hoffman Report — Inactive carrier state
   Distinct from No Records: carrier exists in the FMCSA directory
   but has no current MCS-150 biennial update on file. Grey/muted
   palette signals dormancy without implying a failing grade.
   ============================================================ */
.sg-pill--inactive {
    background: var(--ink-8);
    color: var(--ink-3);
    border: 1px solid var(--ink-7);
}
.sg-no-records--inactive {
    border-left: 4px solid var(--ink-5);
    background: var(--ink-10);
}
.sg-no-records--inactive .sg-no-records-headline {
    color: var(--ink-3);
}
