/**
 * Proclaim Landing Page Styles
 *
 * BEM-like naming: .proclaim-landing-{block}__{element}--{modifier}
 * Three layout styles: --cards, --hero, --dashboard
 *
 * @since 10.3.0
 */

/* =========================================================================
   Shared
   ========================================================================= */

.proclaim-landing {
    margin: 0 auto;
}

.proclaim-landing__header {
    text-align: center;
    padding: 1.5rem 0;
}

.proclaim-landing__header-image {
    margin-bottom: 1rem;
}

.proclaim-landing__title {
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.proclaim-landing__intro {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.proclaim-landing__section {
    padding: 2rem 0;
}

.proclaim-landing__section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
}

/* Hidden items toggle */
.proclaim-landing--hidden {
    display: none !important;
}

.proclaim-landing__show-more {
    margin-top: 1rem;
}

/*
 * ⚠️ Stated rather than inherited. A template that flattens .btn erases
 * .btn-outline-primary and this control disappears — Bootstrap's variant and a
 * template's own .btn rule are both (0,1,0), so source order decides it. The
 * accent band overrides these below at one class higher.
 */
.com-proclaim .proclaim-landing__show-more {
    color: #0a58ca;
    border-color: #0a58ca;
}

.com-proclaim .proclaim-landing__show-more:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    color: #fff;
}

.proclaim-landing__toggle-count {
    /*
     * 0.6 dimmed this below the contrast floor on every template, not just a
     * hostile one: opacity multiplies whatever colour it inherits, and
     * getComputedStyle does not report it, so the count measured as passing
     * while rendering at 2.4:1 on a light band and 4.86:1 on the accent one.
     * 0.85 keeps it visibly secondary at 4.76:1 and 8.43:1.
     */
    opacity: 0.85;
    margin-left: 0.25rem;
}

/* =========================================================================
   Card Grid Style (.proclaim-landing--cards)
   ========================================================================= */

.proclaim-landing-card {
    display: block;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.proclaim-landing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.proclaim-landing-card__img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e9ecef;
}

.proclaim-landing-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.proclaim-landing-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.proclaim-landing-card__body {
    padding: 1rem;
}

.proclaim-landing-card__name {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    color: #2c3e50;
}

.proclaim-landing-card__meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Pills for text-only sections */
.proclaim-landing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proclaim-landing-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.proclaim-landing-pill:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    text-decoration: none;
}

/* =========================================================================
   Hero Sections Style (.proclaim-landing--hero)
   ========================================================================= */

.proclaim-landing-band {
    padding: 3rem 0;
}

.proclaim-landing-band--light {
    background: #fff;
}

.proclaim-landing-band--dark {
    background: #f8f9fa;
}

.proclaim-landing-band--accent {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.proclaim-landing-band__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.com-proclaim .proclaim-landing-band--accent .proclaim-landing__show-more {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.com-proclaim .proclaim-landing-band--accent .proclaim-landing__show-more:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Hero overlay cards */
.proclaim-landing-hero-card {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 3 / 4;
}

.proclaim-landing-hero-card:hover {
    color: #fff;
    text-decoration: none;
}

.proclaim-landing-hero-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    transition: transform 0.3s;
}

.proclaim-landing-hero-card:hover .proclaim-landing-hero-card__bg {
    transform: scale(1.05);
}

.proclaim-landing-hero-card__bg--placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.proclaim-landing-hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.proclaim-landing-hero-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    max-height: 50%;
    overflow: hidden;
}

.proclaim-landing-hero-card__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.proclaim-landing-hero-card__sub {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/*
 * ⚠️ Declared here, not inherited from the card. A template colouring anchors
 * inside its content wrapper (0,2,1) beats the card's own colour (0,1,0), and
 * an inherited value loses to any declaration. White is required: the overlay
 * gradient and the text-shadows above exist to make white legible.
 */
.com-proclaim .proclaim-landing-hero-card .proclaim-landing-hero-card__title,
.com-proclaim .proclaim-landing-hero-card .proclaim-landing-hero-card__sub {
    color: #ffffff;
}

/* Hero tags */
.proclaim-landing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proclaim-landing-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.proclaim-landing-tag--light {
    background: #e9ecef;
    color: #495057;
}

.proclaim-landing-tag--light:hover {
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
}

.proclaim-landing-tag--dark {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.proclaim-landing-tag--dark:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
}

/*
 * Tags are anchors too, so they lose their colour to a site template's link
 * rule the same way the hero card does — see the note above it. Measured on
 * nfsda.org, every tag on the accent band rendered #8b5717 on a chip over that
 * band's dark gradient: 2.0:1, against the 4.5:1 the text needs.
 *
 * The light variant survived on that site at 4.88:1, but only by luck of which
 * accent the template happens to use, and it was still not the colour intended.
 * Both are restated so neither depends on the template's palette.
 */
.com-proclaim .proclaim-landing-tag.proclaim-landing-tag--light {
    color: #495057;
}

.com-proclaim .proclaim-landing-tag.proclaim-landing-tag--dark {
    color: rgba(255, 255, 255, 0.9);
}

.com-proclaim .proclaim-landing-tag.proclaim-landing-tag--light:hover,
.com-proclaim .proclaim-landing-tag.proclaim-landing-tag--dark:hover {
    color: #fff;
}

/* =========================================================================
   Dashboard Style (.proclaim-landing--dashboard)
   ========================================================================= */

/* Featured row */
.proclaim-landing-featured {
    padding: 2rem 0;
}

.proclaim-landing-featured__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 1rem;
}

.proclaim-landing-featured-card {
    display: flex;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s;
    height: 100%;
}

.proclaim-landing-featured-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.proclaim-landing-featured-card__img {
    width: 140px;
    min-height: 140px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.proclaim-landing-featured-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
}

.proclaim-landing-featured-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proclaim-landing-featured-card__tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.proclaim-landing-featured-card__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
    color: #2c3e50;
}

.proclaim-landing-featured-card__meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Accordion */
.proclaim-landing-accordion .accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.proclaim-landing-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
}

.proclaim-landing-accordion__count {
    background: #e9ecef;
    /* 6.9:1 on the #e9ecef pill — #6c757d was 3.95:1 (WCAG 1.4.3). */
    color: #495057;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    font-weight: 400;
}

/* List items inside accordion */
.proclaim-landing-list-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f3f5;
    text-decoration: none;
    color: #495057;
    transition: color 0.15s;
}

.proclaim-landing-list-item:last-child {
    border-bottom: none;
}

.proclaim-landing-list-item:hover {
    color: #0d6efd;
    text-decoration: none;
}

.proclaim-landing-list-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #6c757d;
    transition: background 0.15s, color 0.15s;
}

.proclaim-landing-list-item:hover .proclaim-landing-list-item__icon {
    background: #dbeafe;
    color: #0d6efd;
}

.proclaim-landing-list-item__name {
    flex: 1;
    font-weight: 500;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 767.98px) {
    .proclaim-landing-hero-card {
        aspect-ratio: 3 / 4;
    }

    .proclaim-landing-band {
        padding: 2rem 0;
    }

    .proclaim-landing-featured-card {
        flex-direction: column;
    }

    .proclaim-landing-featured-card__img {
        width: 100%;
        min-height: 120px;
    }
}
