/* =========================================================
   Valley of Boston Membership Committee
   Media Kit Page Styles
   ========================================================= */

/* Media Kit hero */

.media-hero {
    padding: clamp(3rem, 6vw, 5.25rem) 0 .8rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(196, 160, 82, .22), transparent 28%),
        linear-gradient(120deg, #111, #2a1012);
    color: #fff;
}

.media-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 5vw, 4.6rem);
    line-height: 1;
}

.media-hero .hero-summary {
    max-width: 760px;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
}

.hero-browse {
    position: relative;
    z-index: 2;
    margin: 2.25rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .95rem;
    letter-spacing: .05em;
    text-align: center;
    transform: translateY(.55rem);
}

/* Scroll cue */

.campaign-scroll-cue {
    position: relative;
    z-index: 3;
    display: block;
    width: fit-content;
    margin: 0 auto 1.25rem;
    padding: 0 1rem;
    color: #c4a052;
    font-size: 2.2rem;
    line-height: .8;
    text-align: center;
    text-decoration: none;
    transform: translateY(-.8rem);
}

.campaign-scroll-cue span {
    display: inline-block;
    animation: campaignArrowBounce 2.5s ease-in-out infinite;
}

.campaign-scroll-cue:hover,
.campaign-scroll-cue:focus {
    color: #8a1218;
}

.campaign-scroll-cue:focus-visible {
    outline: 2px solid #c4a052;
    outline-offset: 3px;
    border-radius: 4px;
}

@keyframes campaignArrowBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* Media Kit layout */

.kit-section {
    padding: 0 0 clamp(3rem, 6vw, 5.5rem);
    background: #fbf9f4;
}

.kit-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.4rem;
}

.kit-intro-card,
.kit-toc {
    padding: 1.45rem;
    border: 1px solid #ded8cd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 18, 18, .08);
}

.kit-intro-card h2,
.kit-toc h2,
.campaign-heading h2 {
    margin-top: 0;
    color: #1d1d1d;
    font-family: Georgia, "Times New Roman", serif;
}

/* Collapsible instructions */

.kit-instructions {
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid #ded8cd;
}

.kit-instructions summary {
    display: inline-block;
    color: #8a1218;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.kit-instructions summary::-webkit-details-marker {
    display: none;
}

.kit-instructions summary::after {
    content: " ▾";
    display: inline-block;
    margin-left: .25rem;
}

.kit-instructions[open] summary::after {
    content: " ▴";
}

.kit-instructions summary:hover,
.kit-instructions summary:focus {
    color: #5f0c10;
}

.kit-instructions summary:focus-visible {
    outline: 2px solid #c4a052;
    outline-offset: 4px;
    border-radius: 2px;
}

.kit-instructions-content {
    margin-top: .85rem;
}

.kit-instructions-content p:first-child {
    margin-top: 0;
}

.kit-instructions-content p:last-child {
    margin-bottom: 0;
}

/* Table of contents */

.kit-toc ul {
    margin: .7rem 0 0;
    padding-left: 1.15rem;
}

.kit-toc li + li {
    margin-top: .38rem;
}

/* Campaign sections */

.campaign {
    scroll-margin-top: 1rem;
    padding: 2.5rem 0 0;
}

.campaign + .campaign {
    margin-top: 2.8rem;
    border-top: 1px solid #ded8cd;
}

.campaign-heading {
    max-width: 820px;
    margin-bottom: 1.35rem;
}

.campaign-heading .language-label {
    margin: 0 0 .4rem;
    color: #8a1218;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.campaign-heading h2 {
    margin-bottom: .5rem;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.campaign-heading p {
    margin: 0;
    color: #666;
}

/* Asset cards */

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.asset-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ded8cd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 18, 18, .08);
}

.asset-preview {
    display: grid;
    min-height: 230px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(45deg, #eee 25%, transparent 25%),
        linear-gradient(-45deg, #eee 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eee 75%),
        linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.asset-preview img {
    width: 100%;
    height: 100%;
    max-height: 470px;
    object-fit: contain;
    background: #f1f1f1;
}

.asset-preview .image-link {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    text-decoration: none;
}

.asset-preview .image-link img {
    transition: transform .25s ease;
}

.asset-preview .image-link:hover img,
.asset-preview .image-link:focus img {
    transform: scale(1.03);
}

.missing-file {
    display: none;
    padding: 1.4rem;
    color: #666;
    text-align: center;
}

.missing-file strong {
    display: block;
    margin-bottom: .45rem;
    color: #8a1218;
}

.missing-file code {
    overflow-wrap: anywhere;
    font-size: .78rem;
}

.asset-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem;
}

.asset-body h3 {
    margin: 0;
    color: #1d1d1d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.asset-meta {
    margin: .35rem 0 .9rem;
    color: #6a6a6a;
    font-size: .9rem;
}

.asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: auto;
}

.asset-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .62rem .9rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}

.download-button {
    background: #8a1218;
    color: #fff;
}

.download-button:hover,
.download-button:focus {
    background: #5f0c10;
    color: #fff;
}

.view-button {
    border: 1px solid #8a1218;
    color: #8a1218;
}

.view-button:hover,
.view-button:focus {
    background: #f8eeee;
    color: #5f0c10;
}

/* Closing note */

.kit-note {
    margin-top: 3rem;
    padding: 1.4rem;
    border-left: 5px solid #c4a052;
    background: #fff;
    box-shadow: 0 10px 25px rgba(18, 18, 18, .06);
}

/* Responsive */

@media (max-width: 920px) {
    .kit-intro,
    .asset-grid {
        grid-template-columns: 1fr;
    }

    .asset-preview {
        min-height: 200px;
    }
}
