/* internships.css — section padding, heading style and .section-intro come
   from all.css. */

#GlobalNavWrapper {
    /* No photograph was supplied for this page, so the hero band is drawn
       rather than loaded: a navy wash carrying the faint orange ring from the
       source design, bleeding off the top-right corner.

       --hero-image accepts any CSS <image>, gradients included, and all.css
       layers its own darkening gradient above whatever this resolves to. The
       ring is positioned inside its own gradient ("at 92% -10%") because
       all.css sets a single background-position for every layer. */
    --hero-image: radial-gradient(circle at 92% -10%, transparent 0 148px, rgb(255 121 0 / 18%) 148px 204px, transparent 204px),
                  linear-gradient(135deg, var(--titan-blue) 0%, var(--dk-med-blue) 100%);
}

/* Every section is an anchor target for the jump nav below, and
   #AiLabNavigation is sticky at the top of the viewport, so headings need to
   clear it on arrival. */
#Default > section {
    scroll-margin-top: 120px;
}

#page-overview {
    /* The hero's lead line and its two entry points. all.css already centres
       and emphasises the paragraphs here; the second one only has to lay its
       links out in a row. Targeted by position rather than a new class —
       there are exactly two paragraphs and the second is the action row. */
    p:last-of-type {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: center;
        margin-top: var(--space-md);
    }

    /* The shared a.cta carries a left margin for its usual inline context;
       inside a centred flex row it throws the pair off-centre. */
    .cta {
        margin-left: 0;
    }

    /* Secondary action. Outlined rather than filled so the orange .cta stays
       the primary, matching the cta/learn-more pairing on the landing page.
       The navy outline also gives the control a 3:1 boundary against the pale
       section background, which orange alone would not clear. */
    .learn-more {
        display: flex;
        align-items: center;
        height: 40px;
        padding-inline: var(--space-sm);
        border-radius: 5px;
        color: var(--titan-blue);
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: inset 0 0 1px 1px var(--titan-blue);

        &:hover,
        &:focus-visible {
            color: white;
            background-color: var(--titan-blue);
        }
    }
}

/* In-page jump nav.
   Deliberately not sticky: #AiLabNavigation already holds the top of the
   viewport, and a second sticky bar would stack beneath it and swallow most of
   a phone screen. */
#page-nav {
    border-bottom: 1px solid var(--cool-gray-20);
    background-color: white;

    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0 var(--space-md);
        max-width: 1200px;
        margin-inline: auto;
        padding: var(--space-xs) var(--space-md);
        list-style: none;
    }

    a {
        display: block;
        padding-block: 8px;
        color: var(--titan-blue);
        font-size: 0.95rem;
        font-weight: 700;
        text-decoration: none;

        &:hover,
        &:focus-visible {
            text-decoration: underline;
        }
    }
}

#pathways {
    .pathway-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        gap: var(--space-md);
    }

    /* Same tinted-card-with-orange-rule treatment as .numbered-card, but these
       carry a tag, a list and a closing note rather than a figure, so they are
       their own component instead of a borrowed one. */
    .pathway-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: var(--space-md) var(--space-sm);
        border-top: 4px solid var(--titan-orange);
        background-color: var(--bright-bg);

        h3 {
            margin: 0;
            color: var(--titan-blue);
            font-size: 1.25rem;
            font-weight: 900;
        }

        p {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        ul {
            margin: 0;
            padding-left: 1.1em;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        li {
            margin-bottom: 0.35em;
        }

        /* margin-top:auto pins this to the bottom so the three cards' footers
           line up regardless of how much copy sits above them. */
        .pathway-meta {
            margin-top: auto;
            padding-top: var(--space-sm);
            border-top: 1px solid rgb(0 39 76 / 20%);
            font-size: 0.9rem;
        }
    }
}

/* The orange rule echoes the accent the source design gave these, and matches
   .lab-stats and .numbered-card elsewhere on the site. */
#focus .rule-item {
    border-top: 4px solid var(--titan-orange);
}

#sbdc {
    .sbdc-layout {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
        gap: var(--space-xl);
        align-items: start;
    }

    .sbdc-copy p {
        margin: 0 0 1em;
        font-size: 1.05rem;
        line-height: 1.7;

        &:last-child {
            margin-bottom: 0;
        }
    }

    .sbdc-panel {
        padding: var(--space-md);
        border-radius: var(--standard-border-radius);
        color: white;
        background-color: var(--titan-blue);
        box-shadow: var(--floating-medium-box-shadow);

        h3 {
            margin: 0 0 var(--space-md);
            color: white;
            font-size: 1.25rem;
            font-weight: 900;
        }

        ol {
            margin: 0;
            padding-left: 1.2em;
        }

        li {
            margin-bottom: 0.7em;
            line-height: 1.6;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

/* .numbered-grid holds <div> children elsewhere on the site. Here both lists
   are genuine ordered lists, so the marker and indent need clearing — the
   number is already shown by .card-number. */
#badge .numbered-grid,
#students .numbered-grid {
    padding-left: 0;
    list-style: none;
}

#badge {
    /* .numbered-card sits on --bright-bg, but this section is navy, so without
       this its paragraphs inherit the section's white text onto a pale card. */
    .numbered-card {
        color: var(--titan-blue);
    }

    .badge-note {
        margin: var(--space-xl) 0 0;
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--standard-border-radius);
        color: var(--titan-blue);
        background-color: white;
        line-height: 1.6;
    }
}

#students .action-row,
#businesses .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin: var(--space-xl) 0 0;

    .cta {
        margin-left: 0;
    }

    .learn-more {
        color: var(--titan-blue);
        font-weight: 700;
    }
}

#businesses .rule-item ul {
    margin: 0;
    padding-left: 1.1em;
    line-height: 1.6;
}

#faq {
    details {
        max-width: 900px;
        padding-block: var(--space-sm);
        border-bottom: 1px solid var(--cool-gray-20);
    }

    summary {
        color: var(--titan-blue);
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
    }

    details p {
        max-width: 70ch;
        margin: 0.7em 0 0;
        line-height: 1.6;
    }
}

#contact .rule-item p {
    line-height: 1.6;
}
