/* APC DIRECTORY — brandbook v3.3.0 · dark mode only */
/* Tokens are global vars (namespaced) so scoped panels and legacy slider rules share them. */
.apc-dir{
    --apc-ink:#1d262f; --apc-card:#243039; --apc-card-2:#2a3740; --apc-input:#161e24;
    --apc-text:#ffffff; --apc-soft:#C6E7E7; --apc-muted:#9dbfc2;
    --apc-accent:#269CA8; --apc-accent-2:#6DCACA; --apc-pale:#C6E7E7; --apc-accent-deep:#1e838d;
    --apc-ok:#22c07a; --apc-warn:#e8a33d; --apc-bad:#f0564f;
    --apc-t-accent:rgba(38,156,168,.14); --apc-t-ok:rgba(34,192,122,.14);
    --apc-t-warn:rgba(232,163,61,.14); --apc-t-bad:rgba(240,86,79,.13);
    --apc-line:rgba(198,231,231,.16); --apc-line-soft:rgba(198,231,231,.09);
    --apc-sh:0 8px 22px -16px rgba(0,0,0,.5);
    --apc-sh-strong:0 18px 45px -22px rgba(0,0,0,.6);
    --apc-ring:0 0 0 4px rgba(38,156,168,.20);
}
/* Wrapper: transparent by default — never repaints the host page. band="1" opts into the brandbook gradient. */
.apc-dir{
    color-scheme:dark;
    display:block; position:relative; margin:1rem 0;
    color:var(--apc-text); font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
.apc-dir.has-band{
    border-radius:0; padding:clamp(16px,3vw,32px);
    background:
        radial-gradient(900px 480px at 8% -6%, rgba(38,156,168,.22), transparent 60%),
        radial-gradient(800px 500px at 105% 4%, rgba(109,202,202,.14), transparent 55%),
        linear-gradient(180deg,#1d262f,#162027);
}
.apc-dir *,
.apc-dir *::before,
.apc-dir *::after{ box-sizing:border-box; }
.apc-dir h2,.apc-dir h3{ color:var(--apc-text); }
.apc-dir a{ color:var(--apc-accent-2); }
.apc-dir :focus-visible{ outline:2px solid var(--apc-accent); outline-offset:2px; border-radius:6px; }
.apc-dir option{ background:var(--apc-input); color:var(--apc-text); }
.apc-dir .apc-ico{ width:17px; height:17px; }

/* --- section heads / eyebrow --- */
.apc-dir .apc-section-head{ margin-bottom:18px; }
.apc-dir .apc-eyebrow{
    display:block; font-size:11px; font-weight:800; letter-spacing:.10em;
    text-transform:uppercase; color:var(--apc-accent); margin-bottom:6px;
}
.apc-dir .apc-section-title{
    font-size:clamp(18px,2.2vw,22px); font-weight:750; letter-spacing:-.01em;
    line-height:1.25; margin:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.apc-dir .apc-section-sub{ font-size:13.5px; color:var(--apc-muted); margin:6px 0 0; }
.apc-dir .apc-count-badge{
    display:inline-block; font-size:12px; font-weight:800; padding:2px 10px;
    border-radius:999px; background:var(--apc-t-accent); color:var(--apc-accent-2);
    border:1px solid rgba(109,202,202,.35); font-variant-numeric:tabular-nums;
}

/* --- stat strip --- */
.apc-dir .apc-stats{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:20px; margin-bottom:20px;
}
.apc-dir .apc-stat{
    position:relative; overflow:hidden; background:var(--apc-card);
    border:1px solid var(--apc-line); border-top:3px solid var(--apc-accent);
    border-radius:18px; padding:18px 20px; box-shadow:var(--apc-sh);
    transition:transform .16s ease, box-shadow .16s ease;
}
.apc-dir .apc-stat:hover{ transform:translateY(-2px); box-shadow:var(--apc-sh-strong); }
.apc-dir .apc-stat-icon{
    position:absolute; top:14px; right:14px; width:34px; height:34px;
    border-radius:10px; background:rgba(38,156,168,.16); color:var(--apc-accent-2);
    display:flex; align-items:center; justify-content:center;
}
.apc-dir .apc-stat-value{
    font-size:28px; font-weight:750; letter-spacing:-.02em;
    font-variant-numeric:tabular-nums; color:var(--apc-text); line-height:1.1;
}
.apc-dir .apc-stat-label{
    font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
    color:var(--apc-muted); margin-top:6px;
}

/* --- tabs --- */
.apc-dir .apc-tabs{
    display:inline-flex; gap:4px; background:var(--apc-card-2);
    border:1px solid var(--apc-line); border-radius:20px; padding:4px; margin-bottom:20px;
    flex-wrap:wrap;
}
.apc-dir .apc-tab{
    appearance:none; border:0; background:transparent; color:var(--apc-muted);
    font:inherit; font-size:13px; font-weight:700; padding:8px 18px;
    border-radius:20px; cursor:pointer; transition:background .16s ease, color .16s ease;
}
.apc-dir .apc-tab:hover{ color:var(--apc-text); background:rgba(38,156,168,.12); }
.apc-dir .apc-tab[aria-selected="true"]{
    background:var(--apc-accent); color:#fff;
    box-shadow:0 6px 16px -10px rgba(38,156,168,.9);
}

/* --- filters --- */
.apc-dir .apc-filters{
    display:flex; flex-wrap:wrap; gap:16px 18px; align-items:flex-end;
    background:var(--apc-card); border:1px solid var(--apc-line); border-radius:18px;
    padding:20px 22px; margin-bottom:16px; box-shadow:var(--apc-sh);
}
.apc-dir .apc-filter-group{ flex:1 1 170px; min-width:160px; }
.apc-dir .apc-filter-group--sm{ flex:0 1 200px; }
.apc-dir .apc-flabel{
    display:block; font-size:12.5px; font-weight:700; color:var(--apc-soft);
    margin-bottom:7px;
}
.apc-dir .apc-input{
    width:100%; font:inherit; font-size:14px; color:var(--apc-text);
    background:var(--apc-input); border:1px solid var(--apc-line); border-radius:12px;
    padding:10px 13px; transition:border-color .16s ease, box-shadow .16s ease;
    appearance:none;
}
.apc-dir .apc-input::placeholder{ color:rgba(157,191,194,.75); }
.apc-dir .apc-input:focus{ outline:none; border-color:var(--apc-accent); box-shadow:var(--apc-ring); }
.apc-dir .apc-select{
    padding-right:34px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236DCACA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat:no-repeat; background-position:right 10px center;
    cursor:pointer;
}

/* --- toolbar (count + clear) --- */
.apc-dir .apc-toolbar{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    flex-wrap:wrap; margin-bottom:18px;
}
.apc-dir .apc-count{ font-size:13px; color:var(--apc-muted); font-weight:600; }

/* --- buttons --- */
.apc-dir .apc-btn{
    display:inline-flex; align-items:center; justify-content:center; gap:7px;
    font:inherit; font-size:14px; font-weight:650; padding:10px 20px;
    border-radius:20px; border:1px solid var(--apc-line); background:var(--apc-card-2);
    color:var(--apc-text); cursor:pointer; text-decoration:none;
    transition:background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.apc-dir .apc-btn:hover{ border-color:var(--apc-accent); box-shadow:0 0 0 4px rgba(38,156,168,.18); }
.apc-dir .apc-btn:active{ transform:translateY(1px); }
.apc-dir .apc-btn:disabled{ opacity:.6; cursor:default; pointer-events:none; }
.apc-dir .apc-btn-primary{
    background:var(--apc-accent); border-color:var(--apc-accent); color:#fff;
    box-shadow:0 10px 24px -12px rgba(38,156,168,.8);
}
.apc-dir .apc-btn-primary:hover{
    background:var(--apc-accent-deep); border-color:var(--apc-accent-deep);
    box-shadow:0 0 0 4px rgba(38,156,168,.25);
}
.apc-dir .apc-btn-ghost{ background:transparent; border-color:transparent; color:var(--apc-muted); }
.apc-dir .apc-btn-ghost:hover{ background:rgba(38,156,168,.12); color:var(--apc-text); box-shadow:none; }
.apc-dir .apc-btn-sm{ font-size:12.5px; padding:7px 15px; }

/* --- grid + cards --- */
.apc-dir .apc-grid{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
}
.apc-dir .apc-card{
    display:flex; flex-direction:column; position:relative; overflow:hidden;
    background:var(--apc-card); border:1px solid var(--apc-line); border-radius:18px;
    padding:22px; box-shadow:var(--apc-sh);
    transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.apc-dir .apc-card::before{
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg,#269CA8,#6DCACA); opacity:0;
    transition:opacity .18s ease;
}
.apc-dir .apc-card:hover{
    transform:translateY(-2px); border-color:rgba(109,202,202,.45);
    box-shadow:var(--apc-sh-strong);
}
.apc-dir .apc-card:hover::before{ opacity:1; }
.apc-dir .apc-card-logo{
    width:80px; height:80px; border-radius:50%; overflow:hidden;
    margin:0 auto 14px; background:var(--apc-card-2);
    border:2px solid rgba(109,202,202,.5);
    display:flex; align-items:center; justify-content:center;
    transition:border-color .16s ease; flex-shrink:0;
}
.apc-dir .apc-card:hover .apc-card-logo{ border-color:var(--apc-accent-2); }
.apc-dir .apc-card-logo img{ width:100%; height:100%; object-fit:cover; }
.apc-dir .apc-card-badges{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.apc-dir .apc-badge{
    display:inline-block; font-size:11.5px; font-weight:750; line-height:1.5;
    padding:3px 12px; border-radius:999px;
}
.apc-dir .apc-badge-pale{ background:#C6E7E7; color:#1d262f; }
.apc-dir .apc-badge-accent{ background:#269CA8; color:#fff; }
.apc-dir .apc-badge-soft{ background:var(--apc-t-accent); color:var(--apc-accent-2); border:1px solid rgba(109,202,202,.35); }
.apc-dir .apc-card h3{
    font-size:16px; font-weight:700; line-height:1.35; margin:0 0 12px;
    overflow-wrap:anywhere;
}
.apc-dir .apc-card-meta{
    display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px;
    padding-top:12px; border-top:1px dashed rgba(109,202,202,.35);
}
.apc-dir .apc-chip{
    display:inline-block; font-size:12px; line-height:1.5; color:var(--apc-muted);
    background:var(--apc-card-2); border:1px solid var(--apc-line);
    border-radius:999px; padding:3px 10px; text-decoration:none;
    transition:border-color .16s ease, color .16s ease;
}
.apc-dir .apc-chip-link:hover{ border-color:var(--apc-accent); color:var(--apc-accent-2); }
.apc-dir .apc-card-partners{
    display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:12px;
}
.apc-dir .apc-partners-label{
    font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
    color:var(--apc-muted);
}
.apc-dir .apc-card-desc{
    font-size:13.5px; color:var(--apc-soft); margin-bottom:16px; flex-grow:1;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.apc-dir .apc-card-link{
    font-size:13.5px; font-weight:650; color:var(--apc-accent-2);
    text-decoration:none; margin-top:auto; display:inline-flex; align-items:center; gap:6px;
    transition:color .16s ease, gap .16s ease;
}
.apc-dir .apc-card-link:hover{ color:var(--apc-pale); gap:9px; }

/* --- trust meter --- */
.apc-dir .apc-meter-wrap{ margin-bottom:14px; }
.apc-dir .apc-meter{
    height:9px; border-radius:999px; background:var(--apc-line-soft); overflow:hidden;
}
.apc-dir .apc-meter-fill{
    height:100%; border-radius:999px;
    background:linear-gradient(90deg,#269CA8,#6DCACA);
    transition:width .4s ease;
}
.apc-dir .apc-meter-legend{
    display:flex; justify-content:space-between; font-size:12px;
    color:var(--apc-muted); margin-top:6px;
}

/* --- notices / support block --- */
.apc-dir .apc-notice{
    display:flex; gap:12px; align-items:flex-start; margin:0 0 16px;
    background:var(--apc-card); border:1px solid var(--apc-line); border-radius:12px;
    padding:14px 16px; font-size:13.5px; color:var(--apc-soft);
}
.apc-dir .apc-notice-dot{
    flex:0 0 20px; width:20px; height:20px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:800; color:#fff; background:var(--apc-accent);
}
.apc-dir .apc-notice.is-ok{ border-color:rgba(34,192,122,.35); }
.apc-dir .apc-notice.is-ok .apc-notice-dot{ background:var(--apc-ok); }
.apc-dir .apc-notice.is-bad{ border-color:rgba(240,86,79,.35); }
.apc-dir .apc-notice.is-bad .apc-notice-dot{ background:var(--apc-bad); }
.apc-dir .apc-notice.is-warn{ border-color:rgba(232,163,61,.35); }
.apc-dir .apc-notice.is-warn .apc-notice-dot{ background:var(--apc-warn); }
.apc-dir .apc-notice.is-info .apc-notice-dot{ background:var(--apc-accent); }
.apc-dir .apc-support{
    display:flex; flex-wrap:wrap; align-items:center; gap:10px;
    background:var(--apc-ink); border:1px solid var(--apc-line); border-radius:12px;
    padding:14px 16px; font-size:13px; color:var(--apc-pale); margin-top:14px;
}
.apc-dir .apc-message-info{
    display:inline-block; text-align:center; font-size:13px; font-weight:600;
    color:var(--apc-accent-2); background:var(--apc-t-accent);
    border:1px solid rgba(109,202,202,.35); border-radius:999px;
    padding:8px 18px; margin:0 auto;
}
.apc-dir .apc-items-message{ text-align:center; margin:4px 0 18px; }
.apc-dir .apc-search-row{ text-align:center; margin:4px 0 18px; }
.apc-dir .apc-no-results{
    grid-column:1 / -1; text-align:center; color:var(--apc-soft); font-size:14px;
    background:var(--apc-card); border:1px dashed rgba(109,202,202,.45);
    border-radius:12px; padding:34px 20px; margin:0;
}

/* --- pagination --- */
.apc-dir .apc-pagination{ margin-top:24px; text-align:center; }
.apc-dir .apc-pagination-buttons{
    display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
}
.apc-dir .apc-page-btn{
    font:inherit; font-size:13px; font-weight:650; padding:7px 15px;
    border-radius:20px; border:1px solid var(--apc-line); background:var(--apc-card-2);
    color:var(--apc-soft); cursor:pointer;
    transition:background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.apc-dir .apc-page-btn:hover{
    background:rgba(38,156,168,.16); color:var(--apc-text);
    border-color:var(--apc-accent); box-shadow:0 0 0 4px rgba(38,156,168,.18);
}
.apc-dir .apc-page-btn.active{ background:var(--apc-accent); border-color:var(--apc-accent); color:#fff; }
.apc-dir .apc-pagination-dots{ color:var(--apc-accent-2); padding:0 4px; align-self:center; }

/* --- verify widget --- */
.apc-dir .apc-verify-card{
    background:var(--apc-card); border:1px solid var(--apc-line); border-radius:18px;
    padding:24px; box-shadow:var(--apc-sh);
}
.apc-dir .apc-verify-form{
    display:flex; flex-wrap:wrap; gap:16px 18px; align-items:flex-end; margin-bottom:18px;
}
.apc-dir .apc-verify-btn{ flex:0 0 auto; }

/* --- logo slider --- */
.apc-dir .apc-slider-container{ position:relative; margin:6px 0; padding:0 50px; }
.apc-dir .apc-slider-wrapper{ overflow:hidden; border-radius:18px; }
.apc-dir .apc-slider-track{
    display:flex; gap:24px; transition:transform .5s cubic-bezier(.2,.9,.4,1.1);
    will-change:transform;
}
.apc-dir .apc-slide{
    flex:0 0 calc((100% - (3 * 24px)) / 4); text-align:center;
    display:flex; flex-direction:column; min-width:0;
}
.apc-dir .apc-slide-link{
    display:flex; flex-direction:column; text-decoration:none; height:100%;
    background:var(--apc-card); border:1px solid var(--apc-line); border-radius:18px;
    padding:18px; box-shadow:var(--apc-sh);
    transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.apc-dir .apc-slide-link:hover{
    transform:translateY(-2px); border-color:rgba(109,202,202,.5);
    box-shadow:var(--apc-sh-strong);
}
.apc-dir .apc-slide-flag{ font-size:2rem; line-height:1; margin-bottom:10px; }
.apc-dir .apc-slide-img{
    width:120px; height:120px; border-radius:50%; overflow:hidden;
    margin:0 auto 10px; background:var(--apc-card-2);
    border:2px solid rgba(109,202,202,.5);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.apc-dir .apc-slide-img img{ width:100%; height:100%; object-fit:cover; }
.apc-dir .apc-slide-initial{ font-size:2.6rem; font-weight:800; color:var(--apc-accent-2); line-height:1; }
.apc-dir .apc-slide-name{ font-size:13.5px; font-weight:650; color:var(--apc-text); margin-top:6px; overflow-wrap:anywhere; }
.apc-dir .apc-slide-country{ font-size:12px; color:var(--apc-muted); margin-top:4px; }
.apc-dir .apc-slider-prev,.apc-dir .apc-slider-next{
    position:absolute; top:50%; transform:translateY(-50%);
    width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
    background:var(--apc-accent); color:#fff; font-size:1.2rem; cursor:pointer;
    display:flex; align-items:center; justify-content:center; z-index:2;
    box-shadow:0 10px 24px -12px rgba(38,156,168,.8);
    transition:background .16s ease, transform .16s ease;
}
.apc-dir .apc-slider-prev:hover,.apc-dir .apc-slider-next:hover{ background:var(--apc-accent-deep); transform:translateY(-50%) scale(1.05); }
.apc-dir .apc-slider-prev:active,.apc-dir .apc-slider-next:active{ transform:translateY(-50%) scale(.95); }
.apc-dir .apc-slider-prev{ left:0; }
.apc-dir .apc-slider-next{ right:0; }

/* --- responsive --- */
@media (max-width:1024px){
    .apc-dir .apc-filter-group{ min-width:140px; }
    .apc-dir .apc-slide{ flex:0 0 calc((100% - (2 * 24px)) / 3); }
}
@media (max-width:640px){
    .apc-dir .apc-grid{ grid-template-columns:1fr; }
    .apc-dir .apc-filter-group,.apc-dir .apc-filter-group--sm{ min-width:100%; flex:1 1 100%; }
    .apc-dir .apc-toolbar{ flex-direction:column; align-items:stretch; }
    .apc-dir .apc-toolbar .apc-btn{ width:100%; }
    .apc-dir .apc-stats{ grid-template-columns:repeat(2,1fr); }
    .apc-dir .apc-slider-container{ padding:0 30px; }
    .apc-dir .apc-slide{ flex:0 0 calc((100% - 24px) / 2); }
    .apc-dir .apc-slide-img{ width:90px; height:90px; }
}
@media (max-width:400px){
    .apc-dir .apc-stats{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
    .apc-dir *,.apc-dir *::before,.apc-dir *::after{
        transition-duration:.01ms !important; animation-duration:.01ms !important;
    }
    .apc-dir .apc-slider-track{ transition-duration:.01ms !important; }
}
