/* =============================================================
   DAC Training — Weekly Meetup Leader (/meetup-leader/)
   Loaded by the `dac-ml-` token (functions.php registry), so it also
   reaches /leadership/ for the promo banner there. Everything in this
   file is prefixed dac-ml- so it cannot restyle another page (H019).
   Hero, steps, group cards and support banner come from resources.css
   and subpages.css unchanged.
   ============================================================= */

/* ── Link cards (top of page) ─────────────────────────────── */

/* Hero gets extra bottom room so the link cards can float up over it. */
.dac-resources-hero.dac-ml-hero {
    padding-bottom: 152px;
}

.dac-ml-links-section {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 0 72px;
}

.dac-ml-links {
    margin-top: -88px;
}

.dac-ml-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.dac-ml-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    background: var(--dac-white);
    border: 1.5px solid var(--dac-border);
    border-radius: var(--dac-radius-md);
    padding: 24px 24px 22px;
    box-shadow: 0 2px 6px rgba(10, 8, 59, 0.06), 0 18px 44px rgba(0, 72, 184, 0.14);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dac-ml-link:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 72, 184, 0.35);
    box-shadow: 0 4px 10px rgba(10, 8, 59, 0.08), 0 26px 56px rgba(0, 72, 184, 0.20);
}

.dac-ml-link:active {
    transform: translateY(0);
}

.dac-ml-link:focus-visible {
    outline: 2px solid var(--dac-blue);
    outline-offset: 3px;
}

/* Icon chip, same recipe as the /resources/ Quick Links chips. */
.dac-ml-link::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 4px;
    background-color: rgba(0, 72, 184, 0.10);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.dac-ml-link__domain {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dac-blue);
    margin: 0;
}

.dac-ml-link__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--dac-dark);
    margin: 0;
}

.dac-ml-link__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--dac-muted);
    margin: 0;
    flex: 1;
}

.dac-ml-link__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    padding: 0 20px;
    margin-top: 8px;
    border-radius: var(--dac-radius-pill);
    background: var(--dac-blue);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.dac-ml-link:hover .dac-ml-link__cta {
    background: var(--dac-blue-hover);
}

/* Icons + per-card accent colors */
.dac-ml-link--users::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230048B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.dac-ml-link--pin::before {
    background-color: var(--dac-green-pale);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2322A85D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.dac-ml-link--book::before {
    background-color: var(--dac-warning-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
}

/* ── Section tints (Run a Great Meetup, Leader Documents) ── */

.dac-ml-run.dac-content-groups--alt {
    background: linear-gradient(160deg, var(--dac-blue-light) 0%, var(--dac-bg) 65%);
}

.dac-ml-run .dac-group-card {
    box-shadow: 0 1px 3px rgba(10, 8, 59, 0.05), 0 12px 32px rgba(0, 72, 184, 0.10);
}

.dac-ml-docs.dac-content-groups {
    background: var(--dac-white);
    border-top: 1px solid var(--dac-border);
    padding-top: 64px;
}

.dac-ml-docs .dac-section-header {
    margin-bottom: 24px;
}

/* ── Our 6 Beliefs: the brand card in the playbook grid ──── */

.dac-ml-beliefs-card.dac-group-card {
    background: linear-gradient(150deg, var(--dac-blue) 0%, #003A94 55%, var(--dac-navy) 100%);
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(10, 8, 59, 0.12), 0 18px 44px rgba(0, 72, 184, 0.28);
}

.dac-ml-beliefs-card .dac-group-card__title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.dac-ml-beliefs-card .dac-ml-steps strong {
    color: #fff;
}

.dac-ml-beliefs-card .dac-ml-steps span {
    color: rgba(255, 255, 255, 0.78);
}

.dac-ml-beliefs-card .dac-ml-steps li::before {
    background: #fff;
    color: var(--dac-blue);
}

.dac-ml-beliefs-card .dac-ml-quote {
    background: rgba(255, 255, 255, 0.10);
    border-left-color: var(--dac-green-light);
    color: #fff;
}

/* ── Run a Great Meetup cards (body copy inside .dac-group-card) ── */

.dac-ml-card-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--dac-text);
}

.dac-ml-card-body p {
    margin: 0 0 12px;
}

.dac-ml-card-body p:last-child {
    margin-bottom: 0;
}

.dac-ml-steps {
    list-style: none;
    counter-reset: dac-ml;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dac-ml-steps li {
    counter-increment: dac-ml;
    position: relative;
    padding-left: 38px;
    min-height: 26px;
}

.dac-ml-steps li::before {
    content: counter(dac-ml);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dac-blue-light);
    color: var(--dac-blue);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.dac-ml-steps strong,
.dac-ml-roles strong {
    color: var(--dac-dark);
    font-weight: 700;
}

.dac-ml-steps span {
    display: block;
    color: var(--dac-muted);
    font-size: 0.875rem;
}

/* Meetup Roles: the featured card in the grid. Blue top accent + icon on the
   title, each role a tinted tile with a number chip. */
.dac-ml-roles-card {
    border-top: 4px solid var(--dac-blue);
}

.dac-ml-roles-card .dac-group-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dac-ml-roles-card .dac-group-card__title::before {
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--dac-blue-light);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230048B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Full-width cards inside the 2-column .dac-groups-grid (Roles, Where to Meet). */
.dac-groups-grid > .dac-ml-card--full {
    grid-column: 1 / -1;
}

.dac-ml-roles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* One role per row, each in its own accent (same six accents as the
   /resources/ Quick Link icons). Tint + left edge carry the color; the
   role name stays dark so it reads on every tint. */
.dac-ml-roles li {
    --dac-ml-role-bg: var(--dac-blue-light);
    --dac-ml-role-accent: var(--dac-blue);
    --dac-ml-role-text: var(--dac-blue);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 14px 18px;
    border-left: 4px solid var(--dac-ml-role-accent);
    border-radius: 0 var(--dac-radius-sm) var(--dac-radius-sm) 0;
    background: var(--dac-ml-role-bg);
}

.dac-ml-roles li:nth-child(2) { --dac-ml-role-bg: #E8F9EF; --dac-ml-role-accent: #22A85D; --dac-ml-role-text: #15803D; }
.dac-ml-roles li:nth-child(3) { --dac-ml-role-bg: #FFF7E6; --dac-ml-role-accent: #D97706; --dac-ml-role-text: #B45309; }
.dac-ml-roles li:nth-child(4) { --dac-ml-role-bg: #FFF1F3; --dac-ml-role-accent: #E11D48; --dac-ml-role-text: #BE123C; }
.dac-ml-roles li:nth-child(5) { --dac-ml-role-bg: #F5F0FF; --dac-ml-role-accent: #7C3AED; --dac-ml-role-text: #6D28D9; }
.dac-ml-roles li:nth-child(6) { --dac-ml-role-bg: #EAF8FB; --dac-ml-role-accent: #0891B2; --dac-ml-role-text: #0E7490; }

.dac-ml-roles strong {
    font-size: 0.9375rem;
    line-height: 1.4;
}

.dac-ml-roles__what {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--dac-text);
}

.dac-ml-roles__leads {
    margin-top: 2px;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--dac-ml-role-text);
}

/* Where to Meet: three tips side by side so full-width lines stay readable. */
.dac-ml-where {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.dac-ml-where p {
    margin: 0 !important;
}

/* "Starting alone?" note under the roles, straight from the Leader Guide. */
.dac-ml-callout {
    margin-top: 16px !important;
    padding: 14px 16px;
    border-radius: var(--dac-radius-sm);
    background: var(--dac-blue);
    color: #fff;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.dac-ml-callout strong {
    color: #fff;
    font-weight: 700;
}

.dac-ml-quote {
    margin-top: 16px !important;
    padding: 12px 16px;
    border-left: 3px solid var(--dac-green);
    background: var(--dac-green-pale);
    border-radius: 0 var(--dac-radius-sm) var(--dac-radius-sm) 0;
    color: var(--dac-dark);
    font-weight: 600;
}

/* ── Promo banner on /leadership/ ─────────────────────────── */

.dac-ml-promo {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 56px;
    padding: 20px 24px;
    border-radius: var(--dac-radius-md);
    background: linear-gradient(120deg, var(--dac-blue) 0%, #003A94 100%);
    box-shadow: 4px 4px 0 var(--dac-navy);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dac-ml-promo:hover {
    transform: translateY(-2px);
}

.dac-ml-promo:active {
    transform: translateY(0);
}

.dac-ml-promo:focus-visible {
    outline: 2px solid var(--dac-blue);
    outline-offset: 3px;
}

.dac-ml-promo::before {
    content: '';
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.dac-ml-promo__text {
    flex: 1;
    min-width: 0;
}

.dac-ml-promo__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.35;
}

.dac-ml-promo__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.dac-ml-promo__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--dac-radius-pill);
    background: var(--dac-green);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.dac-ml-promo:hover .dac-ml-promo__cta {
    background: var(--dac-green-hover);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .dac-ml-roles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dac-resources-hero.dac-ml-hero {
        padding-bottom: 112px;
    }

    .dac-ml-links {
        margin-top: -64px;
    }

    .dac-ml-roles,
    .dac-ml-where {
        grid-template-columns: 1fr;
    }

    .dac-ml-where {
        gap: 12px;
    }

    .dac-ml-links-section {
        padding: 0 0 56px;
    }

    .dac-ml-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dac-ml-promo {
        flex-wrap: wrap;
        margin-bottom: 40px;
    }

    .dac-ml-promo__text {
        flex-basis: calc(100% - 64px);
    }

    .dac-ml-promo__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dac-ml-roles li {
        padding: 12px 14px;
    }

    .dac-ml-link {
        padding: 20px;
    }
}
