/* =========================================================
   ROM TAROT — ARTÍCULO INDIVIDUAL
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

.rom-single {
    width: 100%;
    margin: 0;
    padding: 0 0 50px;

    background: #fff;
    color: var(--morado-rom);
}

.rom-single-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   CABECERA
   ========================================================= */

.rom-single-header {
    padding: 26px 0 25px;
}

.rom-single-header__inner {
    max-width: 920px;
    text-align: center;
}

.rom-single-category {
    display: inline-block;

    margin: 0 0 10px;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #a36f82;
    text-decoration: none;
}

.rom-single-category:hover {
    color: var(--morado-rom);
}

.rom-single-title {
    margin: 0;
    padding: 0;

    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4.3vw, 60px);
    line-height: 1.06;
    font-weight: 400;

    color: var(--morado-rom);
}

.rom-single-date {
    display: block;

    margin: 13px 0 0;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    line-height: 1.4;

    color: #9a8c90;
}


/* =========================================================
   IMAGEN PRINCIPAL
   ========================================================= */

.rom-single-hero {
    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #f7f2f4;
}

.rom-single-hero__image {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 8.5;

    margin: 0;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   LAYOUT DEL ARTÍCULO
   ========================================================= */

.rom-single-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 760px)
        minmax(240px, 300px);

    justify-content: space-between;
    align-items: start;

    gap: 65px;

    padding-top: 42px;
}


/* =========================================================
   CUERPO DEL ARTÍCULO
   ========================================================= */

.rom-single-article {
    min-width: 0;

    margin: 0;
    padding: 0;
}

.rom-single-content {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.85;

    color: #554a55;
}

.rom-single-content > *:first-child {
    margin-top: 0;
}

.rom-single-content p {
    margin: 0 0 1.45em;
}

.rom-single-content h2,
.rom-single-content h3,
.rom-single-content h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;

    color: var(--morado-rom);
}

.rom-single-content h2 {
    margin: 1.65em 0 0.55em;

    font-size: 30px;
    line-height: 1.2;
}

.rom-single-content h3 {
    margin: 1.55em 0 0.5em;

    font-size: 24px;
    line-height: 1.25;
}

.rom-single-content h4 {
    margin: 1.4em 0 0.5em;

    font-size: 20px;
    line-height: 1.3;
}

.rom-single-content a {
    color: #9c657a;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rom-single-content a:hover {
    color: var(--morado-rom);
}

.rom-single-content ul,
.rom-single-content ol {
    margin: 0 0 1.5em 1.2em;
}

.rom-single-content li {
    margin-bottom: 0.45em;
}

.rom-single-content blockquote {
    margin: 2em 0;
    padding: 8px 0 8px 24px;

    border-left: 2px solid #d9bdc7;

    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.5;

    color: var(--morado-rom);
}

.rom-single-content blockquote p {
    margin: 0;
}

.rom-single-content img {
    max-width: 100%;
    height: auto;
}

.rom-single-content figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.rom-single-content figcaption {
    margin-top: 7px;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    line-height: 1.5;

    color: #94878c;
}


/* =========================================================
   COLUMNA LATERAL
   ========================================================= */

.rom-single-sidebar {
    position: sticky;
    top: 35px;

    min-width: 0;

    margin: 0;
    padding: 0 0 0 24px;

    border-left: 1px solid rgba(76, 52, 92, 0.14);
}

.admin-bar .rom-single-sidebar {
    top: 67px;
}

.rom-single-sidebar__title {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0 0 15px;
}

.rom-single-sidebar__title span {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: var(--morado-rom);
}

.rom-single-sidebar__title::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(76, 52, 92, 0.14);
}


/* =========================================================
   TARJETAS LATERALES
   ========================================================= */

.rom-single-side-card {
    margin: 0;
    padding: 0;
}

.rom-single-side-card + .rom-single-side-card {
    margin-top: 22px;
    padding-top: 22px;

    border-top: 1px solid rgba(76, 52, 92, 0.12);
}

.rom-single-side-card__image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f7f2f4;
}

.rom-single-side-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.rom-single-side-card:hover img {
    transform: scale(1.018);
}

.rom-single-side-card__content {
    padding-top: 9px;
}

.rom-single-card-category {
    display: block;

    margin: 0 0 5px;

    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: #a36f82;
}

.rom-single-side-card h2 {
    margin: 0;

    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 400;
}

.rom-single-side-card h2 a {
    color: var(--morado-rom);
    text-decoration: none;
}

.rom-single-side-card h2 a:hover {
    color: #a36f82;
}


/* =========================================================
   SEGUIR LEYENDO
   ========================================================= */

.rom-single-more {
    margin-top: 55px;
    padding-top: 28px;
}

.rom-single-section-title {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 0 0 20px;
}

.rom-single-section-title span {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;

    color: var(--morado-rom);
}

.rom-single-section-title::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(76, 52, 92, 0.14);
}


/* =========================================================
   TARJETAS DE SEGUIR LEYENDO
   ========================================================= */

.rom-single-more-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.rom-single-more-card {
    min-width: 0;

    margin: 0;
    padding: 0;
}

.rom-single-more-card__image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f7f2f4;
}

.rom-single-more-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.rom-single-more-card:hover img {
    transform: scale(1.018);
}

.rom-single-more-card__content {
    padding-top: 10px;
}

.rom-single-more-card h2 {
    margin: 0;

    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.17;
    font-weight: 400;
}

.rom-single-more-card h2 a {
    color: var(--morado-rom);
    text-decoration: none;
}

.rom-single-more-card h2 a:hover {
    color: #a36f82;
}

.rom-single-card-date {
    display: block;

    margin-top: 7px;

    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    line-height: 1.4;

    color: #9a8c90;
}


/* =========================================================
   RESET DE ASTRA DENTRO DE NUESTRA PLANTILLA
   ========================================================= */

.rom-single article,
.rom-single article.post,
.rom-single article.hentry {
    border: 0;
    border-radius: 0;

    box-shadow: none;

    background: transparent;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 921px) {

    .rom-single-container {
        width: calc(100% - 32px);
    }

    .rom-single-layout {
        grid-template-columns: 1fr;

        gap: 42px;

        padding-top: 35px;
    }

    .rom-single-sidebar {
        position: static;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;

        padding: 25px 0 0;

        border-left: 0;
        border-top: 0;
    }

    .rom-single-sidebar__title {
        grid-column: 1 / -1;

        margin-bottom: 0;
    }

    .rom-single-side-card + .rom-single-side-card {
        margin-top: 0;
        padding-top: 0;

        border-top: 0;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .rom-single {
        padding-bottom: 35px;
    }

    .rom-single-container {
        width: calc(100% - 26px);
    }

    .rom-single-header {
        padding: 20px 0;
    }

    .rom-single-category {
        margin-bottom: 8px;

        font-size: 9px;
    }

    .rom-single-title {
        font-size: 34px;
        line-height: 1.08;
    }

    .rom-single-date {
        margin-top: 11px;
    }

    .rom-single-hero__image {
        aspect-ratio: 16 / 9;
    }

    .rom-single-layout {
        gap: 35px;
        padding-top: 28px;
    }

    .rom-single-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .rom-single-content h2 {
        font-size: 27px;
    }

    .rom-single-content h3 {
        font-size: 23px;
    }

    .rom-single-content blockquote {
        padding-left: 18px;

        font-size: 20px;
    }


    /* -----------------------------------------
       También puede interesarte
       ----------------------------------------- */

    .rom-single-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;

        padding-top: 20px;

        border-top: 0;
    }

    .rom-single-side-card + .rom-single-side-card {
        padding-top: 24px;

        border-top: 1px solid rgba(76, 52, 92, 0.12);
    }

    .rom-single-side-card h2 {
        font-size: 21px;
    }


    /* -----------------------------------------
       Seguir leyendo
       ----------------------------------------- */

    .rom-single-more {
        margin-top: 42px;
        padding-top: 24px;

        border-top: 0;
    }

    .rom-single-more-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .rom-single-more-card h2 {
        font-size: 21px;
    }

}