/*
Theme Name: Satellite Theme4 — Gamxo
Theme URI: https://satellites.mobtools.ai/
Description: Dark gaming news/magazine skin adapted from the Gamxo (RadiusTheme) demo. Black "Latest News" ticker topbar, a header that sits transparent over a full-bleed hero slider and turns solid white on scroll, a single vivid crimson accent, Rubik throughout, red notched section-header bars with a chevron, dark overlay cards + light horizontal list cards, a Recent/Popular sidebar, category grids, a Latest list with an outlined READ MORE, and a near-black multi-column footer. Motion: fade-up reveals, hero + ticker sliders, hover image-zoom. Visuals only — all integrations come from the shared Satellite Skin Core mu-plugin.
Author: MobTools
Version: 1.0.2
License: GPL-2.0-or-later
Text Domain: satellite-theme4
*/

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* THEME-OWNED palette (does NOT inherit satellite_primary_color) */
    --t4-primary: #f80136;
    --t4-primary-2: #d4002e;
    --t4-ink: #141414;
    --t4-ink-2: #444444;
    --t4-ink-3: #8a8a8a;
    --t4-on-dark: #e6e5e5;
    --t4-bg: #ffffff;
    --t4-bg-alt: #f5f5f7;
    --t4-line: #ececec;
    --t4-topbar: #0d0d0d;
    --t4-dark: #1c1d21;
    --t4-footer: #141414;

    --t4-font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --t4-head: "Rubik", sans-serif;
    --t4-display: "Rubik", sans-serif;
    --t4-ui: "Rubik", sans-serif;

    --t4-container: 1200px;
    --t4-radius: 4px;
    --t4-shadow: 0 10px 30px rgba(0, 0, 0, .10);
    --t4-shadow-sm: 0 4px 14px rgba(0, 0, 0, .07);
    --t4-topbar-h: 44px;
    --t4-header-h: 84px;
    --t4-ease: cubic-bezier(.25, .46, .45, .94);
}

/* ─── Base ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--t4-font);
    font-size: 16px;
    line-height: 1.9;
    color: var(--t4-ink-2);
    background: var(--t4-bg);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
/* The platform base stylesheet underlines all links; scope underlines to the
   article/page prose only (titles, nav, cards, footer must stay clean). */
.theme-theme4 a { text-decoration: none; }
.theme-theme4 .t4-article-body a,
.theme-theme4 .t4-page-body a { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--t4-head); color: var(--t4-ink); margin: 0 0 .5em; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1.4em; }

.t4-container { max-width: var(--t4-container); margin: 0 auto; padding: 0 20px; width: 100%; }
.t4-container--narrow { max-width: 820px; }
.t4-site-main { min-height: 40vh; }

/* ─── Reading progress ───────────────────────────────────────────────── */
.t4-reading-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000;
    background: var(--t4-primary); transform: scaleX(0); transform-origin: 0 50%;
}

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.t4-topbar { background: var(--t4-topbar); color: #cfcfcf; }
.t4-topbar-inner { display: flex; align-items: center; gap: 20px; min-height: var(--t4-topbar-h); }
.t4-ticker { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; }
.t4-ticker-label {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    background: var(--t4-primary); color: #fff; font-family: var(--t4-ui);
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    padding: 0 14px; height: var(--t4-topbar-h); margin-right: 18px;
}
.t4-ticker-label svg { flex: none; }
.t4-ticker-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.t4-ticker-track { display: flex; flex-wrap: nowrap; width: 100%; will-change: transform; }
.t4-ticker-item {
    flex: 0 0 100%; width: 100%; max-width: 100%; font-size: 14px; color: #dcdcdc;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--t4-topbar-h);
}
.t4-ticker-item:hover { color: #fff; }
.t4-topbar-social { display: flex; gap: 14px; flex: none; }
.t4-topbar-social a { color: #bdbdbd; display: inline-flex; }
.t4-topbar-social a:hover { color: var(--t4-primary); }

/* ─── Header ─────────────────────────────────────────────────────────── */
.t4-header { background: var(--t4-bg); transition: background .3s var(--t4-ease), box-shadow .3s var(--t4-ease); }
.t4-header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--t4-header-h); }
.t4-header--solid { position: sticky; top: 0; z-index: 900; box-shadow: var(--t4-shadow-sm); }

/* overlay over hero on home */
.t4-hero-wrap { position: relative; }
.t4-header--overlay {
    position: absolute; top: 0; left: 0; right: 0; z-index: 900; background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.t4-header--overlay .t4-brand-name,
.t4-header--overlay .t4-primary-list > li > a,
.t4-header--overlay .t4-search-toggle,
.t4-header--overlay .t4-menu-toggle span { color: #fff; }
.t4-header--overlay .t4-menu-toggle span { background: #fff; }
.t4-header--overlay .t4-brand-tag { color: rgba(255, 255, 255, .7); }

/* stuck (scrolled) → solid fixed white */
.t4-header.is-stuck {
    position: fixed; top: 0; left: 0; right: 0; z-index: 950;
    background: #fff; box-shadow: var(--t4-shadow-sm); border-bottom: 0;
    animation: t4-drop .35s var(--t4-ease);
}
.t4-header.is-stuck .t4-brand-name,
.t4-header.is-stuck .t4-primary-list > li > a,
.t4-header.is-stuck .t4-search-toggle { color: var(--t4-ink); }
.t4-header.is-stuck .t4-brand-tag { color: var(--t4-ink-3); }
.t4-header.is-stuck .t4-menu-toggle span { background: var(--t4-ink); }
@keyframes t4-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.t4-brand { display: block; flex: none; line-height: 1; }
.t4-brand-name {
    display: block; font-family: var(--t4-display); font-weight: 700; font-size: 26px;
    text-transform: uppercase; letter-spacing: .08em; color: var(--t4-ink);
}
.t4-brand-tag {
    display: block; font-size: 10px; font-weight: 500; text-transform: uppercase;
    letter-spacing: .28em; color: var(--t4-ink-3); margin-top: 4px;
}

.t4-nav { margin-left: auto; min-width: 0; }
.t4-primary-list { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; margin: 0; padding: 0; }
.t4-primary-list a {
    font-family: var(--t4-ui); font-size: 14px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .02em; color: var(--t4-ink); transition: color .2s var(--t4-ease); white-space: nowrap;
}
.t4-primary-list a:hover, .t4-primary-list .current-menu-item > a { color: var(--t4-primary); }
.t4-primary-list ul { display: none; }

.t4-header-actions { display: flex; align-items: center; gap: 16px; flex: none; margin-left: 8px; }
.t4-search-toggle { background: none; border: 0; color: var(--t4-ink); cursor: pointer; padding: 4px; display: inline-flex; }
.t4-search-toggle:hover { color: var(--t4-primary); }
.t4-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.t4-menu-toggle span { width: 24px; height: 2px; background: var(--t4-ink); transition: .25s var(--t4-ease); }
.t4-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t4-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.t4-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.t4-search-panel { border-top: 1px solid var(--t4-line); background: #fff; padding: 16px 0; }
.t4-searchform { display: flex; max-width: 640px; margin: 0 auto; border: 1px solid var(--t4-line); border-radius: var(--t4-radius); overflow: hidden; }
.t4-searchform input { flex: 1; border: 0; padding: 12px 16px; font: inherit; outline: none; }
.t4-searchform button { border: 0; background: var(--t4-primary); color: #fff; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; }

/* ─── Hero slider ────────────────────────────────────────────────────── */
.t4-hero { position: relative; min-height: 660px; background: #0d0d0d; overflow: hidden; }
.t4-hero-slides { position: relative; height: 660px; }
.t4-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--t4-ease); }
.t4-hero-slide.is-active { opacity: 1; visibility: visible; }
.t4-hero-media { position: absolute; inset: 0; }
.t4-hero-media img, .t4-hero-media .t4-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.t4-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, rgba(0,0,0,.6), transparent 55%); }
.t4-hero .t4-container { position: relative; height: 100%; display: flex; align-items: flex-end; }
.t4-hero-content { position: relative; max-width: 640px; color: #fff; padding: 0 0 92px; }
.t4-hero-date { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #e2e2e2; margin: 16px 0 10px; }
.t4-hero-title { font-size: 46px; line-height: 1.15; font-weight: 700; color: #fff; margin: 0 0 14px; }
.t4-hero-title a { color: #fff; }
.t4-hero-title a:hover { color: var(--t4-primary); }
.t4-hero-excerpt { font-size: 16px; color: #dcdcdc; margin: 0 0 16px; max-width: 560px; }
.t4-hero-meta { display: flex; gap: 22px; font-size: 13px; color: #cfcfcf; }
.t4-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.t4-hero-meta svg { color: var(--t4-primary); }
.t4-hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .18); color: #fff; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: .25s var(--t4-ease);
}
.t4-hero-nav:hover { background: var(--t4-primary); }
.t4-hero-prev { left: 24px; }
.t4-hero-next { right: 24px; }
.t4-hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 5; }
.t4-hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; }
.t4-hero-dot.is-active { background: var(--t4-primary); border-color: var(--t4-primary); }

/* ─── Layout (main + sidebar) ────────────────────────────────────────── */
.t4-home-main, .t4-single-main, .t4-archive-main { padding: 56px 0 70px; background: var(--t4-bg); }
.t4-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.t4-main { min-width: 0; }
.t4-block { margin-bottom: 44px; }

/* ─── Section header (red notched bar) ───────────────────────────────── */
.t4-section-head {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    background: var(--t4-primary); color: #fff; padding: 13px 20px; border-radius: var(--t4-radius);
    margin-bottom: 26px;
}
.t4-section-head::after {
    content: ""; position: absolute; left: 26px; top: 100%;
    border: 7px solid transparent; border-top-color: var(--t4-primary);
}
.t4-section-title { color: #fff; font-size: 20px; font-weight: 600; margin: 0; letter-spacing: .01em; }
.t4-section-head--compact .t4-section-title { font-size: 17px; }
.t4-section-more {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6);
    display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: .2s var(--t4-ease);
}
.t4-section-more:hover { background: #fff; color: var(--t4-primary); }

/* ─── Pills (ribbon) ─────────────────────────────────────────────────── */
.t4-pill {
    display: inline-block; background: var(--pill, var(--t4-primary)); color: #fff;
    font-family: var(--t4-ui); font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; padding: 5px 16px 5px 12px; line-height: 1.4;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}
.t4-pill--overlay { position: absolute; top: 16px; left: 16px; z-index: 3; }

/* ─── Overlay card ───────────────────────────────────────────────────── */
.t4-ov-card { position: relative; border-radius: var(--t4-radius); overflow: hidden; background: #0d0d0d; }
.t4-ov-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.t4-ov-media img, .t4-ov-media .t4-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t4-ease); }
.t4-ov-card:hover .t4-ov-media img { transform: scale(1.06); }
.t4-ov-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }
.t4-ov-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; z-index: 2; }
.t4-ov-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #d7d7d7; margin-bottom: 6px; }
.t4-ov-title { font-size: 18px; line-height: 1.32; font-weight: 600; margin: 0; }
.t4-ov-title a { color: #fff; }
.t4-ov-title a:hover { color: var(--t4-primary); }
.t4-ov-card--lg .t4-ov-media { aspect-ratio: 16 / 11; }
.t4-ov-card--lg .t4-ov-title { font-size: 26px; }

/* ─── Featured block ─────────────────────────────────────────────────── */
.t4-featured { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: stretch; }
.t4-featured-lead { display: flex; }
.t4-featured-lead .t4-ov-card { width: 100%; }
.t4-featured-list { display: flex; flex-direction: column; gap: 4px; }

/* ─── List card ──────────────────────────────────────────────────────── */
.t4-list-card { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--t4-line); align-items: flex-start; }
.t4-list-card:last-child { border-bottom: 0; }
.t4-list-thumb { flex: 0 0 92px; width: 92px; height: 72px; border-radius: var(--t4-radius); overflow: hidden; }
.t4-list-thumb img, .t4-list-thumb .t4-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.t4-list-body { min-width: 0; }
.t4-list-cat { font-family: var(--t4-ui); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.t4-list-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--t4-ink-3); margin: 3px 0; }
.t4-list-title { font-size: 15px; line-height: 1.4; font-weight: 500; margin: 0; }
.t4-list-title a:hover { color: var(--t4-primary); }

/* ─── Category duo ───────────────────────────────────────────────────── */
.t4-cat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 44px; }
.t4-cat-duo .t4-block { margin-bottom: 0; }
.t4-cat-duo .t4-ov-card { margin-bottom: 8px; }
.t4-cat-duo .t4-ov-card .t4-ov-media { aspect-ratio: 16 / 10; }
.t4-duo-list { display: flex; flex-direction: column; }

/* ─── Grids ──────────────────────────────────────────────────────────── */
.t4-grid { display: grid; gap: 24px; }
.t4-grid-2 { grid-template-columns: repeat(2, 1fr); }
.t4-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Latest list ────────────────────────────────────────────────────── */
.t4-latest-list { display: flex; flex-direction: column; gap: 30px; }
.t4-latest-card { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.t4-latest-thumb { display: block; border-radius: var(--t4-radius); overflow: hidden; aspect-ratio: 16 / 11; }
.t4-latest-thumb img, .t4-latest-thumb .t4-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t4-ease); }
.t4-latest-card:hover .t4-latest-thumb img { transform: scale(1.06); }
.t4-latest-body .t4-pill { margin-bottom: 12px; }
.t4-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--t4-ink-3); margin-bottom: 10px; }
.t4-meta span { display: inline-flex; align-items: center; gap: 6px; }
.t4-meta svg { color: var(--t4-primary); flex: none; }
.t4-latest-title { font-size: 23px; line-height: 1.3; margin: 0 0 10px; }
.t4-latest-title a:hover { color: var(--t4-primary); }
.t4-latest-excerpt { color: var(--t4-ink-2); margin: 0 0 16px; }
.t4-readmore {
    display: inline-block; font-family: var(--t4-ui); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--t4-primary);
    border: 1px solid var(--t4-primary); padding: 9px 22px; border-radius: var(--t4-radius);
    transition: .2s var(--t4-ease);
}
.t4-readmore:hover { background: var(--t4-primary); color: #fff; }

/* ─── Sidebar ────────────────────────────────────────────────────────── */
.t4-sidebar { display: flex; flex-direction: column; gap: 30px; }
.t4-widget { background: #fff; }
.t4-widget--search .t4-searchform { border: 1px solid var(--t4-line); }
.t4-widget-head { position: relative; background: var(--t4-primary); border-radius: var(--t4-radius); padding: 12px 18px; margin-bottom: 20px; }
.t4-widget-head::after { content: ""; position: absolute; left: 22px; top: 100%; border: 6px solid transparent; border-top-color: var(--t4-primary); }
.t4-widget-title { color: #fff; font-family: var(--t4-head); font-size: 17px; font-weight: 600; }

/* tabs */
.t4-tabs-head { display: flex; margin-bottom: 18px; }
.t4-tab { flex: 1; border: 0; cursor: pointer; font-family: var(--t4-head); font-size: 15px; font-weight: 600; padding: 12px 10px; background: var(--t4-ink); color: #fff; }
.t4-tab.is-active { background: var(--t4-primary); }
.t4-tab-panel { display: none; }
.t4-tab-panel.is-active { display: block; }
.t4-widget--tabs .t4-list-card:first-child { padding-top: 0; }

/* subscribe */
.t4-widget--subscribe { background: var(--t4-primary); color: #fff; padding: 30px 24px; border-radius: var(--t4-radius); text-align: center; }
.t4-sub-eyebrow { font-size: 15px; opacity: .9; }
.t4-sub-title { color: #fff; font-size: 26px; margin: 2px 0 4px; }
.t4-sub-sub { font-size: 14px; opacity: .9; margin: 0 0 18px; }
.t4-sub-form { display: flex; flex-direction: column; gap: 10px; }
.t4-sub-form input { border: 0; padding: 12px 14px; border-radius: var(--t4-radius); font: inherit; }
.t4-sub-form button { border: 0; background: var(--t4-ink); color: #fff; padding: 12px; border-radius: var(--t4-radius); font-family: var(--t4-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.t4-sub-form button:hover { background: #000; }

/* categories widget */
.t4-cat-list { list-style: none; margin: 0; padding: 0; }
.t4-cat-list li { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--t4-line); padding: 10px 0; }
.t4-cat-list li:last-child { border-bottom: 0; }
.t4-cat-list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--t4-ink); }
.t4-cat-list a span { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.t4-cat-list a:hover { color: var(--t4-primary); }
.t4-cat-list em { font-style: normal; font-size: 13px; color: var(--t4-ink-3); }

/* ─── Single ─────────────────────────────────────────────────────────── */
.t4-breadcrumb { font-size: 13px; color: var(--t4-ink-3); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.t4-breadcrumb a:hover { color: var(--t4-primary); }
.t4-breadcrumb .sep { color: var(--t4-ink-3); }
.t4-post-cover { position: relative; border-radius: var(--t4-radius); overflow: hidden; margin-bottom: 22px; }
.t4-post-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.t4-post-cover .t4-pill { position: absolute; top: 18px; left: 18px; }
.t4-post-title { font-size: 34px; line-height: 1.25; margin: 0 0 16px; }
.t4-post-meta { border-bottom: 1px solid var(--t4-line); padding-bottom: 18px; margin-bottom: 26px; }
.t4-post-meta .t4-meta-author { display: inline-flex; align-items: center; gap: 8px; }
.t4-post-meta img { border-radius: 50%; }

.t4-toc { background: var(--t4-bg-alt); border-left: 3px solid var(--t4-primary); border-radius: var(--t4-radius); padding: 18px 22px; margin: 0 0 28px; }
.t4-toc-title { font-family: var(--t4-head); font-weight: 600; color: var(--t4-ink); margin-bottom: 8px; }
.t4-toc ol { margin: 0; padding-left: 20px; }
.t4-toc a:hover { color: var(--t4-primary); }

.t4-article-body { font-size: 17px; line-height: 1.85; color: var(--t4-ink-2); }
.t4-article-body h2, .t4-article-body h3 { margin: 1.6em 0 .6em; color: var(--t4-ink); }
.t4-article-body h2 { font-size: 27px; }
.t4-article-body h3 { font-size: 22px; }
.t4-article-body a { color: var(--t4-primary); text-decoration: underline; }
.t4-article-body img { border-radius: var(--t4-radius); margin: 1.4em 0; }
.t4-article-body blockquote { margin: 1.6em 0; padding: 6px 24px; border-left: 4px solid var(--t4-primary); background: var(--t4-bg-alt); font-size: 20px; color: var(--t4-ink); font-style: italic; border-radius: 0 var(--t4-radius) var(--t4-radius) 0; }
.t4-article-body ul, .t4-article-body ol { padding-left: 22px; }
.t4-article-body li { margin-bottom: .5em; }

.t4-share { display: flex; align-items: center; gap: 10px; margin: 30px 0; }
.t4-share-label { font-family: var(--t4-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; margin-right: 4px; }
.t4-share a { width: 38px; height: 38px; border-radius: 50%; background: var(--t4-bg-alt); color: var(--t4-ink-2); display: inline-flex; align-items: center; justify-content: center; transition: .2s var(--t4-ease); }
.t4-share a:hover { background: var(--t4-primary); color: #fff; }

.t4-feedback { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--t4-bg-alt); border-radius: var(--t4-radius); padding: 16px 20px; margin: 26px 0; }
.t4-feedback-q { font-weight: 600; color: var(--t4-ink); }
.t4-feedback button { border: 1px solid var(--t4-line); background: #fff; border-radius: 30px; padding: 6px 20px; cursor: pointer; font: inherit; font-weight: 600; }
.t4-feedback button:hover { border-color: var(--t4-primary); color: var(--t4-primary); }
.t4-feedback-thanks { color: var(--t4-primary); font-weight: 600; }

.t4-tags { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t4-tags-label { font-weight: 600; color: var(--t4-ink); margin-right: 4px; }
.t4-tag { background: var(--t4-bg-alt); border-radius: 30px; padding: 5px 15px; font-size: 13px; color: var(--t4-ink-2); }
.t4-tag:hover { background: var(--t4-primary); color: #fff; }

.t4-author-bio { display: flex; gap: 20px; background: var(--t4-bg-alt); border-radius: var(--t4-radius); padding: 26px; margin: 30px 0; }
.t4-author-av img { border-radius: 50%; }
.t4-author-name { font-size: 19px; margin: 0 0 2px; }
.t4-author-name a:hover { color: var(--t4-primary); }
.t4-author-title { font-size: 13px; color: var(--t4-primary); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; margin-bottom: 8px; }
.t4-author-desc { margin: 0 0 10px; font-size: 15px; }
.t4-author-link { color: var(--t4-primary); font-weight: 600; }
.t4-related { margin-top: 40px; }

/* ─── Page head (archive / page) ─────────────────────────────────────── */
.t4-page-head { background: var(--t4-bg-alt); border-bottom: 1px solid var(--t4-line); padding: 40px 0; }
.t4-breadcrumb--light { margin-bottom: 10px; }
.t4-page-title { font-size: 34px; margin: 0; }
.t4-page-desc { margin-top: 10px; color: var(--t4-ink-2); }
.t4-page { padding: 50px 0 60px; }
.t4-page-body { font-size: 17px; line-height: 1.85; }
.t4-page-body h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.t4-page-body a { color: var(--t4-primary); }

.t4-pagination { margin-top: 40px; }
.t4-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--t4-line); border-radius: var(--t4-radius); margin: 0 4px; font-weight: 600; color: var(--t4-ink); }
.t4-pagination .page-numbers.current, .t4-pagination .page-numbers:hover { background: var(--t4-primary); color: #fff; border-color: var(--t4-primary); }
.t4-empty { padding: 40px 0; color: var(--t4-ink-3); }

/* ─── 404 ────────────────────────────────────────────────────────────── */
.t4-404 { text-align: center; padding: 70px 0; }
.t4-404-code { font-family: var(--t4-display); font-size: 120px; font-weight: 700; color: var(--t4-primary); line-height: 1; }
.t4-404-title { font-size: 28px; margin: 6px 0 22px; }
.t4-404-search { max-width: 460px; margin: 0 auto 20px; }
.t4-404 .t4-block { margin-top: 50px; text-align: left; }
.t4-btn { display: inline-block; background: var(--t4-primary); color: #fff; padding: 12px 26px; border-radius: var(--t4-radius); font-family: var(--t4-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.t4-btn:hover { background: var(--t4-primary-2); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.t4-footer { background: var(--t4-footer); color: #a9a9a9; padding: 66px 0 0; }
.t4-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 34px; padding-bottom: 46px; }
.t4-footer-logo { font-family: var(--t4-display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .08em; color: #fff; display: inline-block; margin-bottom: 16px; }
.t4-footer-about { font-size: 14px; line-height: 1.8; margin: 0 0 18px; }
.t4-footer-social { display: flex; gap: 10px; }
.t4-footer-social a { width: 38px; height: 38px; border-radius: var(--t4-radius); background: rgba(255,255,255,.08); color: #cfcfcf; display: inline-flex; align-items: center; justify-content: center; }
.t4-footer-social a:hover { background: var(--t4-primary); color: #fff; }
.t4-footer-title { color: #fff; font-size: 18px; margin: 0 0 22px; position: relative; padding-bottom: 12px; }
.t4-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--t4-primary); }
.t4-footer-links { list-style: none; margin: 0; padding: 0; }
.t4-footer-links li { margin-bottom: 11px; }
.t4-footer-links a { font-size: 14px; color: #b3b3b3; }
.t4-footer-links a:hover { color: var(--t4-primary); padding-left: 4px; }
.t4-footer-post { display: flex; gap: 14px; margin-bottom: 18px; }
.t4-footer-post-thumb { flex: 0 0 72px; width: 72px; height: 60px; border-radius: var(--t4-radius); overflow: hidden; }
.t4-footer-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t4-footer-post-date { font-size: 12px; color: var(--t4-primary); margin-bottom: 4px; }
.t4-footer-post-title { color: #e2e2e2; font-weight: 500; font-size: 14px; line-height: 1.4; }
.t4-footer-post-title:hover { color: var(--t4-primary); }
.t4-footer-subscribe { display: flex; margin-top: 16px; border-radius: var(--t4-radius); overflow: hidden; }
.t4-footer-subscribe input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; }
.t4-footer-subscribe button { border: 0; background: var(--t4-primary); color: #fff; width: 48px; font-size: 22px; cursor: pointer; }
.t4-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 14px; color: #8f8f8f; }
.t4-footer-bottom strong { color: #fff; }

/* ─── Sticky CTA ─────────────────────────────────────────────────────── */
.t4-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: var(--t4-primary); color: #fff; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 20px; transform: translateY(100%); transition: transform .4s var(--t4-ease); }
.t4-sticky-cta.visible { transform: translateY(0); }
.t4-sticky-cta-text { font-weight: 500; }
.t4-sticky-cta-btn { background: #fff; color: var(--t4-primary); border: 0; border-radius: var(--t4-radius); padding: 10px 20px; font-family: var(--t4-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.t4-sticky-cta-close { position: absolute; right: 16px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }

/* ─── Motion ─────────────────────────────────────────────────────────── */
.t4-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--t4-ease), transform .6s var(--t4-ease); }
.t4-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .t4-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .t4-hero-slide { transition: none !important; }
    * { scroll-behavior: auto !important; }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .t4-hero-title { font-size: 38px; }
}
@media (max-width: 1200px) {
    /* Collapse to the off-canvas drawer while the horizontal nav still fits.
       Above this the bold uppercase menu (right-aligned) + search toggle would
       spill over the brand on the 1200px grid, so switch to the hamburger. */
    .t4-nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #111; z-index: 1200;
        transform: translateX(100%); transition: transform .3s var(--t4-ease); padding: 90px 26px 26px; margin: 0;
    }
    .t4-nav.is-open { transform: translateX(0); }
    .t4-primary-list { flex-direction: column; align-items: flex-start; gap: 4px; }
    .t4-primary-list a { color: #fff !important; display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .t4-menu-toggle { display: flex; order: 3; }
    .t4-header-actions { margin-left: auto; }
}
@media (max-width: 992px) {
    .t4-layout { grid-template-columns: 1fr; }
    .t4-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .t4-widget--subscribe, .t4-widget--tabs { grid-column: span 2; }
    .t4-hero-slides, .t4-hero { min-height: 520px; height: auto; }
    .t4-hero-slides { height: 520px; }
}
@media (max-width: 768px) {
    .t4-featured { grid-template-columns: 1fr; }
    .t4-cat-duo { grid-template-columns: 1fr; }
    .t4-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .t4-latest-card { grid-template-columns: 1fr; }
    .t4-latest-thumb { aspect-ratio: 16 / 9; }
    .t4-sidebar { grid-template-columns: 1fr; }
    .t4-widget--subscribe, .t4-widget--tabs { grid-column: auto; }
    .t4-hero-title { font-size: 30px; }
    .t4-hero-content { padding-bottom: 70px; }
    .t4-post-title { font-size: 27px; }
}
@media (max-width: 560px) {
    .t4-grid-2, .t4-grid-3 { grid-template-columns: 1fr; }
    .t4-topbar-social { display: none; }
    .t4-hero-nav { width: 42px; height: 42px; }
    .t4-hero-prev { left: 10px; } .t4-hero-next { right: 10px; }
    .t4-brand-name { font-size: 22px; }
}
