/* Concord Credential Bar v5.2 — Fully responsive, SVG width/height removed */

.ccred-wrap {
    width: 100%;
    display: block;
    position: relative;
    z-index: 99999;
}

/* ── Ticker ──────────────────────────────────────────────────────────────── */
.ccred-ticker {
    width: 100%;
    height: 28px;
    background: #765196;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}
.ccred-ticker::before,
.ccred-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 48px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.ccred-ticker::before { left: 0;  background: linear-gradient(to right, #765196 30%, transparent); }
.ccred-ticker::after  { right: 0; background: linear-gradient(to left,  #765196 30%, transparent); }
.ccred-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ccred-scroll 44s linear infinite;
}
.ccred-track:hover { animation-play-state: paused; }
.ccred-ti {
    font-size: 11px;
    color: rgba(255,255,255,0.90);
    padding: 0 18px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
@keyframes ccred-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Bar ─────────────────────────────────────────────────────────────────── */
.ccred-bar {
    width: 100%;
    background: #fff;
    border-bottom: 2px solid #765196;
    box-shadow: 0 2px 8px rgba(118,81,150,0.09);
}
.ccred-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Mobile default */
    height: 44px;
    padding: 0 14px;
    gap: 8px;
}

/* ── IDP badge — CSS fully controls size now SVG has no width/height ─────── */
.ccred-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Hard cap so it NEVER overflows on any screen */
    max-width: calc(100% - 120px);
}
.ccred-idp {
    display: block;
    /* Mobile: 26px tall, width calculated by browser from viewBox 2.2:1 */
    height: 26px;
    width: auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ccred-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ccred-ghost { display: none; } /* hidden on mobile */
.ccred-solid {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #765196;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 6px rgba(118,81,150,0.28);
    transition: background 0.2s, transform 0.15s;
}
.ccred-solid:hover {
    background: #5c3d78;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Tablet 600px ────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
    .ccred-ticker { height: 28px; }
    .ccred-ti     { font-size: 11.5px; }
    .ccred-inner  { height: 48px; padding: 0 22px; gap: 12px; }
    .ccred-idp    { height: 32px; }
    .ccred-solid  { height: 32px; padding: 0 16px; font-size: 12px; }
    .ccred-ghost {
        display: inline-flex;
        align-items: center;
        height: 32px;
        padding: 0 16px;
        border-radius: 999px;
        border: 1.5px solid rgba(118,81,150,0.40);
        font-size: 12px;
        font-weight: 500;
        color: #765196 !important;
        text-decoration: none !important;
        background: transparent;
        white-space: nowrap;
        transition: all 0.2s;
    }
    .ccred-ghost:hover {
        background: rgba(118,81,150,0.07);
        border-color: #765196;
    }
}

/* ── Desktop 900px ───────────────────────────────────────────────────────── */
@media (min-width: 900px) {
    .ccred-ticker { height: 30px; }
    .ccred-ti     { font-size: 12px; padding: 0 22px; }
    .ccred-inner  { height: 54px; padding: 0 32px; gap: 0; }
    .ccred-idp    { height: 40px; }
    .ccred-solid  { height: 36px; padding: 0 22px; font-size: 13px; }
    .ccred-ghost  { height: 36px; padding: 0 20px; font-size: 13px; }
}

/* ── Large desktop 1200px ────────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .ccred-inner { padding: 0 40px; }
}
