/* Semantic UX layer for shared content templates. Keeps TuAppPara's existing brand. */
.tp-semantic-header {
    background: #f7fbff;
    border-top: 4px solid #ffc258;
    border-bottom: 1px solid #dbe9f5;
    margin: 0 0 28px;
    padding: 24px 28px 26px;
}

.tp-semantic-eyebrow {
    color: #1b86e8;
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tp-semantic-header .archive__title {
    margin-bottom: 12px;
}

.tp-semantic-header .archive__desc,
.tp-semantic-header .archive__desc p {
    font-size: 18px;
    line-height: 1.55;
}

.tp-semantic-header .archive__desc p:last-child {
    margin-bottom: 0;
}

.tp-semantic-meta {
    border-top: 1px solid #dbe9f5;
    display: flex;
    flex-wrap: wrap;
    font-size: 15px;
    gap: 10px 22px;
    margin-top: 18px;
    padding-top: 14px;
}

.tp-semantic-meta span::before {
    color: #1b86e8;
    content: "✓";
    font-weight: 700;
    margin-right: 7px;
}

.tp-topic-nav {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
    padding-bottom: 24px;
}

.tp-topic-nav > strong {
    color: #25292c;
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
}

.tp-topic-nav ul {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-topic-nav a {
    border-left: 3px solid #ffc258;
    color: #1b86e8;
    display: block;
    font-weight: 600;
    padding: 8px 10px;
    text-decoration: none;
}

.tp-topic-nav a:hover,
.tp-topic-nav a:focus {
    background: #f7fbff;
    color: #25292c;
    text-decoration: underline;
}

.tp-results-title {
    border-bottom: 3px solid #1b86e8;
    color: #25292c;
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 10px;
}

.tp-search-refine {
    align-items: stretch;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tp-search-refine input {
    min-width: 0;
}

.tp-search-refine button {
    border-radius: 8px;
    padding: 12px 24px;
}

.tp-search-topics {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 15px;
    gap: 8px 14px;
    margin-top: 18px;
}

.tp-search-topics a {
    border-bottom: 2px solid #ffc258;
    text-decoration: none;
}

.tp-empty-results {
    border: 1px solid #dbe9f5;
    padding: 24px;
}

.tp-article-facts {
    background: #f7fbff;
    border-left: 4px solid #ffc258;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 22px;
    padding: 14px 16px;
}

.tp-article-facts span,
.tp-article-facts .tp-answer-link {
    color: #25292c;
    font-size: 14px;
    line-height: 1.35;
}

.tp-article-facts strong {
    color: #1b86e8;
    display: block;
    font-size: 12px;
    letter-spacing: .04em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.tp-article-facts .tp-answer-link {
    align-self: center;
    color: #1b86e8;
    font-weight: 700;
    text-align: right;
}

.tp-article-answer {
    scroll-margin-top: 100px;
}

.tp-intent-panel {
    --tp-intent-accent: #1b86e8;
    background: #fff;
    border: 1px solid #dbe9f5;
    border-left: 5px solid var(--tp-intent-accent);
    margin: 0 0 22px;
    padding: 18px 20px;
}

.tp-intent-panel--comparativa,
.tp-intent-panel--review {
    --tp-intent-accent: #ffc258;
}

.tp-intent-panel--solucion,
.tp-intent-panel--seguridad {
    --tp-intent-accent: #e56a54;
}

.tp-intent-panel--actualidad {
    --tp-intent-accent: #5a9d72;
}

.tp-intent-type,
.tp-intent-label,
.tp-intent-summary {
    margin: 0;
}

.tp-intent-type {
    color: var(--tp-intent-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.tp-intent-label {
    color: #25292c;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.tp-intent-summary {
    color: #394957;
    font-size: 17px;
    line-height: 1.55;
}

/* Reusable in-article modules. Authors select the variant by editorial type. */
.tap-semantic-module {
    background: #f7fbff;
    border: 1px solid #dbe9f5;
    border-top: 4px solid #1b86e8;
    clear: both;
    margin: 1.6em 0;
    padding: 18px 20px;
}

.tap-semantic-module--comparativa,
.tap-semantic-module--veredicto {
    border-top-color: #ffc258;
}

.tap-semantic-module--diagnostico,
.tap-semantic-module--riesgo {
    border-top-color: #e56a54;
}

.tap-semantic-module--cambio {
    border-top-color: #5a9d72;
}

.tap-semantic-module > :first-child {
    margin-top: 0;
}

.tap-semantic-module > :last-child {
    margin-bottom: 0;
}

.tap-semantic-module__label {
    color: #25292c;
    font-weight: 700;
}

.post-info-bottom a {
    color: inherit;
    text-decoration: none;
}

.post-info-bottom a:hover,
.post-info-bottom a:focus {
    color: #1b86e8;
    text-decoration: underline;
}

.tp-author-role {
    color: #4d5d6b;
    margin: 4px 0 0;
}

@media only screen and (max-width: 640px) {
    .tp-semantic-header {
        margin: 18px 0 24px;
        padding: 18px 16px 20px;
    }

    .tp-semantic-header .archive__title {
        font-size: 29px;
    }

    .tp-semantic-header .archive__desc,
    .tp-semantic-header .archive__desc p {
        font-size: 17px;
    }

    .tp-topic-nav ul {
        grid-template-columns: 1fr 1fr;
    }

    .tp-search-refine {
        flex-direction: column;
    }

    .tp-search-refine button {
        width: 100%;
    }

    .tp-article-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 10px;
    }

    .tp-article-facts .tp-answer-link {
        text-align: left;
    }

    .tp-intent-panel,
    .tap-semantic-module {
        padding: 16px;
    }

    .tp-intent-summary {
        font-size: 16px;
    }
}

@media only screen and (max-width: 380px) {
    .tp-topic-nav ul,
    .tp-article-facts {
        grid-template-columns: 1fr;
    }
}
