/*
Theme Name: Cacheyoulater
Theme URI: https://example.com/cacheyoulater
Author: Cacheyoulater Team
Author URI: https://example.com
Description: A premium editorial theme for consumer tech — comparisons, reviews and explainers. Charcoal + warm off-white with a restrained cyan accent, Space Grotesk headings and Roboto body. SEO-friendly and ads-ready with schema markup.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cacheyoulater
Tags: news, blog, custom-menu, featured-images, custom-logo, right-sidebar
*/

:root {
    --paper: #faf7f2;
    --paper-2: #f2eee6;
    --card: #fffefb;
    --ink: #1d1f24;
    --ink-soft: #5d6066;
    --accent: #0e7490;
    --accent-dark: #155e75;
    --accent-bright: #22d3ee;
    --dark: #16181d;
    --dark-2: #101216;
    --border: #e4e0d6;
    --border-dark: #cbc6ba;
    --radius: 6px;
    --max-width: 1180px;
    --font-head: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.meta-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
    vertical-align: middle;
}

/* Small uppercase category/eyebrow label */
.kicker,
.cat-badge {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cat-badge:hover {
    color: var(--accent-dark);
}

.btn-primary,
.read-more {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-primary:hover,
.read-more:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    padding-bottom: 7px;
}

.topbar-menu {
    display: flex;
    gap: 16px;
    list-style: none;
}

.topbar a {
    color: var(--ink-soft);
}

.topbar a:hover {
    color: var(--accent);
}

.topbar-date {
    font-weight: 500;
}

.topbar-cta {
    font-weight: 600;
    color: var(--accent);
}

.topbar-cta:hover {
    color: var(--accent-dark);
}

/* ==========================================================================
   Masthead + navigation
   ========================================================================== */

.site-header {
    background: var(--paper);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 16px;
}

.masthead-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-branding {
    text-align: left;
}

.site-branding .custom-logo-link {
    display: inline-block;
}

.site-logo {
    display: block;
    height: 55px;
    width: auto;
}

.site-title a {
    display: inline-block;
}

.drawer-logo {
    height: 34px;
    width: auto;
    flex-shrink: 0;
}

.footer-icon {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    filter: invert(1) hue-rotate(180deg) saturate(1.4);
}

.site-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-main {
    color: var(--ink);
}

.brand-accent {
    color: var(--accent);
}

.site-title-text .brand-accent {
    margin-left: 0.28em;
}

.site-title a {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-title a:hover {
    color: var(--ink);
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.site-description {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    margin-top: 4px;
    text-align: left;
}

/* Toggles */
.menu-toggle,
.search-toggle {
    background: transparent;
    border: none;
    color: var(--ink);
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.menu-toggle:hover,
.search-toggle:hover {
    background: var(--paper-2);
}

.menu-toggle {
    flex-direction: column;
    gap: 4px;
    display: none;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Off-canvas drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 22, 31, 0.55);
    z-index: 900;
}

.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    background: var(--card);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    z-index: 950;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 20px 24px 32px;
}

.site-drawer.is-open {
    transform: translateX(0);
}

body.drawer-open {
    overflow: hidden;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
}

.drawer-brand .logo-badge {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.drawer-close {
    background: transparent;
    border: none;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: var(--radius);
}

.drawer-close:hover {
    color: var(--accent);
    background: var(--paper-2);
}

.drawer-search {
    margin-bottom: 20px;
}

.drawer-heading {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    border-top: 3px solid var(--accent);
    padding-top: 10px;
    margin: 18px 0 6px;
}

.drawer-nav .drawer-heading:first-child {
    margin-top: 0;
}

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-menu li {
    border-bottom: 1px solid var(--border);
}

.drawer-menu li:last-child {
    border-bottom: none;
}

.drawer-menu a {
    display: block;
    padding: 11px 0;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.drawer-menu a:hover {
    color: var(--accent);
    padding-left: 6px;
    transition: padding 0.15s ease, color 0.15s ease;
}

.drawer-menu .children {
    padding-left: 16px;
    border-top: 1px solid var(--border);
}

/* Nav bar */
.nav-bar {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
}

.nav-bar a {
    display: block;
    padding: 12px 16px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 2px solid transparent;
}

.nav-bar a:hover {
    color: var(--accent);
}

.nav-bar .current-menu-item > a,
.nav-bar .current_page_item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Sub menus */
.nav-bar li {
    position: relative;
}

.nav-bar ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(23, 24, 28, 0.12);
    flex-direction: column;
    gap: 0;
    z-index: 300;
}

.nav-bar li:hover > ul,
.nav-bar li:focus-within > ul {
    display: flex;
}

.nav-bar ul ul a {
    border-bottom: none;
    padding: 10px 16px;
}

/* Inline slide-out search with live results */
.masthead {
    position: relative;
}

.header-search-inline {
    position: relative;
    display: flex;
    justify-content: flex-end;
    z-index: 400;
}

.inline-search-form {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.header-search-inline.is-open .inline-search-form {
    width: min(340px, 64vw);
    opacity: 1;
    pointer-events: auto;
}

.inline-search-input {
    width: 100%;
    padding: 11px 18px;
    border: 1.5px solid var(--border-dark);
    border-radius: 999px;
    background: var(--card);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inline-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

.inline-search-input::-webkit-search-cancel-button {
    display: none;
}

.header-search-inline.is-open .search-toggle {
    background: var(--paper-2);
    color: var(--accent);
}

.live-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(23, 24, 28, 0.16);
    overflow-y: auto;
    max-height: min(420px, 60vh);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark) transparent;
    animation: cyl-results-in 0.22s ease;
}

@keyframes cyl-results-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--ink);
    transition: background 0.12s ease, color 0.12s ease;
}

.live-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--paper-2);
}

.live-thumb-empty {
    display: block;
    background: linear-gradient(135deg, #d8d2c2, #efe9da);
}

.live-body {
    flex: 1;
    min-width: 0;
}

.live-results a:last-child {
    border-bottom: none;
}

.live-results a:hover {
    background: var(--paper-2);
    color: var(--accent);
}

.live-result-date {
    display: block;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

.live-none {
    display: block;
    padding: 13px 16px;
    font-size: 0.86rem;
    color: var(--ink-soft);
}


/* ==========================================================================
   Ad slots
   ========================================================================== */

.ad-slot {
    text-align: center;
    margin: 26px auto;
}

.ad-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.ad-slot-header {
    max-width: var(--max-width);
    padding: 0 24px;
    margin: 18px auto 0;
}

.ad-slot-wide {
    background: var(--paper-2);
    border: 1px solid var(--border);
    padding: 20px;
    margin: 10px 0 44px;
}

.ad-slot-box {
    background: var(--paper-2);
    border: 1px solid var(--border);
    padding: 16px;
}

.ad-in-article-slot {
    margin: 28px 0;
    background: var(--paper-2);
    border: 1px solid var(--border);
    padding: 16px;
}

.ad-slot-footer {
    max-width: var(--max-width);
    padding: 0 24px;
    margin: 0 auto 26px;
}

/* ==========================================================================
   Content area
   ========================================================================== */

.site-main {
    padding: 36px 0 0;
    min-height: 60vh;
}

.site-main > .container > *:last-child,
.site-main.home-main {
    padding-bottom: 0;
}

.site-main:not(.home-main) {
    padding-bottom: 56px;
}

/* Breaking news bar */
.news-ticker {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-dark);
    background: var(--card);
    margin-bottom: 34px;
    overflow: hidden;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 10px 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticker-track {
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-list {
    display: inline-flex;
    gap: 56px;
    list-style: none;
    animation: cyl-ticker 35s linear infinite;
    padding-left: 100%;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-track:hover .ticker-list {
    animation-play-state: paused;
}

@keyframes cyl-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Hero row */
.hero-row {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 40px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hero-feature .hero-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: var(--paper-2);
    margin-bottom: 18px;
}

.hero-feature .hero-image img,
.hero-feature .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    display: block;
    background: linear-gradient(135deg, #d8d2c2, #efe9da);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 10px 0 12px;
}

.hero-title a:hover {
    color: var(--accent);
}

.hero-excerpt {
    color: var(--ink-soft);
    font-size: 1rem;
    margin-bottom: 12px;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.entry-meta a {
    color: inherit;
    font-weight: 600;
}

/* Trending today */
.sidebar-heading,
.widget-title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    border-top: 3px solid var(--accent);
    padding-top: 10px;
    margin-bottom: 6px;
}

.trending-today {
    border-left: 1px solid var(--border);
    padding-left: 32px;
}

.trending-list {
    list-style: none;
    counter-reset: trending;
}

.trending-item {
    counter-increment: trending;
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item::before {
    content: counter(trending);
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    flex-shrink: 0;
}

.trending-item a {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trending-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ink);
}

.trending-item a:hover .trending-title {
    color: var(--accent);
}

.trending-date {
    font-size: 0.75rem;
    color: var(--ink-soft);
}

/* Top stories 3-column row (G360 style) */
.top-stories {
    grid-template-columns: 300px 1fr 300px;
    gap: 32px;
}

.top-list {
    border-right: 1px solid var(--border);
    padding-right: 28px;
}

.top-list-items {
    list-style: none;
}

.top-list-item {
    border-bottom: 1px solid var(--border);
}

.top-list-item:last-child {
    border-bottom: none;
}

.top-list-item a {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
}

.top-list-thumb {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
}

.top-list-thumb img,
.top-list-thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-list-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-list-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--ink);
}

.top-list-item a:hover .top-list-title {
    color: var(--accent);
}

.top-list-date {
    font-size: 0.74rem;
    color: var(--ink-soft);
}

/* Explore chips strip */
.explore-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 44px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.explore-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    flex-shrink: 0;
    border-right: 2px solid var(--border);
    padding-right: 18px;
}

.explore-chips {
    display: flex;
    gap: 10px;
}

.explore-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 7px 14px;
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.explore-chip:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.chip-count {
    background: var(--paper-2);
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
}

.explore-chip:hover .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.section-hint {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* Quick Bytes — web-stories style scroll cards */
.band-bytes {
    background: var(--dark);
}

.band-bytes .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.band-bytes .section-title {
    color: #fff;
}

.band-bytes .section-hint {
    color: rgba(255, 255, 255, 0.5);
}

.bytes-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 22px 4px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.byte-card {
    position: relative;
    flex: 0 0 190px;
    aspect-ratio: 9 / 15;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    transition: transform 0.2s ease;
}

.byte-card:hover {
    transform: translateY(-6px);
}

.byte-style-1 { background: linear-gradient(160deg, #0e7490, #164e63); }
.byte-style-2 { background: linear-gradient(160deg, #7c3aed, #4c1d95); }
.byte-style-3 { background: linear-gradient(160deg, #b45309, #7c2d12); }
.byte-style-4 { background: linear-gradient(160deg, #15803d, #14532d); }
.byte-style-5 { background: linear-gradient(160deg, #be123c, #881337); }

.byte-bg {
    position: absolute;
    inset: 0;
}

.byte-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    mix-blend-mode: luminosity;
}

.byte-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    width: 100%;
}

.byte-kicker {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-bright);
}

.byte-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.byte-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Popular topics pills */
.topics-band {
    padding-bottom: 8px;
}

.topics-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
}

.tag-pill {
    display: inline-block;
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tag-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Home layout columns */
.home-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 44px;
    align-items: start;
    padding-bottom: 30px;
}

/* Section headers */
.home-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 6px;
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 700;
}

.section-more {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

/* Editorial rows (Latest Articles) */
.news-list {
    display: flex;
    flex-direction: column;
}

.row-card {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 26px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.row-card:last-child {
    border-bottom: none;
}

.row-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.row-title {
    font-size: 1.3rem;
    line-height: 1.3;
}

.row-title a:hover {
    color: var(--accent);
}

.row-excerpt {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.row-meta,
.grid-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.row-thumb {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-2);
}

.row-thumb img,
.row-thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid cards (related posts etc.) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding-top: 16px;
}

.news-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-card {
    background: transparent;
}

.grid-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper-2);
    margin-bottom: 12px;
}

.grid-thumb img,
.grid-thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 6px 0;
}

.grid-title a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.home-sidebar {
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.home-sidebar .widget,
.widget-area .widget {
    padding: 0;
}

/* Default & block widgets (Categories, Archives, Recent Comments, ...) */
.home-sidebar .widget h2 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    border-top: 3px solid var(--accent);
    padding-top: 10px;
    margin-bottom: 8px;
}

.home-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-sidebar .widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.home-sidebar .widget li:last-child {
    border-bottom: none;
}

.home-sidebar .widget li a {
    color: var(--ink);
}

.home-sidebar .widget li a:hover {
    color: var(--accent);
}

.home-sidebar .widget .children {
    padding-left: 16px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
}

.home-sidebar .widget .post-date,
.home-sidebar .widget .wp-block-latest-posts__post-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink-soft);
}

.wp-block-latest-comments {
    padding-left: 0 !important;
}

.wp-block-latest-comments__comment {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.wp-block-latest-comments__comment-meta a {
    font-weight: 600;
}

.home-sidebar .wp-block-search .wp-block-search__input {
    padding: 10px 14px;
    border: 1px solid var(--border-dark);
    background: #fff;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
}

.home-sidebar .wp-block-search .wp-block-search__button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

/* From the Newsroom promo */
.newsroom-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 22px !important;
}

.newsroom-title {
    font-size: 1.25rem;
    margin: 8px 0 10px;
}

.newsroom-widget p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.newsroom-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
}

.newsroom-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   Full-width bands
   ========================================================================== */

.band {
    padding: 48px 0;
}

.band-light {
    background: var(--paper-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Category tiles */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    padding-top: 20px;
}

.category-tile {
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 3;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    outline: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    margin-bottom: 14px;
    position: relative;
    transition: filter 0.15s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.category-tile:hover {
    filter: brightness(1.08);
}

.tile-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.tile-post-title {
    font-size: 1rem;
    line-height: 1.35;
    margin-top: 4px;
}

.tile-post-title a:hover {
    color: var(--accent);
}

/* Dark band — Popular this week */
.band-dark {
    background: var(--dark);
    color: #b8bec8;
}

.band-dark .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.band-dark .section-title {
    color: #fff;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding-top: 22px;
}

.popular-item {
    padding: 0 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.popular-item:first-child {
    border-left: none;
    padding-left: 0;
}

.popular-number {
    display: block;
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.band-dark .popular-number {
    color: #22d3ee;
}

.popular-title {
    font-size: 0.98rem;
    line-height: 1.4;
    font-weight: 600;
}

.popular-title a {
    color: #e6e9ee;
}

.popular-title a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Newsletter band */
.band-newsletter {
    background: var(--paper);
    padding: 56px 0 64px;
}

.newsletter-band {
    background: var(--paper-2);
    border: 1px solid var(--border);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 8px 0 10px;
}

.newsletter-band p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-dark);
    background: #fff;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

/* ==========================================================================
   Editor's Picks band
   ========================================================================== */

.band-picks .section-header {
    border-bottom-color: var(--accent);
}

.picks-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding-top: 20px;
}

.pick-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper);
    margin-bottom: 16px;
}

.pick-image img,
.pick-image .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pick-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 8px 0 10px;
}

.pick-title a:hover {
    color: var(--accent);
}

.pick-excerpt {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.pick-side {
    display: flex;
    flex-direction: column;
}

.pick-small {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.pick-small:first-child {
    padding-top: 0;
}

.pick-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pick-small-thumb {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper);
}

.pick-small-thumb img,
.pick-small-thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pick-small-title {
    font-size: 1rem;
    line-height: 1.35;
    margin-top: 3px;
}

.pick-small-title a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Tech Explained band (tinted, Hindu-style)
   ========================================================================== */

.band-yellow {
    background: var(--paper-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.band-yellow .section-header {
    border-bottom-color: var(--accent);
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding-top: 20px;
}

.explainer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explainer-title {
    font-size: 1.2rem;
    line-height: 1.3;
}

.explainer-title a:hover {
    color: var(--accent);
}

.explainer-excerpt {
    font-size: 0.9rem;
    color: var(--ink-soft);
    flex: 1;
}

.explainer-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
}

.explainer-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   Reviews & Buying Guides
   ========================================================================== */

.band-reviews {
    background: var(--paper);
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    padding-top: 20px;
    align-items: start;
}

.review-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
}

.review-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-2);
}

.review-image img,
.review-image .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.review-title {
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 8px 0 10px;
}

.review-title a:hover {
    color: var(--accent);
}

.review-excerpt {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.review-list {
    list-style: none;
    border-left: 1px solid var(--border);
    padding-left: 32px;
}

.review-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:first-child {
    padding-top: 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-number {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--border-dark);
    line-height: 1.2;
    flex-shrink: 0;
}

.review-item-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin: 3px 0 5px;
}

.review-item-title a:hover {
    color: var(--accent);
}

.review-score {
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================================================
   More Coverage columns (BBC-style)
   ========================================================================== */

.band-more {
    background: var(--paper-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.more-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 20px;
}

.more-col-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 3px solid var(--ink);
    padding-top: 10px;
    margin-bottom: 14px;
}

.more-col-title a:hover {
    color: var(--accent);
}

.more-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper);
    margin-bottom: 10px;
}

.more-thumb img,
.more-thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-lead {
    font-size: 1.05rem;
    line-height: 1.35;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.more-link {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}

.more-link:last-child {
    border-bottom: none;
}

.more-lead a:hover,
.more-link a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .picks-layout,
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .review-list {
        border-left: none;
        padding-left: 0;
    }

    .explainer-grid {
        grid-template-columns: 1fr;
    }

    .more-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .review-feature {
        grid-template-columns: 1fr;
    }

    .more-columns {
        grid-template-columns: 1fr;
    }

    .pick-title {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Single post / page
   ========================================================================== */

.single-article {
    max-width: 780px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs a {
    color: var(--ink-soft);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    opacity: 0.5;
}

.entry-header {
    margin-bottom: 22px;
}

.single-article .entry-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 12px 0 16px;
}

.single-article .post-thumbnail {
    margin: 6px 0 28px;
    overflow: hidden;
}

.single-article .post-thumbnail img {
    display: block;
    width: 100%;
}

.entry-content {
    font-size: 1.06rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin: 32px 0 14px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 18px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 26px;
}

.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 22px;
    margin: 24px 0;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ink);
}

.entry-content pre {
    background: var(--dark);
    color: #e2e6ec;
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 22px 0;
    border-radius: var(--radius);
}

.entry-content code {
    background: var(--paper-2);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.92em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.share-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.share-copy.is-copied {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-links a {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 999px;
}

.tag-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.related-posts {
    margin: 44px 0;
}

/* Post navigation */
.post-navigation {
    margin: 40px 0;
    border-top: 2px solid var(--ink);
    padding-top: 22px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    min-width: 0;
}

.post-navigation .nav-next {
    grid-column: 2;
    text-align: right;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 18px 20px;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-navigation .nav-next a {
    align-items: flex-end;
}

.post-navigation a:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(23, 24, 28, 0.08);
    color: var(--ink);
}

.nav-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.nav-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
}

.post-navigation a:hover .nav-title {
    color: var(--accent);
}

/* Archive / listing */
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-card .post-thumbnail img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.post-card .post-content {
    padding: 24px;
}

.entry-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.entry-title a:hover {
    color: var(--accent);
}

.entry-summary {
    margin: 12px 0 16px;
    color: var(--ink-soft);
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 14px;
}

.archive-description {
    color: var(--ink-soft);
    margin-top: 6px;
}

/* Pagination */
.pagination,
.posts-navigation,
.comments-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.pagination .page-numbers {
    padding: 9px 16px;
    border: 1px solid var(--border-dark);
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
}

.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--accent);
    color: var(--accent);
}

/* Comments */
.comments-area {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 2px solid var(--ink);
}

.comments-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
}

.comment-list .comment-body {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border-dark);
    background: #fff;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.comment-form input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-dark);
}

/* Search form (generic) */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1;
    padding: 11px 15px;
    border: 1px solid var(--border-dark);
    background: #fff;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}

.search-form input[type="submit"],
.search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--dark);
    color: #9aa2ad;
    padding: 52px 0 26px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-footer .brand-main {
    color: #fff;
}

.site-footer .brand-accent {
    color: var(--accent-bright);
    margin-left: 0.28em;
}

.site-drawer .brand-accent {
    margin-left: 0.28em;
}

.site-footer .logo-badge {
    border-color: #22d3ee;
    color: #22d3ee;
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.footer-tagline {
    line-height: 1.7;
}

.site-footer .widget-title,
.site-footer .widget h2 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-top: none;
    padding-top: 0;
    margin-bottom: 14px;
}

.site-footer a {
    color: #9aa2ad;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .widget ul {
    list-style: none;
}

.site-footer .widget li {
    padding: 3px 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 22px;
    font-size: 0.82rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 116, 144, 0.4);
    z-index: 400;
    transition: background 0.15s ease, transform 0.15s ease;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .trending-today {
        border-left: none;
        padding-left: 0;
    }

    .top-stories .hero-feature {
        order: -1;
    }

    .top-list {
        border-right: none;
        padding-right: 0;
    }

    .byte-card {
        flex-basis: 165px;
    }

    .home-columns {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        position: static;
    }

    .news-grid,
    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .popular-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .popular-item {
        border-left: none;
        padding: 0 0 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        gap: 16px;
        align-items: baseline;
    }

    .popular-item:last-child {
        border-bottom: none;
    }

    .popular-number {
        margin-bottom: 0;
    }

    .newsletter-band {
        grid-template-columns: 1fr;
        padding: 34px 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .site-title {
        font-size: 1.7rem;
    }

    .site-logo {
        height: 42px;
    }

    .logo-badge {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .site-description {
        display: none;
    }

    .nav-bar {
        display: none;
    }

    .topbar-menu {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .news-grid,
    .news-grid-4,
    .category-tiles {
        grid-template-columns: 1fr;
    }

    .row-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .row-card .row-thumb {
        order: -1;
        aspect-ratio: 16 / 9;
    }

    .single-article .entry-title {
        font-size: 1.8rem;
    }

    .newsletter-heading {
        font-size: 1.6rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-next {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   WordPress core classes
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 20px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 20px;
}

.aligncenter {
    display: block;
    margin: 10px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 6px;
}

.sticky {
    /* Required by theme check; sticky posts share standard card styling. */
}

.bypostauthor {
    /* Required by theme check. */
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background: var(--accent);
    color: #fff;
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    padding: 12px 20px;
    left: 8px;
    top: 8px;
    z-index: 999;
    border-radius: var(--radius);
}
