﻿/* ============================================================
   dataservices.css — /data-services
   Loads after legal.css and institutional.css and only adds what's specific
   to the feed list, the URL rows, and the rendered reports.
   ============================================================ */

.ds-key,
.ds-url {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 0 1rem;
}

    /* min-width:0 lets a long token shrink inside the flex row instead of
       forcing the whole page to scroll sideways on a phone. */
    .ds-key code,
    .ds-url code {
        flex: 1 1 22rem;
        min-width: 0;
        padding: 0.6rem 0.75rem;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 0.85rem;
        border: 1px solid var(--lg-rule);
        border-radius: 8px;
        background: var(--lg-surface);
        overflow-wrap: anywhere;
    }

.ds-copy {
    flex: 0 0 auto;
}

.ds-feed {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lg-rule);
}

.ds-feed-head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.ds-feed-head p {
    margin: 0 0 1rem;
    color: var(--lg-ink-soft);
}

.ds-endpoint {
    margin: 1.25rem 0;
    padding: 1.25rem;
    border: 1px solid var(--lg-rule);
    border-radius: 10px;
    background: var(--lg-surface-alt);
}

.ds-ep-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

    .ds-ep-head h4 {
        margin: 0;
        font-size: 1rem;
    }

.ds-d {
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: var(--lg-surface);
    border: 1px solid var(--lg-rule);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--lg-ink-soft);
}

.ds-ep-desc {
    margin: 0.5rem 0 0;
    font-size: 0.93rem;
    color: var(--lg-ink-soft);
}

.ds-fields summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

.ds-fields ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.ds-fields li code {
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--lg-rule);
    border-radius: 4px;
    background: var(--lg-surface);
    font-size: 0.8rem;
}

.ds-report {
    margin-top: 1rem;
}

.ds-out {
    margin-top: 0.75rem;
}

.ds-table {
    min-width: 0;
    font-size: 0.85rem;
}

.ds-empty {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--lg-ink-soft);
}

/* Feeds not on the agreement. Muted, but never rendered as disabled-looking
   dead text — each one is a link to a conversation. */
.ds-locked {
    opacity: 0.85;
}

.ds-locked-note {
    margin-top: 0.75rem !important;
    font-size: 0.88rem;
}

@media (forced-colors: active) {
    .ds-endpoint,
    .ds-key code,
    .ds-url code {
        border: 1px solid CanvasText;
    }
}

/* ---------- docs link in the hero ---------- */

.ds-doclink {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.9rem;
}

    .ds-doclink a {
        font-weight: 650;
    }

    .ds-doclink span {
        font-size: 0.9rem;
        color: var(--lg-ink-soft);
    }

.ds-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin: 1rem 0 0;
}

.ds-doc-inline {
    font-size: 0.88rem;
}

/* ---------- report page ---------- */

.ds-period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--lg-ink-soft);
}

    /* Current window marked with a border and a check, never colour alone. */
    .ds-period .is-current {
        border-color: var(--lg-brand);
        border-width: 2px;
    }

        .ds-period .is-current::before {
            content: "\2713\00a0";
            font-weight: 700;
        }

.ds-count {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--lg-ink-soft);
}

/* Figures right-aligned and tabular so a column of numbers can be scanned
   down rather than read across. */
.ds-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ds-null {
    color: var(--lg-ink-soft);
    opacity: 0.6;
}

/* ---------- field reference tables ---------- */

.ds-fields-table {
    min-width: 34rem;
}

    .ds-fields-table th[scope="row"] {
        white-space: nowrap;
        vertical-align: top;
    }

    .ds-fields-table td {
        color: var(--lg-ink);
    }
