/*
Theme Name: Blocksy Child
Template: blocksy
*/

:root {
    /* Colors - Britannica Palette */
    --bri-primary: #14599d;
    --bri-primary-hover: #0e3f70;
    --bri-text-main: #1a1a1a;
    --bri-text-muted: #64748b;
    --bri-text-inverse: #ffffff;
    --bri-surface: #ffffff;
    --bri-surface-subtle: #f8fafc;
    --bri-border: #e2e8f0;

    /* Typography - Giữ nguyên 100% phông chữ hiện tại của Vericath */
    --bri-font-heading: 'Crimson Pro', Georgia, serif;
    --bri-font-body: 'Lora', serif;
    --bri-line-height-base: 1.5;

    /* Radius Tokens */
    --bri-radius-card: 8px;
    --bri-radius-modal: 12px;
    --bri-radius-pill: 100px;

    /* Shadows & Transitions */
    --bri-shadow-subtle: 0 0 8px rgba(0, 0, 0, 0.08);
    --bri-transition-fast: 150ms ease;
}

/* Crimson Pro */
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-vietnamese-italic-400.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-ext-italic-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-vietnamese-normal-400.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-ext-normal-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-vietnamese-normal-600.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-ext-normal-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-normal-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-vietnamese-normal-700.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-ext-normal-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/crimson-pro/crimson-pro-latin-normal-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lora */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora/lora-vietnamese-italic-400.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora/lora-latin-ext-italic-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora/lora-latin-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora/lora-vietnamese-normal-400.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora/lora-latin-ext-normal-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora/lora-latin-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora/lora-vietnamese-normal-600.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora/lora-latin-ext-normal-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora/lora-latin-normal-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lora/lora-vietnamese-normal-700.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lora/lora-latin-ext-normal-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lora/lora-latin-normal-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Global Typography Overrides & Academic Typographic Scale */
body, p, li, .entry-content p, .bri-content p, .vk-content p, .sachle-content p {
    font-family: 'Lora', serif !important;
}

body, .bri-content, .vk-content, .sachle-content {
    font-size: 17px;
    line-height: 1.7;
}

/* Căn đều cho nội dung Desktop, không áp dụng cho body để tránh lỗi giãn chữ ở tiêu đề trang chủ */
.entry-content, .bri-content, .vk-content, .sachle-content {
    text-align: justify;
}

.entry-content p, .bri-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 0.85em;
}

/* Headings & Title Classes */
h1, h2, h3, h4, h5, h6, .heading, .bri-title, .entry-title,
.bri-content h1, .bri-content h2, .bri-content h3, .bri-content h4, .bri-content h5, .bri-content h6 {
    font-family: 'Crimson Pro', serif !important;
}

/* Academic Heading Scale - Desktop Default */
h1, .entry-title, .bri-title {
    font-size: 32px !important;
    line-height: 1.3 !important;
    font-weight: 700;
}

h2, .bri-content h2 {
    font-size: 25px !important;
    line-height: 1.35 !important;
    font-weight: 700;
}

h3, .bri-content h3 {
    font-size: 21px !important;
    line-height: 1.4 !important;
    font-weight: 600;
}

h4, .bri-content h4 {
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 600;
}

h5, .bri-content h5 {
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 600;
}

h6, .bri-content h6 {
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 600;
}

/* Responsive Mobile Scaling (< 768px) */
@media (max-width: 767px) {
    body, .entry-content p, .bri-content p {
        font-size: 16px;
        line-height: 1.65;
    }

    h1, .entry-title, .bri-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    h2, .bri-content h2 {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    h3, .bri-content h3 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    h4, .bri-content h4, h5, .bri-content h5, h6, .bri-content h6 {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }
}

/* =========================================
   MOBILE GLOBAL OPTIMIZATION (CHUẨN BÁO CHÍ)
   (Áp dụng toàn bộ Website)
========================================= */
@media (max-width: 768px) {

    /* 1. OUTER WRAPPERS — Xóa mọi giới hạn, KHÔNG padding (tránh chồng lề) */
    #bri-wrapper,
    .bri-layout,
    .bri-main-container,
    .site-main,
    .site-main .ct-container,
    .site-main > .ct-container,
    .bri-content,
    .vericath-ai-box,
    .related-sections {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Đảm bảo nút trở về đầu trang của theme luôn nổi lên trên cùng */
    .ct-back-to-top {
        z-index: 999999 !important;
    }

    /* 2. CONTENT WRAPPERS — Chỉ lớp NGOÀI CÙNG nhận padding an toàn 14px */
    .main-content-inner,
    .entry-content,
    .vk-content, .sachle-content, .td-content,
    .kt-container, .td-container, .sach-le-app-container,
    .sach-le-single-container, .kt-content-center {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }

    /* 3. Nút NỘI DUNG Floating — Giữ nguyên dạng thanh dọc bên trái */
    #bri-floating-nav {
        display: flex !important;
        position: fixed !important;
        top: 50% !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        border-radius: 0 8px 8px 0 !important;
        width: 44px !important;
        height: 50px !important;
        z-index: 9999 !important;
    }

    /* 4. Dọn sạch Justify, chuẩn hóa Căn trái & Font size */
    .bri-content, .bri-content p, .bri-content ul, .bri-content ol, .bri-content li,
    .vk-content, .vk-content p, .sachle-content, .sachle-content p,
    .entry-content, .entry-content p {
        text-align: left !important;
        font-size: 17.5px !important;
        line-height: 1.65 !important;
    }
}
