/*
Theme Name: Satellite Theme1
Theme URI: https://satellites.mobtools.ai/themes/satellite-theme1
Author: Moburst
Author URI: https://moburst.ai
Description: A clean magazine skin adapted from the Davenport (creanncy) demo — green-gradient topbar with a live trending ticker, centered Nunito nameplate, uppercase centered nav, vivid rounded category pills, a 2-up cover hero, dense card grids with pill-overlay images, a cover-style single post with sidebar, and a light multi-column footer. Motion: on-scroll fade-up reveals + hover image-zoom. Type: Nunito nameplate, Rubik headings, Barlow body/reading, Source Sans nav.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 6.7
License: Proprietary
License URI: https://moburst.ai
Text Domain: satellite-theme1
Tags: magazine, news, blog, light, colored-category-pills, animated
*/

/* ══════════════════════════════════════════════════════════════════════
   1. RESET + TOKENS
   ══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Palette — matched from wp2.creanncy.com/davenport/davenport-2 */
    --t1-primary:      #02aa67;   /* Davenport green; THEME-OWNED (does NOT inherit satellite_primary_color) */
    --t1-accent:       #02aa67;
    --t1-ink:          #111111;   /* headings */
    --t1-body:         #6b6b6b;   /* body text */
    --t1-muted:        #9a9aa2;   /* meta / dates */
    --t1-bg:           #ffffff;
    --t1-bg-alt:       #f6f7f9;
    --t1-line:         #e6e8ec;
    --t1-dark:         #121212;   /* near-black subscribe button */
    --t1-cover:        #1b1b1f;   /* cover fallback */

    /* Type */
    --t1-display: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --t1-head:    'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --t1-font:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --t1-ui:      'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --t1-container: 1140px;
    --t1-gutter: 30px;
    --t1-radius: 5px;
    --t1-pill-radius: 30px;
    --t1-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--t1-font);
    font-size: 16px;
    line-height: 1.75;              /* 28px */
    color: var(--t1-body);
    background: var(--t1-bg);
    overflow-x: hidden;             /* safety net against stray full-width overflow */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--t1-head);
    font-weight: 500;
    color: var(--t1-ink);
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--t1-ease); }
img { max-width: 100%; height: auto; display: block; }

.t1-container {
    width: 100%;
    max-width: calc(var(--t1-container) + var(--t1-gutter) * 2);
    margin: 0 auto;
    padding-left: var(--t1-gutter);
    padding-right: var(--t1-gutter);
}

/* ── Motion: scroll-reveal fade-up ── */
.t1-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.5s var(--t1-ease), transform 0.5s var(--t1-ease); will-change: opacity, transform; }
.t1-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .t1-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   2. TOPBAR (green gradient + trending ticker)
   ══════════════════════════════════════════════════════════════════════ */
.t1-topbar {
    background: linear-gradient(to right, var(--t1-primary) 0%, color-mix(in srgb, var(--t1-primary) 55%, #ffffff) 100%);
    color: #fff;
}
.t1-topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 44px; }
.t1-topbar-date {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--t1-ui); font-size: 12px; font-weight: 600; letter-spacing: 1px;
    white-space: nowrap; flex-shrink: 0;
}
.t1-topbar-date svg { opacity: 0.9; }
.t1-ticker { display: flex; align-items: stretch; flex: 1; min-width: 0; }
.t1-ticker-label {
    display: inline-flex; align-items: center; background: rgba(0,0,0,0.2);
    color: #fff; font-family: var(--t1-ui); font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; padding: 0 20px; white-space: nowrap;
    margin: -12px 20px -12px 0;
}
/* Owl-style single-item slider: track holds all headlines in a row and
   translates by one full viewport width per step (no fade). */
.t1-ticker-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.t1-ticker-track { display: flex; flex-wrap: nowrap; width: 100%; will-change: transform; }
.t1-ticker-item {
    flex: 0 0 100%; width: 100%; max-width: 100%;
    font-family: var(--t1-font); font-size: 14px; color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.t1-ticker-item:hover { text-decoration: underline; }
.t1-ticker-nav { display: flex; gap: 4px; flex-shrink: 0; }
.t1-ticker-nav button {
    width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.5); background: transparent;
    color: #fff; border-radius: 4px; cursor: pointer; font-size: 16px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; transition: background 0.25s var(--t1-ease);
}
.t1-ticker-nav button:hover { background: rgba(255,255,255,0.18); }

/* ══════════════════════════════════════════════════════════════════════
   3. MASTHEAD (centered nameplate)
   ══════════════════════════════════════════════════════════════════════ */
.t1-masthead { background: var(--t1-bg); border-bottom: 1px solid var(--t1-line); }
.t1-masthead-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 20px; padding: 28px 30px; min-height: 96px;
}
.t1-masthead-left { justify-self: start; }
.t1-masthead-brand { justify-self: center; text-align: center; }
.t1-masthead-right { justify-self: end; display: inline-flex; align-items: center; gap: 18px; }

.t1-brand { display: inline-block; font-family: var(--t1-display); font-weight: 700; font-size: 46px; line-height: 1.05; color: var(--t1-ink); text-decoration: none; max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
.t1-masthead-brand .custom-logo { max-height: 60px; width: auto; }
.t1-masthead-brand img { margin: 0 auto; }

.t1-subscribe {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    background: var(--t1-dark); color: #fff; border: none;
    font-family: var(--t1-ui); font-size: 12px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; padding: 13px 26px; border-radius: var(--t1-pill-radius);
    transition: background 0.25s var(--t1-ease);
}
.t1-subscribe:hover { background: var(--t1-primary); }

.t1-social { display: inline-flex; align-items: center; gap: 14px; }
.t1-social a { color: var(--t1-ink); display: inline-flex; }
.t1-social a:hover { color: var(--t1-primary); }

.t1-search-toggle { background: none; border: none; color: var(--t1-ink); cursor: pointer; display: inline-flex; padding: 4px; }
.t1-search-toggle:hover { color: var(--t1-primary); }
.t1-search-panel { border-top: 1px solid var(--t1-line); background: var(--t1-bg-alt); padding: 18px 0; }

/* ══════════════════════════════════════════════════════════════════════
   4. NAV (centered uppercase)
   ══════════════════════════════════════════════════════════════════════ */
.t1-nav { background: var(--t1-bg); border-bottom: 1px solid var(--t1-line); position: sticky; top: 0; z-index: 90; }
.t1-nav-inner { display: flex; align-items: center; justify-content: center; position: relative; min-height: 54px; }
.t1-primary-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; list-style: none; }
.t1-primary-list li { position: relative; }
.t1-primary-list li a {
    display: inline-flex; align-items: center; gap: 6px; padding: 16px 18px;
    font-family: var(--t1-ui); font-size: 14px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--t1-ink); white-space: nowrap;
}
.t1-primary-list li a:hover, .t1-primary-list li.current-menu-item > a, .t1-primary-list li.current-cat > a { color: var(--t1-primary); }
/* sub-menus */
.t1-primary-list li ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--t1-line); box-shadow: 0 10px 30px rgba(0,0,0,0.08); min-width: 200px; z-index: 20; padding: 6px 0; }
.t1-primary-list li:hover > ul { display: block; }
.t1-primary-list li ul li a { padding: 9px 18px; text-transform: none; letter-spacing: 0; font-size: 14px; }

.t1-menu-toggle { display: none; position: absolute; left: 30px; top: 50%; transform: translateY(-50%); background: var(--t1-bg-alt); border: 1px solid var(--t1-line); padding: 9px 10px; border-radius: var(--t1-radius); cursor: pointer; }
.t1-menu-toggle span { display: block; width: 18px; height: 2px; background: var(--t1-ink); margin: 3px 0; }

/* ══════════════════════════════════════════════════════════════════════
   5. PILLS
   ══════════════════════════════════════════════════════════════════════ */
.t1-pill {
    display: inline-flex; align-items: center; align-self: flex-start; width: fit-content;
    background: var(--t1-primary); color: #fff;
    font-family: var(--t1-ui); font-size: 10px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; padding: 3px 15px; border-radius: var(--t1-pill-radius);
    line-height: 1.6;
}
.t1-pill:hover { filter: brightness(1.08); }
.t1-pill--overlay { position: absolute; left: 16px; bottom: 16px; z-index: 3; }

/* ══════════════════════════════════════════════════════════════════════
   6. TOP COVER CAROUSEL (full-bleed, above masthead) + FEATURED BLOCK
   ══════════════════════════════════════════════════════════════════════ */
.t1-cover-carousel { position: relative; overflow: hidden; }
.t1-cover-track { display: flex; gap: 0; will-change: transform; }
.t1-cover-slide { position: relative; flex: 0 0 33.3333%; min-width: 0; height: 440px; overflow: hidden; }
.t1-cover-slide-media { position: absolute; inset: 0; overflow: hidden; display: block; }
.t1-cover-slide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--t1-ease); }
.t1-cover-slide:hover .t1-cover-slide-media img { transform: scale(1.05); }
.t1-cover-slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.05) 100%); }
.t1-cover-slide .t1-pill--overlay { left: 26px; top: 26px; bottom: auto; }
.t1-cover-slide-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 28px; color: #fff; }
.t1-cover-slide-date { display: inline-flex; align-items: center; gap: 7px; font-family: var(--t1-ui); font-size: 13px; opacity: 0.92; margin-bottom: 10px; }
.t1-cover-slide-title { font-size: 25px; line-height: 1.22; color: #fff; margin-bottom: 10px; }
.t1-cover-slide-title a { color: #fff; }
.t1-cover-slide-title a:hover { color: rgba(255,255,255,0.85); }
.t1-cover-slide-by { font-family: var(--t1-ui); font-size: 13px; opacity: 0.9; }
.t1-cover-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(0,0,0,0.42); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.25s var(--t1-ease), background 0.25s var(--t1-ease); }
.t1-cover-carousel:hover .t1-cover-nav { opacity: 1; }
.t1-cover-prev { left: 16px; }
.t1-cover-next { right: 16px; }
.t1-cover-nav:hover { background: var(--t1-primary); }

/* Featured block — 1 large overlay card + 2 standard cards, one row */
.t1-featured { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--t1-gutter); align-items: start; margin-top: 50px; }
.t1-featured-lead { display: flex; }
.t1-featured-rest { display: contents; }
.t1-cover-card { position: relative; overflow: hidden; border-radius: var(--t1-radius); display: flex; width: 100%; min-height: 320px; }
.t1-cover-card--lg { min-height: 430px; }
.t1-cover-card-media { position: absolute; inset: 0; overflow: hidden; }
.t1-cover-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--t1-ease); }
.t1-cover-card:hover .t1-cover-card-media img { transform: scale(1.05); }
.t1-cover-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.05) 100%); }
.t1-cover-card .t1-pill--overlay { left: 24px; top: 24px; bottom: auto; }
.t1-cover-card-content { position: relative; z-index: 2; margin-top: auto; padding: 26px; color: #fff; }
.t1-cover-card--lg .t1-cover-card-content { padding: 40px; }
.t1-cover-card-date { display: inline-flex; align-items: center; gap: 7px; font-family: var(--t1-ui); font-size: 13px; opacity: 0.92; margin-bottom: 10px; }
.t1-cover-card-title { font-size: 21px; line-height: 1.25; color: #fff; margin-bottom: 10px; }
.t1-cover-card--lg .t1-cover-card-title { font-size: 30px; }
.t1-cover-card-title a { color: #fff; }
.t1-cover-card-title a:hover { color: rgba(255,255,255,0.85); }
.t1-cover-card-by { font-family: var(--t1-ui); font-size: 13px; opacity: 0.9; }
.t1-thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-family: var(--t1-display); font-weight: 700; font-size: 42px; }

/* ══════════════════════════════════════════════════════════════════════
   7. SECTIONS + GRIDS + CARDS
   ══════════════════════════════════════════════════════════════════════ */
.t1-section { margin-bottom: 56px; }
.t1-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid var(--t1-line); }
.t1-section-title { font-size: 30px; font-weight: 500; color: var(--t1-ink); position: relative; padding-left: 14px; }
.t1-section-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--t1-accent); border-radius: 2px; }
.t1-section-sub { display: block; font-family: var(--t1-font); font-size: 14px; color: var(--t1-muted); margin-top: 4px; padding-left: 14px; }
.t1-section-link { font-family: var(--t1-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--t1-primary); white-space: nowrap; flex-shrink: 0; }

.t1-grid { display: grid; gap: var(--t1-gutter); }
.t1-grid-4 { grid-template-columns: repeat(4, 1fr); }
.t1-grid-3 { grid-template-columns: repeat(3, 1fr); }
.t1-grid-2 { grid-template-columns: repeat(2, 1fr); }

.t1-card { display: flex; flex-direction: column; }
.t1-card-media { position: relative; overflow: hidden; border-radius: var(--t1-radius); }
.t1-card-image { display: block; overflow: hidden; }
.t1-card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s var(--t1-ease); }
.t1-card-media:hover .t1-card-image img { transform: scale(1.06); }
.t1-card-body { padding-top: 16px; }
.t1-card-date { display: inline-flex; align-items: center; gap: 7px; font-family: var(--t1-ui); font-size: 13px; color: var(--t1-muted); margin-bottom: 8px; }
.t1-card-title { font-size: 20px; line-height: 1.3; font-weight: 500; }
.t1-card-title a:hover { color: var(--t1-primary); }
.t1-card-excerpt { margin-top: 12px; font-size: 15px; color: var(--t1-body); }
.t1-card-by { margin-top: 12px; font-family: var(--t1-ui); font-size: 13px; color: var(--t1-muted); }

/* Horizontal card */
.t1-card--h { flex-direction: row; gap: 18px; align-items: flex-start; }
.t1-card--h .t1-card-media { flex: 0 0 150px; }
.t1-card--h .t1-card-image img { aspect-ratio: 3 / 2; }
.t1-card--h .t1-card-body { padding-top: 2px; min-width: 0; }
.t1-card--h .t1-card-title { font-size: 17px; line-height: 1.35; margin: 8px 0; }
.t1-card--h .t1-card-date { margin-bottom: 0; }
.t1-card--h .t1-card-excerpt {
    margin-top: 8px; font-size: 14px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* inline category pill (used in horizontal list cards, sits above the title) */
.t1-pill--inline { color: #fff; }

/* Featured card (Trending main) */
.t1-card--featured .t1-card-image img { aspect-ratio: 16 / 9; }
.t1-card--featured .t1-card-title { font-size: 26px; }

/* Feature split (Trending Today) */
.t1-feature-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--t1-gutter); align-items: start; }
.t1-feature-list { display: flex; flex-direction: column; gap: 22px; }

/* "Become a Trendsetter" newsletter band */
.t1-newsletter-band { background: var(--t1-bg-alt); border-top: 1px solid var(--t1-line); border-bottom: 1px solid var(--t1-line); padding: 62px 0; margin-bottom: 56px; text-align: center; }
.t1-newsletter-eyebrow { font-family: var(--t1-ui); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--t1-primary); }
.t1-newsletter-title { font-size: 38px; margin: 10px 0 8px; }
.t1-newsletter-sub { color: var(--t1-muted); margin-bottom: 26px; }
.t1-newsletter-form { display: flex; justify-content: center; gap: 10px; max-width: 540px; margin: 0 auto; }
.t1-newsletter-form input { flex: 1; min-width: 0; padding: 14px 18px; border: 1px solid var(--t1-line); border-radius: var(--t1-pill-radius); font-family: var(--t1-font); font-size: 15px; background: #fff; }
.t1-newsletter-form input:focus { outline: none; border-color: var(--t1-primary); }
.t1-newsletter-form button { background: var(--t1-dark); color: #fff; border: none; padding: 14px 28px; border-radius: var(--t1-pill-radius); font-family: var(--t1-ui); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; cursor: pointer; transition: background 0.25s var(--t1-ease); white-space: nowrap; }
.t1-newsletter-form button:hover { background: var(--t1-primary); }

/* ══════════════════════════════════════════════════════════════════════
   8. SINGLE POST
   ══════════════════════════════════════════════════════════════════════ */
.t1-reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--t1-primary); transform: scaleX(0); transform-origin: 0 50%; z-index: 200; }

.t1-cover { position: relative; overflow: hidden; background: var(--t1-cover); margin-bottom: 40px; }
.t1-cover-bg { position: absolute; inset: 0; }
.t1-cover-bg img { width: 100%; height: 100%; object-fit: cover; }
.t1-cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.25) 100%); }
.t1-cover-inner { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 60px; color: #fff; max-width: 900px; }
.t1-cover--plain { background: var(--t1-bg-alt); }
.t1-cover--plain .t1-cover-inner { color: var(--t1-ink); padding-top: 48px; padding-bottom: 40px; }
.t1-breadcrumb { font-family: var(--t1-ui); font-size: 13px; letter-spacing: 0.5px; margin-bottom: 16px; opacity: 0.92; }
.t1-breadcrumb a:hover { color: var(--t1-primary); }
.t1-breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.t1-cover .t1-pill { margin-bottom: 18px; }
.t1-cover-title { font-size: 44px; line-height: 1.15; color: #fff; margin-bottom: 20px; }
.t1-cover-title--dark { color: var(--t1-ink); }
.t1-cover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--t1-ui); font-size: 14px; }
.t1-cover-author { display: inline-flex; align-items: center; gap: 8px; }
.t1-cover-author img { border-radius: 50%; }
.t1-cover-meta .dot { opacity: 0.6; }

/* Contained post hero (Davenport single) */
.t1-breadcrumb--dark { color: var(--t1-muted); padding-top: 30px; }
.t1-breadcrumb--dark a { color: var(--t1-muted); }
.t1-breadcrumb--dark a:hover { color: var(--t1-primary); }
.t1-post-hero { position: relative; border-radius: var(--t1-radius); overflow: hidden; margin: 14px 0 0; }
.t1-post-hero-media { position: relative; }
.t1-post-hero-media img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.t1-post-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0) 100%); }
.t1-post-hero .t1-pill--overlay { left: 30px; top: 30px; bottom: auto; }
.t1-post-hero-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px; color: #fff; font-size: 42px; line-height: 1.15; }
.t1-post-hero-title--dark { position: static; color: var(--t1-ink); padding: 20px 0 0; }

.t1-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--t1-ui); font-size: 14px; color: var(--t1-muted); margin: 22px 0 30px; }
.t1-post-author { display: inline-flex; align-items: center; gap: 8px; color: var(--t1-ink); }
.t1-post-author img { border-radius: 50%; }
.t1-post-meta .dot { opacity: 0.5; }

/* Single reading layout: left sticky share rail + centered column */
.t1-single-layout { display: grid; grid-template-columns: 54px minmax(0, 760px); justify-content: center; gap: 34px; align-items: start; }
.t1-share-rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.t1-share-rail a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform 0.2s var(--t1-ease), filter 0.2s var(--t1-ease); }
.t1-share-rail a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.t1-share-fb { background: #1877f2; } .t1-share-x { background: #111; } .t1-share-pin { background: #e60023; } .t1-share-li { background: #0a66c2; }

.t1-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.t1-article-main { min-width: 0; }

.t1-share { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--t1-line); }
.t1-share-label { font-family: var(--t1-ui); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--t1-muted); }
.t1-share a { width: 34px; height: 34px; border-radius: 50%; background: var(--t1-bg-alt); color: var(--t1-ink); display: inline-flex; align-items: center; justify-content: center; transition: all 0.25s var(--t1-ease); }
.t1-share a:hover { background: var(--t1-primary); color: #fff; }

.t1-toc { background: var(--t1-bg-alt); border: 1px solid var(--t1-line); border-radius: var(--t1-radius); padding: 22px 26px; margin-bottom: 30px; }
.t1-toc-title { font-family: var(--t1-head); font-weight: 500; font-size: 18px; color: var(--t1-ink); margin-bottom: 10px; }
.t1-toc ol { margin: 0; padding-left: 20px; }
.t1-toc ol li { margin: 6px 0; }
.t1-toc ol li a { color: var(--t1-body); }
.t1-toc ol li a:hover, .t1-toc ol li a.toc-active { color: var(--t1-primary); }

.t1-article-body { font-family: var(--t1-font); font-size: 20px; line-height: 1.75; color: var(--t1-body); }
.t1-article-body p { margin: 0 0 26px; }
/* Drop cap on the opening paragraph (Davenport trait) */
.t1-article-body > p:first-of-type::first-letter { float: left; font-family: var(--t1-display); font-weight: 800; font-size: 68px; line-height: 0.82; padding: 6px 12px 0 0; color: var(--t1-ink); }
.t1-article-body h2 { font-size: 30px; margin: 44px 0 18px; color: var(--t1-ink); scroll-margin-top: 80px; text-align: center; }
.t1-article-body h3 { font-size: 24px; margin: 34px 0 14px; color: var(--t1-ink); }
.t1-article-body a { color: var(--t1-primary); text-decoration: underline; }
.t1-article-body ul, .t1-article-body ol { margin: 0 0 26px; padding-left: 24px; }
.t1-article-body li { margin-bottom: 10px; }
.t1-article-body img { border-radius: var(--t1-radius); margin: 10px 0 26px; }
.t1-article-body blockquote { font-family: var(--t1-head); font-size: 26px; line-height: 1.4; color: var(--t1-ink); margin: 34px 0; padding-left: 26px; border-left: 4px solid var(--t1-primary); }
.t1-article-body figure { margin: 0 0 26px; }
.t1-article-body figcaption { font-size: 14px; color: var(--t1-muted); text-align: center; margin-top: 8px; }

.t1-feedback { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--t1-bg-alt); border-radius: var(--t1-radius); padding: 20px 24px; margin: 36px 0; }
.t1-feedback-q { font-family: var(--t1-head); font-weight: 500; color: var(--t1-ink); }
.t1-feedback button { font-family: var(--t1-ui); font-weight: 600; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; padding: 8px 22px; border: 1px solid var(--t1-line); background: #fff; border-radius: var(--t1-pill-radius); cursor: pointer; transition: all 0.25s var(--t1-ease); }
.t1-feedback button:hover { background: var(--t1-primary); color: #fff; border-color: var(--t1-primary); }
.t1-feedback-thanks { font-family: var(--t1-head); color: var(--t1-primary); font-weight: 500; }

.t1-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0; }
.t1-tags-label { font-family: var(--t1-ui); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--t1-muted); }
.t1-tag { font-family: var(--t1-ui); font-size: 13px; padding: 5px 14px; border: 1px solid var(--t1-line); border-radius: var(--t1-pill-radius); color: var(--t1-body); }
.t1-tag:hover { background: var(--t1-primary); color: #fff; border-color: var(--t1-primary); }

.t1-author-bio { display: flex; gap: 20px; background: var(--t1-bg-alt); border-radius: var(--t1-radius); padding: 28px; margin: 36px 0; }
.t1-author-bio img { border-radius: 50%; flex-shrink: 0; }
.t1-author-name { font-size: 20px; margin-bottom: 4px; }
.t1-author-name a:hover { color: var(--t1-primary); }
.t1-author-title { font-family: var(--t1-ui); font-size: 13px; color: var(--t1-primary); font-weight: 600; margin-bottom: 8px; }
.t1-author-desc { font-size: 15px; margin-bottom: 10px; }
.t1-author-link { font-family: var(--t1-ui); font-size: 13px; font-weight: 600; color: var(--t1-primary); }

.t1-sidebar { position: sticky; top: 78px; }
.t1-sidebar-block { margin-bottom: 34px; }
.t1-sidebar-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--t1-line); position: relative; }
.t1-sidebar-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--t1-primary); }
.t1-sidebar .t1-card--h { margin-bottom: 18px; }

.t1-related { margin: 20px 0 60px; }

/* ══════════════════════════════════════════════════════════════════════
   9. ARCHIVE / SEARCH / 404 / PAGE
   ══════════════════════════════════════════════════════════════════════ */
.t1-archive-head { text-align: center; padding: 50px 0 36px; }
.t1-archive-title { font-size: 40px; }
.t1-archive-desc { max-width: 640px; margin: 12px auto 0; color: var(--t1-body); }
.t1-pagination { margin: 20px 0 60px; }
.t1-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.t1-pagination a, .t1-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--t1-line); border-radius: var(--t1-radius); font-family: var(--t1-ui); font-weight: 600; color: var(--t1-ink); }
.t1-pagination a:hover, .t1-pagination .current { background: var(--t1-primary); color: #fff; border-color: var(--t1-primary); }
.t1-empty { text-align: center; padding: 60px 0; color: var(--t1-muted); }

.t1-404 { text-align: center; padding: 70px 0; }
.t1-404-code { font-family: var(--t1-display); font-weight: 800; font-size: 120px; line-height: 1; color: var(--t1-primary); }
.t1-404-title { font-size: 30px; margin: 8px 0 24px; }
.t1-404-search { max-width: 420px; margin: 0 auto 24px; }
.t1-btn { display: inline-flex; align-items: center; background: var(--t1-dark); color: #fff; font-family: var(--t1-ui); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; padding: 13px 28px; border-radius: var(--t1-pill-radius); transition: background 0.25s var(--t1-ease); }
.t1-btn:hover { background: var(--t1-primary); }

.t1-page-body { max-width: 800px; margin: 0 auto; padding: 10px 0 60px; font-size: 18px; line-height: 1.8; color: var(--t1-body); }
.t1-page-body h2 { font-size: 28px; margin: 34px 0 14px; color: var(--t1-ink); }
.t1-page-body p { margin-bottom: 22px; }
.t1-page-body a { color: var(--t1-primary); text-decoration: underline; }

/* Search form */
.t1-searchform { display: flex; align-items: center; background: #fff; border: 1px solid var(--t1-line); border-radius: var(--t1-pill-radius); padding: 6px 6px 6px 20px; }
.t1-searchform input { flex: 1; border: none; outline: none; font: inherit; font-size: 15px; background: transparent; color: var(--t1-ink); min-width: 0; }
.t1-searchform button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--t1-primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   10. FOOTER (light multi-column)
   ══════════════════════════════════════════════════════════════════════ */
.t1-footer { border-top: 1px solid var(--t1-line); padding: 56px 0 0; margin-top: 40px; }
.t1-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.t1-footer-title { font-size: 20px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--t1-line); position: relative; }
.t1-footer-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--t1-primary); }
.t1-footer-about { font-size: 15px; color: var(--t1-body); }
.t1-footer-post { margin-bottom: 20px; }
.t1-footer-post .t1-pill { margin-bottom: 8px; }
.t1-footer-post-title { display: block; font-family: var(--t1-head); font-weight: 500; font-size: 16px; color: var(--t1-ink); line-height: 1.4; }
.t1-footer-post-title:hover { color: var(--t1-primary); }
.t1-footer-post-date { font-family: var(--t1-ui); font-size: 13px; color: var(--t1-muted); margin-top: 6px; }
.t1-footer-links { list-style: none; }
.t1-footer-links li { margin-bottom: 12px; }
.t1-footer-links a { font-family: var(--t1-head); font-weight: 500; font-size: 15px; color: var(--t1-ink); }
.t1-footer-links a:hover { color: var(--t1-primary); }
.t1-footer-feature { position: relative; display: block; border-radius: var(--t1-radius); overflow: hidden; min-height: 200px; }
.t1-footer-feature img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform 0.5s var(--t1-ease); }
.t1-footer-feature:hover img { transform: scale(1.06); }
.t1-footer-feature-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1)); }
.t1-footer-feature-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.t1-footer-feature .t1-pill { margin-bottom: 10px; }
.t1-footer-feature-title { display: block; font-family: var(--t1-head); font-weight: 500; font-size: 17px; line-height: 1.35; color: #fff; }

.t1-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--t1-line); padding: 24px 0; }
.t1-footer-copy { font-size: 14px; color: var(--t1-muted); }
.t1-footer-subscribe { display: flex; align-items: center; background: var(--t1-bg-alt); border: 1px solid var(--t1-line); border-radius: var(--t1-pill-radius); padding: 5px 5px 5px 20px; min-width: 300px; }
.t1-footer-subscribe input { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--t1-ink); min-width: 0; }
.t1-footer-subscribe .t1-subscribe { padding: 11px 22px; }
.t1-footer-social { display: inline-flex; gap: 10px; }
.t1-footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--t1-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.25s var(--t1-ease); }
.t1-footer-social a:hover { transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════
   11. STICKY CTA
   ══════════════════════════════════════════════════════════════════════ */
.t1-sticky-cta { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 150; max-width: 640px; margin: 0 auto; background: var(--t1-dark); color: #fff; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); transform: translateY(160%); transition: transform 0.4s var(--t1-ease); }
.t1-sticky-cta.visible { transform: none; }
.t1-sticky-cta-text { flex: 1; font-family: var(--t1-head); font-weight: 500; }
.t1-sticky-cta-btn { background: var(--t1-primary); color: #fff; border: none; font-family: var(--t1-ui); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-size: 13px; padding: 11px 20px; border-radius: var(--t1-pill-radius); cursor: pointer; white-space: nowrap; }
.t1-sticky-cta-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 22px; line-height: 1; cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════
   12. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .t1-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .t1-article-layout { grid-template-columns: 1fr; gap: 40px; }
    .t1-sidebar { position: static; }
    .t1-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .t1-cover-title { font-size: 36px; }
    .t1-cover-slide { flex-basis: 50%; height: 380px; }
    .t1-featured { grid-template-columns: 1fr 1fr; }
    .t1-featured-lead { grid-column: 1 / -1; }
    .t1-single-layout { grid-template-columns: 1fr; gap: 24px; }
    .t1-share-rail { position: static; flex-direction: row; }
    .t1-post-hero-title { font-size: 32px; padding: 30px; }
}
@media (max-width: 768px) {
    .t1-masthead-inner { grid-template-columns: 1fr auto; row-gap: 16px; padding: 20px 30px; }
    .t1-masthead-left { grid-row: 2; grid-column: 1; }
    .t1-masthead-brand { grid-row: 1; grid-column: 1 / -1; justify-self: stretch; }
    .t1-masthead-right { grid-row: 2; grid-column: 2; }
    .t1-brand { font-size: 36px; }
    .t1-nav-inner { justify-content: flex-start; padding-left: 76px; }
    .t1-menu-toggle { display: block; left: 30px; }
    .t1-primary-list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--t1-line); box-shadow: 0 10px 30px rgba(0,0,0,0.08); z-index: 30; }
    .t1-primary-list.is-open { display: flex; }
    .t1-primary-list li { width: 100%; }
    .t1-primary-list li a { width: 100%; padding: 14px 30px; border-top: 1px solid var(--t1-line); }
    .t1-primary-list li ul { position: static; display: block; box-shadow: none; border: none; padding-left: 16px; }
    .t1-cover-slide { flex-basis: 50%; height: 340px; }
    .t1-cover-slide-title { font-size: 21px; }
    .t1-featured { grid-template-columns: 1fr; }
    .t1-featured-lead { grid-column: 1; }
    .t1-cover-card--lg { min-height: 340px; }
    .t1-cover-card--lg .t1-cover-card-title { font-size: 25px; }
    .t1-grid-4, .t1-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .t1-feature-split { grid-template-columns: 1fr; }
    .t1-ticker, .t1-ticker-nav { display: none; }
    .t1-topbar-inner { justify-content: center; }
    .t1-newsletter-title { font-size: 30px; }
    .t1-cover-title { font-size: 30px; }
    .t1-cover-inner { padding-top: 44px; padding-bottom: 40px; }
    .t1-article-body { font-size: 18px; }
    .t1-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .t1-grid-4, .t1-grid-3, .t1-grid-2 { grid-template-columns: 1fr; }
    .t1-brand { font-size: 30px; }
    .t1-footer-grid { grid-template-columns: 1fr; }
    .t1-cover-slide { flex-basis: 100%; height: 360px; }
    .t1-newsletter-form { flex-direction: column; }
    .t1-cover-title { font-size: 26px; }
    .t1-author-bio { flex-direction: column; }
    .t1-footer-subscribe { min-width: 0; width: 100%; }
    .t1-card--h .t1-card-media { flex: 0 0 108px; }
    .t1-card--h .t1-card-excerpt { display: none; }
}
