/*
Theme Name: SportsTrend
Theme URI: https://trendsporty.com
Description: A professional sports blog theme matching your Blogger design. Includes full SEO meta tags, Open Graph, Schema.org JSON-LD, breadcrumbs, sticky nav, sidebar, and responsive layout.
Version: 1.8
Author: TrendSporty
Author URI: https://trendsporty.com
License: GPL-2.0-or-later
Text Domain: sportstrend
*/

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE REWRITE — v1.8
   Base styles = mobile (320px+)
   @media (min-width: 48em)  = tablet  768px+
   @media (min-width: 62em)  = desktop 992px+
   All units in rem; layout in %, flex, grid.
   ═══════════════════════════════════════════════════════════════ */

/* Google Fonts are enqueued from functions.php (avoids @import critical-path chain). */

/* ── Design tokens ── */
:root {
    --primary:        #0a2540;
    --primary-dark:   #051a2e;
    --primary-light:  #1a3d5c;
    --accent:         #ff6b35;
    --accent-light:   #ff8c5a;
    --secondary:      #00d4ff;
    --secondary-light:#33dfff;
    --text:           #1a1a1a;
    --text-muted:     #6b7280;
    --bg-light:       #f7fafc;
    --border:         #e5e7eb;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.10);
    --shadow-md:      0 4px 12px rgba(0,0,0,.15);
    --shadow-lg:      0 10px 30px rgba(0,0,0,.20);
    --shadow-xl:      0 20px 40px rgba(0,0,0,.25);
    --ease:           cubic-bezier(.4,0,.2,1);
    --transition:     all .3s var(--ease);
    --grad-primary:   linear-gradient(135deg,#0a2540 0%,#1a3d5c 50%,#0a2540 100%);
    --grad-accent:    linear-gradient(135deg,#ff6b35 0%,#ff8c5a 100%);
    --content-max:    75rem;
    --sidebar-w:      20rem;
    --page-pad:       max(1rem, env(safe-area-inset-left));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html {
    font-size: 100%;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    background: #fafbfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}
img, video, iframe, svg, embed { max-width: 100%; height: auto; display: block; }

/* ── Accessibility ── */
.skip-link {
    position: absolute; top: -6.25rem; left: 1.25rem;
    padding: .75rem 1.25rem; background: var(--accent); color: #fff;
    text-decoration: none; font-weight: 600; border-radius: .375rem;
    z-index: 1000; transition: top .2s;
}
.skip-link:focus { top: 1.25rem; outline: 2px solid #fff; outline-offset: 2px; }
.screen-reader-text {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ════ HEADER — single sticky bar ════ */
.site-header {
    background: var(--grad-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
    border-bottom: 3px solid var(--accent);
    overflow: visible;
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 62px;
}

/* ── Logo ── */
.header-logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    transition: opacity .2s;
}
.header-logo:hover { opacity: .85; }
.header-logo-icon { display: flex; align-items: center; flex-shrink: 0; }
.header-logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255,255,255,.9);
}
.header-logo-text strong {
    font-weight: 700;
    color: #fff;
}

/* ── Nav ── */
.main-navigation {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Mobile toggle */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; height: 2.5rem;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: .4rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
}
.menu-toggle:hover, .menu-toggle:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.menu-toggle-bars {
    display: flex; flex-direction: column; justify-content: center;
    gap: .28rem; width: 1.2rem; height: 1rem;
}
.menu-toggle-bars span {
    display: block; height: 2px; background: currentColor; border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease;
}
.main-navigation.is-open .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.main-navigation.is-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.main-navigation.is-open .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.nav-menu-panel {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0a2540;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .35s ease, opacity .25s ease, visibility .35s;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    z-index: 999;
}
.main-navigation.is-open .nav-menu-panel {
    max-height: min(80vh, 32rem);
    overflow-y: auto;
    opacity: 1; visibility: visible;
    -webkit-overflow-scrolling: touch;
}
.main-navigation ul { list-style: none; margin: 0; padding: .5rem 0; display: flex; flex-direction: column; }
.main-navigation li { width: 100%; }
.main-navigation a {
    display: flex; align-items: center;
    color: rgba(255,255,255,.88); text-decoration: none;
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .9rem; text-transform: uppercase; letter-spacing: .07em;
    padding: .85rem var(--page-pad);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.main-navigation a:hover { color: #fff; background: rgba(255,107,53,.12); padding-left: calc(var(--page-pad) + .35rem); }
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    color: var(--accent-light);
    border-left: 3px solid var(--accent);
}

/* ── Desktop nav ── */
@media (min-width: 62em) {
    .menu-toggle { display: none !important; }
    .nav-menu-panel {
        position: static !important;
        max-height: none !important; overflow: visible !important;
        opacity: 1 !important; visibility: visible !important;
        background: transparent !important;
        border: none !important; box-shadow: none !important;
        display: flex; align-items: center;
    }
    .main-navigation ul {
        flex-direction: row; flex-wrap: nowrap; align-items: center;
        padding: 0; gap: 0;
    }
    .main-navigation li { width: auto; flex-shrink: 0; }
    .main-navigation a {
        padding: 0 .9rem;
        height: 62px;
        border-bottom: none;
        border-left: none !important;
        font-size: .8rem;
        letter-spacing: .08em;
        color: rgba(255,255,255,.82);
        position: relative;
        white-space: nowrap;
    }
    .main-navigation a::after {
        content: '';
        position: absolute; bottom: 0; left: .9rem; right: .9rem;
        height: 3px; background: var(--grad-accent);
        transform: scaleX(0); transition: transform .25s ease;
        border-radius: 2px 2px 0 0;
    }
    .main-navigation a:hover { color: #fff; background: rgba(255,255,255,.05); padding-left: .9rem; }
    .main-navigation a:hover::after,
    .main-navigation .current-menu-item > a::after,
    .main-navigation .current-page-ancestor > a::after { transform: scaleX(1); }
    .main-navigation .current-menu-item > a,
    .main-navigation .current-page-ancestor > a { color: #fff; background: transparent; }
}

/* ════ BREADCRUMBS ════ */
.breadcrumb-wrap { max-width: var(--content-max); margin: .875rem auto; padding: 0 var(--page-pad); }
.breadcrumb-nav {
    font-size: .8125rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.breadcrumb-nav a { color: var(--accent); text-decoration: none; transition: color .3s; }
.breadcrumb-nav a:hover { color: var(--secondary); text-decoration: underline; }
.breadcrumb-nav .sep { margin: 0 .25rem; color: var(--text-muted); }
.breadcrumb-nav span.current { color: var(--text); }

/* ════ MAIN LAYOUT — single column mobile, two-column desktop ════ */
.site-main {
    display: flex; flex-direction: column;
    width: 100%; max-width: var(--content-max);
    margin: 1.5rem auto 2.5rem;
    padding: 0 var(--page-pad);
    gap: 0; box-sizing: border-box;
}
.blog-posts { order: 1; width: 100%; min-width: 0; }
.sidebar    { order: 2; width: 100%; min-width: 0; margin-top: 2rem; }

@media (min-width: 62em) {
    .site-main {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,var(--sidebar-w));
        gap: 2.5rem; padding: 0 1.875rem; margin: 3.125rem auto;
    }
    .blog-posts { grid-column: 1; order: unset; }
    .sidebar    { grid-column: 2; order: unset; margin-top: 0; }
}

/* ════ POST CARDS ════ */
.post-card {
    background: #fff; border-radius: 1rem; margin-bottom: 2rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    position: relative; overflow: hidden; isolation: isolate;
    border-top: 4px solid var(--accent); width: 100%;
}
@media (hover: hover) and (pointer: fine) {
    .post-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-8px); }
}
.post-card .entry-title {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: clamp(1.25rem, 5vw, 2rem);
    line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    padding: 1.25rem 1rem 0; margin-bottom: .75rem; position: relative; z-index: 2;
}
.post-card .entry-title a {
    color: var(--text); text-decoration: none; display: block;
    overflow-wrap: break-word; word-break: break-word; transition: var(--transition);
}
.post-card .entry-title a:hover { color: var(--accent); }
@media (min-width: 48em) {
    .post-card .entry-title { padding: 1.75rem 1.5rem 0; font-size: clamp(1.35rem,3vw,1.85rem); }
}
@media (min-width: 62em) {
    .post-card .entry-title { padding: 2.5rem 2.5rem 0; font-size: clamp(1.5rem,2.5vw,2rem); }
}

.post-meta {
    font-family: 'Oswald', sans-serif; font-size: .8125rem; color: var(--text-muted);
    padding: 0 1rem .75rem; border-bottom: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
    text-transform: uppercase; letter-spacing: .03em; font-weight: 600;
    position: relative; z-index: 2;
}
.post-meta span { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; }
.post-meta strong { color: var(--text); font-weight: 600; margin-right: .25rem; }
@media (min-width: 48em) { .post-meta { padding: 0 1.5rem 1rem; gap: 1rem; } }
@media (min-width: 62em) { .post-meta { padding: 0 2.5rem 1.5rem; gap: 1.5rem; } }

.post-tags { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.post-tags a {
    color: var(--primary); text-decoration: none; font-size: .75rem; font-weight: 600;
    display: inline-flex; align-items: center;
    padding: .375rem .75rem; min-height: 2.75rem;
    background: var(--bg-light); border: 1px solid var(--border); border-radius: 1.25rem;
    text-transform: uppercase; letter-spacing: .02em; transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.post-tags a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.post-thumbnail { width: 100%; margin-bottom: 0; position: relative; z-index: 2; }
.post-thumbnail a { display: block; }
.post-thumbnail img { width: 100%; max-height: 15rem; object-fit: cover; display: block; }
@media (min-width: 48em) { .post-thumbnail img { max-height: 22rem; } }
@media (min-width: 62em) { .post-thumbnail img { max-height: 25rem; } }

.entry-content {
    padding: .75rem 1rem 1.25rem; font-size: 1rem; line-height: 1.8;
    color: var(--text); position: relative; z-index: 2;
    word-wrap: break-word; overflow-wrap: break-word;
}
.entry-content p { margin-bottom: 1.375rem; }
.entry-content pre, .entry-content table { max-width: 100%; overflow-x: auto; }
.entry-content iframe, .entry-content embed { max-width: 100%; }
.entry-content a {
    color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
    font-weight: 600; transition: color .2s ease; position: relative; z-index: 10; cursor: pointer;
}
.entry-content a:hover { color: var(--accent); }
.entry-content img {
    max-width: 100%; height: auto; border-radius: .75rem; margin: 1.25rem 0;
    box-shadow: var(--shadow-lg); border: 3px solid var(--border); transition: var(--transition);
}
@media (hover: hover) and (pointer: fine) {
    .entry-content img:hover { transform: scale(1.01); box-shadow: var(--shadow-xl); border-color: var(--accent); }
}
.entry-content h2, .entry-content h3 {
    font-family: 'Oswald', sans-serif; color: var(--primary);
    margin: 1.875rem 0 .9375rem; text-transform: uppercase;
}
.entry-content .privacy-external-link {
    display: inline-block; margin: .75rem 0 .5rem; padding: .625rem 1.125rem;
    background: var(--bg-light); border: 2px solid var(--primary);
    border-radius: .5rem; color: var(--primary) !important;
    text-decoration: none !important; font-weight: 700;
}
.entry-content .privacy-external-link:hover { background: var(--primary); color: #fff !important; }
@media (min-width: 48em) { .entry-content { padding: .75rem 1.5rem 1.5rem; font-size: 1.0625rem; } }
@media (min-width: 62em) { .entry-content { padding: 0 2.5rem 2.5rem; font-size: 1.125rem; } }

.read-more-btn {
    display: flex; align-items: center; justify-content: center; gap: .625rem;
    background: var(--grad-accent); color: #fff !important; text-decoration: none;
    border-radius: .5rem; font-family: 'Oswald', sans-serif; font-weight: 700;
    font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em;
    margin: .75rem 1rem 1.5rem; padding: .875rem 1.25rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    position: relative; z-index: 2; overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.read-more-btn::after {
    content: ''; width: 0; height: 0;
    border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    display: inline-block; vertical-align: middle; margin-left: .625rem;
}
.read-more-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff !important; }
@media (min-width: 48em) {
    .read-more-btn { display: inline-flex; width: auto; margin: 1rem 1.5rem 1.75rem; padding: .875rem 1.5rem; }
}
@media (min-width: 62em) { .read-more-btn { margin: 1.25rem 2.5rem 2.5rem; padding: 1rem 2rem; } }

/* ════ HOME / ARCHIVE LISTING CARDS (stacked: title → byline → image → CTA) ════ */
.blog-posts .post-card--listing {
    border-top: none;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: #fff;
}
.blog-posts .post-card--listing .post-card__header {
    padding: 0;
}
.blog-posts .post-card--listing .entry-title {
    padding: 1.25rem 1rem 0.5rem;
    margin-bottom: 0;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    line-height: 1.35;
}
.blog-posts .post-card--listing .post-meta--byline {
    display: block;
    padding: 0 1rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}
.blog-posts .post-card--listing .post-meta--byline .post-author {
    display: inline;
}
.blog-posts .post-card--listing .post-byline-prefix {
    margin-right: 0.35rem;
    color: var(--text-muted);
}
.blog-posts .post-card--listing .post-thumbnail {
    margin: 0;
    width: 100%;
}
.blog-posts .post-card--listing .post-thumbnail a {
    display: block;
    line-height: 0;
}
.blog-posts .post-card--listing .post-thumbnail img {
    width: 100%;
    max-height: 18rem;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
@media (min-width: 48em) {
    .blog-posts .post-card--listing .entry-title { padding: 1.5rem 1.5rem 0.5rem; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
    .blog-posts .post-card--listing .post-meta--byline { padding: 0 1.5rem 1.125rem; }
    .blog-posts .post-card--listing .post-card__footer { padding: 1.125rem 1.5rem 1.75rem; }
    .blog-posts .post-card--listing .post-thumbnail img { max-height: 22rem; }
}
@media (min-width: 62em) {
    .blog-posts .post-card--listing .entry-title { padding: 1.75rem 2rem 0.5rem; font-size: clamp(1.2rem, 1.8vw, 1.65rem); }
    .blog-posts .post-card--listing .post-meta--byline { padding: 0 2rem 1.25rem; font-size: 0.8125rem; }
    .blog-posts .post-card--listing .post-card__footer { padding: 1.25rem 2rem 2rem; }
    .blog-posts .post-card--listing .post-thumbnail img { max-height: 26rem; }
}
.blog-posts .post-card--listing .post-card__footer {
    padding: 1rem 1rem 1.5rem;
    background: #fff;
}
.blog-posts .post-card--listing .read-more-btn--listing {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    align-self: flex-start;
    padding: 0.875rem 1.35rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #ff8c5a 0%, #ff6b35 100%);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.blog-posts .post-card--listing .read-more-btn--listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.45);
    color: #fff !important;
}

/* ════ SINGLE POST ════ */
.single .post-card { max-width: min(51.25rem,100%); margin-left: auto; margin-right: auto; padding: 0 0 2rem; }
.single .post-card .entry-title {
    font-size: clamp(1.3rem,5.5vw,2.5rem); line-height: 1.25;
    padding: 1.25rem 1rem .75rem; margin-bottom: 0; border-bottom: 3px solid var(--accent);
}
.single .post-meta { padding: .5rem 1rem .625rem; border-top: none; }
.single .entry-content { padding: .625rem 1rem 2rem; font-size: 1.0625rem; line-height: 1.85; }
.single .post-thumbnail { margin: 0 0 1.25rem; }
.single .post-thumbnail img {
    width: 100%; height: auto; max-height: none;
    border-radius: .75rem; box-shadow: var(--shadow-lg); border: 3px solid var(--border); object-fit: cover;
}
@media (min-width: 48em) {
    .single .post-card .entry-title { padding: 1.5rem 1.5rem 1rem; }
    .single .post-meta { padding: .625rem 1.5rem; }
    .single .entry-content { padding: .75rem 1.5rem 2.5rem; }
}

.post-meta--tags { padding: .875rem 1rem; border-top: 1px solid var(--border); border-bottom: none; flex-wrap: wrap; gap: .625rem; }
@media (min-width: 48em) { .post-meta--tags { padding: .875rem 1.5rem; } }

.related-articles { margin-top: 1.5rem; }
.related-articles__heading { padding: 1.25rem 1rem 0; font-size: clamp(1.1rem,4vw,1.5rem); margin-bottom: 0; }
.related-articles__list { list-style: none; padding: .75rem 1rem 1.25rem; }
.related-articles__item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.related-articles__item:last-child { border-bottom: none; }
.related-articles__link {
    color: var(--primary); text-decoration: none; font-weight: 600; font-size: .9375rem;
    line-height: 1.4; display: flex; align-items: center; min-height: 2.75rem; transition: color .2s ease;
}
.related-articles__link:hover { color: var(--accent); }
@media (min-width: 48em) {
    .related-articles__heading { padding: 1.5rem 1.5rem 0; }
    .related-articles__list { padding: 1rem 1.5rem 1.5rem; }
}

/* ════ SIDEBAR & WIDGETS ════ */
.widget {
    background: #fff; border-radius: 1rem; padding: 1.125rem 1rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    border-top: 4px solid var(--accent); width: 100%; box-sizing: border-box; overflow-wrap: break-word;
}
@media (hover: hover) and (pointer: fine) { .widget:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); } }
@media (min-width: 48em) { .widget { padding: 1.5rem; } }

.widget-title {
    font-family: 'Oswald', 'Bebas Neue', sans-serif; font-size: 1.25rem;
    margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border);
    color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 5rem; height: 2px; background: var(--grad-accent);
}
.widget ul { list-style: none; }
.widget li { padding: .625rem 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: none; }
.widget a {
    color: var(--primary); text-decoration: none; font-size: .875rem;
    display: flex; align-items: center; min-height: 2.5rem; transition: color .3s;
}
.widget a:hover { color: var(--secondary); }

.widget_search .search-form {
    display: flex;
    align-items: stretch;
    gap: .375rem;
    width: 100%;
    max-width: 100%;
}
/* WP default search form uses: label + input.search-submit */
.widget_search .search-form > label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    display: block;
}
.widget_search .search-form .search-field,
.widget_search input[type="search"],
.widget_search input[type="text"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: .625rem .75rem;
    border: 1px solid var(--border);
    border-radius: .25rem;
    font-family: inherit;
    font-size: 1rem;
    min-height: 2.75rem;
}
.widget_search .search-form .search-submit,
.widget_search button,
.widget_search input[type="submit"] {
    flex: 0 0 auto;
    padding: .625rem .875rem;
    min-height: 2.75rem;
    min-width: 0;
    max-width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: .25rem;
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
}
.widget_search button:hover,
.widget_search input[type="submit"]:hover { background: var(--accent); }
@media (max-width: 23.75em) {
    .widget_search .search-form {
        flex-direction: column;
    }
    .widget_search .search-form .search-submit,
    .widget_search button,
    .widget_search input[type="submit"] {
        width: 100%;
    }
}
.widget_categories li, .widget_tag_cloud li { display: flex; justify-content: space-between; }
.widget_categories .count, .label-count { color: #999; font-size: .75rem; }

/* ════ PAGINATION ════ */
.blog-pager {
    margin: 1.5rem 0; padding: 1rem;
    display: flex; flex-direction: column; align-items: stretch; gap: .75rem;
}
.blog-pager a {
    display: flex; align-items: center; justify-content: center;
    padding: .75rem 1.5rem; min-height: 2.75rem;
    background: var(--grad-accent); color: #fff !important; text-decoration: none;
    border-radius: .5rem; font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: .875rem; text-transform: uppercase; letter-spacing: .03em;
    transition: var(--transition); box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
}
.blog-pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-pager .home-link { background: var(--primary); }
.blog-pager .home-link:hover { background: var(--primary-light); }
@media (min-width: 48em) {
    .blog-pager { flex-direction: row; justify-content: center; align-items: center; gap: 1.25rem; }
    .blog-pager a { width: auto; }
}

/* ════ CONTACT FORM ════ */
.contact-form { max-width: 37.5rem; width: 100%; }
.contact-form__field { margin-bottom: 1rem; }
.contact-form__label {
    display: block; font-weight: 600; margin-bottom: .5rem;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .03em;
    font-size: .875rem; color: var(--text);
}
.contact-form__required { color: var(--accent); margin-left: .125rem; }
.contact-form__input {
    width: 100%; padding: .8125rem .875rem; border: 2px solid var(--border); border-radius: .5rem;
    font-size: 1rem; font-family: inherit; line-height: 1.5; color: var(--text); background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
    box-sizing: border-box; -webkit-appearance: none; appearance: none; min-height: 2.75rem;
}
.contact-form__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,.15); outline: none; }
.contact-form__textarea { resize: vertical; min-height: 8.75rem; }
.contact-form__submit {
    display: flex; align-items: center; justify-content: center; gap: .625rem;
    background: var(--grad-accent); color: #fff; padding: 1rem 2.25rem;
    border: none; border-radius: .5rem; font-weight: 700; font-size: 1rem;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em;
    cursor: pointer; box-shadow: var(--shadow-md); transition: var(--transition);
    min-height: 3.25rem; width: 100%; -webkit-tap-highlight-color: transparent;
}
.contact-form__submit:hover, .contact-form__submit:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); outline: none; }
@media (min-width: 48em) { .contact-form__submit { width: auto; } }

/* ════ FOOTER ════ */
.site-footer {
    background: linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
    color: #fff; padding: 2.5rem var(--page-pad) max(1.875rem,env(safe-area-inset-bottom));
    margin-top: 3rem; position: relative; overflow: hidden; width: 100%;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg,var(--secondary),var(--secondary-light));
}
.footer-widgets {
    max-width: var(--content-max); margin: 0 auto 2.5rem; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 1.75rem; position: relative; z-index: 1;
}
@media (min-width: 48em) { .footer-widgets { grid-template-columns: repeat(2,1fr); gap: 2rem; } }
@media (min-width: 62em) {
    .footer-widgets { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 2.5rem; }
    .site-footer { padding-top: 3.75rem; margin-top: 5rem; }
}
.footer-widget-title {
    font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 1.25rem;
    color: var(--secondary); font-weight: 700; position: relative; padding-bottom: .75rem;
}
.footer-widget-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 3.125rem; height: 2px; background: var(--secondary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .75rem; }
.footer-col a {
    color: rgba(255,255,255,.85); text-decoration: none; font-size: .9375rem;
    display: flex; align-items: center; min-height: 2.5rem;
    transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.footer-col a:hover { color: var(--secondary); padding-left: .9375rem; }
.footer-col p { font-size: .875rem; line-height: 1.6; color: #ddd; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem;
    text-align: center; font-size: .875rem; color: rgba(255,255,255,.7);
    position: relative; z-index: 1;
    max-width: var(--content-max); margin: 0 auto;
}
.footer-bottom p { margin: .3125rem 0; }

/* ════ PAGE TEMPLATES ════ */
.page .post-card .entry-title, .page .entry-title { padding: 1.25rem 1rem 0; }
@media (min-width: 48em) { .page .post-card .entry-title, .page .entry-title { padding: 1.75rem 1.5rem 0; } }

/* ════ READING PROGRESS ════ */
#reading-progress-bar {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: var(--grad-accent); z-index: 9999; transition: width .1s linear; pointer-events: none;
}

/* ════ BACK TO TOP ════ */
#back-to-top {
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
    width: 3rem; height: 3rem; background: var(--accent); color: #fff;
    border: none; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(.75rem);
    transition: opacity .3s ease, transform .3s ease, visibility .3s; z-index: 500;
    -webkit-tap-highlight-color: transparent;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover, #back-to-top:focus-visible { background: var(--primary); outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 62em) and (hover: hover) and (pointer: fine) { #back-to-top { display: none; } }

/* ════ GLOBAL INPUT FLOOR (prevent iOS zoom) ════ */
input[type="text"], input[type="email"], input[type="search"],
input[type="url"], input[type="tel"], input[type="password"],
textarea, select { font-size: max(1rem, 16px); }

/* ════ UTILITY ════ */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
@supports (-webkit-touch-callout: none) {
    .main-navigation { position: -webkit-sticky; position: sticky; }
}
