/*
 * Tras el Nombre · Guía Buscar a un combatiente de la Guerra Civil v1
 * Se carga únicamente en /buscar-combatiente-guerra-civil/.
 */

/* Protección contra gaps y anchos heredados de Gutenberg / GeneratePress. */
.entry-header { display: none; }
.site-main, .inside-article, .entry-content { margin-top: 0; }
.inside-article { padding: 0; }
.content-area, .site-main, article, .entry-content { width: 100%; max-width: 100%; }
.entry-content { display: block; }
.entry-content > .wp-block-group { margin-block-start: 0; margin-block-end: 0; }

.ten-bcgc-concept-grid > .wp-block-group__inner-container,
.ten-bcgc-document-grid > .wp-block-group__inner-container,
.ten-bcgc-resource-list > .wp-block-group__inner-container,
.ten-bcgc-principles > .wp-block-group__inner-container,
.ten-bcgc-mistake-list > .wp-block-group__inner-container {
    display: contents;
}

/* Evita roturas agresivas de palabras en cualquier tarjeta de la guía. */
.ten-bcgc-concept-card h3, .ten-bcgc-concept-card p,
.ten-bcgc-document-card h3, .ten-bcgc-document-card p,
.ten-bcgc-principle h3, .ten-bcgc-principle p,
.ten-bcgc-mistake h3, .ten-bcgc-mistake p,
.ten-bcgc-resource h3, .ten-bcgc-resource p {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Hero */
.ten-bcgc-hero.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ten-bcgc-hero {
    min-height: 0;
    margin: 0;
    padding-top: 1rem;
    padding-bottom: 2.4rem;
    background: var(--ten-white);
}

.ten-bcgc-hero__copy { margin-left: 0; }

.ten-bcgc-back {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 650;
}
.ten-bcgc-back a { text-decoration: none; }

.ten-bcgc-page__title {
    max-width: 1040px;
    margin: 0 0 1.25rem;
    color: var(--ten-navy);
    font-size: clamp(2.7rem, 5.5vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.ten-bcgc-page__lead {
    max-width: 860px;
    margin: 0 0 1rem;
    font-size: clamp(1.16rem, 1.7vw, 1.32rem);
    line-height: 1.55;
}

.ten-bcgc-hero__copy > p:not(.ten-eyebrow):not(.ten-bcgc-back):not(.ten-bcgc-page__lead) {
    max-width: 860px;
    color: var(--ten-muted);
    line-height: 1.72;
}

.ten-bcgc-hero__actions,
.ten-bcgc-negative__actions,
.ten-bcgc-related__actions,
.ten-bcgc-final__actions { margin-top: 1.6rem; }

/* Lectura */
.ten-bcgc-meaning .ten-reading-width,
.ten-bcgc-identity .ten-reading-width,
.ten-bcgc-documents .ten-reading-width,
.ten-bcgc-unit .ten-reading-width,
.ten-bcgc-resources .ten-reading-width,
.ten-bcgc-negative .ten-reading-width,
.ten-bcgc-mistakes .ten-reading-width,
.ten-bcgc-related .ten-reading-width,
.ten-bcgc-boundary .ten-reading-width,
.ten-bcgc-final .ten-reading-width { margin-left: 0; }

.ten-bcgc-meaning,
.ten-bcgc-resources { scroll-margin-top: 6rem; }

/* Conceptos */
.ten-bcgc-concept-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.ten-bcgc-concept-card,
.ten-bcgc-document-card,
.ten-bcgc-mistake {
    min-width: 0;
    padding: 1.4rem;
    border: 1px solid var(--ten-border);
    border-top: 3px solid var(--ten-copper);
    background: var(--ten-white);
}

.ten-bcgc-card__number,
.ten-bcgc-mistake__number {
    margin: 0 0 0.55rem;
    color: var(--ten-copper-text);
    font-size: 0.77rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.ten-bcgc-concept-card h3,
.ten-bcgc-document-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

.ten-bcgc-concept-card p:last-child,
.ten-bcgc-document-card p:last-child,
.ten-bcgc-mistake p:last-child {
    margin-bottom: 0;
    color: var(--ten-muted);
    line-height: 1.62;
}

.ten-bcgc-callout,
.ten-bcgc-warning,
.ten-bcgc-directory-note {
    margin-top: 2.75rem;
    padding: 1.2rem 1.25rem;
    border-left: 3px solid var(--ten-copper);
    background: var(--ten-white);
}

.ten-bcgc-callout__label {
    margin: 0 0 0.45rem;
    color: var(--ten-copper-text);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.ten-bcgc-callout p:last-child,
.ten-bcgc-warning p:last-child,
.ten-bcgc-directory-note p:last-child { margin-bottom: 0; }

/* Identidad */
.ten-bcgc-checklist {
    margin: 1.4rem 0 0;
    padding-left: 1.25rem;
}
.ten-bcgc-checklist li { margin-bottom: 0.7rem; }
.ten-bcgc-identity .ten-bcgc-warning { background: var(--ten-warm); }

/* Documentación */
.ten-bcgc-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.ten-bcgc-document-card--wide { grid-column: 1 / -1; }

/* Unidad y persona */
.ten-bcgc-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.ten-bcgc-principle {
    min-width: 0;
    padding: 1.35rem;
    border: 1px solid rgba(255,255,255,0.22);
}

.ten-bcgc-principle h3 {
    margin: 0 0 0.6rem;
    color: var(--ten-white);
    font-size: 1.35rem;
}

.ten-bcgc-principle p:last-child {
    margin-bottom: 0;
    color: rgba(255,255,255,0.84);
    line-height: 1.62;
}

/* Recursos */
.ten-bcgc-resource-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--ten-border);
}
.ten-bcgc-resource {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--ten-border);
}
.ten-bcgc-resource__kicker {
    margin: 0 0 0.35rem;
    color: var(--ten-copper-text);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}
.ten-bcgc-resource h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.25;
}
.ten-bcgc-resource h3 a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}
.ten-bcgc-resource p:last-child {
    max-width: 880px;
    margin-bottom: 0;
    color: var(--ten-muted);
}
.ten-bcgc-directory-note { margin-top: 1.7rem; }

/* Errores: dos columnas para conservar ancho útil. */
.ten-bcgc-mistake-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.ten-bcgc-mistake > .wp-block-group__inner-container {
    width: 100%;
    max-width: none;
}
.ten-bcgc-mistake h3 {
    margin: 0 0 0.55rem;
    font-size: 1.28rem;
    line-height: 1.24;
}

/* Frontera */
.ten-bcgc-boundary__statement {
    margin: 1.7rem 0 0;
    padding: 1rem 0 1rem 1.1rem;
    border-left: 3px solid var(--ten-copper);
    color: var(--ten-navy);
    font-family: var(--ten-font-headings);
    font-size: clamp(1.22rem, 2vw, 1.5rem);
    line-height: 1.45;
}


/* Ajustes v1.1 de ritmo vertical */
.ten-bcgc-meaning .ten-bcgc-callout {
    margin-top: 3.5rem;
}

/* Reducimos el aire entre “Recursos oficiales” y el siguiente bloque. */
.ten-bcgc-resources {
    padding-bottom: 2.4rem;
}

.ten-bcgc-negative {
    padding-top: 2.4rem;
}

.ten-bcgc-resources + .ten-bcgc-negative {
    margin-top: 0;
}

/* Botones */
.ten-bcgc-hero .wp-block-buttons,
.ten-bcgc-negative .wp-block-buttons,
.ten-bcgc-related .wp-block-buttons,
.ten-bcgc-final .wp-block-buttons { gap: 0.75rem; }

@media (max-width: 900px) {
    .ten-bcgc-concept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ten-bcgc-concept-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .ten-bcgc-concept-grid,
    .ten-bcgc-document-grid,
    .ten-bcgc-principles,
    .ten-bcgc-mistake-list {
        grid-template-columns: 1fr;
    }
    .ten-bcgc-concept-card:last-child,
    .ten-bcgc-document-card--wide { grid-column: auto; }
    .ten-bcgc-page__title { font-size: clamp(2.35rem, 11vw, 3.45rem); }
}

@media (max-width: 600px) {
    .ten-bcgc-hero {
        padding-top: 0.65rem;
        padding-bottom: 1.4rem;
    }
    .ten-bcgc-hero__actions .wp-block-button,
    .ten-bcgc-negative__actions .wp-block-button,
    .ten-bcgc-related__actions .wp-block-button,
    .ten-bcgc-final__actions .wp-block-button { width: 100%; }

    .ten-bcgc-hero__actions .wp-block-button__link,
    .ten-bcgc-negative__actions .wp-block-button__link,
    .ten-bcgc-related__actions .wp-block-button__link,
    .ten-bcgc-final__actions .wp-block-button__link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .ten-bcgc-concept-card,
    .ten-bcgc-document-card,
    .ten-bcgc-principle,
    .ten-bcgc-mistake { padding: 1.1rem; }

    .ten-bcgc-callout,
    .ten-bcgc-warning { margin-top: 2.2rem; }
}
