/* ============================================================
   ARIA Community Partners – Front-end Styles  v3.1
   Primary colour: #1e3a5f
   ============================================================ */

/* ── Wrap ────────────────────────────────────────────────── */
.aria-partners-wrap {
    font-family: inherit;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Directory heading ───────────────────────────────────── */
.aria-directory-heading {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.25;
    letter-spacing: -.3px;
}

/* ── Filters bar ─────────────────────────────────────────── */
.aria-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: #1e3a5f;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(30,58,95,.28);
    box-sizing: border-box;
    width: 100%;
}

.aria-filters input[type="text"],
.aria-filters select {
    flex: 1 1 180px;
    min-width: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1e3a5f;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
    transition: box-shadow .2s;
    cursor: pointer;
    box-sizing: border-box;
    height: 42px;
}

.aria-filters input[type="text"]::placeholder {
    color: #9ab0c8;
}

.aria-filters input[type="text"]:focus,
.aria-filters select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}

.aria-filter-sep {
    color: rgba(255,255,255,.35);
    font-size: 20px;
    flex-shrink: 0;
    user-select: none;
}

/* ── Loading state ───────────────────────────────────────── */
#aria-partners-results.aria-loading {
    opacity: .4;
    pointer-events: none;
    transition: opacity .2s;
}

/* ── Table scroll wrapper ────────────────────────────────── */
.aria-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c5d5e8 #f0f4f9;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(30,58,95,.10);
    margin-bottom: 0;
}

.aria-table-scroll::-webkit-scrollbar { height: 5px; }
.aria-table-scroll::-webkit-scrollbar-track { background: #f0f4f9; }
.aria-table-scroll::-webkit-scrollbar-thumb { background: #c5d5e8; border-radius: 3px; }

/* ── Partners table ──────────────────────────────────────── */
.aria-partners-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

/* thead */
.aria-partners-table thead tr {
    background: #1e3a5f;
}

.aria-partners-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #fff;
    border-bottom: none;
    white-space: nowrap;
}

/* tbody rows */
.aria-partners-table td {
    padding: 16px 16px;
    border-bottom: 1px solid #edf1f7;
    vertical-align: top;
    color: #3a3a3a;
    line-height: 1.6;
}

.aria-partners-table tbody tr:last-child td {
    border-bottom: none;
}

.aria-partners-table tbody tr:nth-child(even) {
    background: #f8fafd;
}

.aria-partners-table tbody tr:hover {
    background: #eef4fc;
    transition: background .15s;
}

/* ── Column widths ───────────────────────────────────────── */
.aria-partner-name     { width: 18%; min-width: 150px; }
.aria-partner-pillars  { width: 16%; min-width: 140px; vertical-align: top; }
.aria-partner-location { width: 14%; min-width: 120px; }
.aria-partner-details  { width: 24%; min-width: 180px; }
.aria-partner-website  { width: 13%; min-width: 110px; }
.aria-partner-action   { width: 15%; min-width: 120px; text-align: center; vertical-align: top; }

.aria-partner-name strong {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

/* ── Quick details — truncated with expand ───────────────── */
.aria-details-text {
    font-style: normal;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

.aria-details-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.aria-read-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #1e3a5f;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aria-read-more:hover { color: #2e6da4; }

/* ── Pillar tag badges ───────────────────────────────────── */
.aria-pillar-tag {
    display: inline-block;
    padding: 3px 9px;
    margin: 2px 3px 2px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Colour palette — cycles through 6 distinct hues */
.aria-pillar-tag:nth-child(6n+1) { background: #e3f0ff; color: #1a4d8f; border-color: #b8d4f5; }
.aria-pillar-tag:nth-child(6n+2) { background: #e6f9f0; color: #1a6b3f; border-color: #a3e4c2; }
.aria-pillar-tag:nth-child(6n+3) { background: #fff4e3; color: #8a4f00; border-color: #f5d59a; }
.aria-pillar-tag:nth-child(6n+4) { background: #f3e8ff; color: #6b27a8; border-color: #d4aaee; }
.aria-pillar-tag:nth-child(6n+5) { background: #ffeaea; color: #a02020; border-color: #f5b8b8; }
.aria-pillar-tag:nth-child(6n+6) { background: #e8f8ff; color: #0e5c7a; border-color: #a3d9f0; }

.aria-no-tags { color: #bbb; font-size: 13px; }

/* ── Action button ───────────────────────────────────────── */
.aria-partner-action .aria-action-btn {
    display: block;
    margin-bottom: 6px;
}
.aria-partner-action .aria-action-btn:last-child { margin-bottom: 0; }

a.aria-action-btn,
span.aria-action-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #1e3a5f;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: .2px;
    border: 2px solid #1e3a5f;
    transition: background .18s, color .18s, transform .15s, box-shadow .18s;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

a.aria-action-btn:hover {
    background: #fff;
    color: #1e3a5f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,58,95,.2);
}

span.aria-action-btn { opacity: .65; cursor: default; }

/* ── Website link ────────────────────────────────────────── */
.aria-website-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.aria-website-link:hover { color: #2e6da4; text-decoration: underline; }
.aria-website-link svg   { flex-shrink: 0; }

/* ── Google Maps link ────────────────────────────────────── */
.aria-location-city {
    display: block;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 5px;
}

.aria-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
}

.aria-maps-link:hover { color: #0d47a1; text-decoration: underline; }
.aria-maps-link svg   { flex-shrink: 0; color: #1a73e8; }

/* ── Phone link ──────────────────────────────────────────── */
.aria-phone-link {
    display: inline-flex;
    
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    padding: 3px 0;
    margin-top: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.aria-phone-link:hover { color: #1e3a5f; }

.aria-phone-link .aria-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #1e3a5f;
    border-radius: 50%;
    flex-shrink: 0;
}

.aria-phone-link svg { flex-shrink: 0; color: #fff; }
.aria-phone-link strong { font-weight: 700; font-size: 12px; }

/* ── ARIA Vetted badge ───────────────────────────────────── */
.aria-vetted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    background: #1e7a4a;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.aria-vetted-badge svg { flex-shrink: 0; color: #fff; }

/* ── No results ──────────────────────────────────────────── */
.aria-no-results {
    padding: 36px 28px;
    text-align: center;
    color: #7a93b0;
    font-style: italic;
    border: 2px dashed #c5d5e8;
    border-radius: 10px;
    background: #f8fafd;
    font-size: 15px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 640px ) {
    .aria-directory-heading { font-size: 22px; }

    .aria-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .aria-filter-sep { display: none; }

    .aria-filters input[type="text"],
    .aria-filters select {
        flex: 1 1 100%;
        width: 100%;
    }

    .aria-table-scroll { border-radius: 8px; }
    .aria-partners-table { font-size: 13px; }
    .aria-partners-table th,
    .aria-partners-table td { padding: 10px 12px; }
}

/* ── Select custom arrow ─────────────────────────────────── */
.aria-filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f3b64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 13px;
    padding-right: 36px;
}
