/*
Theme Name: Satellite Theme5 — Btourq
Theme URI: https://satellites.mobtools.ai/
Description: Bright news/magazine skin adapted from the Btourq demo. Dark meta topbar with a live date, a white brand row with an orange SUBSCRIBE pill, a bold uppercase nav row, an orange "TOP NEWS" sliding ticker, a split hero (one big overlay feature + two stacked cards), centered section headers with side-rules and an uppercase eyebrow, vivid rounded (pill) category tags, numbered "Feature News" cards on a warm band, a tri-column category showcase, an "Editor's Choice" grid, and a near-black multi-column footer. Type pairs Karla (headings/UI) with Lora (body serif); accent is a warm orange-red. Motion: on-scroll fade-up reveals, ticker slide, 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-theme5
*/

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* THEME-OWNED palette (does NOT inherit satellite_primary_color) */
    --t5-primary: #f54923;
    --t5-primary-2: #d83c18;
    --t5-ink: #121418;
    --t5-ink-2: #6c6f72;
    --t5-ink-3: #9a9ca0;
    --t5-on-dark: #d9dadc;
    --t5-bg: #ffffff;
    --t5-bg-alt: #fcf4ef;
    --t5-line: #ececec;
    --t5-topbar: #121418;
    --t5-dark: #121418;
    --t5-footer: #121418;

    --t5-font: "Lora", Georgia, "Times New Roman", serif;
    --t5-head: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --t5-display: "Karla", sans-serif;
    --t5-ui: "Karla", sans-serif;

    --t5-container: 1200px;
    --t5-radius: 6px;
    --t5-pill: 30px;
    --t5-shadow: 0 12px 34px rgba(18, 20, 24, .10);
    --t5-shadow-sm: 0 6px 20px rgba(18, 20, 24, .07);
    --t5-topbar-h: 44px;
    --t5-ease: cubic-bezier(.25, .46, .45, .94);
}

/* ─── Base ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--t5-font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--t5-ink-2);
    background: var(--t5-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-theme5 a { text-decoration: none; }
.theme-theme5 .t5-article-body a,
.theme-theme5 .t5-page-body a { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--t5-head); color: var(--t5-ink); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1.4em; }

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

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

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.t5-topbar { background: var(--t5-topbar); color: #9a9ca0; font-family: var(--t5-ui); }
.t5-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--t5-topbar-h); }
.t5-topbar-links { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.t5-topbar-links a { color: #b7b9bc; transition: color .2s var(--t5-ease); }
.t5-topbar-links a:hover { color: #fff; }
.t5-topbar-links .sep { color: #4a4d52; }
.t5-topbar-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #b7b9bc; }
.t5-topbar-meta svg { color: var(--t5-primary); flex: none; }

/* ─── Brand row ──────────────────────────────────────────────────────── */
.t5-brandrow { background: var(--t5-bg); border-bottom: 1px solid var(--t5-line); }
.t5-brandrow-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.t5-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; line-height: 1; }
.t5-brand-mark {
    width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex;
    align-items: center; justify-content: center; background: var(--t5-primary); color: #fff;
    font-family: var(--t5-display); font-weight: 800; font-size: 24px;
}
.t5-brand-name {
    display: block; font-family: var(--t5-display); font-weight: 700; font-size: 32px;
    letter-spacing: -.01em; color: var(--t5-ink);
}
.t5-brand-tag { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--t5-ink-3); margin-top: 3px; }
.t5-brandrow-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.t5-brand-social { display: flex; gap: 10px; }
.t5-brand-social a {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--t5-line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--t5-ink-2);
    transition: .2s var(--t5-ease);
}
.t5-brand-social a:hover { background: var(--t5-primary); border-color: var(--t5-primary); color: #fff; }
.t5-subscribe {
    display: inline-flex; align-items: center; gap: 8px; background: var(--t5-primary); color: #fff;
    font-family: var(--t5-ui); font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; padding: 14px 28px; border-radius: var(--t5-pill); transition: .2s var(--t5-ease);
}
.t5-subscribe:hover { background: var(--t5-ink); color: #fff; }

/* ─── Nav row ────────────────────────────────────────────────────────── */
.t5-navrow { background: var(--t5-bg); border-bottom: 1px solid var(--t5-line); }
.t5-navrow.is-stuck {
    position: fixed; top: 0; left: 0; right: 0; z-index: 950; background: #fff;
    box-shadow: var(--t5-shadow-sm); animation: t5-drop .35s var(--t5-ease);
}
@keyframes t5-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.t5-navrow-inner { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.t5-nav { min-width: 0; }
.t5-primary-list { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; margin: 0; padding: 0; }
.t5-primary-list a {
    font-family: var(--t5-ui); font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .01em; color: var(--t5-ink); transition: color .2s var(--t5-ease); white-space: nowrap;
    display: inline-block; padding: 18px 0;
}
.t5-primary-list a:hover, .t5-primary-list .current-menu-item > a { color: var(--t5-primary); }
.t5-primary-list ul { display: none; }
.t5-nav-brand { display: none; }

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

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

/* ─── Ticker (TOP NEWS) ──────────────────────────────────────────────── */
.t5-ticker-bar { background: var(--t5-bg-alt); border-bottom: 1px solid var(--t5-line); }
.t5-ticker { display: flex; align-items: center; gap: 0; min-height: 52px; }
.t5-ticker-label {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    background: var(--t5-primary); color: #fff; font-family: var(--t5-ui);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: 8px 18px; border-radius: var(--t5-pill); margin-right: 22px;
}
.t5-ticker-label svg { flex: none; }
.t5-ticker-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.t5-ticker-track { display: flex; flex-wrap: nowrap; width: 100%; will-change: transform; }
.t5-ticker-item {
    flex: 0 0 100%; width: 100%; max-width: 100%; font-family: var(--t5-head); font-size: 15px;
    font-weight: 600; color: var(--t5-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 52px;
}
.t5-ticker-item:hover { color: var(--t5-primary); }
.t5-ticker-nav { display: flex; gap: 6px; flex: none; margin-left: 16px; }
.t5-ticker-btn { width: 30px; height: 30px; border: 1px solid var(--t5-line); background: #fff; border-radius: 4px; cursor: pointer; color: var(--t5-ink-2); display: inline-flex; align-items: center; justify-content: center; }
.t5-ticker-btn:hover { background: var(--t5-primary); color: #fff; border-color: var(--t5-primary); }

/* ─── Section header (centered, side rules, eyebrow) ─────────────────── */
.t5-section-head { text-align: center; margin-bottom: 34px; }
.t5-section-title {
    position: relative; display: inline-block; font-family: var(--t5-head); font-size: 36px;
    font-weight: 700; color: var(--t5-ink); margin: 0; padding: 0 26px;
}
.t5-section-title::before, .t5-section-title::after {
    content: ""; position: absolute; top: 50%; width: 220px; height: 1px; background: var(--t5-line);
}
.t5-section-title::before { right: 100%; }
.t5-section-title::after { left: 100%; }
.t5-section-sub { display: block; font-family: var(--t5-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--t5-ink-3); margin-top: 10px; }
.t5-section-head--left { text-align: left; }
.t5-section-head--left .t5-section-title { padding: 0; font-size: 26px; }
.t5-section-head--left .t5-section-title::before { display: none; }
.t5-section-head--left .t5-section-title::after { left: auto; right: 100%; margin-right: 0; }
.t5-section-head--left { display: flex; align-items: center; gap: 16px; }
.t5-section-head--left .t5-section-title { white-space: nowrap; }
.t5-section-head--left .t5-section-rule { flex: 1; height: 1px; background: var(--t5-line); }

.t5-band { background: var(--t5-bg-alt); }
.t5-band .t5-section-title::before, .t5-band .t5-section-title::after { background: #ecddd4; }

/* ─── Pills (rounded category tags) ──────────────────────────────────── */
.t5-pill {
    display: inline-block; background: var(--pill, var(--t5-primary)); color: #fff;
    font-family: var(--t5-ui); font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; padding: 6px 15px; line-height: 1.3; border-radius: var(--t5-pill);
}
.t5-pill--overlay { position: absolute; top: 16px; left: 16px; z-index: 3; }

/* ─── Section spacing ────────────────────────────────────────────────── */
.t5-section { padding: 62px 0; }
.t5-section--tight { padding: 46px 0; }
.t5-block { margin-bottom: 44px; }

/* ─── Hero (split: big feature + two stacked cards) ──────────────────── */
.t5-hero { padding: 40px 0 8px; }
.t5-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.t5-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }

/* ─── Overlay card (hero lead, hero side, tri-column featured) ───────── */
.t5-ov-card { position: relative; border-radius: var(--t5-radius); overflow: hidden; background: #121418; }
.t5-ov-media { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.t5-ov-media img, .t5-ov-media .t5-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t5-ease); }
.t5-ov-card:hover .t5-ov-media img { transform: scale(1.06); }
.t5-ov-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,20,24,.88) 0%, rgba(18,20,24,.15) 55%, transparent 100%); }
.t5-ov-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 2; }
.t5-ov-content .t5-pill { margin-bottom: 12px; }
.t5-ov-date { display: inline-flex; align-items: center; gap: 6px; font-family: var(--t5-ui); font-size: 12px; color: #d7d7d7; margin-bottom: 6px; }
.t5-ov-title { font-family: var(--t5-head); font-size: 19px; line-height: 1.32; font-weight: 700; margin: 0; }
.t5-ov-title a { color: #fff; }
.t5-ov-title a:hover { color: #fff; opacity: .9; }
.t5-ov-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--t5-ui); font-size: 12px; color: #e2e2e2; margin-top: 10px; }
.t5-ov-meta span { display: inline-flex; align-items: center; gap: 6px; }
.t5-hero-lead .t5-ov-card { min-height: 520px; }
.t5-hero-lead .t5-ov-media, .t5-hero-side .t5-ov-media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.t5-hero-lead .t5-ov-title { font-size: 34px; line-height: 1.15; }
.t5-hero-side .t5-ov-card { min-height: 248px; }

/* ─── Standard card (image top, pill, title, meta) ───────────────────── */
.t5-card { display: flex; flex-direction: column; }
.t5-card-media { position: relative; display: block; border-radius: var(--t5-radius); overflow: hidden; aspect-ratio: 4 / 3; }
.t5-card-media img, .t5-card-media .t5-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t5-ease); }
.t5-card:hover .t5-card-media img { transform: scale(1.06); }
.t5-card-num {
    position: absolute; right: 14px; top: -23px; width: 46px; height: 46px; border-radius: 50%;
    background: #fff; color: var(--t5-ink); font-family: var(--t5-head); font-weight: 500; font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--t5-shadow-sm); z-index: 3;
}
.t5-card-body { position: relative; padding-top: 18px; }
.t5-card-body .t5-pill { margin-bottom: 12px; }
.t5-card-title { font-family: var(--t5-head); font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; color: var(--t5-ink); }
.t5-card-title a:hover { color: var(--t5-primary); }
.t5-card-meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--t5-ui); font-size: 13px; color: var(--t5-ink-3); }
.t5-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.t5-card-meta strong { color: var(--t5-ink); font-weight: 700; }
.t5-card-meta svg { flex: none; }

/* ─── List card (weekly list, tri-column) ────────────────────────────── */
.t5-list-card { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--t5-line); align-items: flex-start; }
.t5-list-card:last-child { border-bottom: 0; }
.t5-list-thumb { flex: 0 0 116px; width: 116px; height: 88px; border-radius: var(--t5-radius); overflow: hidden; }
.t5-list-thumb--round { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; }
.t5-list-thumb img, .t5-list-thumb .t5-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.t5-list-body { min-width: 0; }
.t5-list-cat { font-family: var(--t5-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.t5-list-title { font-family: var(--t5-head); font-size: 17px; line-height: 1.4; font-weight: 700; margin: 4px 0 0; color: var(--t5-ink); }
.t5-list-title a:hover { color: var(--t5-primary); }
.t5-list-meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--t5-ui); font-size: 12px; color: var(--t5-ink-3); margin-top: 6px; }
.t5-list-meta span { display: inline-flex; align-items: center; gap: 5px; }
.t5-list-meta svg { color: var(--t5-primary); flex: none; }

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

/* ─── Weekly (featured + list) ───────────────────────────────────────── */
.t5-splitfeature { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.t5-splitfeature .t5-card-media { aspect-ratio: 16 / 10; }
.t5-splitfeature .t5-card-title { font-size: 24px; }

/* ─── Tri-column showcase ────────────────────────────────────────────── */
.t5-tricol { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }
.t5-tricol-col--mid { border-left: 1px solid var(--t5-line); border-right: 1px solid var(--t5-line); padding: 0 30px; }
.t5-tricol .t5-ov-card { margin-bottom: 18px; }
.t5-tricol .t5-ov-card .t5-ov-media { aspect-ratio: 16 / 10; }
.t5-tricol .t5-list-card { padding: 12px 0; }

/* ─── Load more ──────────────────────────────────────────────────────── */
.t5-loadmore-wrap { text-align: center; margin-top: 46px; }
.t5-loadmore {
    display: inline-block; background: var(--t5-primary); color: #fff; font-family: var(--t5-ui);
    font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: 16px 42px; border-radius: var(--t5-pill); transition: .2s var(--t5-ease);
}
.t5-loadmore:hover { background: var(--t5-ink); }

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

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

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

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

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

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

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

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

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

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

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

/* ─── Footer ─────────────────────────────────────────────────────────── */
.t5-footer { background: var(--t5-footer); color: #a9abae; padding: 70px 0 0; }
.t5-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.t5-footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.t5-footer-logo { font-family: var(--t5-display); font-weight: 700; font-size: 30px; color: #fff; }
.t5-footer-about { font-size: 15px; line-height: 1.8; margin: 0 0 20px; }
.t5-footer-social { display: flex; gap: 14px; }
.t5-footer-social a { color: #cfd0d2; display: inline-flex; }
.t5-footer-social a:hover { color: var(--t5-primary); }
.t5-footer-title { color: #fff; font-family: var(--t5-head); font-size: 20px; margin: 0 0 22px; }
.t5-footer-links { list-style: none; margin: 0; padding: 0; }
.t5-footer-links li { margin-bottom: 12px; }
.t5-footer-links a { font-size: 15px; color: #b3b4b7; }
.t5-footer-links a:hover { color: var(--t5-primary); padding-left: 4px; }
.t5-footer-subscribe { display: flex; margin-top: 16px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 8px; }
.t5-footer-subscribe input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 8px 0; font: inherit; }
.t5-footer-subscribe input::placeholder { color: #8a8c8f; }
.t5-footer-subscribe button { border: 0; background: var(--t5-primary); color: #fff; width: 40px; height: 40px; border-radius: var(--t5-radius); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.t5-footer-note { font-size: 14px; margin: 16px 0 0; line-height: 1.7; }
.t5-footer-post { display: flex; gap: 14px; margin-bottom: 18px; }
.t5-footer-post-thumb { flex: 0 0 72px; width: 72px; height: 60px; border-radius: var(--t5-radius); overflow: hidden; }
.t5-footer-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t5-footer-post-date { font-family: var(--t5-ui); font-size: 12px; color: var(--t5-primary); margin-bottom: 4px; }
.t5-footer-post-title { color: #e2e2e2; font-family: var(--t5-head); font-weight: 700; font-size: 14px; line-height: 1.4; }
.t5-footer-post-title:hover { color: var(--t5-primary); }
.t5-footer-bottom-wrap { border-top: 1px solid rgba(255,255,255,.08); }
.t5-footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--t5-ui); font-size: 14px; color: #8f9093; }
.t5-footer-bottom strong { color: var(--t5-primary); font-family: var(--t5-head); }
.t5-footer-bottom-links { display: flex; gap: 22px; }
.t5-footer-bottom-links a:hover { color: #fff; }

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

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

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .t5-hero-lead .t5-ov-title { font-size: 28px; }
    .t5-section-title::before, .t5-section-title::after { width: 120px; }
}
@media (max-width: 1200px) {
    /* Collapse the bold uppercase nav to a drawer before it outgrows the row.
       With a full 6–7 item menu the nowrap list would otherwise overflow its
       track and spill over the search toggle at the right. */
    .t5-nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff; z-index: 1200;
        transform: translateX(100%); transition: transform .3s var(--t5-ease); padding: 90px 26px 26px; margin: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,.2); overflow-y: auto;
    }
    .t5-nav.is-open { transform: translateX(0); }
    .t5-primary-list { flex-direction: column; align-items: flex-start; gap: 0; }
    .t5-primary-list a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--t5-line); font-size: 14px; }
    .t5-menu-toggle { display: flex; }
    .t5-navrow-inner { justify-content: space-between; }
    .t5-navrow-actions { margin-left: 0; }
}
@media (max-width: 992px) {
    .t5-layout { grid-template-columns: 1fr; }
    .t5-hero-grid { grid-template-columns: 1fr; }
    .t5-hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .t5-tricol { grid-template-columns: 1fr; }
    .t5-tricol-col--mid { border: 0; padding: 0; border-top: 1px solid var(--t5-line); border-bottom: 1px solid var(--t5-line); padding: 24px 0; }
    .t5-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .t5-splitfeature { grid-template-columns: 1fr; }
    .t5-brand-social { display: none; }
}
@media (max-width: 768px) {
    .t5-section-title { font-size: 28px; }
    .t5-section-title::before, .t5-section-title::after { width: 60px; }
    .t5-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .t5-brandrow-inner { min-height: 76px; }
    .t5-brand-name { font-size: 26px; }
    .t5-post-title { font-size: 30px; }
    .t5-footer-grid { grid-template-columns: 1fr 1fr; }
    .t5-hero-lead .t5-ov-card { min-height: 380px; }
}
@media (max-width: 560px) {
    .t5-grid-2, .t5-grid-3, .t5-grid-4 { grid-template-columns: 1fr; }
    .t5-hero-side { grid-template-columns: 1fr; }
    .t5-topbar-links { display: none; }
    .t5-footer-grid { grid-template-columns: 1fr; }
    .t5-footer-bottom { flex-direction: column; text-align: center; }
    .t5-subscribe { padding: 12px 20px; }
}
