/* Editorial cards shared by Notícias and Apostilas. */
.editorial-library {
    background: #f4f5f7;
}

.editorial-library-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.editorial-library-head > span,
.editorial-card-meta,
.editorial-article-meta {
    color: #e63946;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.editorial-library-head p {
    max-width: 600px;
    margin: 0;
    color: #59616d;
    line-height: 1.65;
}

.editorial-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.editorial-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(21, 27, 37, .07);
}

.editorial-card > img,
.editorial-card-placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: linear-gradient(135deg, #202936, #ef3f49);
}

/* Social artwork includes headlines and signatures that must remain visible. */
.editorial-card > img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #080b10;
}

.editorial-card-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3.4rem;
    font-weight: 900;
}

.editorial-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.editorial-card-meta,
.editorial-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.editorial-card-meta time {
    color: #79818c;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.editorial-card h2 {
    margin: 14px 0 10px;
    color: #171d27;
    font-size: 1.28rem;
    line-height: 1.25;
}

.editorial-card p {
    flex: 1;
    margin: 0;
    color: #626b76;
    line-height: 1.65;
}

.editorial-card-footer {
    align-items: center;
    margin-top: 22px;
    color: #6e7681;
    font-size: .88rem;
    font-weight: 700;
}

.editorial-card-footer a {
    color: #dd2736;
    font-weight: 850;
}

.editorial-pagination {
    margin-top: 34px;
}

.editorial-empty {
    grid-column: 1 / -1;
    color: #5c6570;
}

.editorial-article-hero {
    background: linear-gradient(115deg, #121820, #27313d);
}

.editorial-article-hero h1,
.editorial-article-hero p {
    max-width: 900px;
}

.editorial-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    color: #f5b0b7;
}

.editorial-article-meta span {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.editorial-article {
    background: #f7f8fa;
}

.editorial-article-grid {
    display: grid;
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.article-body {
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(21, 27, 37, .07);
}

.editorial-article-cover {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 30px;
    border-radius: 7px;
    object-fit: contain;
}

.article-body p {
    margin: 0 0 1.35rem;
    color: #3f4854;
    font-size: 1.08rem;
    line-height: 1.82;
}

@media (max-width: 920px) {
    .editorial-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .editorial-library-head,
    .editorial-card-footer {
        align-items: start;
        flex-direction: column;
    }

    .editorial-card-grid {
        grid-template-columns: 1fr;
    }

    .editorial-card-placeholder {
        height: 210px;
    }
}

/* Long-form articles and reader participation use the site's dark editorial palette. */
.editorial-article .article-body,
.blog-post .article-body {
    border-color: #303b48;
    border-radius: 3px;
    background: #111821;
    color: #d5dde7;
    box-shadow: none;
}

.editorial-sections > p,
.editorial-sections section p,
.reader-engagement p,
.reader-engagement li {
    color: #bdc8d6;
    line-height: 1.8;
}

.editorial-sections h2,
.reader-engagement h2 {
    margin: 34px 0 14px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.editorial-sections ol {
    margin: 20px 0 32px;
    padding-left: 26px;
    list-style: decimal;
}

.editorial-sections li {
    margin: 10px 0;
    padding-left: 5px;
    color: #bdc8d6;
}

.reader-engagement {
    margin-top: 44px;
}

.reader-engagement [hidden] {
    display: none;
}

.reader-checklist {
    min-width: 0;
    margin: 0 0 36px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #3c4959;
    border-top: 3px solid #ff2939;
    background: #0b1119;
}

.reader-checklist legend {
    padding: 0 10px;
    color: #fff;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
}

.reader-task {
    display: flex;
    align-items: start;
    gap: 12px;
    margin: 14px 0;
    color: #e4e9ef;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
}

.reader-task input[type='checkbox'] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 3px 0 0;
    padding: 0;
    accent-color: #ff2939;
}

.reader-task:has(input:checked) span {
    color: #9dacbf;
}

.reader-progress {
    display: block;
    margin-top: 22px;
    color: #ff6a76;
    font-weight: 700;
}

.reader-engagement .reader-note {
    margin: 8px 0 0;
    color: #9dacbf;
    font-size: .82rem;
}

.reader-faq details {
    padding: 16px 0;
    border-bottom: 1px solid #344050;
}

.reader-faq summary {
    color: #eef3f8;
    font-weight: 700;
    cursor: pointer;
    list-style: disclosure-closed;
}

.reader-faq details[open] summary {
    list-style: disclosure-open;
}

.reader-faq details p {
    margin: 16px 0 0;
    font-size: .95rem;
}

.reader-conversation {
    margin: 40px 0 30px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #b22836;
    border-left: 4px solid #ff2939;
    background: linear-gradient(125deg, #1d131b, #0b1119 80%);
}

.reader-conversation > span {
    color: #ff6a76;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reader-conversation h2 {
    margin-top: 12px;
}

.reader-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.reader-actions a,
.reader-actions button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.reader-share {
    display: grid;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid #344050;
    border-bottom: 1px solid #344050;
    color: #b8c4d3;
}

.reader-share [role='status'] {
    color: #d2dce8;
    font-size: .85rem;
}

.reader-link-fallback {
    display: grid;
    gap: 8px;
}

.reader-sources h2 {
    font-size: 1.6rem;
}

.reader-sources ul {
    padding-left: 20px;
    list-style: disc;
}

.reader-sources a {
    color: #ff8a94;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reader-related {
    padding-top: 0;
}

.reader-related h2 {
    margin: 0 0 26px;
    color: #fff;
    font-size: 2.5rem;
}

.reader-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.reader-related-grid > a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid #344050;
    background: #111821;
}

.reader-related-grid span,
.reader-related-grid strong {
    color: #ff6a76;
    font-size: .85rem;
}

.reader-related-grid h3 {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.15;
}

.reader-related-grid p {
    flex: 1;
    margin: 0;
    color: #adbbcd;
}

@media (max-width: 760px) {
    .reader-related-grid {
        grid-template-columns: 1fr;
    }

    .reader-actions > a,
    .reader-actions > button {
        width: 100%;
    }
}
