/*
 * ndedi-register site layer: the parts of ndedi.org that belong to no other
 * layer (funding, the advisory group, the site's public channel, the signed-language
 * summary, the formulations, the publisher line). Uses the theme's tokens with
 * plain fallbacks; nothing loads from another host.
 */

.ndedi-slot > :first-child { margin-top: 0; }
.ndedi-slot > :last-child { margin-bottom: 0; }
.ndedi-shortcode { margin: 1.5rem 0; }

/* Status panels reuse .rec-status from the brand templates; a fact list inside one sits below the sentence. */
.rec-status .ndedi-facts { margin-top: .75rem; }

/* Advisory group members */
.ndedi-site-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.ndedi-site-card {
    border: 1px solid var(--ncg-color-border, #767676);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: var(--ncg-color-bg-surface, #fff);
}
.ndedi-site-card-title {
    font-size: 1.1rem;
    margin: 0 0 .5rem;
    color: var(--ncg-color-heading, #1d2a33);
}

/* Contacts on the Contact page */
.ndedi-contacts .agr-facts { margin: 0; }
.ndedi-contact-note { margin: .5rem 0 0; font-size: .95rem; color: var(--ncg-color-muted, #444); }

/* Quoted rules and the two formulations */
.ndedi-site-rule,
.ndedi-site-formulations { margin: 1.5rem 0; }
.ndedi-site-formulations blockquote + blockquote { margin-top: .5rem; }

/* This site's public channel block */
.ndedi-site-acr h3 { margin-top: 0; }
.ndedi-site-channel td p { margin: 0 0 .5rem; }
.ndedi-site-channel td p:last-child { margin-bottom: 0; }
.ndedi-site-not-found { font-style: italic; }

/* Signed-language summary: self-hosted only */
.ndedi-site-asl { margin: 1rem 0; }
.ndedi-site-asl video {
    display: block;
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 8px;
    background: #000;
}
.ndedi-site-asl figcaption { margin-top: .5rem; }
.ndedi-site-note { font-size: .95rem; }

.ndedi-site-publisher-line { margin: 1rem 0; }

@media (prefers-reduced-motion: reduce) {
    .ndedi-slot * { transition: none !important; animation: none !important; }
}

/* What changed in version 2: cards per point, the decisions each rests on as chips. */
.ndedi-change-card { display: flex; flex-direction: column; }
.ndedi-change-card p { flex: 1 0 auto; }
.ndedi-decisions { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.ndedi-decisions li { margin: 0; }
.ndedi-decisions a, .ndedi-decisions span {
    display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px;
    border: 1px solid var(--ncg-color-border, #767676); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
    color: var(--ncg-color-heading, #111); text-decoration: none; background: var(--ncg-color-bg-paper, #F7F6F2);
}
.ndedi-decisions a:hover { border-color: var(--ncg-color-heading, #111); text-decoration: underline; text-underline-offset: 3px; }
.ndedi-decisions a:focus-visible { outline: 3px solid var(--agr-focus, #7A5410); outline-offset: 2px; }
.ndedi-changes-opening p { font-size: 1.15rem; }
.ndedi-changes-closing p { color: #E6E2D8; margin: 0 auto 24px; max-width: 580px; }
.ndedi-changes-closing a { color: #F4F1EA; }
