﻿/* ============================================================
   institutional.css — /institutional-data

   Loads alongside legal.css, which supplies the .lg-* page shell and the .ct-*
   form fields this page reuses. Only the feed-card grid and a few form extras
   live here.
   ============================================================ */

.isd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.isd-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--lg-rule);
    border-radius: 10px;
    background: var(--lg-surface);
}

    .isd-card h3 {
        margin: 0 0 0.5rem;
        font-size: 1.02rem;
        letter-spacing: -0.005em;
    }

    .isd-card p {
        margin: 0;
        font-size: 0.93rem;
        line-height: 1.6;
        color: var(--lg-ink-soft);
        max-width: none;
    }

/* Icons come from five different sources with viewBoxes ranging from 0 0 100 100
   to 0 0 1024 1024. Sizing the <svg> box rather than trusting its intrinsic
   dimensions is what makes them read as one set — preserveAspectRatio on the
   originals does the rest. fill="currentColor" ties them to the brand token. */
.isd-card-icon {
    margin-bottom: 0.9rem;
    color: var(--lg-brand);
    line-height: 0;
}

    .isd-card-icon .isd-icon {
        width: 40px;
        height: 40px;
        display: block;
    }

.isd-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.isd-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 40rem) {
    .isd-row-3 {
        grid-template-columns: 1fr;
    }
}

.isd-fieldset {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--lg-rule);
    border-radius: 10px;
}

    .isd-fieldset legend {
        padding: 0 0.4rem;
        font-weight: 600;
        font-size: 0.95rem;
    }

.isd-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.6rem 1.5rem;
}

    .isd-checks label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.94rem;
    }

@media (forced-colors: active) {
    .isd-card,
    .isd-fieldset {
        border: 1px solid CanvasText;
    }
}

/* ---------- pricing ---------- */

.isd-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.isd-plan {
    position: relative;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--lg-rule);
    border-radius: 10px;
    background: var(--lg-surface);
    text-align: center;
}

    /* The recommended plan is marked with a label AND a heavier border, never
       colour alone — same rule as the overdue flags on the support queue. */
    .isd-plan.is-best {
        border-color: var(--lg-brand);
        border-width: 2px;
    }

    .isd-plan h3 {
        margin: 0 0 0.75rem;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--lg-ink-soft);
    }

.isd-plan-flag {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--lg-brand);
    color: #14161a; /* fixed dark: brand is a light gold in light mode and a
                       mid lavender in dark, and dark text reads on both */
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.isd-plan-price {
    margin: 0 0 0.5rem;
    max-width: none;
}

.isd-amt {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.isd-per {
    color: var(--lg-ink-soft);
    font-size: 0.9rem;
}

.isd-plan-permo,
.isd-plan-save {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--lg-ink-soft);
    max-width: none;
}

.isd-plan-save {
    font-weight: 650;
    color: var(--lg-ink);
}

@media (forced-colors: active) {
    .isd-plan {
        border: 1px solid CanvasText;
    }

        .isd-plan.is-best {
            border: 2px solid Highlight;
        }
}
