/* Moved out of style.css; enqueued right after it by artinfo_enqueue_section_styles()
   in inc/core/enqueue.php, so the cascade order is unchanged. */

/* ============================================================
   OPEN CALL SUBMISSION V2 (templates/open-call-v2.php)
   Scoped with the `ailoc-` prefix; colour tokens come from
   ail-ui.css (--ail-*) with literal fallbacks.
   ============================================================ */

.ailoc {
    --ailoc-black: var(--ail-black, #141414);
    --ailoc-yellow: var(--ail-yellow, #FFBB00);
    --ailoc-yellow-dark: var(--ail-yellow-dark, #DE9E00);
    --ailoc-bg: var(--ail-bg, #F6F6F3);
    --ailoc-white: var(--ail-white, #FFFFFF);
    --ailoc-ink: var(--ail-ink, #161616);
    --ailoc-muted: var(--ail-muted, #6B6B6B);
    --ailoc-muted-2: var(--ail-muted-2, #9A9A9A);
    --ailoc-line: var(--ail-line, #E7E5DF);
    --ailoc-calm-bg: var(--ail-calm-bg, #F1F0EC);
    --ailoc-shadow: var(--ail-shadow, 0 12px 28px -16px rgba(20, 20, 20, .18));
    --ailoc-shadow-hover: var(--ail-shadow-hover, 0 20px 40px -18px rgba(20, 20, 20, .28));
    --ailoc-font: var(--ail-font, 'Inter', 'Poppins', sans-serif);
    --ailoc-display: var(--ail-display, 'Plus Jakarta Sans', 'Poppins', sans-serif);

    background: var(--ailoc-white);
    color: var(--ailoc-ink);
    font-family: var(--ailoc-font);
    line-height: 1.55;
}

.ailoc h1,
.ailoc h2,
.ailoc h3 {
    font-family: var(--ailoc-display);
    margin: 0;
}

.ailoc p {
    margin: 0;
}

.ailoc a {
    text-decoration: none;
    color: inherit;
}

.ailoc .ailoc-wrap {
    max-width: 1180px;
}

@media (prefers-reduced-motion: reduce) {
    .ailoc * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- HERO ---------- */
.ailoc-hero {
    background: var(--ailoc-black);
    color: var(--ailoc-white);
    padding: 64px 0 56px;
}

.ailoc-hero-eyebrow {
    display: inline-block;
    background: var(--ailoc-yellow);
    color: var(--ailoc-black);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 6px;
    margin-bottom: 22px;
}

.ailoc-hero h1 {
    font-size: clamp(32px, 4.6vw, 50px);
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 18px;
    max-width: 680px;
}

.ailoc-hero-sub {
    font-size: 15.5px;
    color: rgba(255, 255, 255, .68);
    max-width: 560px;
    margin-bottom: 30px;
}

.ailoc-hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

.ailoc-hstat-num {
    font-family: var(--ailoc-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--ailoc-yellow);
}

.ailoc-hstat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    margin-top: 2px;
}

/* ---------- OPTION CARDS ---------- */
.ailoc-options {
    padding: 64px 0 20px;
}

.ailoc-opt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 991px) {
    .ailoc-opt-grid {
        grid-template-columns: 1fr;
    }
}

.ailoc-opt-card {
    background: var(--ailoc-white);
    border: 1.5px solid var(--ailoc-line);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: var(--ailoc-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ailoc-opt-highlight {
    border-color: var(--ailoc-black);
    border-width: 2px;
    box-shadow: var(--ailoc-shadow-hover);
}

.ailoc-opt-flag {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--ailoc-black);
    color: var(--ailoc-white);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0 0 0 10px;
}

.ailoc-opt-flag.ailoc-flag-gold {
    background: var(--ailoc-yellow);
    color: var(--ailoc-black);
}

.ailoc-opt-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ailoc-calm-bg);
    border: 1px solid var(--ailoc-line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.ailoc-opt-icon svg {
    width: 21px;
    height: 21px;
    color: var(--ailoc-ink);
}

.ailoc-opt-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ailoc-opt-card p {
    font-size: 14px;
    color: var(--ailoc-muted);
    margin-bottom: 18px;
}

.ailoc-opt-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 0 22px;
    flex: 1;
}

.ailoc-opt-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: var(--ailoc-ink);
}

.ailoc-opt-list svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--ailoc-yellow-dark);
}

.ailoc .ailoc-opt-cta {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
}

.ailoc .ailoc-cta-dark {
    background: var(--ailoc-black);
    color: var(--ailoc-white);
    border: none;
}

.ailoc .ailoc-cta-dark:hover {
    background: var(--ailoc-yellow);
    color: var(--ailoc-black);
}

.ailoc .ailoc-cta-gold {
    background: var(--ailoc-yellow);
    color: var(--ailoc-black);
    border: none;
}

.ailoc .ailoc-cta-gold:hover {
    background: var(--ailoc-yellow-dark);
}

.ailoc .ailoc-cta-outline {
    background: var(--ailoc-white);
    color: var(--ailoc-ink);
    border: 1.5px solid var(--ailoc-line);
}

.ailoc .ailoc-cta-outline:hover {
    border-color: var(--ailoc-black);
}

/* ---------- SHARED CENTRED HEAD ---------- */
.ailoc-head-center {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
}

.ailoc-head-center h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin-bottom: 10px;
}

.ailoc-head-center p {
    font-size: 14.5px;
    color: var(--ailoc-muted);
}

/* ---------- PREPARE ---------- */
.ailoc-prepare {
    padding: 80px 0 70px;
}

.ailoc-prep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .ailoc-prep-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .ailoc-prep-grid {
        grid-template-columns: 1fr;
    }
}

.ailoc-prep-card {
    background: var(--ailoc-bg);
    border: 1px solid var(--ailoc-line);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
}

.ailoc-prep-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--ailoc-white);
    border: 1px solid var(--ailoc-line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.ailoc-prep-icon svg {
    width: 19px;
    height: 19px;
    color: var(--ailoc-ink);
}

.ailoc-prep-card h3 {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 6px;
}

.ailoc-prep-card p {
    font-size: 12.5px;
    color: var(--ailoc-muted);
    line-height: 1.5;
}

/* ---------- CRITERIA ---------- */
.ailoc-criteria {
    background: var(--ailoc-bg);
    padding: 70px 0;
    border-top: 1px solid var(--ailoc-line);
    border-bottom: 1px solid var(--ailoc-line);
}

.ailoc-criteria-list {
    max-width: 760px;
    margin: 0 auto;
}

.ailoc-crit-item {
    background: var(--ailoc-white);
    border: 1px solid var(--ailoc-line);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.ailoc-crit-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
}

.ailoc-crit-item summary::-webkit-details-marker {
    display: none;
}

.ailoc-crit-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--ailoc-calm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ailoc-crit-icon svg {
    width: 15px;
    height: 15px;
    color: var(--ailoc-ink);
}

.ailoc-crit-chevron {
    margin-left: auto;
    color: var(--ailoc-muted-2);
    transition: transform .2s;
    flex-shrink: 0;
}

.ailoc-crit-item[open] .ailoc-crit-chevron {
    transform: rotate(180deg);
}

.ailoc-crit-body {
    padding: 0 20px 18px 64px;
    font-size: 13.5px;
    color: var(--ailoc-muted);
    line-height: 1.6;
}

.ailoc-criteria-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FCF3DC;
    border: 1px solid #F0DFA8;
    color: #7A5B10;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 16px;
}

.ailoc-criteria-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- PARTNERSHIP ---------- */
.ailoc-partner {
    background: #1e1e1e;
    color: var(--ailoc-white);
    padding: 56px 0;
    margin-top: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ailoc-partner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ailoc-partner h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ailoc-partner p {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    max-width: 480px;
}

.ailoc-partner p strong {
    color: var(--ailoc-white);
}

.ailoc-partner-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ailoc-logo-kit {
    background: var(--ailoc-white);
    color: var(--ailoc-ink);
    border-radius: 12px;
    padding: 14px 22px;
    text-align: center;
    min-width: 150px;
}

.ailoc-logo-kit img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ailoc-lk-name {
    font-family: var(--ailoc-display);
    font-weight: 800;
    font-size: 16px;
}

.ailoc-logo-kit a {
    display: block;
    font-size: 11.5px;
    color: var(--ailoc-yellow-dark);
    font-weight: 700;
    margin-top: 6px;
}

.ailoc .ailoc-partner-cta {
    background: var(--ailoc-yellow);
    color: var(--ailoc-black);
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
    display: inline-block;
}

.ailoc .ailoc-partner-cta:hover {
    background: var(--ailoc-yellow-dark);
}
