/************************************************************
 * Beyond The Veil — Global Responsive System (v1.1 SAFE)
 * Applies ONLY to mobile ≤ 768px
 ************************************************************/

@media (max-width: 768px) {

    /* -------------------------------------------------------
       FLUID TYPOGRAPHY
       ------------------------------------------------------- */
    html {
        font-size: clamp(14px, 2.2vw, 16px);
    }

    h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    h2 { font-size: clamp(1.4rem, 4.8vw, 2.0rem); }
    h3 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
    h4 { font-size: clamp(1.05rem, 3.5vw, 1.3rem); }

    body, p, li {
        line-height: 1.55;
    }

    /* -------------------------------------------------------
       GLOBAL SPACING COMPRESSION
       ------------------------------------------------------- */
    .wp-block-group,
    .entry-content,
    .site-main,
    .ct-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    p {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    li {
        margin-bottom: 0.5rem;
    }

    .wp-block {
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* -------------------------------------------------------
       GUTENBERG SAFETY OVERRIDES
       ------------------------------------------------------- */
    .wp-block-columns {
        flex-direction: column !important;
        gap: 1.2rem !important;
    }

    .wp-block-column {
        margin-bottom: 1rem !important;
    }

    .wp-block-button__link {
        padding: 0.65em 1.1em !important;
        font-size: 0.9rem !important;
        letter-spacing: 1.5px !important;
    }

    /* -------------------------------------------------------
       MEDIA ELEMENTS (Images, Video, Embeds)
       ------------------------------------------------------- */
    .entry-content img,
    .entry-content video,
    .entry-content iframe,
    .wp-block-image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }

    figure {
        margin: 1rem 0 !important;
    }

    figcaption {
        font-size: 0.8rem;
        opacity: 0.75;
    }

    /* -------------------------------------------------------
       GLOBAL CARD / PANEL COMPONENTS
       ------------------------------------------------------- */
    .btv-card,
    .btv-panel,
    .btv-box {
        padding: 1.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .btv-card-title,
    .btv-panel-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }

    /* -------------------------------------------------------
       TABLE RESPONSIVENESS
       ------------------------------------------------------- */
    table {
        width: 100% !important;
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        border-spacing: 0;
    }

    th,
    td {
        padding: 0.5rem 0.7rem;
    }

    /* -------------------------------------------------------
       UTILITY CLASSES
       ------------------------------------------------------- */
    .btv-hide-mobile {
        display: none !important;
    }

    .btv-center {
        text-align: center !important;
    }

    .btv-soft {
        padding: 1rem !important;
    }

    .btv-full {
        width: 100% !important;
        max-width: none !important;
    }

    /* -------------------------------------------------------
       TERMINAL-CINEMATIC TWEAKS
       ------------------------------------------------------- */
    body {
        color: rgba(192, 192, 192, 0.88);
    }

    a {
        font-size: 0.92rem;
        letter-spacing: 1px;
    }

    .divider {
        width: 160px !important;
        margin: 0.75rem auto !important;
    }

} /* END MOBILE MEDIA QUERY */
/* ============================================================
   TABLET FIX ONLY (769px–1024px)
   Lower the Scroll Indicator below the pentagon.
============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

    .btv-scroll-indicator {
        position: absolute !important;
        top: auto !important;          /* cancel desktop positioning */
        bottom: 20px !important;       /* adjust as needed */
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
    }
}
