/* base-post: scoped styles. */

.editorial-page,.editorial-article {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.editorial-heading {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.editorial-heading h1,.editorial-article h1 {
    font-size: clamp(2rem,4vw,3.25rem);
    line-height: 1.15;
    margin: .6rem 0 1rem;
    color: #28272b;
}

.editorial-heading>p:last-child,.editorial-article-heading>p {
    color: #73717a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.editorial-grid {
    columns: 3 260px;
    column-gap: 1.25rem;
}

.editorial-card {
    break-inside: avoid;
    margin: 0 0 1.25rem;
    background: #fff;
    border: 1px solid #eeeef1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(30,25,35,.055);
    transition: transform .2s ease,box-shadow .2s ease;
}

.editorial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(30,25,35,.11);
}

.editorial-cover {
    display: grid;
    place-items: center;
    min-height: 190px;
    background: linear-gradient(135deg,#ffe9eb,#f8dce7);
    color: #db788b;
    font-size: 4rem;
    font-weight: 800;
}

.editorial-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
}

.editorial-card-body {
    padding: 1.2rem 1.35rem 1.4rem;
}

.editorial-card time,.editorial-article time {
    color: #97949e;
    font-size: .82rem;
}

.editorial-card h2 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: .55rem 0;
}

.editorial-card h2 a {
    color: #29272d;
    text-decoration: none;
}

.editorial-card p {
    color: #77747d;
    line-height: 1.65;
    margin: 0;
}

.editorial-empty {
    max-width: 740px;
    margin: 2rem auto 5rem;
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    color: #73717a;
}

.editorial-empty a,.editorial-back {
    color: #c95f70;
    text-decoration: none;
}

.editorial-article {
    max-width: 820px;
}

.editorial-back {
    display: inline-block;
    margin-bottom: 2rem;
}

.editorial-article-heading {
    margin-bottom: 2.5rem;
}

.editorial-article-heading img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 1.75rem;
}

.editorial-content {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #403e44;
}

.editorial-content .legal-meta {
    width: fit-content;
    margin: 0 0 1.5rem;
    padding: .45rem .85rem;
    border: 1px solid #dcece5;
    border-radius: 999px;
    background: #f2f8f3;
    color: #547367;
    font-size: .85rem;
}

.editorial-content .legal-source-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: .25rem 0 1.25rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #073d3a;
    font-weight: 650;
    text-decoration: none;
}

.editorial-content .legal-source-link:hover {
    background: #00c4c4;
}

.editorial-content h2 {
    margin-top: 2.2em;
    line-height: 1.3;
}

.editorial-content img {
    max-width: 100%;
    height: auto;
}

@media(max-width:1024px) {
    .editorial-page,.editorial-article {
        padding: 2rem 1rem 2rem;
    }

    .editorial-grid {
        columns: 2 220px;
        column-gap: .75rem;
    }

    .editorial-card {
        margin-bottom: .75rem;
        border-radius: 14px;
    }

    .editorial-card-body {
        padding: 1rem;
    }

    .editorial-heading {
        margin-bottom: 1.5rem;
    }
}

@media(max-width:560px) {
    .editorial-grid {
        columns: 2 145px;
        column-gap: .6rem;
    }

    .editorial-cover {
        min-height: 140px;
    }

    .editorial-card-body {
        padding: .8rem;
    }

    .editorial-card h2 {
        font-size: 1rem;
    }

    .editorial-card p {
        font-size: .88rem;
    }

    .editorial-page,.editorial-article {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

.editorial-cover {
    aspect-ratio: 2/1;
    min-height: 0;
    overflow: hidden;
}

.editorial-cover img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.editorial-article-heading img {
    aspect-ratio: 2/1;
    max-height: none;
    object-fit: cover;
}

.editorial-content p {
    margin: 1em 0;
}

.editorial-content h2 {
    color: #33303b;
}

.editorial-source {
    border-top: 1px solid #eeeaf0;
    margin-top: 3rem;
    padding-top: 1rem;
    color: #77747d;
    font-size: .88rem;
}

.editorial-source a {
    color: #c95f70;
}

.editorial-card time {
    display: block;
}

.editorial-content figure {
    margin: 1.5rem 0;
}

.editorial-content figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.editorial-content figure:has(>figure) {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.editorial-content figure>figure {
    flex: 1 1 180px;
    margin: 0;
}

.editorial-content ul,.editorial-content ol {
    padding-left: 1.5em;
}

.editorial-content li {
    margin: .35em 0;
}

.post-topic-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.post-topic-navigation a {
    padding: 8px 14px;
    border: 1px solid #dcece9;
    border-radius: 999px;
    color: #426a6b;
    text-decoration: none;
    background: #fff;
}

.post-topic-navigation a[aria-current] {
    background: #00bdbd;
    border-color: #00bdbd;
    color: white;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.post-tags span {
    border-radius: 999px;
    background: #eaf7f5;
    color: #397975;
    padding: 4px 10px;
    font-size: 12px;
}

.editorial-card-body > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
}

.post-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dcece9;
    border-radius: 10px;
    background: #fff;
    color: #397975;
    text-decoration: none;
}

.post-pagination a[aria-current] {
    background: #00bdbd;
    border-color: #00bdbd;
    color: #fff;
}

.post-pagination a:focus-visible {
    outline: 2px solid #008f91;
    outline-offset: 3px;
}

.post-pagination-count {
    font-size: 13px;
    color: #888;
    padding: 0 8px;
}
