/* CTA archive and single layout */

.cta-list {
    margin: 2rem auto;
    max-width: 960px;
}

.cta-list--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cta-list--grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-card {
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #dddddd;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cta-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.cta-card__summary {
    margin: 0 0 0.75rem;
}

.cta-card__deadline {
    margin: 0;
    font-size: 0.9rem;
}

.cta-card__actions {
    margin: 0;
    margin-top: 1rem;
    text-align: right;
}

.cta-btn,
.cta-card__button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    border: none;
    background-color: #19a44a;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.cta-btn:hover,
.cta-card__button:hover,
.cta-btn:focus,
.cta-card__button:focus {
    background-color: #118137;
    color: #ffffff;
}

/* Filters */

.cta-filters {
    max-width: 960px;
    margin: 2rem auto 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-filters__group {
    display: flex;
    flex-direction: column;
}

.cta-filters__label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.cta-filters__select {
    min-width: 160px;
}

/* Single CTA layout */

.cta-single {
    max-width: 960px;
    margin: 2rem auto 3rem;
}

.cta-back-link {
    margin-bottom: 1rem;
}

.cta-section {
    margin-top: 2rem;
}

.cta-section__title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cta-section__title--spaced {
    margin-top: 2.5rem;
}

.cta-section__body p:last-child {
    margin-bottom: 0;
}

/* Steps section */

.cta-steps-grid--detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cta-step-card {
    border-radius: 4px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    padding: 1.25rem 1.5rem;
}

.cta-step-card__label,
.cta-step-number {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    margin-bottom: 0.5rem;
}

.cta-step-card__body,
.cta-step-body {
    font-size: 0.95rem;
}

.cta-step-card__body p:last-child,
.cta-step-body p:last-child {
    margin-bottom: 0;
}

/* Sample Text */

.cta-card--sample-text {
    border-radius: 4px;
    border: 1px solid #dddddd;
    background-color: #f8fbf9;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.cta-sample-text__option-title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
}

.cta-sample-text__textarea {
    width: 100%;
    min-height: 12rem;
    margin: 0;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 3px;
    border: 1px solid #cccccc;
    resize: vertical;
}

.cta-sample-text__copy-row {
    margin-top: 0.75rem;
}

/* Related Links & Files */

.cta-links-list,
.cta-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cta-links-list__item,
.cta-files-list__item {
    margin-bottom: 0.5rem;
}

/* Restore bordered background for each link/file */
.cta-links-list__item a,
.cta-files-list__item a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
}

.cta-links-list__item a:hover,
.cta-links-list__item a:focus,
.cta-files-list__item a:hover,
.cta-files-list__item a:focus {
    border-color: #19a44a;
}

/* Meta (types, orgs, tags) as pills */

.cta-meta {
    margin: 0;
}

.cta-meta--pills dt {
    font-weight: 600;
}

.cta-meta--pills dd {
    margin: 0;
}

.cta-meta__group {
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.cta-meta--bottom {
    margin-top: 1.5rem;
}

/* Clickable pill styling used in Details section */
.cta-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: #e5f7eb;
    color: #046627;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.cta-pill:hover,
.cta-pill:focus {
    background-color: #c8efd5;
}