.ajd-directory {
    --ajd-bg: #0F172A;
    --ajd-panel: rgba(15, 23, 42, 0.86);
    --ajd-card: #111C33;
    --ajd-card-2: #17233D;
    --ajd-line: rgba(148, 163, 184, 0.22);
    --ajd-text: #F8FAFC;
    --ajd-muted: #A8B3C7;
    --ajd-soft: #CBD5E1;
    --ajd-gold: #F59E0B;
    --ajd-purple: #8B5CF6;
    --ajd-cyan: #22D3EE;
    background:
        radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.26), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(34, 211, 238, 0.18), transparent 28%),
        linear-gradient(135deg, #0F172A 0%, #111827 55%, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    color: var(--ajd-text);
    overflow: hidden;
    padding: clamp(24px, 4vw, 48px);
    position: relative;
}

.ajd-directory *,
.ajd-detail-shell * {
    box-sizing: border-box;
}

.ajd-directory::before {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.42;
    pointer-events: none;
    position: absolute;
}

.ajd-directory > * {
    position: relative;
    z-index: 1;
}

.ajd-directory-hero {
    align-items: flex-end;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 32px;
}

.ajd-kicker {
    align-items: center;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    color: #FDE68A;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 16px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.ajd-directory-hero h2 {
    color: var(--ajd-text);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.96;
    margin: 0;
    max-width: 780px;
}

.ajd-directory-hero p {
    color: var(--ajd-muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
    margin: 18px 0 0;
    max-width: 700px;
}

.ajd-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ajd-card {
    background: linear-gradient(180deg, var(--ajd-card) 0%, rgba(17, 28, 51, 0.88) 100%);
    border: 1px solid var(--ajd-line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
    min-height: 100%;
    overflow: hidden;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ajd-card:hover,
.ajd-card:focus-within {
    border-color: rgba(245, 158, 11, 0.58);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.44);
    transform: translateY(-4px);
}

.ajd-card-link {
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}

.ajd-card-link:focus-visible,
.ajd-back-link:focus-visible,
.ajd-page-link .page-numbers:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.72);
    outline-offset: 4px;
}

.ajd-card-media {
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.42), transparent),
        linear-gradient(45deg, rgba(245, 158, 11, 0.18), rgba(34, 211, 238, 0.2)),
        #1E293B;
    border-bottom: 1px solid var(--ajd-line);
    overflow: hidden;
    position: relative;
}

.ajd-card-media > img {
    display: block;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transform: scale(1.01);
    transition: opacity 220ms ease, transform 220ms ease;
    width: 100%;
}

.ajd-card:hover .ajd-card-media > img {
    opacity: 0.95;
    transform: scale(1.05);
}

.ajd-card-pattern,
.ajd-detail-pattern {
    background:
        radial-gradient(circle at 30% 22%, rgba(245, 158, 11, 0.55), transparent 18%),
        radial-gradient(circle at 70% 66%, rgba(139, 92, 246, 0.52), transparent 22%),
        linear-gradient(135deg, #1E293B, #020617);
    display: block;
    height: 100%;
    width: 100%;
}

.ajd-card-logo,
.ajd-detail-logo {
    align-items: center;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.28);
    display: inline-flex;
    justify-content: center;
    overflow: hidden;
}

.ajd-card-logo {
    bottom: 14px;
    height: 54px;
    left: 14px;
    position: absolute;
    width: 54px;
    z-index: 2;
}

.ajd-card-logo img,
.ajd-detail-logo img {
    display: block;
    height: 70%;
    object-fit: contain;
    width: 70%;
}

.ajd-card-logo b,
.ajd-detail-logo b {
    color: #0F172A;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.ajd-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.ajd-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ajd-card-tags span {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: var(--ajd-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 10px;
}

.ajd-card-eligibility {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.26);
    border-radius: 999px;
    bottom: 26px;
    color: #BBF7D0;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    left: 82px;
    line-height: 1;
    max-width: calc(100% - 98px);
    overflow: hidden;
    padding: 8px 11px;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 2;
}

.ajd-card h3 {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0;
}

.ajd-card p {
    color: var(--ajd-muted);
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ajd-card-footer {
    align-items: center;
    border-top: 1px solid var(--ajd-line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.ajd-card-footer span {
    color: #FDE68A;
    font-size: 13px;
    font-weight: 800;
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ajd-card-footer strong {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 900;
}

.ajd-empty {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--ajd-line);
    border-radius: 18px;
    color: var(--ajd-muted);
    margin: 0;
    padding: 20px;
}

.ajd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 34px;
}

.ajd-page-link .page-numbers {
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--ajd-line);
    border-radius: 14px;
    color: var(--ajd-soft);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: 10px 14px;
    text-decoration: none;
}

.ajd-page-link .page-numbers.current,
.ajd-page-link .page-numbers:hover {
    background: var(--ajd-gold);
    border-color: var(--ajd-gold);
    color: #111827;
}

.ajd-detail-shell {
    --ajd-bg: #0F172A;
    --ajd-surface: #FFFFFF;
    --ajd-ink: #0F172A;
    --ajd-body: #475569;
    --ajd-border: #E2E8F0;
    --ajd-gold: #F59E0B;
    --ajd-purple: #8B5CF6;
    background:
        linear-gradient(180deg, #0F172A 0, #0F172A 360px, #F8FAFC 360px, #F8FAFC 100%);
    color: var(--ajd-ink);
    padding: 42px 20px 72px;
}

.ajd-detail-wrap {
    margin: 0 auto;
    max-width: 1180px;
}

.ajd-back-link {
    align-items: center;
    color: #CBD5E1;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    text-decoration: none;
}

.ajd-back-link:hover {
    color: #FFFFFF;
}

.ajd-detail-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(139, 92, 246, 0.22), transparent 30%),
        linear-gradient(135deg, #111827 0%, #172033 48%, #0B1120 100%),
        #111827;
    background-color: #111827;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 34px;
    box-shadow: 0 30px 100px rgba(2, 6, 23, 0.38);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 260px;
    overflow: hidden;
    padding: clamp(22px, 3vw, 34px);
}

.ajd-detail-copy {
    align-self: center;
}

.ajd-detail-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
}

.ajd-detail-copy h1 {
    color: #FFFFFF;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 950;
    letter-spacing: -0.075em;
    line-height: 0.92;
    margin: 0;
}

.ajd-detail-copy > p {
    color: #CBD5E1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
    margin: 22px 0 0;
    max-width: 720px;
}

.ajd-detail-focus {
    color: #CBD5E1;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 18px;
}

.ajd-detail-art {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(139, 92, 246, 0.34)),
        #172033;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.ajd-detail-art > img {
    display: block;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    width: 100%;
}

.ajd-detail-logo {
    bottom: 24px;
    height: 74px;
    left: 24px;
    position: absolute;
    width: 74px;
}

.ajd-detail-logo-frame .ajd-detail-pattern {
    inset: 0;
    opacity: 0.9;
    position: absolute;
}

.ajd-detail-logo-frame .ajd-detail-logo {
    border-radius: 24px;
    bottom: auto;
    height: 96px;
    left: auto;
    position: relative;
    width: 96px;
    z-index: 1;
}

.ajd-detail-grid {
    align-items: start;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 340px;
    margin-top: 30px;
}

.ajd-detail-main,
.ajd-detail-side {
    display: grid;
    gap: 24px;
}

.ajd-panel {
    background: #FFFFFF;
    border: 1px solid var(--ajd-border);
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
    padding: clamp(22px, 3vw, 34px);
}

.ajd-panel h2 {
    color: var(--ajd-ink);
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin: 0 0 18px;
}

.ajd-rich-text {
    color: var(--ajd-body);
    font-size: 17px;
    line-height: 1.78;
}

.ajd-rich-text > *:first-child {
    margin-top: 0;
}

.ajd-rich-text > *:last-child {
    margin-bottom: 0;
}

.ajd-rich-text h2,
.ajd-rich-text h3 {
    color: var(--ajd-ink);
    letter-spacing: -0.03em;
}

.ajd-feature-list,
.ajd-note-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ajd-feature-list li,
.ajd-note-list li {
    color: var(--ajd-body);
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
}

.ajd-feature-list li::before,
.ajd-note-list li::before {
    background: linear-gradient(135deg, var(--ajd-gold), var(--ajd-purple));
    border-radius: 999px;
    content: "";
    height: 10px;
    left: 4px;
    position: absolute;
    top: 0.55em;
    width: 10px;
}

.ajd-step-list {
    counter-reset: ajd-steps;
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ajd-step-list li {
    align-items: flex-start;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    display: grid;
    gap: 14px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 18px;
}

.ajd-step-list span {
    align-items: center;
    background: #0F172A;
    border-radius: 14px;
    color: #FDE68A;
    display: inline-flex;
    font-size: 14px;
    font-weight: 950;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ajd-step-list p {
    color: var(--ajd-body);
    line-height: 1.65;
    margin: 6px 0 0;
}

.ajd-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.ajd-facts dt {
    color: #64748B;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-top: 12px;
    text-transform: uppercase;
}

.ajd-facts dt:first-child {
    margin-top: 0;
}

.ajd-facts dd {
    color: var(--ajd-ink);
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.ajd-website-button {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
    color: #0F172A !important;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 10px;
    justify-content: center;
    margin: 0;
    min-width: 178px;
    padding: 13px 18px;
    text-decoration: none !important;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
    width: auto;
}

.ajd-website-button:hover,
.ajd-website-button:focus-visible {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #0F172A !important;
    transform: translateY(-1px);
}

.ajd-website-button strong {
    font-size: 17px;
    line-height: 1;
}

.ajd-website-display {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    color: var(--ajd-ink);
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
    padding: 14px 16px;
    text-decoration: none !important;
}

.ajd-website-display span {
    color: #64748B;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ajd-website-display strong {
    color: #0F172A;
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ajd-social-links {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ajd-social-links a {
    align-items: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    color: var(--ajd-ink);
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    text-decoration: none !important;
    transition: border-color 180ms ease, transform 180ms ease;
}

.ajd-social-links a:hover,
.ajd-social-links a:focus-visible {
    border-color: rgba(245, 158, 11, 0.65);
    transform: translateY(-1px);
}

.ajd-social-links span {
    color: #64748B;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ajd-social-links strong {
    color: #0F172A;
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ajd-safety-panel {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.09), transparent),
        #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
    .ajd-card,
    .ajd-card-media > img {
        transition: none;
    }

    .ajd-card:hover,
    .ajd-card:focus-within,
    .ajd-card:hover .ajd-card-media > img {
        transform: none;
    }
}

@media (max-width: 1180px) {
    .ajd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ajd-detail-hero {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

@media (max-width: 920px) {
    .ajd-directory-hero,
    .ajd-detail-hero,
    .ajd-detail-grid {
        grid-template-columns: 1fr;
    }

    .ajd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ajd-detail-art {
        min-height: 200px;
    }
}

@media (max-width: 580px) {
    .ajd-directory {
        border-radius: 20px;
        padding: 20px;
    }

    .ajd-grid {
        grid-template-columns: 1fr;
    }

    .ajd-card-body {
        padding: 18px;
    }

    .ajd-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ajd-card-footer span {
        max-width: 100%;
    }

    .ajd-detail-shell {
        padding: 28px 14px 54px;
    }

    .ajd-detail-hero {
        border-radius: 24px;
        padding: 22px;
    }

    .ajd-detail-art {
        min-height: 180px;
    }

    .ajd-panel {
        border-radius: 22px;
    }
}
