/* Editorial content on category pages (Hipertexto_Seo). Colours from the
   theme tokens in promolibro-refresh.css, with fallbacks. */

.hpt-cat-intro {
    max-width: 72ch;
    margin: 0 0 20px;
    color: var(--promolibro-text-soft, #5f6b76);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hpt-cat-content {
    margin: 40px 0 24px;
    display: grid;
    gap: 28px;
}

.hpt-cat-highlight {
    position: relative;
    padding: 24px 28px;
    background: var(--promolibro-subtle, #f6f9fc);
    border: 1px solid var(--promolibro-line, #d7e1ea);
    border-left: 4px solid var(--promolibro-blue, #03437c);
    border-radius: 8px;
}

.hpt-cat-highlight__title,
.hpt-cat-links__title {
    margin: 0 0 12px;
    color: var(--promolibro-blue-deep, #022d53);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.hpt-cat-highlight__body {
    max-width: 78ch;
    color: var(--promolibro-text, #1f2933);
    line-height: 1.7;
}

.hpt-cat-highlight__body p {
    margin: 0 0 12px;
}

.hpt-cat-highlight__body a {
    color: var(--promolibro-blue, #03437c);
    text-decoration: underline;
}

.hpt-cat-highlight__more summary {
    display: inline-block;
    cursor: pointer;
    color: var(--promolibro-blue, #03437c);
    font-weight: 600;
    list-style: none;
}

.hpt-cat-highlight__more summary::-webkit-details-marker {
    display: none;
}

.hpt-cat-highlight__more summary::after {
    content: " \25BE";
}

.hpt-cat-highlight__more[open] summary::after {
    content: " \25B4";
}

.hpt-cat-highlight__close,
.hpt-cat-highlight__more[open] .hpt-cat-highlight__open {
    display: none;
}

.hpt-cat-highlight__more[open] .hpt-cat-highlight__close {
    display: inline;
}

.hpt-cat-highlight__more[open] summary {
    margin-bottom: 12px;
}

.hpt-cat-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hpt-cat-links__list li {
    margin: 0;
}

.hpt-cat-links__list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--promolibro-line-strong, #b8c9d8);
    border-radius: 999px;
    background: var(--promolibro-surface, #fff);
    color: var(--promolibro-blue, #03437c);
    font-size: 0.95rem;
    text-decoration: none;
}

.hpt-cat-links__list a:hover,
.hpt-cat-links__list a:focus-visible {
    border-color: var(--promolibro-blue, #03437c);
    background: var(--promolibro-subtle, #f6f9fc);
}

.hpt-cat-links__count {
    display: none;
}

@media (max-width: 767px) {
    .hpt-cat-highlight {
        padding: 18px 16px;
    }

    .hpt-cat-content {
        margin-top: 28px;
    }
}
