/*
Theme Name: Satellite Theme8 — PaperMag
Theme URI: https://satellites.mobtools.ai/
Description: Crisp, boxed news-magazine skin adapted from the PaperMag "Magazine" demo. A black utility topbar (links + social), a white header with an electric-blue logo mark + wordmark, a horizontal nav and a keyword search field, a split hero (one big overlay feature + a numbered "Trending Posts" list), a "Top Stories" row of tall portrait cards, a "What's New" grid, a dark "Editor's Picks" band of overlay cards, a "Latest" 4-up grid with Load More, and a light multi-column footer over a dark bottom bar. Category labels are plain uppercase blue text, cards are squared with hairline dividers, meta shows comment + view counts. Type: Roboto (UI/body) + Roboto Slab (accents); accent is an electric-blue gradient (#2130ff → #0090ff) on a black/grey scale. Motion: on-scroll fade-up reveals, hover image-zoom, sticky header. Visuals only — all integrations come from the shared Satellite Skin Core mu-plugin.
Author: MobTools
Version: 1.0.1
License: GPL-2.0-or-later
Text Domain: satellite-theme8
*/

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* THEME-OWNED palette (does NOT inherit satellite_primary_color) */
    --t8-primary: #2130ff;
    --t8-primary-2: #0090ff;
    --t8-primary-d: #1a26cc;
    --t8-ink: #111111;
    --t8-ink-2: #777777;
    --t8-ink-3: #999999;
    --t8-on-dark: #cfd2d6;
    --t8-bg: #ffffff;
    --t8-bg-alt: #f6f7f9;
    --t8-line: #ebebeb;
    --t8-topbar: #111214;
    --t8-dark: #14161b;

    --t8-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --t8-head: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --t8-display: "Roboto", sans-serif;
    --t8-slab: "Roboto Slab", Georgia, serif;
    --t8-ui: "Roboto", sans-serif;

    --t8-container: 1240px;
    --t8-radius: 4px;
    --t8-pill: 3px;
    --t8-grad: linear-gradient(90deg, #2130ff 0%, #0090ff 100%);
    --t8-shadow: 0 14px 40px rgba(17, 18, 20, .12);
    --t8-shadow-sm: 0 6px 20px rgba(17, 18, 20, .07);
    --t8-topbar-h: 44px;
    --t8-ease: cubic-bezier(.25, .46, .45, .94);
}

/* ─── Base ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--t8-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--t8-ink-2);
    background: var(--t8-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.theme-theme8 a { text-decoration: none; }
.theme-theme8 .t8-article-body a,
.theme-theme8 .t8-page-body a { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--t8-head); color: var(--t8-ink); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1.4em; }

.t8-container { max-width: var(--t8-container); margin: 0 auto; padding: 0 24px; width: 100%; }
.t8-container--narrow { max-width: 800px; }
.t8-site-main { min-height: 40vh; }
.t8-thumb-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #eef0f3, #dfe2e7); }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.t8-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--t8-grad); color: #fff; font-family: var(--t8-ui); font-size: 13px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 14px 34px;
    border-radius: var(--t8-pill); border: 0; cursor: pointer; transition: filter .2s var(--t8-ease), transform .2s var(--t8-ease);
}
.t8-btn:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }

/* ─── Meta line (category + comment/view counts) ─────────────────────── */
.t8-metaline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.t8-cat { font-family: var(--t8-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--t8-primary); }
.t8-cat:hover { color: var(--t8-primary-d); }
.t8-mi { display: inline-flex; align-items: center; gap: 5px; font-family: var(--t8-ui); font-size: 12px; color: var(--t8-ink-3); }
.t8-mi svg { flex: none; opacity: .8; }
.t8-metaline--ondark .t8-cat { color: #7fb2ff; }
.t8-metaline--ondark .t8-mi { color: rgba(255, 255, 255, .82); }
.t8-metaline--foot { justify-content: flex-start; margin-top: 10px; }
.t8-metaline--sm { gap: 10px; margin-top: 5px; }

/* ─── Byline ─────────────────────────────────────────────────────────── */
.t8-byline { display: flex; align-items: center; gap: 10px; }
.t8-byline-av img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.t8-byline-meta { display: flex; flex-direction: column; }
.t8-byline-name { font-family: var(--t8-ui); font-size: 13px; font-weight: 700; color: var(--t8-ink); }
.t8-byline-name:hover { color: var(--t8-primary); }
.t8-byline-date { font-size: 12px; color: var(--t8-ink-3); }
.t8-feature-body .t8-byline-name,
.t8-ocard .t8-byline-name { color: #fff; }
.t8-feature-body .t8-byline-date,
.t8-ocard .t8-byline-date { color: rgba(255,255,255,.75); }

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

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.t8-topbar { background: var(--t8-topbar); color: #b9bcc2; font-family: var(--t8-ui); }
.t8-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--t8-topbar-h); }
.t8-topbar-links { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.t8-topbar-links a { color: #c9ccd2; transition: color .2s var(--t8-ease); }
.t8-topbar-links a:hover { color: #fff; }
.t8-topbar-social { display: flex; align-items: center; gap: 16px; }
.t8-topbar-social a { color: #c9ccd2; display: inline-flex; transition: color .2s var(--t8-ease); }
.t8-topbar-social a:hover { color: #fff; }

/* ─── Header ─────────────────────────────────────────────────────────── */
.t8-header { background: var(--t8-bg); border-bottom: 1px solid var(--t8-line); }
.t8-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 950; box-shadow: var(--t8-shadow-sm); animation: t8-drop .35s var(--t8-ease); }
@keyframes t8-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.t8-header-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.t8-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.t8-brand-mark { color: var(--t8-primary); display: inline-flex; }
.t8-brand-name { font-family: var(--t8-display); font-weight: 900; font-size: 26px; letter-spacing: -.01em; color: var(--t8-ink); }
.t8-nav { flex: 1; min-width: 0; }
.t8-primary-list { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; }
.t8-primary-list a { font-family: var(--t8-ui); font-size: 14px; font-weight: 500; color: var(--t8-ink); transition: color .2s var(--t8-ease); white-space: nowrap; }
.t8-primary-list a:hover, .t8-primary-list .current-menu-item > a { color: var(--t8-primary); }
.t8-primary-list ul { display: none; }
.t8-headsearch { flex: none; display: flex; align-items: center; gap: 8px; border: 1px solid var(--t8-line); border-radius: var(--t8-pill); padding: 9px 16px; color: var(--t8-ink-3); width: 170px; transition: border-color .2s var(--t8-ease); }
.t8-headsearch:focus-within { border-color: var(--t8-primary); }
.t8-headsearch svg { flex: none; }
.t8-headsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--t8-ink); outline: none; }
.t8-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.t8-menu-toggle span { width: 24px; height: 2px; background: var(--t8-ink); transition: .25s var(--t8-ease); }
.t8-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t8-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.t8-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Section header ─────────────────────────────────────────────────── */
.t8-eyebrow { display: block; font-family: var(--t8-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--t8-ink-3); margin-bottom: 6px; }
.t8-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--t8-line); padding-bottom: 14px; position: relative; }
.t8-sectitle { font-family: var(--t8-head); font-size: 24px; font-weight: 900; color: var(--t8-ink); margin: 0; letter-spacing: -.01em; }
.t8-sechead::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 3px; background: var(--t8-grad); }
.t8-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--t8-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--t8-primary); flex: none; }
.t8-more:hover { color: var(--t8-primary-d); }

/* ─── Section spacing ────────────────────────────────────────────────── */
.t8-section { padding: 46px 0; }
.t8-home-main .t8-section:first-child { padding-top: 34px; }

/* ─── Hero (split feature + trending list) ───────────────────────────── */
.t8-hero { padding: 34px 0 6px; }
.t8-hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.t8-feature { position: relative; border-radius: var(--t8-radius); overflow: hidden; background: var(--t8-dark); }
.t8-feature-media { display: block; position: relative; aspect-ratio: 16 / 12; min-height: 360px; }
.t8-feature-media img, .t8-feature-media .t8-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t8-ease); }
.t8-feature:hover .t8-feature-media img { transform: scale(1.05); }
.t8-feature-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,14,.9) 0%, rgba(10,11,14,.25) 55%, transparent 100%); }
.t8-feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 32px; }
.t8-feature-body .t8-metaline { margin-bottom: 12px; }
.t8-feature-title { font-family: var(--t8-head); font-size: 32px; line-height: 1.18; font-weight: 900; margin: 0 0 16px; }
.t8-feature-title a { color: #fff; }

.t8-trend-head { position: relative; border-bottom: 1px solid var(--t8-line); padding-bottom: 12px; margin-bottom: 8px; }
.t8-trend-title { font-family: var(--t8-head); font-size: 22px; font-weight: 900; color: var(--t8-ink); margin: 0; }
.t8-trend-ico { position: absolute; right: 0; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--t8-line); display: inline-flex; align-items: center; justify-content: center; color: var(--t8-primary); }
.t8-trend-list { list-style: none; margin: 0; padding: 0; }
.t8-trend-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--t8-line); }
.t8-trend-item:last-child { border-bottom: 0; }
.t8-trend-num { font-family: var(--t8-slab); font-size: 15px; font-weight: 700; color: var(--t8-ink-3); flex: none; width: 22px; }
.t8-trend-thumb { flex: 0 0 74px; width: 74px; height: 64px; border-radius: var(--t8-radius); overflow: hidden; background: var(--t8-bg-alt); }
.t8-trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t8-trend-body { min-width: 0; }
.t8-trend-item-title { font-family: var(--t8-head); font-size: 15px; line-height: 1.35; font-weight: 700; margin: 6px 0 0; color: var(--t8-ink); }
.t8-trend-item-title a:hover { color: var(--t8-primary); }

/* ─── Grids ──────────────────────────────────────────────────────────── */
.t8-grid { display: grid; gap: 30px; }
.t8-grid-3 { grid-template-columns: repeat(3, 1fr); }
.t8-grid-4 { grid-template-columns: repeat(4, 1fr); }
.t8-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* ─── Portrait card (Top Stories) ────────────────────────────────────── */
.t8-pcard { display: flex; flex-direction: column; }
.t8-pcard-media { position: relative; display: block; border-radius: var(--t8-radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--t8-bg-alt); }
.t8-pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t8-ease); }
.t8-pcard:hover .t8-pcard-media img { transform: scale(1.05); }
.t8-pcard-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,14,.85) 0%, rgba(10,11,14,.1) 55%, transparent 100%); }
.t8-pcard-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.t8-pcard-over .t8-cat { color: #7fb2ff; }
.t8-pcard-title { font-family: var(--t8-head); font-size: 16px; line-height: 1.3; font-weight: 700; color: #fff; }
.t8-pcard .t8-metaline--foot .t8-cat { display: none; }

/* ─── Overlay card (dark band / feature spots) ───────────────────────── */
.t8-ocard { position: relative; border-radius: var(--t8-radius); overflow: hidden; background: var(--t8-dark); }
.t8-ocard-media { display: block; position: relative; aspect-ratio: 4 / 3; }
.t8-ocard-media img, .t8-ocard-media .t8-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t8-ease); }
.t8-ocard:hover .t8-ocard-media img { transform: scale(1.05); }
.t8-ocard-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,14,.92) 0%, rgba(10,11,14,.2) 60%, transparent 100%); }
.t8-ocard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; }
.t8-ocard-body .t8-metaline { margin-bottom: 10px; }
.t8-ocard-title { font-family: var(--t8-head); font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 14px; }
.t8-ocard-title a { color: #fff; }
.t8-ocard-title a:hover { opacity: .9; }

/* ─── Standard card (grids) ──────────────────────────────────────────── */
.t8-scard { display: flex; flex-direction: column; }
.t8-scard-media { display: block; border-radius: var(--t8-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--t8-bg-alt); }
.t8-scard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t8-ease); }
.t8-scard:hover .t8-scard-media img { transform: scale(1.05); }
.t8-scard-body { padding-top: 14px; }
.t8-scard-body .t8-metaline { margin-bottom: 8px; }
.t8-scard-title { font-family: var(--t8-head); font-size: 18px; line-height: 1.32; font-weight: 700; margin: 0 0 10px; color: var(--t8-ink); }
.t8-scard-title a:hover { color: var(--t8-primary); }
.t8-scard-excerpt { font-size: 14px; line-height: 1.6; color: var(--t8-ink-2); margin: 0 0 14px; }

/* ─── List card ──────────────────────────────────────────────────────── */
.t8-lcard { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--t8-line); align-items: flex-start; }
.t8-lcard:last-child { border-bottom: 0; }
.t8-lcard-thumb { flex: 0 0 96px; width: 96px; height: 74px; border-radius: var(--t8-radius); overflow: hidden; background: var(--t8-bg-alt); }
.t8-lcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t8-lcard-body { min-width: 0; }
.t8-lcard-title { font-family: var(--t8-head); font-size: 15px; line-height: 1.4; font-weight: 700; margin: 5px 0; color: var(--t8-ink); }
.t8-lcard-title a:hover { color: var(--t8-primary); }

/* ─── Dark band (Editor's Picks) ─────────────────────────────────────── */
.t8-band { background: var(--t8-dark); }
.t8-band .t8-eyebrow { color: #8b8f97; }
.t8-band .t8-sectitle { color: #fff; }
.t8-band .t8-sechead { border-bottom-color: rgba(255, 255, 255, .12); }

/* ─── Load more ──────────────────────────────────────────────────────── */
.t8-loadmore-wrap { text-align: center; margin-top: 40px; }

/* ─── Sidebar (archive/single) ───────────────────────────────────────── */
.t8-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.t8-main { min-width: 0; }
.t8-sidebar { display: flex; flex-direction: column; gap: 34px; }
.t8-widget-head { position: relative; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--t8-line); }
.t8-widget-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50px; height: 3px; background: var(--t8-grad); }
.t8-widget-title { color: var(--t8-ink); font-family: var(--t8-head); font-size: 18px; font-weight: 900; margin: 0; }
.t8-tabs-head { display: flex; gap: 8px; margin-bottom: 18px; }
.t8-tab { flex: 1; border: 1px solid var(--t8-line); cursor: pointer; font-family: var(--t8-ui); font-size: 13px; font-weight: 700; padding: 10px; background: #fff; color: var(--t8-ink); border-radius: var(--t8-pill); text-transform: uppercase; letter-spacing: .03em; }
.t8-tab.is-active { background: var(--t8-primary); color: #fff; border-color: var(--t8-primary); }
.t8-tab-panel { display: none; }
.t8-tab-panel.is-active { display: block; }
.t8-widget--subscribe { background: var(--t8-dark); color: #fff; padding: 28px 24px; border-radius: var(--t8-radius); text-align: center; }
.t8-sub-eyebrow { font-family: var(--t8-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #8b8f97; }
.t8-sub-title { color: #fff; font-size: 22px; margin: 4px 0; }
.t8-sub-sub { font-size: 14px; color: #b9bcc2; margin: 0 0 16px; }
.t8-sub-form { display: flex; flex-direction: column; gap: 10px; }
.t8-sub-form input { border: 0; padding: 12px 14px; border-radius: var(--t8-pill); font: inherit; }
.t8-sub-form button { border: 0; background: var(--t8-grad); color: #fff; padding: 12px; border-radius: var(--t8-pill); font-family: var(--t8-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.t8-cat-list { list-style: none; margin: 0; padding: 0; }
.t8-cat-list li { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--t8-line); padding: 11px 0; }
.t8-cat-list li:last-child { border-bottom: 0; }
.t8-cat-list a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--t8-head); font-weight: 700; color: var(--t8-ink); }
.t8-cat-list a:hover { color: var(--t8-primary); }
.t8-cat-list em { font-style: normal; font-size: 13px; color: var(--t8-ink-3); }

/* ─── Single ─────────────────────────────────────────────────────────── */
.t8-single-main, .t8-archive-main { padding: 44px 0 66px; }
.t8-breadcrumb { font-family: var(--t8-ui); font-size: 13px; color: var(--t8-ink-3); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.t8-breadcrumb a:hover { color: var(--t8-primary); }
.t8-post-cover { position: relative; border-radius: var(--t8-radius); overflow: hidden; margin-bottom: 24px; }
.t8-post-cover img { width: 100%; max-height: 500px; object-fit: cover; }
.t8-post-cover .t8-cat, .t8-post-cover .t8-pill { position: absolute; top: 16px; left: 16px; background: var(--t8-primary); color: #fff; padding: 6px 14px; border-radius: var(--t8-pill); }
.t8-post-title { font-family: var(--t8-head); font-size: 40px; line-height: 1.18; margin: 0 0 16px; letter-spacing: -.01em; }
.t8-post-meta { border-bottom: 1px solid var(--t8-line); padding-bottom: 18px; margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--t8-ui); font-size: 14px; color: var(--t8-ink-3); }
.t8-post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.t8-post-meta svg { color: var(--t8-primary); flex: none; }
.t8-post-meta .t8-meta-author { display: inline-flex; align-items: center; gap: 8px; }
.t8-post-meta img { border-radius: 50%; }

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

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

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

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

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

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

/* ─── Page head (archive / page) ─────────────────────────────────────── */
.t8-page-head { background: var(--t8-bg-alt); border-bottom: 1px solid var(--t8-line); padding: 40px 0; text-align: center; }
.t8-page-head .t8-breadcrumb { justify-content: center; }
.t8-page-title { font-family: var(--t8-head); font-size: 38px; margin: 0; letter-spacing: -.01em; font-weight: 900; }
.t8-page-desc { margin-top: 10px; color: var(--t8-ink-2); }
.t8-page { padding: 48px 0 64px; }
.t8-page-body { font-size: 18px; line-height: 1.85; }
.t8-page-body h2 { font-size: 27px; margin: 1.4em 0 .5em; font-family: var(--t8-head); }
.t8-page-body a { color: var(--t8-primary); }

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

/* ─── 404 ────────────────────────────────────────────────────────────── */
.t8-404 { text-align: center; padding: 70px 0; }
.t8-404-code { font-family: var(--t8-display); font-size: 120px; font-weight: 900; color: var(--t8-primary); line-height: 1; }
.t8-404-title { font-size: 28px; margin: 6px 0 22px; }
.t8-404-search { max-width: 460px; margin: 0 auto 20px; }
.t8-404 .t8-block { margin-top: 50px; text-align: left; }

/* ─── Footer (light + dark bottom bar) ───────────────────────────────── */
.t8-footer { background: var(--t8-bg); border-top: 1px solid var(--t8-line); padding: 60px 0 0; }
.t8-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.t8-footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.t8-footer-brand .t8-brand-mark { color: var(--t8-primary); }
.t8-footer-logo { font-family: var(--t8-display); font-weight: 900; font-size: 26px; color: var(--t8-ink); }
.t8-footer-about { font-size: 14px; line-height: 1.7; margin: 0 0 18px; color: var(--t8-ink-2); }
.t8-footer-social { display: flex; gap: 14px; }
.t8-footer-social a { color: var(--t8-ink-3); display: inline-flex; }
.t8-footer-social a:hover { color: var(--t8-primary); }
.t8-footer-title { color: var(--t8-ink); font-family: var(--t8-head); font-size: 16px; font-weight: 900; margin: 0 0 20px; position: relative; padding-bottom: 12px; }
.t8-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--t8-grad); }
.t8-footer-links { list-style: none; margin: 0; padding: 0; }
.t8-footer-links li { margin-bottom: 12px; }
.t8-footer-links a { font-size: 14px; color: var(--t8-ink-2); }
.t8-footer-links a:hover { color: var(--t8-primary); padding-left: 3px; }
.t8-footer-post { display: flex; gap: 14px; margin-bottom: 16px; }
.t8-footer-post-thumb { flex: 0 0 72px; width: 72px; height: 58px; border-radius: var(--t8-radius); overflow: hidden; background: var(--t8-bg-alt); }
.t8-footer-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t8-footer-post-date { font-family: var(--t8-ui); font-size: 12px; color: var(--t8-primary); margin-bottom: 3px; }
.t8-footer-post-title { color: var(--t8-ink); font-family: var(--t8-head); font-weight: 700; font-size: 14px; line-height: 1.4; }
.t8-footer-post-title:hover { color: var(--t8-primary); }
.t8-footer-bottom-wrap { background: var(--t8-topbar); }
.t8-footer-bottom { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--t8-ui); font-size: 14px; color: #9497a0; }
.t8-footer-bottom strong { color: #fff; }
.t8-footer-bottom-links { display: flex; gap: 22px; }
.t8-footer-bottom-links a:hover { color: #fff; }

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

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

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    /* Collapse to the drawer before the centered nav (flex:1) outgrows its
       track and its items slide under the search pill on the 1200px grid. */
    .t8-nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff; z-index: 1200; padding: 90px 26px 26px; box-shadow: -10px 0 40px rgba(0,0,0,.15); overflow-y: auto; flex: none; }
    .t8-nav.is-open { display: block; }
    .t8-primary-list { flex-direction: column; align-items: flex-start; gap: 0; }
    .t8-primary-list a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--t8-line); font-size: 15px; }
    .t8-menu-toggle { display: flex; }
    .t8-headsearch { display: none; }
}
@media (max-width: 1080px) {
    .t8-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .t8-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .t8-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .t8-grid-3, .t8-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .t8-feature-title { font-size: 26px; }
    .t8-footer-grid { grid-template-columns: 1fr 1fr; }
    .t8-post-title { font-size: 30px; }
    .t8-sectitle { font-size: 21px; }
}
@media (max-width: 560px) {
    .t8-grid-3, .t8-grid-4, .t8-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .t8-topbar-links { display: none; }
    .t8-footer-grid { grid-template-columns: 1fr; }
    .t8-footer-bottom { flex-direction: column; text-align: center; }
    .t8-feature-media { min-height: 300px; }
}
@media (max-width: 400px) {
    .t8-grid-3, .t8-grid-4, .t8-grid-5 { grid-template-columns: 1fr; }
}
