/* =========================================================
   algo-development.css — /algo-development page
   Loaded AFTER service.css (page_assets), which already provides the
   sv- cards, sv-why, sv-form, sv-field, sv-hp, sv-terms and sv-checks.
   Everything new here is prefixed .ad-
   ========================================================= */

/* ---------- Strategy chips ---------- */
.ad-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: clamp(26px, 4vw, 40px);
}

.ad-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 18px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 650;
    font-size: .92rem;
    transition: transform .25s ease, border-color .25s ease, opacity .6s;
}

.ad-chip:hover {
    transform: translateY(-2px);
}

.ad-chip .ico {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--brand-b);
}

.ad-chip .ico .icon {
    font-size: .95rem;
}

@media (min-width: 560px) {
    .ad-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 860px) {
    .ad-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .ad-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Form extras (select + note + alerts) ---------- */
.sv-field select {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sv-field select:focus {
    outline: 0;
    border-color: var(--blue-65);
    box-shadow: 0 0 0 3px var(--blue-14);
}

.ad-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
}

.ad-alert {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: .88rem;
    line-height: 1.5;
    color: var(--text);
}

.ad-alert .icon {
    margin-right: 6px;
}

.ad-alert-ok {
    border: 1px solid var(--green-32);
    background: var(--green-12);
}

.ad-alert-err {
    border: 1px solid var(--brand-a-32);
    background: var(--brand-a-12);
}

.ad-alert-err p {
    margin: 0 0 6px;
    font-weight: 650;
}

.ad-alert-err ul {
    margin: 0;
    padding-left: 1.3em;
    list-style: disc;
}

@media (prefers-reduced-motion: reduce) {
    .ad-chip {
        transition: none !important;
    }
}