.challenge-room-page {
    background: #f8fafc;
}

.challenge-room-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.challenge-room-preview-note {
    padding: 10px 16px;
    background: #fef3c7;
    color: #92400e;
    font-size: 14px;
    text-align: center;
}

.challenge-room-hero {
    position: relative;
    padding: 120px 0 56px;
    background: #0f172a center / cover no-repeat;
    color: #fff;
}

.challenge-room-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f172af2 0%, #0f172acc 55%, #0f172a99 100%);
}

.challenge-room-hero-inner {
    position: relative;
}

.challenge-room-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    color: #cbd5e1;
    font-size: 14px;
}

.challenge-room-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.challenge-room-identity {
    display: flex;
    align-items: center;
    gap: 24px;
}

.challenge-room-logo {
    display: grid;
    flex: none;
    width: 112px;
    height: 112px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    place-items: center;
}

.challenge-room-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.challenge-room-type {
    margin: 0 0 8px;
    color: #86efac;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.challenge-room-identity h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.challenge-room-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.challenge-room-facts li {
    padding: 4px 12px;
    border: 1px solid #ffffff40;
    border-radius: 999px;
    font-size: 14px;
}

.challenge-room-facts li.is-open {
    border-color: #86efac;
    color: #86efac;
}

.challenge-room-facts a {
    color: inherit;
    text-decoration: none;
}

.challenge-room-body {
    padding: 56px 0 80px;
}

.challenge-room-about {
    margin-bottom: 56px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.challenge-room-page h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 24px;
}

.challenge-room-about-text {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.challenge-room-about-text img {
    max-width: 100%;
    height: auto;
}

.challenge-room-empty a {
    color: #166534;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .challenge-room-page .challenge-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .challenge-room-hero {
        padding: 96px 0 40px;
    }

    .challenge-room-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .challenge-room-logo {
        width: 80px;
        height: 80px;
    }

    .challenge-room-about {
        padding: 20px;
    }

    .challenge-room-page .challenge-cards-grid {
        grid-template-columns: 1fr;
    }
}

.challenge-room-about-text * {
    font-family: inherit !important;
}

/* Fund room: investment profile and pitch form (template-parts/challenges/fund-profile.php). */
.fund-profile,
.fund-pitch {
    margin-bottom: 56px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.fund-profile-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.fund-pitch-cta {
    color: #166534;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.fund-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 28px;
}

.fund-facts div {
    padding: 16px 18px;
    border-radius: 12px;
    background: #f4f6fa;
}

.fund-facts dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.fund-facts dd {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.fund-block + .fund-block {
    margin-top: 24px;
}

.fund-block h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
}

.fund-text {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.fund-text p {
    margin: 0 0 10px;
}

.fund-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fund-tags li {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef6f2;
    color: #1e7a5c;
    font-size: 13px;
    font-weight: 600;
}

.fund-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fund-portfolio li {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.fund-portfolio a {
    color: #0f172a;
}

.fund-portfolio span {
    color: #64748b;
    font-size: 13px;
}

.fund-pitch {
    scroll-margin-top: 110px;
    background: linear-gradient(180deg, #f6fbf8 0%, #ffffff 60%);
}

.fund-pitch-how {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: pitch-step;
}

.fund-pitch-how li {
    position: relative;
    padding: 14px 14px 14px 52px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    counter-increment: pitch-step;
}

.fund-pitch-how li::before {
    content: counter(pitch-step);
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40af6b, #5f8ea8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.fund-pitch-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.fund-pitch-notice.is-success {
    background: #ecfdf5;
    color: #065f46;
}

.fund-pitch-notice.is-info {
    background: #eff6ff;
    color: #1e3a8a;
}

.fund-pitch-notice.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.fund-pitch-signin {
    margin: 0 0 16px;
    color: #475569;
}

.fund-pitch-form {
    display: grid;
    gap: 18px;
}

.fund-pitch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fund-pitch-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.fund-pitch-field label {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.fund-pitch-field label em {
    color: #dc2626;
    font-style: normal;
}

.fund-pitch-field label small {
    color: #64748b;
    font-weight: 500;
}

.fund-pitch-field input:not([type="checkbox"]),
.fund-pitch-field select,
.fund-pitch-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
}

.fund-pitch-field input[type="file"] {
    padding: 9px 12px;
}

.fund-pitch-field.has-error input,
.fund-pitch-field.has-error select,
.fund-pitch-field.has-error textarea {
    border-color: #dc2626;
}

.fund-pitch-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.fund-pitch-consent input {
    margin-top: 3px;
}

.fund-pitch-error {
    color: #b91c1c;
    font-size: 13px;
}

.fund-pitch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 13px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #40af6b 0%, #5f8ea8 55%, #7f4379 100%);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fund-pitch-button:hover {
    color: #fff;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .fund-profile,
    .fund-pitch {
        padding: 20px;
    }

    .fund-facts,
    .fund-pitch-how,
    .fund-pitch-grid {
        grid-template-columns: 1fr;
    }

    .fund-profile-head {
        flex-direction: column;
    }
}
