/*
Theme Name: Satellite Theme7 — Ncmaz
Theme URI: https://satellites.mobtools.ai/
Description: Clean, editorial magazine skin adapted from the Ncmaz FSE demo. Light utility topbar, a white header with an indigo logo mark and a fully-rounded search pill, a large rounded hero image card with two overlapping white feature cards, horizontal topic and "more popular" carousels with circular arrows, neutral rounded category pills, media cards with play badges, a two-up newsletter block, a rounded CTA panel and a light 4-column footer with a "Stay up to date" card. Type is Inter throughout; accent is indigo (#4F46E5) on zinc neutrals. Motion: on-scroll fade-up reveals, smooth carousel scroll, hover image-zoom. Visuals only — all integrations come from the shared Satellite Skin Core mu-plugin.
Author: MobTools
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: satellite-theme7
*/

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* THEME-OWNED palette (does NOT inherit satellite_primary_color) */
    --t7-primary: #4f46e5;
    --t7-primary-2: #4338ca;
    --t7-ink: #09090b;
    --t7-ink-2: #52525b;
    --t7-ink-3: #a1a1aa;
    --t7-on-dark: #e4e4e7;
    --t7-bg: #ffffff;
    --t7-bg-alt: #f4f4f5;
    --t7-line: #e4e4e7;
    --t7-dark: #18181b;

    --t7-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --t7-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --t7-display: "Inter", sans-serif;
    --t7-ui: "Inter", sans-serif;

    --t7-container: 1280px;
    --t7-radius: 16px;
    --t7-radius-lg: 28px;
    --t7-pill: 999px;
    --t7-shadow: 0 10px 40px rgba(9, 9, 11, .10);
    --t7-shadow-sm: 0 4px 18px rgba(9, 9, 11, .06);
    --t7-topbar-h: 42px;
    --t7-ease: cubic-bezier(.4, 0, .2, 1);
}

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

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

/* ─── Buttons / pills ────────────────────────────────────────────────── */
.t7-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--t7-primary); color: #fff; font-family: var(--t7-ui); font-size: 14px;
    font-weight: 600; padding: 12px 24px; border-radius: var(--t7-pill); border: 0; cursor: pointer;
    transition: background .2s var(--t7-ease), transform .2s var(--t7-ease);
}
.t7-btn:hover { background: var(--t7-primary-2); color: #fff; transform: translateY(-1px); }
.t7-btn--lg { padding: 15px 34px; font-size: 15px; }

.t7-pill {
    display: inline-block; background: var(--t7-bg-alt); color: var(--t7-ink);
    font-family: var(--t7-ui); font-size: 12px; font-weight: 600; letter-spacing: .01em;
    padding: 5px 13px; line-height: 1.4; border-radius: var(--t7-pill);
}
.t7-pill:hover { background: #e4e4e7; }
.t7-pill--float { background: rgba(255, 255, 255, .92); color: var(--t7-ink); backdrop-filter: blur(4px); }
.t7-pill--ondark { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.t7-pill--ondark:hover { background: rgba(255, 255, 255, .3); }

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

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.t7-topbar { background: var(--t7-bg); border-bottom: 1px solid var(--t7-line); font-family: var(--t7-ui); }
.t7-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--t7-topbar-h); }
.t7-topbar-links { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.t7-topbar-links a { color: var(--t7-ink-2); transition: color .2s var(--t7-ease); }
.t7-topbar-links a:hover { color: var(--t7-primary); }
.t7-topbar-social { display: flex; align-items: center; gap: 14px; }
.t7-topbar-social a { color: var(--t7-ink-3); display: inline-flex; transition: color .2s var(--t7-ease); }
.t7-topbar-social a:hover { color: var(--t7-primary); }

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

/* ─── Section header ─────────────────────────────────────────────────── */
.t7-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.t7-sechead-text { display: flex; align-items: flex-start; gap: 10px; }
.t7-asterisk { color: var(--t7-primary); font-size: 22px; line-height: 1; margin-top: 6px; }
.t7-sectitle { font-family: var(--t7-head); font-size: 30px; font-weight: 700; color: var(--t7-ink); margin: 0; letter-spacing: -.02em; }
.t7-sectitle-2 { color: var(--t7-ink-3); font-weight: 700; }
.t7-sec-arrows { display: flex; gap: 8px; flex: none; }
.t7-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--t7-line); background: #fff; color: var(--t7-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .2s var(--t7-ease); }
.t7-arrow:hover { background: var(--t7-ink); color: #fff; border-color: var(--t7-ink); }

/* ─── Section spacing ────────────────────────────────────────────────── */
.t7-section { padding: 48px 0; }
.t7-home-main .t7-section:first-child { padding-top: 24px; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.t7-hero { padding: 34px 0 0; }
.t7-hero-card { position: relative; border-radius: var(--t7-radius-lg); overflow: hidden; background: var(--t7-dark); }
.t7-hero-media { position: relative; width: 100%; aspect-ratio: 16 / 8; min-height: 360px; }
.t7-hero-media img, .t7-hero-media .t7-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.t7-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,11,.82) 0%, rgba(9,9,11,.55) 45%, rgba(9,9,11,.05) 100%); }
.t7-hero-body { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 40px 44px; max-width: 620px; }
.t7-hero-body .t7-pill { margin-bottom: 16px; }
.t7-hero-title { font-family: var(--t7-head); font-size: 40px; line-height: 1.1; font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.t7-hero-title a { color: #fff; }
.t7-hero-excerpt { color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.7; margin: 0 0 22px; }
.t7-hero-cards { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: -70px 0 0 auto; padding-right: 8px; }

/* ─── Feature card (white, no image) ─────────────────────────────────── */
.t7-fcard { background: #fff; border: 1px solid var(--t7-line); border-radius: var(--t7-radius); box-shadow: var(--t7-shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.t7-fcard .t7-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.t7-fcard-title { font-family: var(--t7-head); font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0; }
.t7-fcard-title a:hover { color: var(--t7-primary); }
.t7-fcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }

/* ─── Author row (cards) ─────────────────────────────────────────────── */
.t7-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t7-author .t7-author-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.t7-author-meta { display: flex; flex-direction: column; min-width: 0; }
.t7-author .t7-author-name { font-family: var(--t7-ui); font-size: 13px; font-weight: 600; color: var(--t7-ink); }
.t7-author .t7-author-name:hover { color: var(--t7-primary); }
.t7-author-sub { font-size: 12px; color: var(--t7-ink-3); }
.t7-save { color: var(--t7-ink-3); display: inline-flex; flex: none; transition: color .2s var(--t7-ease); }
.t7-mcard:hover .t7-save, .t7-fcard:hover .t7-save { color: var(--t7-ink-2); }

/* ─── Media card (image + play + footer meta) ────────────────────────── */
.t7-mcard { display: flex; flex-direction: column; }
.t7-mcard-media { position: relative; display: block; border-radius: var(--t7-radius); overflow: hidden; aspect-ratio: 5 / 3; background: var(--t7-bg-alt); }
.t7-mcard-media img, .t7-scard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t7-ease); }
.t7-mcard:hover .t7-mcard-media img, .t7-scard:hover .t7-scard-media img { transform: scale(1.05); }
.t7-mcard-pills, .t7-scard .t7-mcard-pills { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.t7-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--t7-ink); display: inline-flex; align-items: center; justify-content: center; z-index: 2; transition: transform .2s var(--t7-ease); }
.t7-mcard:hover .t7-play { transform: scale(1.08); }
.t7-mcard-body { padding-top: 16px; }
.t7-mcard-title { font-family: var(--t7-head); font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.t7-mcard-title a:hover { color: var(--t7-primary); }
.t7-mcard-excerpt { font-size: 14px; line-height: 1.6; color: var(--t7-ink-2); margin: 0 0 12px; }
.t7-mcard-foot { display: flex; align-items: center; gap: 16px; font-family: var(--t7-ui); font-size: 13px; color: var(--t7-ink-3); }
.t7-metaitem { display: inline-flex; align-items: center; gap: 5px; }
.t7-metaitem svg { flex: none; }
.t7-mcard-foot .t7-save { margin-left: auto; }

/* ─── Standard card (archive grid) ───────────────────────────────────── */
.t7-scard { display: flex; flex-direction: column; }
.t7-scard-media { position: relative; display: block; border-radius: var(--t7-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--t7-bg-alt); }
.t7-scard-body { padding-top: 16px; }
.t7-scard-title { font-family: var(--t7-head); font-size: 19px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.t7-scard-title a:hover { color: var(--t7-primary); }
.t7-scard-excerpt { font-size: 14px; line-height: 1.6; color: var(--t7-ink-2); margin: 0 0 14px; }

/* ─── List card ──────────────────────────────────────────────────────── */
.t7-lcard { display: flex; gap: 14px; padding: 12px 0; align-items: center; }
.t7-lcard-thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--t7-bg-alt); }
.t7-lcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t7-lcard-body { min-width: 0; }
.t7-lcard-title { font-family: var(--t7-head); font-size: 15px; line-height: 1.4; font-weight: 700; margin: 0 0 4px; }
.t7-lcard-title a:hover { color: var(--t7-primary); }
.t7-lcard-sub { font-size: 12px; color: var(--t7-ink-3); }

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

/* ─── Horizontal scrollers ───────────────────────────────────────────── */
.t7-scroller { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: none; -ms-overflow-style: none; }
.t7-scroller::-webkit-scrollbar { display: none; }
.t7-scroller > * { scroll-snap-align: start; }
.t7-scroller--cards .t7-scroller-item { flex: 0 0 300px; max-width: 300px; }

/* ─── Topic card ─────────────────────────────────────────────────────── */
.t7-topic { position: relative; flex: 0 0 210px; width: 210px; aspect-ratio: 5 / 4; border-radius: var(--t7-radius); overflow: hidden; display: block; background: var(--t7-dark); }
.t7-topic-img { position: absolute; inset: 0; }
.t7-topic-img img, .t7-topic-img .t7-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t7-ease); }
.t7-topic:hover .t7-topic-img img { transform: scale(1.06); }
.t7-topic-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,9,11,.78) 0%, rgba(9,9,11,.1) 60%, transparent 100%); }
.t7-topic-name { position: absolute; left: 16px; right: 16px; bottom: 30px; z-index: 2; color: #fff; font-family: var(--t7-head); font-weight: 700; font-size: 17px; }
.t7-topic-count { position: absolute; left: 16px; bottom: 12px; z-index: 2; color: rgba(255,255,255,.8); font-size: 12px; }

/* ─── Newsletter block ───────────────────────────────────────────────── */
.t7-news { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: var(--t7-bg-alt); border-radius: var(--t7-radius-lg); padding: 48px; }
.t7-news-title { font-family: var(--t7-head); font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.t7-news-sub { color: var(--t7-ink-2); font-size: 15px; margin: 0 0 22px; }
.t7-news-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.t7-news-steps li { display: flex; align-items: center; gap: 12px; font-family: var(--t7-head); font-weight: 600; color: var(--t7-ink); }
.t7-news-badge { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.t7-news-badge--a { background: #ede9fe; color: #6d28d9; }
.t7-news-badge--b { background: #fee2e2; color: #dc2626; }
.t7-news-form { display: flex; gap: 8px; background: #fff; border: 1px solid var(--t7-line); border-radius: var(--t7-pill); padding: 6px 6px 6px 20px; max-width: 420px; }
.t7-news-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; }
.t7-news-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t7-news-frame { border-radius: var(--t7-radius); overflow: hidden; box-shadow: var(--t7-shadow-sm); aspect-ratio: 3 / 4; }
.t7-news-frame img { width: 100%; height: 100%; object-fit: cover; }
.t7-news-frame--1 { transform: translateY(-14px); }
.t7-news-frame--2 { transform: translateY(14px); }
.t7-news-frame--3 { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* ─── CTA panel (footer) ─────────────────────────────────────────────── */
.t7-cta-panel { background: var(--t7-bg-alt); border-radius: var(--t7-radius-lg); text-align: center; padding: 56px 24px; margin-bottom: 64px; }
.t7-cta-title { font-family: var(--t7-head); font-size: 32px; font-weight: 800; margin: 0 0 10px; }
.t7-cta-sub { color: var(--t7-ink-2); font-size: 16px; margin: 0 0 24px; }

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

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

.t7-toc { background: var(--t7-bg-alt); border-radius: var(--t7-radius); padding: 20px 24px; margin: 0 0 28px; }
.t7-toc-title { font-family: var(--t7-head); font-weight: 700; color: var(--t7-ink); margin-bottom: 8px; }
.t7-toc ol { margin: 0; padding-left: 20px; }
.t7-toc a:hover { color: var(--t7-primary); }

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

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

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

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

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

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

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

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

/* ─── Footer (light) ─────────────────────────────────────────────────── */
.t7-footer { background: var(--t7-bg); border-top: 1px solid var(--t7-line); padding: 64px 0 0; }
.t7-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 48px; }
.t7-footer-title { color: var(--t7-ink); font-family: var(--t7-head); font-size: 15px; font-weight: 700; margin: 0 0 18px; }
.t7-footer-links { list-style: none; margin: 0; padding: 0; }
.t7-footer-links li { margin-bottom: 12px; }
.t7-footer-links a { font-size: 14px; color: var(--t7-ink-2); }
.t7-footer-links a:hover { color: var(--t7-primary); }
.t7-footer-col--card { align-self: start; }
.t7-stayup { background: var(--t7-bg-alt); border-radius: var(--t7-radius); padding: 24px; }
.t7-stayup-head { display: flex; align-items: center; gap: 8px; font-family: var(--t7-head); font-weight: 700; color: var(--t7-ink); margin-bottom: 8px; }
.t7-stayup-head svg { color: var(--t7-primary); }
.t7-stayup-sub { font-size: 13px; line-height: 1.6; color: var(--t7-ink-2); margin: 0 0 16px; }
.t7-stayup-form { display: flex; gap: 8px; background: #fff; border: 1px solid var(--t7-line); border-radius: var(--t7-pill); padding: 5px 5px 5px 16px; }
.t7-stayup-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; }
.t7-stayup-form button { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--t7-primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.t7-stayup-form button:hover { background: var(--t7-primary-2); }
.t7-footer-bottom-wrap { border-top: 1px solid var(--t7-line); }
.t7-footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--t7-ui); font-size: 14px; color: var(--t7-ink-3); }
.t7-footer-bottom strong { color: var(--t7-ink); }
.t7-footer-social { display: flex; gap: 16px; }
.t7-footer-social a { color: var(--t7-ink-3); display: inline-flex; }
.t7-footer-social a:hover { color: var(--t7-primary); }

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

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

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .t7-hero-title { font-size: 32px; }
    .t7-hero-cards { margin-top: 24px; max-width: none; }
    .t7-layout { grid-template-columns: 1fr; }
    .t7-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .t7-headsearch { display: none; }
    .t7-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; }
    .t7-nav.is-open { display: block; }
    .t7-primary-list { flex-direction: column; align-items: flex-start; gap: 0; }
    .t7-primary-list a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--t7-line); }
    .t7-menu-toggle { display: flex; }
}
@media (max-width: 860px) {
    .t7-hero-body { padding: 28px; max-width: none; }
    .t7-hero-title { font-size: 26px; }
    .t7-hero-cards { grid-template-columns: 1fr; }
    .t7-news { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .t7-news-collage { order: -1; }
    .t7-footer-grid { grid-template-columns: 1fr 1fr; }
    .t7-footer-col--card { grid-column: 1 / -1; }
    .t7-sectitle { font-size: 24px; }
    .t7-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .t7-post-title { font-size: 30px; }
}
@media (max-width: 560px) {
    .t7-grid-2, .t7-grid-3, .t7-grid-4 { grid-template-columns: 1fr; }
    .t7-topbar-links { gap: 14px; }
    .t7-footer-grid { grid-template-columns: 1fr; }
    .t7-footer-bottom { flex-direction: column; text-align: center; }
    .t7-hero-media { min-height: 300px; }
    .t7-news-frame--1, .t7-news-frame--2 { transform: none; }
}
