/*
Theme Name: AffiliateCMS Child
Theme URI: https://lat.vn/
Description: Child theme for AffiliateCMS Theme. Add your custom styles and overrides here.
Author: AffiliateCMS Team
Author URI: https://lat.vn/
Template: affiliateCMS-theme
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliatecms-child
*/

/* ==========================================================================
   Custom Styles - Add your overrides below
   ========================================================================== */

/* ==========================================================================
   2026-11-27 accessibility fixes (technical audit 2026-11-27 finding 12, user approved).
   Colors come only from tokens; no new hex values.
   ========================================================================== */

/* The Customizer derives --color-primary-light as #78879d from the dark brand primary,
   so dark text on "View All", "Load more" and related links reached only 4.02:1.
   Light mode uses a soft tint of the brand primary instead (dark mode keeps its own value). */
html:root:not([data-theme="dark"]) {
    --color-primary-light: rgba(var(--color-primary-rgb), 0.1);
}

/* Card meta (author, views, date), copyright and the empty comment note: muted text that meets 4.5:1. */
.post-card .post-card__footer-grid,
.footer__copyright {
    color: var(--color-text-muted);
}

.comment-list__empty-text {
    color: var(--color-text-secondary);
}

/* Touch targets: footer policy links at least 24px tall. */
.footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/* Related slider dots: 24px hit area, the visible dot keeps its original size. */
.related-slider__dots {
    gap: 0;
}

.related-slider__dot,
.related-slider__dot.is-active,
.related-slider__dot:hover,
[data-theme="dark"] .related-slider__dot {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: transparent;
    transform: none;
}

.related-slider__dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    transform: translate(-50%, -50%);
    transition: all var(--duration-200) var(--ease-out);
}

.related-slider__dot:hover::before {
    background-color: var(--color-primary-hover);
}

.related-slider__dot.is-active::before {
    width: 24px;
    background-color: var(--color-primary);
}

/* ==========================================================================
   2026-11-27 self hosted Inter (SIL OFL 1.1, assets/fonts/Inter-OFL.txt), replaces Google Fonts.
   One variable file per subset covers the 400 to 700 weights the theme uses.
   ========================================================================== */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin.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;
}

/* Bootstrap Icons load without blocking render; every glyph is 1em wide, so reserve that width
   before the icon stylesheet arrives and text next to an icon does not move. */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block;
    width: 1em;
}
