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

    :root {
      --blue:         #1a5c99;  /* TEA primary blue */
      --blue-hover:   #154d82;
      --blue-light:   #e8f0f9;
      --blue-border:  #c2d6ee;
      --blue-dark:    #0e3a63;
      --red:          #cc2200;  /* TEA accent red */
      --gray-page:    #f4f3ef;
      --gray-card:    #ffffff;
      --gray-border:  #dddbd4;
      --gray-subtle:  #f0ede7;
      --gray-mid:     #888580;
      --text-primary:   #1c1c1a;
      --text-secondary: #4a4845;
      --text-muted:     #888580;
      --radius-sm:  4px;
      --radius-md:  6px;
      --radius-lg:  8px;
    }

    body {
      font-family: 'Lato', sans-serif;
      font-weight: 400;
      background: var(--gray-page);
      color: var(--text-primary);
      font-size: 15px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    a { color: var(--blue); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* ── Minimal nav placeholder ─────────────────────── */
    .site-nav {
      background: #fff;
      border-bottom: 1px solid var(--gray-border);
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      position: sticky;
      top: 0;
      z-index: 50;
    }
    .site-nav img { height: 36px; }
    .nav-login {
      font-size: 13px;
      font-weight: 700;
      color: var(--blue);
      border: 1px solid var(--blue-border);
      border-radius: var(--radius-sm);
      padding: 6px 16px;
    }
    .nav-login:hover { background: var(--blue-light); text-decoration: none; }

    /* ── Page header ─────────────────────────────────── */
    .page-header {
      background: #0e1f35;
      border-bottom: none;
      padding: 2.25rem 0 0;
      margin-bottom: 2rem;
    }
    .container {
      max-width: 1060px;
      margin: 0 auto;
      padding: 0 2rem;
    }


    /* ── Breadcrumb bar — gray bg, right-aligned, above page header ── */
    .breadcrumb-bar {
      background: var(--gray-page);
      padding: .625rem 0;
    }
    .breadcrumb-bar .container {
      display: flex;
      justify-content: flex-end;
    }
    .breadcrumb {
      font-size: 12px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .breadcrumb a { color: var(--blue); font-size: 12px; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb-sep { color: var(--gray-border); font-size: 14px; }


    h1 {
      font-size: 30px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.2;
      margin-bottom: .5rem;
      letter-spacing: -.01em;
    }
    .page-subtitle {
      font-size: 15px;
      color: rgba(255,255,255,.75);
      max-width: 680px;
      line-height: 1.6;
      font-weight: 300;
    }

    /* EOU badge inline in subtitle */
    .eou-inline {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(255,255,255,.2);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px 2px 5px;
      border-radius: var(--radius-sm);
      vertical-align: middle;
      letter-spacing: .06em;
      text-transform: uppercase;
      border: 1px solid rgba(255,255,255,.35);
    }

    /* ── Search bar ──────────────────────────────────── */
    .search-row {
      display: flex;
      gap: 8px;
      margin-top: 1.25rem;
      max-width: 640px;
    }
    .search-row input {
      flex: 1;
      height: 42px;
      padding: 0 14px;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-family: 'Lato', sans-serif;
      color: var(--text-primary);
      background: #fff;
      outline: none;
      transition: border-color .15s, box-shadow .15s;
    }
    .search-row input:focus {
      border-color: #fff;
      box-shadow: 0 0 0 3px rgba(255,255,255,.2);
    }
    .search-row input::placeholder { color: var(--text-muted); }
    .search-row button {
      height: 42px;
      padding: 0 24px;
      background: var(--blue);
      color: #fff;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      cursor: pointer;
      transition: background .15s;
      white-space: nowrap;
    }
    .search-row button:hover { background: var(--blue-hover); }


    /* ── Alpha browse bar — sits at bottom of dark header ── */
    .alpha-bar {
      margin-top: 1.75rem;
      border-top: 1px solid rgba(255,255,255,.15);
      padding: .75rem 0;
      display: flex;
      align-items: center;
      gap: .25rem;
      flex-wrap: wrap;
    }
    .alpha-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.5);
      margin-right: .5rem;
      white-space: nowrap;
    }
    .alpha-btn {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      color: rgba(255,255,255,.7);
      background: none;
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background .12s, color .12s;
      text-decoration: none;
    }
    .alpha-btn:hover {
      background: rgba(255,255,255,.12);
      color: #fff;
      text-decoration: none;
    }
    .alpha-btn.active {
      background: #0082bb;
      color: #fff;
    }
    .alpha-btn.disabled {
      color: rgba(255,255,255,.25);
      cursor: default;
      pointer-events: none;
    }

    /* ── Location radius filter ─────────────────────────────────────────── */
    .zip-input {
      width: 100%;
      height: 36px;
      padding: 0 10px;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-family: 'Lato', sans-serif;
      color: var(--text-primary);
      background: #fff;
      outline: none;
      margin-bottom: .75rem;
      transition: border-color .15s;
    }
    .zip-input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26,92,153,.1); }
    .zip-input::placeholder { color: var(--text-muted); }

    .radius-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: .375rem;
    }
    .radius-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 400; }
    .radius-value { font-size: 12.5px; font-weight: 700; color: var(--blue); }

    .radius-slider {
      width: 100%;
      accent-color: var(--blue);
      cursor: pointer;
      margin-bottom: .625rem;
    }
    .radius-anywhere {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12.5px;
      color: var(--text-primary);
      cursor: pointer;
      padding-top: .25rem;
      border-top: 1px solid var(--gray-border);
      margin-top: .25rem;
    }
    .radius-anywhere input { accent-color: var(--blue); cursor: pointer; width: 14px; height: 14px; }

    /* ── Certification badges — below bio on card ── */
    .card-certs {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: .5rem;
    }
    .badge-cert {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #fff;
      color: var(--blue);
      border: 1px solid var(--blue-border);
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px 3px 6px;
      border-radius: var(--radius-sm);
      letter-spacing: .05em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .badge-cert i { font-size: 10px; }
    .badge-eou-card {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--blue);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px 3px 6px;
      border-radius: var(--radius-sm);
      letter-spacing: .05em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .badge-eou-card i { font-size: 10px; }
    /* ── Two-column layout ───────────────────────────── */
    .layout {
      display: grid;
      grid-template-columns: 228px 1fr;
      gap: 1.5rem;
      align-items: start;
      padding-bottom: 3rem;
    }

    /* ── Sidebar ─────────────────────────────────────── */
    .sidebar { display: flex; flex-direction: column; gap: 1rem; }

    .filter-card {
      background: #fff;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-lg);
      padding: 1rem 1.125rem;
    }

    .filter-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-muted);
      margin-bottom: .75rem;
      padding-bottom: .5rem;
      border-bottom: 1px solid var(--gray-border);
    }

    /* EOU toggle — highlighted block */
    .eou-toggle {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      background: var(--blue-light);
      border: 1px solid var(--blue-border);
      border-radius: var(--radius-sm);
      padding: .625rem .75rem;
      cursor: pointer;
      margin-bottom: .5rem;
    }
    .eou-toggle input[type="checkbox"] {
      accent-color: var(--blue);
      flex-shrink: 0;
      margin-top: 2px;
      cursor: pointer;
      width: 14px;
      height: 14px;
    }
    .eou-toggle-label { font-size: 13px; font-weight: 700; color: var(--blue-dark); line-height: 1.3; }
    .eou-toggle-sub { font-size: 11px; color: var(--blue); margin-top: 2px; font-weight: 400; }

    /* Regular filter checkbox rows */
    .filter-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-primary);
      padding: 3px 0;
      cursor: pointer;
      line-height: 1.4;
    }
    .filter-item input[type="checkbox"] {
      accent-color: var(--blue);
      flex-shrink: 0;
      cursor: pointer;
      width: 14px;
      height: 14px;
    }
    .filter-item .ct {
      margin-left: auto;
      font-size: 11px;
      color: var(--text-muted);
      background: var(--gray-subtle);
      padding: 1px 7px;
      border-radius: 99px;
      font-weight: 400;
    }

    /* ── Main results column ─────────────────────────── */
    .main-col { display: flex; flex-direction: column; gap: 1rem; }

    .results-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 13px;
      color: var(--text-muted);
    }
    .results-bar strong { color: var(--text-primary); font-weight: 700; }
    .sort-select {
      font-size: 13px;
      padding: 6px 10px;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-sm);
      background: #fff;
      color: var(--text-primary);
      font-family: 'Lato', sans-serif;
      cursor: pointer;
    }

    /* Section divider labels — like TEA's internal section headers */
    .section-label {
      display: flex;
      align-items: center;
      gap: .625rem;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-muted);
      font-weight: 700;
    }
    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--gray-border);
    }

    /* Badges */
    .badge-eou {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--blue);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px 3px 6px;
      border-radius: var(--radius-sm);
      letter-spacing: .05em;
      text-transform: uppercase;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .badge-eou i { font-size: 11px; }

    .badge-cat {
      font-size: 11px;
      font-weight: 700;
      background: var(--blue-light);
      color: var(--blue-dark);
      padding: 3px 10px;
      border-radius: 99px;
      white-space: nowrap;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    /* ── Person cards ─────────────────────────────────
       Modeled on the resources/list card layout:
       [thumbnail] [category tag]
                   [date / firm line]
                   [h5 name]
                   [excerpt / bio snippet]
    ──────────────────────────────────────────────── */
    .person-card {
      background: #fff;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-lg);
      display: flex;
      gap: 0;
      cursor: pointer;
      transition: border-color .15s, box-shadow .15s;
      overflow: hidden;
      text-decoration: none;
      color: inherit;
    }
    .person-card:hover {
      border-color: var(--blue);
      box-shadow: 0 2px 10px rgba(26,92,153,.1);
      text-decoration: none;
    }
    .person-card.eou {
      border-left: 4px solid var(--blue);
    }

    /* Thumbnail column — matches the image thumb on resources/list */
    .card-thumb {
      width: 160px;
      flex-shrink: 0;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      border-right: 1px solid var(--gray-border);
      font-size: 22px;
      font-weight: 700;
      color: var(--text-muted);
      letter-spacing: .02em;
      position: relative;
      overflow: hidden;
    }
    /* Photo fills the thumb area regardless of original aspect ratio */
    .card-thumb img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 20%;
      display: block;
    }
    /* When card has EOU border, compensate the left so thumb still looks right */
    .person-card.eou .card-thumb {
      margin-left: 0;
    }

    /* Body column */
    .card-body {
      flex: 1;
      min-width: 0;
      padding: 1rem 1.25rem;
    }

    /* Top row: category badge(s) + optional EOU badge — same row as resource type tag */
    .card-meta-top {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: .35rem;
      flex-wrap: wrap;
    }

    /* Firm / title line — sits where the date sits on resources/list */
    .card-firm {
      font-size: 12.5px;
      color: var(--text-muted);
      margin-bottom: .3rem;
      font-weight: 400;
    }

    /* Name — styled like the h5 on resources/list cards */
    .card-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: .4rem;
      line-height: 1.3;
    }
    .person-card:hover .card-name { text-decoration: underline; }

    /* Bio excerpt — same truncation treatment as article excerpts */
    .card-bio {
      font-size: 13.5px;
      color: var(--text-secondary);
      line-height: 1.6;
      font-weight: 300;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ── Pagination ──────────────────────────────────── */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: .5rem 0 0;
    }
    .pg {
      min-width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-secondary);
      background: #fff;
      cursor: pointer;
      padding: 0 8px;
      font-family: 'Lato', sans-serif;
      transition: border-color .12s, color .12s;
    }
    .pg:hover { border-color: var(--blue); color: var(--blue); }
    .pg.on { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
    .pg.gap { border: none; background: none; cursor: default; color: var(--text-muted); }
    .pg.gap:hover { color: var(--text-muted); }

    /* ── Modal ───────────────────────────────────────── */

    /* Modal photo + bio two-column layout */
    .modal-profile {
      display: flex;
      gap: 1.25rem;
      align-items: flex-start;
      margin-bottom: 1.1rem;
    }
    .modal-profile-photo {
      width: 130px;
      flex-shrink: 0;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--gray-border);
      background: var(--gray-subtle);
    }
    .modal-profile-photo img {
      width: 100%;
      display: block;
      object-fit: cover;
      object-position: center 20%;
      aspect-ratio: 3 / 4;
    }
    .modal-profile-bio {
      flex: 1;
      min-width: 0;
    }

    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.5);
      z-index: 200;
      overflow-y: auto;
      padding: 2rem 1rem;
    }
    .modal-overlay.open { display: block; }

    .modal {
      background: #fff;
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      border: 1px solid var(--gray-border);
      box-shadow: 0 8px 48px rgba(0,0,0,.2);
      overflow: hidden;
    }

    /* Modal header — photo + name + badges */
    .modal-header {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      padding: 1.5rem;
      border-bottom: 1px solid var(--gray-border);
      background: var(--gray-subtle);
    }
    .modal-info { flex: 1; min-width: 0; }
    .modal-name { font-size: 21px; font-weight: 700; color: var(--text-primary); margin-bottom: .2rem; line-height: 1.25; }
    .modal-title-line { font-size: 13.5px; color: var(--text-secondary); margin-bottom: .6rem; font-weight: 400; }
    .modal-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
    .modal-close {
      background: none;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-sm);
      cursor: pointer;
      color: var(--text-muted);
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 18px;
      transition: background .12s, color .12s;
    }
    .modal-close:hover { background: #fff; color: var(--text-primary); }

    .modal-body { padding: 1.5rem; }

    .modal-section {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-muted);
      margin-bottom: .625rem;
      padding-bottom: .375rem;
      border-bottom: 1px solid var(--gray-border);
    }

    .modal-bio {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.75;
      margin-bottom: 1.25rem;
      font-weight: 300;
    }
    .modal-bio p + p { margin-top: .75rem; }

    .modal-details {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: .5rem 1rem;
    }
    .detail-row {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      font-size: 13px;
      color: var(--text-secondary);
    }
    .detail-row i { font-size: 15px; color: var(--text-muted); margin-top: 1px; flex-shrink: 0; }
    .detail-row a { color: var(--blue); }
    .detail-row a:hover { text-decoration: underline; }

    .modal-footer {
      border-top: 1px solid var(--gray-border);
      padding: 1rem 1.5rem;
      display: flex;
      justify-content: flex-end;
      gap: .75rem;
      align-items: center;
    }
    .btn-primary {
      height: 40px;
      padding: 0 22px;
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background .15s;
    }
    .btn-primary:hover { background: var(--blue-hover); }
    .btn-secondary {
      height: 40px;
      padding: 0 18px;
      background: #fff;
      color: var(--text-secondary);
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-family: 'Lato', sans-serif;
      cursor: pointer;
      transition: border-color .15s, color .15s;
    }
    .btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

    .card-logo {
      position: absolute;
      top: 10px;
      right: 12px;
      width: 110px;
      height: 55px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    .card-logo img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
    }

    /* Card body needs relative positioning for the logo overlay */
    .card-body {
      position: relative;
    }

    /* Pull card name and bio away from right edge to avoid logo overlap */
    .card-name,
    .card-bio {
      padding-right: 128px;
    }

    /* Filter chips row — shown above results when filters are active */
    .filter-chips {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }
    .filter-chips-label {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 400;
      white-space: nowrap;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--blue-light);
      border: 1px solid var(--blue-border);
      border-radius: 99px;
      padding: 4px 10px 4px 12px;
      font-size: 12px;
      font-weight: 700;
      color: var(--blue-dark);
      cursor: pointer;
      transition: background .12s, border-color .12s;
      white-space: nowrap;
    }
    .chip:hover {
      background: #d0e4f5;
      border-color: var(--blue);
    }
    .chip-x {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--blue-border);
      color: var(--blue-dark);
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
      flex-shrink: 0;
      transition: background .12s;
    }
    .chip:hover .chip-x {
      background: var(--blue);
      color: #fff;
    }

    /* Search term chip — slightly different visual treatment from filter chips */
    .chip-search {
      background: var(--gray-subtle);
      border-color: var(--gray-border);
      color: var(--text-secondary);
    }
    .chip-search:hover {
      background: #e8e6df;
      border-color: var(--gray-mid);
    }
    .chip-search .chip-x {
      background: var(--gray-border);
      color: var(--text-secondary);
    }
    .chip-search:hover .chip-x {
      background: var(--gray-mid);
      color: #fff;
    }
    .chip-clear-all {
      font-size: 12px;
      color: var(--blue);
      font-weight: 700;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px 2px;
      font-family: 'Lato', sans-serif;
      text-decoration: underline;
      white-space: nowrap;
    }
    .chip-clear-all:hover { color: var(--blue-hover); }

    /* My Saved List pill button */
    .btn-saved-list {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      background: #fff;
      color: var(--blue);
      border: 1px solid var(--blue-border);
      border-radius: 99px;
      padding: .5rem .75rem;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      cursor: pointer;
      margin-bottom: 1rem;
      transition: background .15s, border-color .15s;
    }
    .btn-saved-list:hover { background: var(--blue-light); border-color: var(--blue); }
    .btn-saved-list .sl-count {
      background: var(--blue);
      color: #fff;
      border-radius: 99px;
      font-size: 10.5px;
      font-weight: 700;
      padding: 1px 8px;
      display: none;
    }
    .btn-saved-list .sl-count.visible { display: inline-block; }

    /* Save toggle on cards */
    .save-btn {
      position: absolute;
      bottom: 10px;
      right: 12px;
      background: none;
      border: 1px solid var(--gray-border);
      border-radius: 99px;
      padding: 3px 10px 3px 8px;
      font-size: 11px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: background .12s, color .12s, border-color .12s;
      white-space: nowrap;
    }
    .save-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
    .save-btn.saved { background: var(--blue-light); border-color: var(--blue-border); color: var(--blue); }
    .save-btn.saved:hover { background: #fce8e8; border-color: #e9a0a0; color: #cc2200; }
    .save-btn i { font-size: 12px; }

    /* Save button in modal footer */
    .btn-save-modal {
      height: 40px;
      padding: 0 18px;
      background: #fff;
      color: var(--blue);
      border: 1px solid var(--blue-border);
      border-radius: var(--radius-sm);
      font-size: 13.5px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background .15s, border-color .15s;
    }
    .btn-save-modal:hover { background: var(--blue-light); }
    .btn-save-modal.saved { background: var(--blue-light); }
    .btn-save-modal.saved:hover { background: #fce8e8; border-color: #e9a0a0; color: #cc2200; }

    /* Saved list full-page modal */
    .sl-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.5);
      z-index: 300;
      overflow-y: auto;
      padding: 2rem 1rem;
      align-items: flex-start;
      justify-content: center;
    }
    .sl-overlay.open { display: flex; }
    .sl-modal {
      background: #fff;
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 680px;
      max-height: calc(100vh - 4rem);
      display: flex;
      flex-direction: column;
      border: 1px solid var(--gray-border);
      box-shadow: 0 8px 48px rgba(0,0,0,.2);
      overflow: hidden;
      margin: auto;
    }
    .sl-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--gray-border);
      background: var(--gray-subtle);
      flex-shrink: 0;
    }
    .sl-header-left { display: flex; align-items: center; gap: .75rem; }
    .sl-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
    .sl-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
    .sl-body { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; min-height: 0; }
    .sl-empty {
      text-align: center;
      padding: 2.5rem 1rem;
      color: var(--text-muted);
      font-size: 14px;
    }
    .sl-empty i { font-size: 36px; display: block; margin-bottom: .75rem; color: var(--gray-border); }
    .sl-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: .875rem 0;
      border-bottom: 1px solid var(--gray-border);
    }
    .sl-item:last-child { border-bottom: none; }
    .sl-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--gray-subtle);
      border: 1px solid var(--gray-border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-muted);
      flex-shrink: 0;
      overflow: hidden;
    }
    .sl-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
    .sl-item-info { flex: 1; min-width: 0; }
    .sl-item-name {
      font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: .15rem;
      display: inline-block;
      background: none; border: none; padding: 0;
      font-family: 'Lato', sans-serif; text-align: left; cursor: pointer;
    }
    .sl-item-name:hover { text-decoration: underline; }
    .sl-item-firm { font-size: 12.5px; color: var(--text-muted); margin-bottom: .3rem; }
    .sl-item-badges { display: flex; gap: 5px; flex-wrap: wrap; }
    .sl-item-actions { display: flex; gap: .5rem; flex-shrink: 0; }
    .sl-view-btn {
      height: 32px;
      padding: 0 14px;
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 12.5px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      cursor: pointer;
    }
    .sl-remove-btn {
      height: 32px;
      padding: 0 12px;
      background: none;
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 700;
      font-family: 'Lato', sans-serif;
      color: var(--text-muted);
      cursor: pointer;
      white-space: nowrap;
      transition: color .12s, border-color .12s, background .12s;
    }
    .sl-remove-btn:hover { color: #cc2200; border-color: #e9a0a0; background: #fce8e8; }
    .sl-footer {
      border-top: 1px solid var(--gray-border);
      padding: 1rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }
    .sl-clear-btn {
      font-size: 13px;
      color: var(--text-muted);
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Lato', sans-serif;
      text-decoration: underline;
    }
    .sl-clear-btn:hover { color: #cc2200; }

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.results-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* A little extra breathing room above each group heading. */
.results-col .section-label { margin-top: .5rem; }
.results-col .results-bar { margin-bottom: .25rem; }

.zip-error { color: var(--red); font-size: 12px; margin: -.4rem 0 .6rem; }
