/*
Theme Name: Satellite Theme9 — Binduz
Theme URI: https://satellites.mobtools.ai/
Description: Bold newspaper skin adapted from the Binduz "Newspaper" demo. A blue-gradient utility topbar (a Trending ticker + social icons + a Subscribe button), a white header with a red square logo mark + a two-line BINDUZ / NEWSPAPER wordmark, a horizontal nav and a search field, a full-bleed overlay hero with an overlapping two-post strip, a "Trending News" 3-up overlay row, a "Featured" big-feature + list block, a "Categories" tall portrait-card row, a dark "Trending Now" band, and a "Business" latest grid with Load More beside a sidebar (Most Viewed list + a Tags cloud), over a dark multi-column footer. Category labels are small red uppercase pills, cards are squared, meta shows view + comment counts. Type: Roboto (UI/body) + Roboto Slab (titles/accents); accent is a vivid red (#f63a3a) with a royal-blue gradient topbar. 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.2
License: GPL-2.0-or-later
Text Domain: satellite-theme9
*/

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* THEME-OWNED palette (does NOT inherit satellite_primary_color) */
    --t9-primary: #f63a3a;
    --t9-primary-2: #ff5b46;
    --t9-primary-d: #d81f2a;
    --t9-ink: #1b1b1b;
    --t9-ink-2: #6b6f76;
    --t9-ink-3: #9a9ea6;
    --t9-on-dark: #b9bcc2;
    --t9-bg: #ffffff;
    --t9-bg-alt: #f5f6f8;
    --t9-line: #e7e8ea;
    --t9-dark: #1b1d22;
    --t9-darker: #16171b;

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

    --t9-container: 1200px;
    --t9-radius: 4px;
    --t9-pill: 3px;
    --t9-grad: linear-gradient(90deg, #f63a3a 0%, #ff5b46 100%);
    --t9-topbar-grad: linear-gradient(115deg, #1a29c9 0%, #2f5bff 52%, #4a86ff 100%);
    --t9-shadow: 0 14px 40px rgba(17, 18, 20, .14);
    --t9-shadow-sm: 0 6px 20px rgba(17, 18, 20, .08);
    --t9-topbar-h: 46px;
    --t9-ease: cubic-bezier(.25, .46, .45, .94);
}

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

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

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

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

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

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

/* ─── Topbar (blue gradient) ─────────────────────────────────────────── */
.t9-topbar { background: var(--t9-topbar-grad); color: #fff; font-family: var(--t9-ui); }
.t9-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--t9-topbar-h); }
.t9-ticker { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; color: rgba(255,255,255,.9); }
.t9-ticker-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.t9-ticker-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t9-ticker:hover .t9-ticker-text { color: #fff; }
.t9-topbar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.t9-topbar-social { display: flex; align-items: center; gap: 14px; }
.t9-topbar-social a { color: rgba(255,255,255,.85); display: inline-flex; transition: color .2s var(--t9-ease); }
.t9-topbar-social a:hover { color: #fff; }
.t9-subscribe { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); color: #fff; font-family: var(--t9-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 8px 20px; border-radius: var(--t9-pill); cursor: pointer; transition: .2s var(--t9-ease); }
.t9-subscribe:hover { background: #fff; color: #1a29c9; }

/* ─── Header ─────────────────────────────────────────────────────────── */
.t9-header { background: var(--t9-bg); border-bottom: 1px solid var(--t9-line); }
.t9-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 950; box-shadow: var(--t9-shadow-sm); animation: t9-drop .35s var(--t9-ease); }
@keyframes t9-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.t9-header-inner { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.t9-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
/* the_custom_logo() outputs <a class="custom-logo-link"><img class="custom-logo">.
   Clamp both so a site's natural-size logo can't blow up the header layout. */
.t9-brand .custom-logo-link, .t9-brand .custom-logo { display: inline-block; max-height: 50px; max-width: 210px; width: auto; height: auto; object-fit: contain; line-height: 0; vertical-align: middle; }
.t9-brand .custom-logo-link { text-decoration: none; }
.t9-brand-mark { width: 48px; height: 48px; flex: none; background: var(--t9-primary); color: #fff; border-radius: var(--t9-radius); display: inline-flex; align-items: center; justify-content: center; font-family: var(--t9-slab); font-weight: 700; font-size: 28px; line-height: 1; }
.t9-brand-text { display: flex; flex-direction: column; line-height: 1; }
.t9-brand-name { font-family: var(--t9-display); font-weight: 700; font-size: 24px; letter-spacing: .01em; color: var(--t9-ink); text-transform: uppercase; white-space: nowrap; }
.t9-brand-sub { font-family: var(--t9-ui); font-size: 10px; font-weight: 500; letter-spacing: .42em; color: var(--t9-ink-3); text-transform: uppercase; margin-top: 4px; }
.t9-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.t9-primary-list { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.t9-primary-list a { font-family: var(--t9-ui); font-size: 14px; font-weight: 500; color: var(--t9-ink); transition: color .2s var(--t9-ease); white-space: nowrap; }
.t9-primary-list a:hover, .t9-primary-list .current-menu-item > a { color: var(--t9-primary); }
.t9-primary-list ul { display: none; }
.t9-headsearch { flex: none; display: flex; align-items: center; gap: 8px; border: 1px solid var(--t9-line); border-radius: var(--t9-pill); padding: 9px 14px; color: var(--t9-ink-3); width: 160px; transition: border-color .2s var(--t9-ease); }
.t9-headsearch:focus-within { border-color: var(--t9-primary); }
.t9-headsearch svg { flex: none; }
.t9-headsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--t9-ink); outline: none; }
.t9-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.t9-menu-toggle span { width: 24px; height: 2px; background: var(--t9-ink); transition: .25s var(--t9-ease); }
.t9-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t9-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.t9-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Section header (title + red rule) ──────────────────────────────── */
.t9-eyebrow { display: block; font-family: var(--t9-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--t9-primary); margin-bottom: 4px; }
.t9-sechead { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.t9-sechead-text { flex: none; }
.t9-sectitle { font-family: var(--t9-head); font-size: 25px; font-weight: 700; color: var(--t9-ink); margin: 0; }
.t9-secline { flex: 1; height: 2px; background: var(--t9-primary); border-radius: 2px; opacity: .85; }
.t9-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--t9-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--t9-primary); flex: none; }
.t9-more:hover { color: var(--t9-primary-d); }

/* ─── Section spacing ────────────────────────────────────────────────── */
.t9-section { padding: 44px 0; }

/* ─── Hero (full-bleed overlay + overlapping strip) ──────────────────── */
.t9-hero { padding-bottom: 8px; }
.t9-hero-feature { position: relative; background: var(--t9-dark); }
.t9-hero-media { display: block; position: relative; height: 560px; }
.t9-hero-media img, .t9-hero-media .t9-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--t9-ease); }
.t9-hero-feature:hover .t9-hero-media img { transform: scale(1.04); }
.t9-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,14,.9) 0%, rgba(10,11,14,.35) 50%, rgba(10,11,14,.15) 100%); }
.t9-hero-inner { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 2; padding-bottom: 44px; }
.t9-hero-body { max-width: 640px; }
.t9-hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.t9-hero-date { font-family: var(--t9-ui); font-size: 13px; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; }
.t9-hero-title { font-family: var(--t9-head); font-size: 44px; line-height: 1.16; font-weight: 700; margin: 0 0 20px; }
.t9-hero-title a { color: #fff; }
.t9-hero-title a:hover { color: rgba(255,255,255,.85); }
.t9-hero-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.t9-hero-bits { display: inline-flex; gap: 16px; }
.t9-hero-bits .t9-mi { color: rgba(255,255,255,.8); }
.t9-hero-strip { position: relative; z-index: 5; margin-top: -78px; margin-left: auto; max-width: 720px; background: #fff; box-shadow: var(--t9-shadow); border-radius: var(--t9-radius); display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.t9-hero-strip-item { display: flex; gap: 14px; align-items: center; padding: 22px 24px; }
.t9-hero-strip-item + .t9-hero-strip-item { border-left: 1px solid var(--t9-line); }
.t9-hero-strip-thumb { flex: 0 0 78px; width: 78px; height: 62px; border-radius: var(--t9-radius); overflow: hidden; background: var(--t9-bg-alt); }
.t9-hero-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t9-hero-strip-date { font-family: var(--t9-ui); font-size: 12px; color: var(--t9-primary); }
.t9-hero-strip-title { font-family: var(--t9-head); font-size: 15px; line-height: 1.38; font-weight: 700; margin: 6px 0 0; color: var(--t9-ink); }
.t9-hero-strip-title a:hover { color: var(--t9-primary); }

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

/* ─── Featured (big feature + list) ──────────────────────────────────── */
.t9-feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: stretch; }
.t9-feat-lead { min-width: 0; }
.t9-feat-lead .t9-ocard { height: 100%; }
.t9-feat-lead .t9-ocard-media { aspect-ratio: auto; height: 100%; min-height: 380px; }
.t9-feat-list { min-width: 0; }

/* ─── Split (main grid + sidebar) ────────────────────────────────────── */
.t9-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.t9-split-main { min-width: 0; }
.t9-split-side { display: flex; flex-direction: column; gap: 34px; }
.t9-split-main .t9-grid { gap: 26px 30px; }

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

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

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

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

/* ─── Dark band (Trending Now) ───────────────────────────────────────── */
.t9-band { background: var(--t9-dark); }
.t9-band .t9-eyebrow { color: var(--t9-primary-2); }
.t9-band .t9-sectitle { color: #fff; }
.t9-band .t9-secline { opacity: .9; }

/* ─── Ranked widget (Most Viewed) ────────────────────────────────────── */
.t9-widget { }
.t9-widget-title { color: var(--t9-ink); font-family: var(--t9-head); font-size: 19px; font-weight: 700; margin: 0 0 20px; position: relative; padding-bottom: 12px; border-bottom: 1px solid var(--t9-line); }
.t9-widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: var(--t9-primary); }
.t9-rank { list-style: none; margin: 0; padding: 0; }
.t9-rank-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--t9-line); }
.t9-rank-item:last-child { border-bottom: 0; }
.t9-rank-num { font-family: var(--t9-slab); font-size: 22px; font-weight: 700; color: var(--t9-line); flex: none; width: 30px; line-height: 1; }
.t9-rank-body { min-width: 0; }
.t9-rank-date { font-family: var(--t9-ui); font-size: 12px; color: var(--t9-primary); }
.t9-rank-title { font-family: var(--t9-head); font-size: 15px; line-height: 1.4; font-weight: 700; margin: 4px 0 0; color: var(--t9-ink); }
.t9-rank-title a:hover { color: var(--t9-primary); }
.t9-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.t9-tagcloud a { background: var(--t9-bg-alt); border: 1px solid var(--t9-line); border-radius: var(--t9-pill); padding: 6px 14px; font-family: var(--t9-ui); font-size: 13px; color: var(--t9-ink-2); transition: .2s var(--t9-ease); }
.t9-tagcloud a:hover { background: var(--t9-primary); border-color: var(--t9-primary); color: #fff; }

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

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

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

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

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

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

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

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

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

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

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

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

/* ─── Footer (dark) ──────────────────────────────────────────────────── */
.t9-footer { background: var(--t9-dark); color: var(--t9-on-dark); padding: 64px 0 0; }
.t9-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.t9-footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.t9-footer-brand .t9-brand-mark { width: 42px; height: 42px; font-size: 24px; }
.t9-footer-logo { font-family: var(--t9-display); font-weight: 700; font-size: 25px; color: #fff; text-transform: uppercase; }
.t9-footer-about { font-size: 14px; line-height: 1.7; margin: 0 0 18px; color: rgba(255,255,255,.6); }
.t9-footer-social { display: flex; gap: 14px; }
.t9-footer-social a { color: rgba(255,255,255,.6); display: inline-flex; }
.t9-footer-social a:hover { color: var(--t9-primary); }
.t9-footer-title { color: #fff; font-family: var(--t9-head); font-size: 17px; font-weight: 700; margin: 0 0 20px; position: relative; padding-bottom: 12px; }
.t9-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--t9-primary); }
.t9-footer-links { list-style: none; margin: 0; padding: 0; }
.t9-footer-links li { margin-bottom: 12px; }
.t9-footer-links a { font-size: 14px; color: rgba(255,255,255,.65); }
.t9-footer-links a:hover { color: var(--t9-primary); padding-left: 3px; }
.t9-footer-post { display: flex; gap: 14px; margin-bottom: 16px; }
.t9-footer-post-thumb { flex: 0 0 72px; width: 72px; height: 58px; border-radius: var(--t9-radius); overflow: hidden; background: rgba(255,255,255,.08); }
.t9-footer-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t9-footer-post-date { font-family: var(--t9-ui); font-size: 12px; color: var(--t9-primary); margin-bottom: 3px; }
.t9-footer-post-title { color: rgba(255,255,255,.85); font-family: var(--t9-head); font-weight: 700; font-size: 14px; line-height: 1.4; }
.t9-footer-post-title:hover { color: var(--t9-primary); }
.t9-footer-bottom-wrap { background: var(--t9-darker); }
.t9-footer-bottom { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--t9-ui); font-size: 14px; color: rgba(255,255,255,.55); }
.t9-footer-bottom strong { color: #fff; }
.t9-footer-bottom-links { display: flex; gap: 22px; }
.t9-footer-bottom-links a:hover { color: #fff; }

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

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

/* ─── Responsive ─────────────────────────────────────────────────────── */
/* Collapse the header to a hamburger while there's still enough room for a
   comfortable off-canvas menu. The horizontal nav (brand + 5–6 items + a
   search pill, all against the 1200px container) needs the full desktop
   width; below that it would overflow its centered track and spill over the
   brand and the search box, so we switch to the drawer at ≤1200px. */
@media (max-width: 1200px) {
    .t9-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; justify-content: flex-start; }
    .t9-nav.is-open { display: block; }
    .t9-primary-list { flex-direction: column; align-items: flex-start; gap: 0; }
    .t9-primary-list a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--t9-line); font-size: 15px; }
    .t9-menu-toggle { display: flex; }
    .t9-headsearch { display: none; }
}
@media (max-width: 1080px) {
    .t9-feat { grid-template-columns: 1fr; }
    .t9-split { grid-template-columns: 1fr; }
    .t9-layout { grid-template-columns: 1fr; }
    .t9-hero-media { height: 480px; }
    .t9-hero-title { font-size: 36px; }
}
@media (max-width: 860px) {
    .t9-grid-3, .t9-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .t9-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .t9-footer-grid { grid-template-columns: 1fr 1fr; }
    .t9-post-title { font-size: 30px; }
    .t9-sectitle { font-size: 21px; }
    .t9-hero-strip { margin-top: 0; max-width: none; border-radius: 0; box-shadow: none; border-top: 3px solid var(--t9-primary); }
    .t9-hero-title { font-size: 30px; }
}
@media (max-width: 560px) {
    .t9-grid-3, .t9-grid-4, .t9-grid-5 { grid-template-columns: 1fr; }
    .t9-topbar-social { display: none; }
    .t9-footer-grid { grid-template-columns: 1fr; }
    .t9-footer-bottom { flex-direction: column; text-align: center; }
    .t9-hero-media { height: 400px; }
    .t9-hero-strip { grid-template-columns: 1fr; }
    .t9-hero-strip-item + .t9-hero-strip-item { border-left: 0; border-top: 1px solid var(--t9-line); }
    .t9-brand-name { font-size: 22px; }
}
