/*
 Theme Name:   Shix
 Theme URI:    https://shix.co.il
 Description:  Modern magazine theme built specifically for Shix.co.il — pet & animal magazine. Standalone, fast, RTL-ready, with built-in search autocomplete, sticky share, schema.org markup, and dark mode support.
 Author:       Shix Team
 Author URI:   https://shix.co.il
 Version:      1.0.0
 Requires at least: 6.0
 Tested up to: 6.9
 Requires PHP: 7.4
 License:      GPL v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Tags:         magazine, blog, news, custom-colors, custom-logo, custom-menu, featured-images, post-formats, threaded-comments, translation-ready, rtl-language-support
 Text Domain:  shix
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* === Override parent theme variables (forces light mode everywhere) === */
    --typify-colors-background: #FFFBF5;
    --typify-colors-paper: #FFFFFF;
    --typify-colors-ink: #1F2937;
    --typify-colors-captions: #0F172A;
    --typify-colors-borders: rgba(0, 0, 0, 0.08);
    --typify-colors-primary: #FF6B35;
    --typify-colors-primary-text: #FFFFFF;
    --typify-colors-accent: #FF6B35;
    --typify-colors-accent--hover: #E55A2B;
    --typify-colors-special: #EC4899;
    --typify-colors-offcanvas: #FFFFFF;
    --typify-colors-offcanvas-text: #1F2937;
    --typify-colors-offcanvas-link: #FF6B35;
    --typify-colors-offcanvas-link--hover: #E55A2B;
    --typify-submenu-background: #FFFFFF;
    --typify-submenu-color: #1F2937;
    --typify-submenu-background--hover: #FF6B35;
    --typify-submenu-color--hover: #FFFFFF;
    --typify-input-background: #FFFFFF;
    --typify-input-text: #1F2937;
    --typify-input-border-color: #E5E0D5;
    --typify-footer-background: #0F172A;
    --typify-footer-color: #CBD5E1;
    --typify-footer-links: #FFE5D9;
    --typify-footer-links--hover: #FF6B35;
    --typify-header-background-color: #FFFFFF;
    --typify-thumb-bg--start: #FFE5D9;
    --typify-thumb-bg--end: #FFF5F0;
    --typify-thumb-bg: linear-gradient(135deg, #FFE5D9 0%, #FFF5F0 100%);
    --typify-btn-background-color--default: #FF6B35;
    --typify-btn-background-color--default--hover: #E55A2B;
    --typify-btn-bg-one: #FF6B35;
    --typify-btn-bg-one-h: #E55A2B;
    --typify-hover-img-scale-hov: 1.05;
    --typify-hover-img-blur-hov: blur(0px);
    --typify-hover-img-brightness-hov: brightness(0.9);

    /* Brand colors */
    --shix-primary: #FF6B35;
    --shix-primary-dark: #E55A2B;
    --shix-primary-light: #FFE5D9;
    --shix-primary-50: #FFF5F0;

    /* Neutrals */
    --shix-bg: #FFFBF5;
    --shix-surface: #FFFFFF;
    --shix-surface-alt: #FAF6F0;
    --shix-border: #F0EBE3;
    --shix-divider: #E5E0D5;

    /* Text */
    --shix-text: #1F2937;
    --shix-text-strong: #0F172A;
    --shix-text-muted: #6B7280;
    --shix-text-light: #9CA3AF;

    /* Accent colors */
    --shix-green: #10B981;
    --shix-blue: #3B82F6;
    --shix-pink: #EC4899;
    --shix-yellow: #FBBF24;

    /* Dark backgrounds */
    --shix-dark: #1E293B;
    --shix-dark-alt: #0F172A;

    /* Semantic */
    --shix-success: var(--shix-green);
    --shix-info: var(--shix-blue);

    /* Spacing scale */
    --shix-space-1: 0.25rem;
    --shix-space-2: 0.5rem;
    --shix-space-3: 0.75rem;
    --shix-space-4: 1rem;
    --shix-space-5: 1.25rem;
    --shix-space-6: 1.5rem;
    --shix-space-8: 2rem;
    --shix-space-10: 2.5rem;
    --shix-space-12: 3rem;
    --shix-space-16: 4rem;
    --shix-space-20: 5rem;
    --shix-space-24: 6rem;

    /* Radius */
    --shix-radius-sm: 6px;
    --shix-radius: 10px;
    --shix-radius-lg: 14px;
    --shix-radius-xl: 20px;
    --shix-radius-2xl: 28px;
    --shix-radius-full: 9999px;

    /* Shadows */
    --shix-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shix-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shix-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
    --shix-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shix-shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.16);

    /* Transitions */
    --shix-trans-fast: 150ms ease;
    --shix-trans: 250ms ease;
    --shix-trans-slow: 400ms ease;

    /* Layout */
    --shix-container: 1280px;
    --shix-container-sm: 720px;
    --shix-container-narrow: 880px;

    /* Z-index */
    --shix-z-header: 50;
    --shix-z-overlay: 100;
    --shix-z-modal: 200;

    /* Fonts */
    --shix-font: 'Heebo', 'Open Sans Hebrew', system-ui, -apple-system, sans-serif;
    --shix-font-display: 'Heebo', 'Open Sans Hebrew', system-ui, sans-serif;
}

/* Dark mode — applies when [data-theme="dark"] is on <html> */
[data-theme="dark"] {
    --shix-bg: #0F172A;
    --shix-surface: #1E293B;
    --shix-surface-alt: #334155;
    --shix-border: #334155;
    --shix-divider: #475569;
    --shix-text: #F1F5F9;
    --shix-text-strong: #FFFFFF;
    --shix-text-muted: #94A3B8;
    --shix-text-light: #64748B;
    --shix-primary-50: rgba(255, 107, 53, 0.12);
    --shix-primary-light: rgba(255, 107, 53, 0.2);

    /* Override parent typify variables in dark too */
    --typify-colors-background: #0F172A;
    --typify-colors-paper: #1E293B;
    --typify-colors-ink: #F1F5F9;
    --typify-colors-captions: #FFFFFF;
    --typify-colors-borders: rgba(255, 255, 255, 0.1);
    --typify-colors-offcanvas: #1E293B;
    --typify-colors-offcanvas-text: #F1F5F9;
    --typify-submenu-background: #1E293B;
    --typify-submenu-color: #F1F5F9;
    --typify-input-background: #1E293B;
    --typify-input-text: #F1F5F9;
    --typify-input-border-color: #334155;
    --typify-header-background-color: #0F172A;
    --typify-thumb-bg--start: #334155;
    --typify-thumb-bg--end: #1E293B;
    --typify-thumb-bg: linear-gradient(135deg, #334155 0%, #1E293B 100%);
}

/* Apply theme bg to html itself so mobile address bar matches */
html { background-color: var(--shix-bg); transition: background-color 0.3s ease; }

/* Force ALL container backgrounds to follow theme */
html body,
html #typify-body,
html .typify-master,
html .typify-pagecontent,
html .typify-maincontent,
html .shix-main,
html main,
html .shix-article,
html article.shix-article,
html .shix-page-body,
html section.shix-section,
html section.shix-section-sm,
html div#qttm-ajax-master,
html div.typify-global {
    background-color: var(--shix-bg) !important;
    color: var(--shix-text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Article body — make sure ALL inner content is on light bg */
.shix-article-body,
.shix-article-body > *,
.shix-article-body p,
.shix-article-body div:not(.shix-toc),
.shix-article-body span,
.shix-article-body section,
.shix-article-body article {
    background-color: transparent !important;
    color: inherit;
}
.shix-article-body {
    background-color: var(--shix-bg) !important;
    color: var(--shix-text) !important;
}
.shix-article-body p,
.shix-article-body li,
.shix-article-body td {
    color: var(--shix-text) !important;
}

/* Page body content too */
.shix-page-body,
.shix-page-body > *,
.shix-page-body p,
.shix-page-body div,
.shix-page-body span {
    background-color: transparent !important;
}
.shix-page-body {
    background-color: var(--shix-bg) !important;
    color: var(--shix-text) !important;
}

/* Defensive: parent theme's content wrappers — kill their backgrounds */
.typify-single,
.typify-pagecontent,
.typify-maincontent,
.typify-entrycontent,
.typify-post-contents,
.typify-tab-transcript,
.typify-tabs__content,
.typify-program {
    background-color: transparent !important;
    color: var(--shix-text) !important;
}

/* But keep hero card/featured intentionally dark */
.shix-hero__main,
.shix-hero__side-item,
.shix-hero__main-content,
.shix-hero__side-content {
    color: #fff !important;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--shix-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--shix-text);
    background-color: var(--shix-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--shix-primary); text-decoration: none; transition: color var(--shix-trans-fast); }
a:hover { color: var(--shix-primary-dark); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--shix-font-display);
    color: var(--shix-text-strong);
    line-height: 1.3;
    margin: 0 0 var(--shix-space-4);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 var(--shix-space-4); }

/* ============================================================
   LAYOUT
   ============================================================ */
.shix-container {
    max-width: var(--shix-container);
    margin: 0 auto;
    padding: 0 var(--shix-space-5);
}
.shix-container-narrow {
    max-width: var(--shix-container-narrow);
    margin: 0 auto;
    padding: 0 var(--shix-space-5);
}
.shix-section { padding: var(--shix-space-16) 0; }
.shix-section-sm { padding: var(--shix-space-10) 0; }

@media (max-width: 767px) {
    .shix-section { padding: var(--shix-space-10) 0; }
    .shix-section-sm { padding: var(--shix-space-8) 0; }
}

/* Section heading */
.shix-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--shix-space-8);
    gap: var(--shix-space-4);
}
.shix-section-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin: 0;
    position: relative;
    padding-right: var(--shix-space-4);
}
.shix-section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--shix-primary) 0%, var(--shix-pink) 100%);
}
.shix-section-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--shix-primary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: var(--shix-space-1);
    transition: gap var(--shix-trans-fast);
}
.shix-section-link:hover { gap: var(--shix-space-2); }

/* ============================================================
   HEADER
   ============================================================ */
.shix-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--shix-z-header);
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--shix-border);
    transition: box-shadow var(--shix-trans);
    width: 100%;
    pointer-events: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Ensure no ancestor breaks sticky on iOS */
html, body, #qttm-ajax-master, .typify-master, .typify-global, main, .shix-main {
    overflow: visible !important;
    overflow-x: clip !important;
}

/* Mobile fallback — if sticky breaks, use fixed */
@media (max-width: 991px) {
    .shix-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        background: var(--shix-surface) !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    [data-theme="dark"] .shix-header {
        background: var(--shix-dark-alt) !important;
    }
}
[data-theme="dark"] .shix-header {
    background: rgba(15, 23, 42, 0.92);
}
.shix-header.is-scrolled { box-shadow: var(--shix-shadow); }

.shix-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--shix-space-6);
    padding: var(--shix-space-3) var(--shix-space-5);
    max-width: var(--shix-container);
    margin: 0 auto;
}

.shix-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--shix-text-strong);
    flex-shrink: 0;
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: opacity var(--shix-trans-fast);
    line-height: 1;
}
.shix-logo:hover { color: var(--shix-text-strong); opacity: 0.92; }
.shix-logo img { height: 40px; width: auto; }
.shix-logo__icon {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(255, 107, 53, 0.25));
    transition: transform var(--shix-trans);
}
.shix-logo:hover .shix-logo__icon {
    transform: rotate(-8deg) scale(1.05);
}
.shix-logo__text {
    background: linear-gradient(135deg, var(--shix-text-strong) 0%, var(--shix-text-strong) 60%, var(--shix-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 900;
    line-height: 1;
}
[data-theme="dark"] .shix-logo__text {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 60%, var(--shix-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shix-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.shix-nav__list,
.shix-nav > ul {
    display: flex;
    align-items: center;
    gap: var(--shix-space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}
.shix-nav li,
.shix-nav .menu-item,
.shix-nav .page_item {
    list-style: none !important;
    margin: 0;
    padding: 0;
    position: relative;
}
.shix-nav li::marker,
.shix-nav li::before {
    content: none !important;
    display: none !important;
}
.shix-nav a {
    color: var(--shix-text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--shix-space-2) var(--shix-space-3);
    border-radius: var(--shix-radius);
    transition: all var(--shix-trans-fast);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--shix-space-1);
}
.shix-nav a:hover {
    color: var(--shix-primary);
    background: var(--shix-primary-50);
}
.shix-nav .current-menu-item > a,
.shix-nav .current_page_item > a,
.shix-nav .current-menu-parent > a,
.shix-nav .current-cat > a {
    color: var(--shix-primary);
    background: var(--shix-primary-50);
}

/* Chevron for items with children */
.shix-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-right: 4px;
    transition: transform var(--shix-trans-fast);
    opacity: 0.7;
}
.shix-nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown sub-menu */
.shix-nav .sub-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    min-width: 240px;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-lg);
    padding: var(--shix-space-2);
    box-shadow: var(--shix-shadow-lg);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    z-index: var(--shix-z-overlay);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Bridge gap so dropdown stays open between trigger and menu */
.shix-nav .menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px;
    pointer-events: none;
}
.shix-nav .menu-item-has-children:hover::after,
.shix-nav .menu-item-has-children:focus-within::after {
    pointer-events: auto;
}

.shix-nav .menu-item-has-children:hover > .sub-menu,
.shix-nav .menu-item-has-children:focus-within > .sub-menu,
.shix-nav .menu-item-has-children > .sub-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.shix-nav .sub-menu .menu-item {
    width: 100%;
}
.shix-nav .sub-menu a {
    display: flex;
    align-items: center;
    gap: var(--shix-space-3);
    padding: var(--shix-space-2) var(--shix-space-3);
    color: var(--shix-text);
    border-radius: var(--shix-radius);
    font-size: 0.92rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}
.shix-nav .sub-menu a:hover {
    background: var(--shix-primary-50);
    color: var(--shix-primary);
}
.shix-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--shix-primary-50);
    border-radius: var(--shix-radius-full);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background var(--shix-trans-fast);
}
.shix-nav .sub-menu a:hover .shix-nav__icon {
    background: var(--shix-primary);
}
.shix-nav__count {
    margin-right: auto;
    margin-left: 0;
    font-size: 0.75rem;
    color: var(--shix-text-light);
    font-weight: 600;
    background: var(--shix-surface-alt);
    padding: 2px 8px;
    border-radius: var(--shix-radius-full);
    min-width: 28px;
    text-align: center;
}
.shix-nav .sub-menu a:hover .shix-nav__count {
    background: rgba(255, 255, 255, 0.6);
    color: var(--shix-primary-dark);
}

/* Drawer mobile menu — show sub-items expanded */
.shix-drawer__nav .sub-menu {
    list-style: none;
    margin: 0 0 var(--shix-space-2) 0;
    padding-right: var(--shix-space-4);
    border-right: 2px solid var(--shix-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shix-drawer__nav .sub-menu a {
    font-size: 0.9rem;
    padding: var(--shix-space-2) var(--shix-space-3);
}

.shix-header__actions {
    display: flex;
    align-items: center;
    gap: var(--shix-space-2);
}

.shix-icon-btn,
button.shix-icon-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    color: var(--shix-text);
    transition: all var(--shix-trans-fast);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}
.shix-icon-btn:hover,
button.shix-icon-btn:hover {
    background: var(--shix-primary);
    border-color: var(--shix-primary);
    color: #fff;
}
.shix-icon-btn svg,
button.shix-icon-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    pointer-events: none;
}

@media (max-width: 991px) {
    .shix-nav { display: none !important; }
}

/* Mobile drawer toggle button */
.shix-mobile-toggle { display: none; }
@media (max-width: 991px) {
    .shix-mobile-toggle { display: inline-flex !important; }
}

/* Force header always visible on all pages including page-contact */
.shix-header,
header.shix-header {
    display: block !important;
    visibility: visible !important;
}
.shix-header__inner {
    display: flex !important;
    visibility: visible !important;
}
.shix-header__actions {
    display: flex !important;
}

.shix-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--shix-z-modal);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--shix-trans), visibility var(--shix-trans);
}
.shix-drawer.is-open { pointer-events: auto; visibility: visible; opacity: 1; }
.shix-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}
.shix-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    background: var(--shix-surface);
    box-shadow: var(--shix-shadow-xl);
    transform: translateX(100%);
    transition: transform var(--shix-trans);
    display: flex;
    flex-direction: column;
}
.shix-drawer.is-open .shix-drawer__panel { transform: translateX(0); }
.shix-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--shix-space-4) var(--shix-space-5);
    border-bottom: 1px solid var(--shix-border);
}
.shix-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--shix-space-4);
}
.shix-drawer__nav ul, .shix-drawer__nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shix-drawer__nav li,
.shix-drawer__nav .menu-item,
.shix-drawer__nav .page_item {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.shix-drawer__nav li::marker,
.shix-drawer__nav li::before {
    content: none !important;
    display: none !important;
}
.shix-drawer__nav a {
    display: block;
    padding: var(--shix-space-3) var(--shix-space-4);
    color: var(--shix-text);
    font-weight: 600;
    border-radius: var(--shix-radius);
    transition: all var(--shix-trans-fast);
    text-decoration: none;
}
.shix-drawer__nav a:hover {
    background: var(--shix-primary-50);
    color: var(--shix-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.shix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--shix-space-2);
    padding: var(--shix-space-3) var(--shix-space-6);
    font-family: var(--shix-font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--shix-radius-full);
    border: 2px solid transparent;
    background: var(--shix-primary);
    color: #fff;
    transition: all var(--shix-trans-fast);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.shix-btn:hover {
    background: var(--shix-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shix-shadow-md);
}
.shix-btn--ghost {
    background: transparent;
    color: var(--shix-primary);
    border-color: var(--shix-primary);
}
.shix-btn--ghost:hover {
    background: var(--shix-primary);
    color: #fff;
}
.shix-btn--lg { padding: var(--shix-space-4) var(--shix-space-8); font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.shix-card {
    background: var(--shix-surface);
    border-radius: var(--shix-radius-lg);
    overflow: hidden;
    box-shadow: var(--shix-shadow-sm);
    border: 1px solid var(--shix-border);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--shix-trans), transform var(--shix-trans);
    height: 100%;
}
.shix-card:hover {
    box-shadow: var(--shix-shadow-md);
    transform: translateY(-3px);
}

.shix-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--shix-primary-50) 0%, var(--shix-border) 100%);
}
.shix-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--shix-trans-slow);
}
.shix-card:hover .shix-card__media img { transform: scale(1.05); }

.shix-card__body {
    padding: var(--shix-space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--shix-space-2);
}
.shix-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.shix-card__title a {
    color: var(--shix-text-strong);
    transition: color var(--shix-trans-fast);
}
.shix-card__title a:hover { color: var(--shix-primary); }
.shix-card__excerpt {
    color: var(--shix-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shix-card__meta {
    display: flex;
    align-items: center;
    gap: var(--shix-space-3);
    font-size: 0.8rem;
    color: var(--shix-text-light);
    margin-top: auto;
    padding-top: var(--shix-space-3);
    border-top: 1px solid var(--shix-border);
}

/* Category badge */
.shix-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: -moz-fit-content;
    width: fit-content;
    max-width: max-content;
    padding: 4px 12px;
    background: var(--shix-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--shix-radius-full);
    letter-spacing: 0.03em;
    text-transform: none;
    line-height: 1.4;
    text-decoration: none;
}
.shix-badge:hover { color: #fff; opacity: 0.92; }
.shix-badge--ghost {
    background: var(--shix-primary-light);
    color: var(--shix-primary-dark);
}
.shix-card__media .shix-badge {
    position: absolute;
    top: var(--shix-space-3);
    right: var(--shix-space-3);
    background: rgba(255, 107, 53, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shix-shadow);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.shix-hero {
    padding-top: var(--shix-space-8);
    padding-bottom: var(--shix-space-12);
}

.shix-hero__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--shix-space-5);
    min-height: 480px;
}
@media (max-width: 991px) {
    .shix-hero__grid { grid-template-columns: 1fr; }
}

.shix-hero__main {
    position: relative;
    border-radius: var(--shix-radius-xl);
    overflow: hidden;
    background: var(--shix-dark);
    min-height: 480px;
}
.shix-hero__main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shix-hero__main-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--shix-space-8);
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    color: #fff;
    z-index: 1;
}
.shix-hero__title {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin: var(--shix-space-3) 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.shix-hero__title a { color: #fff; }
.shix-hero__title a:hover { color: var(--shix-primary-light); }
.shix-hero__excerpt {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-bottom: var(--shix-space-3);
    max-width: 580px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.shix-hero__meta {
    display: flex;
    gap: var(--shix-space-4);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.shix-hero__side {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: var(--shix-space-5);
    min-height: 480px;
}
@media (max-width: 991px) {
    .shix-hero__side { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .shix-hero__side { grid-template-columns: 1fr; }
}
.shix-hero__side-item {
    position: relative;
    border-radius: var(--shix-radius-lg);
    overflow: hidden;
    background: var(--shix-dark);
    min-height: 220px;
}
.shix-hero__side-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--shix-trans-slow);
}
.shix-hero__side-item:hover img { transform: scale(1.05); }
.shix-hero__side-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--shix-space-5);
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    color: #fff;
    z-index: 1;
}
.shix-hero__side-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: var(--shix-space-2) 0 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.shix-hero__side-title a { color: #fff; }

/* ============================================================
   CATEGORY SHORTCUTS
   ============================================================ */
.shix-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--shix-space-4);
}
.shix-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--shix-space-3);
    padding: var(--shix-space-5) var(--shix-space-3);
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-lg);
    transition: all var(--shix-trans);
    text-align: center;
}
.shix-cat-tile:hover {
    background: var(--shix-primary-50);
    border-color: var(--shix-primary);
    transform: translateY(-3px);
    box-shadow: var(--shix-shadow-md);
}
.shix-cat-tile__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--shix-radius-full);
    background: var(--shix-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all var(--shix-trans);
}
.shix-cat-tile:hover .shix-cat-tile__icon {
    background: var(--shix-primary);
    transform: scale(1.08);
}
.shix-cat-tile__name {
    font-weight: 700;
    color: var(--shix-text-strong);
    font-size: 0.95rem;
}
.shix-cat-tile__count {
    font-size: 0.78rem;
    color: var(--shix-text-muted);
}

/* ============================================================
   POSTS GRIDS
   ============================================================ */
.shix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--shix-space-6);
}

.shix-grid--asym {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: var(--shix-space-5);
}
.shix-grid--asym .shix-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.shix-grid--asym .shix-card:first-child .shix-card__media {
    aspect-ratio: 4/3;
}
.shix-grid--asym .shix-card:first-child .shix-card__title {
    font-size: 1.5rem;
}
@media (max-width: 991px) {
    .shix-grid--asym { grid-template-columns: repeat(2, 1fr); }
    .shix-grid--asym .shix-card:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 575px) {
    .shix-grid--asym { grid-template-columns: 1fr; }
    .shix-grid--asym .shix-card:first-child { grid-column: auto; }
}

/* Trending list */
.shix-trending {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--shix-space-5);
}
.shix-trending-item {
    display: flex;
    gap: var(--shix-space-4);
    align-items: flex-start;
}
.shix-trending-item__num {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px var(--shix-primary);
    flex-shrink: 0;
}
.shix-trending-item__body {
    flex: 1;
    min-width: 0;
}
.shix-trending-item__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 var(--shix-space-2);
}
.shix-trending-item__title a {
    color: var(--shix-text-strong);
}
.shix-trending-item__title a:hover { color: var(--shix-primary); }
.shix-trending-item__meta {
    font-size: 0.8rem;
    color: var(--shix-text-light);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.shix-newsletter {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE5D9 100%);
    border-radius: var(--shix-radius-2xl);
    padding: var(--shix-space-12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--shix-space-8);
    overflow: hidden;
    position: relative;
}
.shix-newsletter::before {
    content: '🐾';
    position: absolute;
    bottom: -30px;
    left: -10px;
    font-size: 12rem;
    opacity: 0.06;
    transform: rotate(-15deg);
    pointer-events: none;
}
[data-theme="dark"] .shix-newsletter {
    background: linear-gradient(135deg, var(--shix-surface) 0%, var(--shix-surface-alt) 100%);
}
@media (max-width: 767px) {
    .shix-newsletter { grid-template-columns: 1fr; padding: var(--shix-space-8); text-align: center; }
}
.shix-newsletter h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 var(--shix-space-3);
}
.shix-newsletter p {
    color: var(--shix-text-muted);
    margin: 0 0 var(--shix-space-5);
}
.shix-newsletter__form {
    display: flex;
    gap: var(--shix-space-2);
    max-width: 460px;
    position: relative;
    z-index: 1;
}
.shix-newsletter__input {
    flex: 1;
    padding: var(--shix-space-3) var(--shix-space-5);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    background: var(--shix-surface);
    color: var(--shix-text);
    font-family: var(--shix-font);
    font-size: 0.95rem;
}
.shix-newsletter__input:focus {
    outline: none;
    border-color: var(--shix-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.shix-newsletter__visual {
    text-align: center;
    font-size: 8rem;
    line-height: 1;
}

/* Mailchimp form styling — Typify uses .typify-fieldset wrapper */
.shix-newsletter .mc4wp-form,
.shix-newsletter .mc4wp-form-fields,
.shix-newsletter .typify-form--inline {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--shix-space-3) !important;
    max-width: 460px;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.shix-newsletter .mc4wp-form p {
    margin: 0;
    padding: 0;
}

/* Hide redundant labels — placeholder already shows the text */
.shix-newsletter .typify-fieldset label,
.shix-newsletter .typify-fieldset .material-icons {
    display: none !important;
}

.shix-newsletter .typify-fieldset {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
}

.shix-newsletter input[type="text"],
.shix-newsletter input[type="email"],
.shix-newsletter input[type="tel"],
.shix-newsletter .typify-fieldset input {
    width: 100% !important;
    padding: 0 var(--shix-space-5) !important;
    border: 1px solid var(--shix-border) !important;
    border-radius: var(--shix-radius-full) !important;
    background: var(--shix-surface) !important;
    color: var(--shix-text) !important;
    font-family: var(--shix-font) !important;
    font-size: 0.95rem !important;
    height: 48px !important;
    line-height: 48px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: right !important;
    direction: rtl !important;
}
.shix-newsletter input[type="text"]::placeholder,
.shix-newsletter input[type="email"]::placeholder {
    color: var(--shix-text-muted);
    opacity: 1;
}
.shix-newsletter input:focus {
    outline: none !important;
    border-color: var(--shix-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
}

.shix-newsletter input[type="submit"],
.shix-newsletter .typify-btn--l,
.shix-newsletter button[type="submit"] {
    background: var(--shix-primary) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    padding: 0 var(--shix-space-8) !important;
    border-radius: var(--shix-radius-full) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: var(--shix-font) !important;
    font-size: 0.95rem !important;
    height: 48px !important;
    line-height: 48px !important;
    align-self: flex-start !important;
    transition: all var(--shix-trans-fast) !important;
    text-transform: none !important;
    width: auto !important;
    min-width: 140px;
    box-shadow: var(--shix-shadow-sm) !important;
}
.shix-newsletter input[type="submit"]:hover,
.shix-newsletter .typify-btn--l:hover,
.shix-newsletter button[type="submit"]:hover {
    background: var(--shix-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shix-shadow-md) !important;
}

/* Search form bar (header dropdown) */
.shix-search-form {
    display: none;
    border-top: 1px solid var(--shix-border);
    background: var(--shix-surface);
}
.shix-search-form.is-open {
    display: block;
    animation: shix-fade-up 0.25s ease;
}
.shix-search-form__form {
    display: flex;
    align-items: center;
    gap: var(--shix-space-2);
    max-width: var(--shix-container);
    margin: 0 auto;
    padding: var(--shix-space-3) var(--shix-space-5);
    position: relative;
}
.shix-search-form__icon {
    position: absolute;
    right: calc(var(--shix-space-5) + var(--shix-space-4));
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--shix-text-muted);
    pointer-events: none;
}
.shix-search-form__input {
    flex: 1;
    padding: var(--shix-space-3) var(--shix-space-12) var(--shix-space-3) var(--shix-space-5);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    font-family: var(--shix-font);
    font-size: 1rem;
    background: var(--shix-surface);
    color: var(--shix-text);
}
.shix-search-form__input:focus {
    outline: none;
    border-color: var(--shix-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.shix-footer {
    background: var(--shix-dark-alt);
    color: #CBD5E1;
    padding: var(--shix-space-16) 0 var(--shix-space-6);
    margin-top: var(--shix-space-16);
}
.shix-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--shix-space-8);
    margin-bottom: var(--shix-space-12);
}
@media (max-width: 991px) {
    .shix-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .shix-footer__grid { grid-template-columns: 1fr; }
}
.shix-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--shix-space-4);
    position: relative;
    padding-right: var(--shix-space-3);
}
.shix-footer h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--shix-primary);
    border-radius: 2px;
}
.shix-footer__about p {
    color: #94A3B8;
    line-height: 1.7;
    margin: var(--shix-space-3) 0;
}
.shix-footer__memorial {
    margin-top: var(--shix-space-5);
    padding: var(--shix-space-4);
    background: rgba(255, 107, 53, 0.08);
    border-right: 3px solid var(--shix-primary);
    border-radius: var(--shix-radius);
    font-style: italic;
    color: #CBD5E1;
    font-size: 0.9rem;
}
.shix-footer ul { list-style: none; padding: 0; margin: 0; }
.shix-footer ul li { margin-bottom: var(--shix-space-2); }
.shix-footer ul a {
    color: #94A3B8;
    transition: all var(--shix-trans-fast);
    display: inline-block;
}
.shix-footer ul a:hover {
    color: var(--shix-primary);
    transform: translateX(-3px);
}
.shix-footer__bottom {
    border-top: 1px solid #1E293B;
    padding-top: var(--shix-space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--shix-space-4);
    font-size: 0.85rem;
    color: #64748B;
}
@media (max-width: 575px) {
    .shix-footer__bottom { flex-direction: column; text-align: center; }
}
.shix-social {
    display: flex;
    gap: var(--shix-space-2);
}
.shix-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #CBD5E1;
    border-radius: var(--shix-radius-full);
    transition: all var(--shix-trans-fast);
}
.shix-social a:hover {
    background: var(--shix-primary);
    color: #fff;
    transform: translateY(-2px);
}
.shix-social svg { width: 16px; height: 16px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.shix-article-header {
    padding: var(--shix-space-16) 0 var(--shix-space-12);
    background: linear-gradient(180deg, var(--shix-primary-50) 0%, var(--shix-bg) 100%);
    text-align: center;
}
.shix-article-header__cat {
    margin-bottom: var(--shix-space-4);
}
.shix-article-header__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 var(--shix-space-5);
    max-width: 880px;
    margin-inline: auto;
}
.shix-article-header__excerpt {
    font-size: 1.15rem;
    color: var(--shix-text-muted);
    max-width: 720px;
    margin: 0 auto var(--shix-space-6);
}
.shix-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--shix-space-5);
    flex-wrap: wrap;
    color: var(--shix-text-muted);
    font-size: 0.9rem;
}
.shix-article-meta__author {
    display: flex;
    align-items: center;
    gap: var(--shix-space-2);
}
.shix-article-meta__author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.shix-article-meta__author strong { color: var(--shix-text-strong); font-weight: 700; }

.shix-article-cover {
    max-width: var(--shix-container);
    margin: 0 auto;
    padding: 0 var(--shix-space-5);
    margin-top: calc(-1 * var(--shix-space-8));
}
.shix-article-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--shix-radius-2xl);
    box-shadow: var(--shix-shadow-lg);
    aspect-ratio: 16/8;
    object-fit: cover;
}

.shix-article-body {
    max-width: 760px;
    margin: var(--shix-space-12) auto;
    padding: 0 var(--shix-space-5);
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--shix-text);
}
.shix-article-body h2 {
    font-size: 1.75rem;
    margin-top: var(--shix-space-12);
    margin-bottom: var(--shix-space-4);
    scroll-margin-top: 100px;
}
.shix-article-body h3 {
    font-size: 1.35rem;
    margin-top: var(--shix-space-8);
    margin-bottom: var(--shix-space-3);
    scroll-margin-top: 100px;
}
.shix-article-body p { margin-bottom: var(--shix-space-5); }
.shix-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--shix-radius-lg);
    margin: var(--shix-space-6) 0;
}
.shix-article-body a {
    color: var(--shix-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(229, 90, 43, 0.4);
    text-underline-offset: 3px;
}
.shix-article-body a:hover {
    color: var(--shix-primary);
    text-decoration-color: var(--shix-primary);
}
.shix-article-body blockquote {
    border-right: 4px solid var(--shix-primary);
    background: var(--shix-primary-50);
    padding: var(--shix-space-5) var(--shix-space-6);
    border-radius: 0 var(--shix-radius-lg) var(--shix-radius-lg) 0;
    margin: var(--shix-space-6) 0;
    font-style: italic;
    color: var(--shix-text);
}
.shix-article-body ul, .shix-article-body ol {
    padding-right: var(--shix-space-6);
    padding-left: 0;
    margin-bottom: var(--shix-space-5);
}
.shix-article-body li { margin-bottom: var(--shix-space-2); }

/* TOC */
.shix-toc {
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-right: 4px solid var(--shix-primary);
    border-radius: var(--shix-radius-lg);
    padding: var(--shix-space-5) var(--shix-space-6);
    margin: var(--shix-space-6) 0;
}
.shix-toc__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--shix-primary);
    margin: 0 0 var(--shix-space-3);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: var(--shix-space-2);
}
.shix-toc ol {
    margin: 0;
    padding-right: var(--shix-space-5);
    counter-reset: shix-toc;
    list-style: none;
}
.shix-toc ol li {
    counter-increment: shix-toc;
    margin-bottom: var(--shix-space-2);
    position: relative;
}
.shix-toc ol li::before {
    content: counter(shix-toc) '.';
    position: absolute;
    right: -28px;
    color: var(--shix-primary);
    font-weight: 700;
}
.shix-toc ol li.shix-toc__h3 { padding-right: var(--shix-space-3); font-size: 0.93em; }
.shix-toc a {
    color: var(--shix-text);
    transition: color var(--shix-trans-fast);
}
.shix-toc a:hover { color: var(--shix-primary); }

/* Reading progress bar */
.shix-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    z-index: calc(var(--shix-z-header) + 1);
    background: transparent;
    pointer-events: none;
}
.shix-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--shix-primary) 0%, var(--shix-pink) 100%);
    transition: width 0.05s linear;
}

/* Share row */
.shix-share {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shix-space-2);
    align-items: center;
    margin: var(--shix-space-8) auto;
    padding: var(--shix-space-4) var(--shix-space-5);
    background: var(--shix-surface-alt);
    border-radius: var(--shix-radius-lg);
    max-width: 760px;
}
.shix-share__label {
    font-weight: 700;
    color: var(--shix-text);
    margin-left: var(--shix-space-2);
    font-size: 0.9rem;
}
.shix-share__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--shix-space-2);
    padding: var(--shix-space-2) var(--shix-space-4);
    background: #fff;
    color: var(--shix-text);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--shix-trans-fast);
    cursor: pointer;
    font-family: var(--shix-font);
}
.shix-share__btn:hover { transform: translateY(-1px); box-shadow: var(--shix-shadow); }
.shix-share__btn--whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.shix-share__btn--facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.shix-share__btn--x:hover { background: #000; color: #fff; border-color: #000; }
.shix-share__btn--telegram:hover { background: #0088CC; color: #fff; border-color: #0088CC; }
.shix-share__btn--copy:hover { background: var(--shix-primary); color: #fff; border-color: var(--shix-primary); }
.shix-share__btn svg { width: 16px; height: 16px; }

/* Author box */
.shix-author-box {
    display: flex;
    gap: var(--shix-space-5);
    align-items: flex-start;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-xl);
    padding: var(--shix-space-6);
    margin: var(--shix-space-8) auto;
    max-width: 760px;
}
.shix-author-box__avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--shix-radius-full);
    flex-shrink: 0;
    object-fit: cover;
}
.shix-author-box__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 var(--shix-space-1);
    color: var(--shix-text-strong);
}
.shix-author-box__role {
    font-size: 0.85rem;
    color: var(--shix-primary);
    margin-bottom: var(--shix-space-2);
}
.shix-author-box__bio {
    color: var(--shix-text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

/* Tags */
.shix-tags {
    max-width: 760px;
    margin: var(--shix-space-6) auto;
    padding: 0 var(--shix-space-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--shix-space-2);
    align-items: center;
}
.shix-tags__label {
    font-weight: 600;
    color: var(--shix-text-muted);
    font-size: 0.88rem;
    margin-left: var(--shix-space-2);
}
.shix-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--shix-surface-alt);
    color: var(--shix-text);
    border-radius: var(--shix-radius-full);
    font-size: 0.83rem;
    transition: all var(--shix-trans-fast);
}
.shix-tag:hover {
    background: var(--shix-primary);
    color: #fff;
}

/* ============================================================
   ARCHIVE / CATEGORY
   ============================================================ */
.shix-archive-header {
    padding: var(--shix-space-16) 0 var(--shix-space-10);
    background: linear-gradient(180deg, var(--shix-primary-50) 0%, var(--shix-bg) 100%);
    text-align: center;
}
.shix-archive-header__icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: var(--shix-space-3);
}
.shix-archive-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 var(--shix-space-3);
}
.shix-archive-header__desc {
    color: var(--shix-text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}
.shix-archive-header__meta {
    margin-top: var(--shix-space-4);
}

/* Search hero (search & 404 page search) */
.shix-search-hero {
    display: flex;
    align-items: center;
    gap: var(--shix-space-2);
    max-width: 580px;
    margin: var(--shix-space-6) auto 0;
    position: relative;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    padding: 6px 6px 6px var(--shix-space-5);
    box-shadow: var(--shix-shadow-sm);
    transition: box-shadow var(--shix-trans-fast);
}
.shix-search-hero:focus-within {
    box-shadow: var(--shix-shadow-md), 0 0 0 3px rgba(255, 107, 53, 0.15);
    border-color: var(--shix-primary);
}
.shix-search-hero__icon {
    width: 22px;
    height: 22px;
    color: var(--shix-text-muted);
    flex-shrink: 0;
}
.shix-search-hero__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--shix-space-3) var(--shix-space-2);
    font-family: var(--shix-font);
    font-size: 1rem;
    color: var(--shix-text);
    outline: none;
    min-width: 0;
}
.shix-search-hero .shix-btn {
    padding: var(--shix-space-2) var(--shix-space-6);
    flex-shrink: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.shix-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--shix-space-2);
    margin-top: var(--shix-space-12);
}
.shix-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: var(--shix-space-2);
    min-width: 44px;
    height: 44px;
    padding: 0 var(--shix-space-4);
    background: var(--shix-surface);
    color: var(--shix-text);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--shix-trans-fast);
    justify-content: center;
}
.shix-pagination .page-numbers:hover {
    background: var(--shix-primary-50);
    border-color: var(--shix-primary);
    color: var(--shix-primary);
}
.shix-pagination .page-numbers.current {
    background: var(--shix-primary);
    border-color: var(--shix-primary);
    color: #fff;
}
.shix-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
.shix-pagination svg { width: 14px; height: 14px; }

/* ============================================================
   EMPTY STATE (no results, no posts)
   ============================================================ */
.shix-empty {
    text-align: center;
    padding: var(--shix-space-12) var(--shix-space-5);
    max-width: 720px;
    margin: 0 auto;
}
.shix-empty__icon {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: var(--shix-space-4);
}
.shix-empty__title {
    font-size: clamp(1.4rem, 3vw, 1.875rem);
    margin: 0 0 var(--shix-space-3);
}
.shix-empty__text {
    color: var(--shix-text-muted);
    font-size: 1.05rem;
    margin: 0 0 var(--shix-space-6);
}
.shix-empty__suggestions {
    margin-top: var(--shix-space-12);
    padding-top: var(--shix-space-8);
    border-top: 1px solid var(--shix-border);
}
.shix-empty__suggestions h3 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--shix-text);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.shix-404 {
    padding: var(--shix-space-16) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--shix-primary-50) 0%, var(--shix-bg) 100%);
}
.shix-404__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--shix-space-3);
    margin-bottom: var(--shix-space-6);
    line-height: 1;
}
.shix-404__num {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--shix-primary) 0%, var(--shix-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 0.9;
    letter-spacing: -0.05em;
}
.shix-404__pet {
    font-size: clamp(3rem, 7vw, 4.5rem);
    transform: rotate(-8deg);
    animation: shix-bounce 2.4s ease-in-out infinite;
}
.shix-404__pet:nth-child(3) {
    transform: rotate(8deg);
    animation-delay: 0.4s;
}
@keyframes shix-bounce {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-12px); }
}
.shix-404__pet:nth-child(3) {
    animation-name: shix-bounce-2;
}
@keyframes shix-bounce-2 {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-12px); }
}
.shix-404__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin: 0 0 var(--shix-space-3);
}
.shix-404__text {
    font-size: 1.1rem;
    color: var(--shix-text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================================
   PAGE TEMPLATE (static pages)
   ============================================================ */
.shix-page-header {
    padding: var(--shix-space-12) 0 var(--shix-space-8);
    background: linear-gradient(180deg, var(--shix-primary-50) 0%, var(--shix-bg) 100%);
}
.shix-page-header__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    margin: 0 0 var(--shix-space-3);
    color: var(--shix-text-strong);
}
.shix-page-header__excerpt {
    color: var(--shix-text-muted);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0;
}

.shix-breadcrumbs {
    font-size: 0.85rem;
    color: var(--shix-text-muted);
    margin-bottom: var(--shix-space-4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--shix-space-2);
}
.shix-breadcrumbs a {
    color: var(--shix-primary);
    text-decoration: none;
}
.shix-breadcrumbs a:hover { text-decoration: underline; }
.shix-breadcrumbs__sep {
    color: var(--shix-text-light);
    font-size: 0.8em;
}

.shix-page-cover {
    max-width: var(--shix-container);
    margin: var(--shix-space-6) auto 0;
    padding: 0 var(--shix-space-5);
}
.shix-page-cover img {
    width: 100%;
    border-radius: var(--shix-radius-2xl);
    box-shadow: var(--shix-shadow-lg);
    aspect-ratio: 16/8;
    object-fit: cover;
}

.shix-page-body {
    max-width: 760px;
    margin: var(--shix-space-10) auto;
    padding: 0 var(--shix-space-5);
    font-size: 1.075rem;
    line-height: 1.85;
    color: var(--shix-text);
}
.shix-page-body h2 {
    font-size: 1.65rem;
    margin-top: var(--shix-space-10);
    margin-bottom: var(--shix-space-4);
}
.shix-page-body h3 {
    font-size: 1.3rem;
    margin-top: var(--shix-space-6);
    margin-bottom: var(--shix-space-3);
}
.shix-page-body p { margin-bottom: var(--shix-space-5); }
.shix-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--shix-radius-lg);
    margin: var(--shix-space-5) 0;
}
.shix-page-body a {
    color: var(--shix-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(229, 90, 43, 0.4);
    text-underline-offset: 3px;
}
.shix-page-body a:hover {
    color: var(--shix-primary);
    text-decoration-color: var(--shix-primary);
}
.shix-page-body ul,
.shix-page-body ol {
    padding-right: var(--shix-space-6);
    padding-left: 0;
    margin-bottom: var(--shix-space-5);
}
.shix-page-body blockquote {
    border-right: 4px solid var(--shix-primary);
    background: var(--shix-primary-50);
    padding: var(--shix-space-4) var(--shix-space-5);
    border-radius: 0 var(--shix-radius-lg) var(--shix-radius-lg) 0;
    margin: var(--shix-space-5) 0;
    font-style: italic;
}

/* Card placeholder (no image) */
.shix-card__media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--shix-primary-50) 0%, var(--shix-border) 100%);
    color: var(--shix-primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.shix-comments {
    margin-top: var(--shix-space-12);
}
.shix-comments__title {
    font-size: 1.5rem;
    margin: 0 0 var(--shix-space-6);
    display: flex;
    align-items: center;
    gap: var(--shix-space-3);
}
.shix-comments__count {
    background: var(--shix-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--shix-radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    line-height: 1.5;
}
.shix-comments__list {
    list-style: none !important;
    padding: 0;
    margin: 0 0 var(--shix-space-8);
    display: flex;
    flex-direction: column;
    gap: var(--shix-space-4);
}
.shix-comments__list li::marker { content: none; }
.shix-comment {
    list-style: none !important;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-lg);
    padding: var(--shix-space-5);
    margin: 0;
}
.shix-comment .children,
.shix-comment ul.children {
    list-style: none;
    padding: var(--shix-space-4) 0 0;
    margin: var(--shix-space-4) 0 0 0;
    border-top: 1px solid var(--shix-border);
    display: flex;
    flex-direction: column;
    gap: var(--shix-space-3);
}
.shix-comment .children .shix-comment {
    margin-right: var(--shix-space-6);
    border-right: 3px solid var(--shix-primary-light);
    padding: var(--shix-space-4);
}
.shix-comment__inner {
    display: flex;
    gap: var(--shix-space-4);
}
.shix-comment__avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: block;
}
.shix-comment__body {
    flex: 1;
    min-width: 0;
}
.shix-comment__header {
    display: flex;
    align-items: baseline;
    gap: var(--shix-space-3);
    flex-wrap: wrap;
    margin-bottom: var(--shix-space-2);
}
.shix-comment__author {
    color: var(--shix-text-strong);
    font-weight: 700;
    font-size: 1rem;
}
.shix-comment__author a {
    color: inherit;
    text-decoration: none;
}
.shix-comment__date {
    color: var(--shix-text-muted);
    font-size: 0.85rem;
}
.shix-comment__content {
    color: var(--shix-text);
    line-height: 1.7;
}
.shix-comment__content p {
    margin: 0 0 var(--shix-space-3);
}
.shix-comment__content p:last-child { margin-bottom: 0; }
.shix-comment__pending {
    background: rgba(251, 191, 36, 0.15);
    color: #92400E;
    padding: var(--shix-space-2) var(--shix-space-3);
    border-radius: var(--shix-radius);
    font-size: 0.88rem;
    font-style: italic;
    margin: 0 0 var(--shix-space-2);
}
.shix-comment__footer {
    margin-top: var(--shix-space-3);
    display: flex;
    gap: var(--shix-space-3);
    font-size: 0.85rem;
}
.shix-comment__footer a,
.shix-comment__reply a,
.shix-comment__edit a {
    color: var(--shix-primary);
    font-weight: 600;
    text-decoration: none;
}
.shix-comment__footer a:hover { color: var(--shix-primary-dark); }
.shix-comments__closed {
    text-align: center;
    color: var(--shix-text-muted);
    padding: var(--shix-space-5);
    background: var(--shix-surface-alt);
    border-radius: var(--shix-radius-lg);
}

/* ============================================================
   COMMENT FORM (and any WP comment_form)
   ============================================================ */
.shix-comment-form,
#commentform,
.comment-respond form,
.comment-form {
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-xl);
    padding: var(--shix-space-6);
    margin-top: var(--shix-space-6);
    box-shadow: var(--shix-shadow-sm);
}

#reply-title,
.comment-reply-title {
    font-size: 1.4rem !important;
    font-weight: 700;
    margin: 0 0 var(--shix-space-5) !important;
    color: var(--shix-text-strong);
    display: flex;
    align-items: center;
    gap: var(--shix-space-3);
}
.comment-reply-title small {
    font-size: 0.85rem;
    font-weight: 400;
    margin-right: var(--shix-space-2);
}
.comment-reply-title small a {
    color: var(--shix-primary);
}

.logged-in-as,
.comment-notes {
    color: var(--shix-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--shix-space-4);
}
.logged-in-as a { color: var(--shix-primary); }

.shix-comment-form__field,
.comment-form-author,
.comment-form-email,
.comment-form-comment,
.comment-form-url {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
    margin: 0 0 var(--shix-space-4) !important;
}

.shix-comment-form__field--full,
.comment-form-comment {
    width: 100%;
}

.shix-comment-form label,
.comment-form label,
.comment-respond label {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--shix-text) !important;
    display: block !important;
    margin: 0 !important;
}

.shix-comment-form input[type="text"],
.shix-comment-form input[type="email"],
.shix-comment-form input[type="url"],
.shix-comment-form textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100% !important;
    padding: var(--shix-space-3) var(--shix-space-4) !important;
    border: 1px solid var(--shix-border) !important;
    border-radius: var(--shix-radius) !important;
    background: var(--shix-bg) !important;
    color: var(--shix-text) !important;
    font-family: var(--shix-font) !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    transition: all var(--shix-trans-fast) !important;
    height: auto !important;
    line-height: 1.5 !important;
    direction: rtl !important;
}
.shix-comment-form textarea,
#commentform textarea,
.comment-respond textarea {
    resize: vertical;
    min-height: 130px !important;
    line-height: 1.7 !important;
}
.shix-comment-form input:focus,
.shix-comment-form textarea:focus,
#commentform input:focus,
#commentform textarea:focus,
.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none !important;
    border-color: var(--shix-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
    background: var(--shix-surface) !important;
}

.shix-comment-form__submit,
.form-submit {
    margin-top: var(--shix-space-5) !important;
}
.form-submit input[type="submit"],
.form-submit button,
#commentform input[type="submit"],
.shix-comment-form input[type="submit"] {
    background: var(--shix-primary) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    padding: 0 var(--shix-space-8) !important;
    border-radius: var(--shix-radius-full) !important;
    font-weight: 700 !important;
    font-family: var(--shix-font) !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all var(--shix-trans-fast) !important;
    height: 48px !important;
    line-height: 48px !important;
    text-transform: none !important;
    width: auto !important;
    min-width: 160px;
}
.form-submit input[type="submit"]:hover,
.form-submit button:hover,
#commentform input[type="submit"]:hover {
    background: var(--shix-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shix-shadow-md) !important;
}

.shix-comment-form .required,
.required {
    color: var(--shix-primary);
    font-weight: 700;
}

/* 2-column layout for author + email on desktop */
@media (min-width: 768px) {
    #commentform,
    .shix-comment-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: var(--shix-space-4);
    }
    #commentform > #reply-title,
    #commentform > .comment-reply-title,
    #commentform > .comment-form-comment,
    #commentform > .shix-comment-form__field--full,
    #commentform > .form-submit,
    #commentform > .comment-notes,
    #commentform > .logged-in-as,
    #commentform > .comment-form-cookies-consent,
    .shix-comment-form > #reply-title,
    .shix-comment-form > .comment-reply-title,
    .shix-comment-form > .comment-form-comment,
    .shix-comment-form > .shix-comment-form__field--full,
    .shix-comment-form > .form-submit,
    .shix-comment-form > .comment-notes,
    .shix-comment-form > .logged-in-as {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.shix-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--shix-space-10);
    align-items: start;
}
@media (max-width: 767px) {
    .shix-contact-grid { grid-template-columns: 1fr; gap: var(--shix-space-6); }
}

.shix-contact-info h2 {
    font-size: 1.4rem;
    margin: 0 0 var(--shix-space-5);
}

.shix-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--shix-space-3);
}
.shix-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--shix-space-3);
    padding: var(--shix-space-4);
    background: var(--shix-primary-50);
    border-radius: var(--shix-radius-lg);
    list-style: none;
}
.shix-contact-list__icon {
    width: 44px;
    height: 44px;
    background: var(--shix-surface);
    border-radius: var(--shix-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: var(--shix-shadow-sm);
}
.shix-contact-list strong {
    display: block;
    color: var(--shix-text-strong);
    margin-bottom: 2px;
    font-size: 0.95rem;
}
.shix-contact-list a {
    color: var(--shix-primary);
    word-break: break-word;
}
.shix-contact-list a:hover { color: var(--shix-primary-dark); }

/* Contact form box */
.shix-contact-form-wrapper {
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-xl);
    padding: var(--shix-space-8);
    box-shadow: var(--shix-shadow-md);
}
@media (max-width: 575px) {
    .shix-contact-form-wrapper { padding: var(--shix-space-5); }
}

.shix-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--shix-space-4);
}
.shix-form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shix-text);
}
.shix-form-row input,
.shix-form-row select,
.shix-form-row textarea {
    width: 100%;
    padding: var(--shix-space-3) var(--shix-space-4);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius);
    background: var(--shix-bg);
    color: var(--shix-text);
    font-family: var(--shix-font);
    font-size: 1rem;
    box-sizing: border-box;
    transition: all var(--shix-trans-fast);
    direction: rtl;
}
.shix-form-row textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}
.shix-form-row input:focus,
.shix-form-row select:focus,
.shix-form-row textarea:focus {
    outline: none;
    border-color: var(--shix-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    background: var(--shix-surface);
}

.shix-form-result {
    margin-top: var(--shix-space-3);
}
.shix-form-result__success,
.shix-form-result__error {
    padding: var(--shix-space-4);
    border-radius: var(--shix-radius);
    font-weight: 600;
}
.shix-form-result__success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.shix-form-result__error {
    background: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes shix-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.shix-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.shix-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   UTILITY
   ============================================================ */
.shix-flex { display: flex; }
.shix-flex-center { display: flex; align-items: center; justify-content: center; }
.shix-text-center { text-align: center; }
.shix-mb-0 { margin-bottom: 0; }
.shix-mt-0 { margin-top: 0; }

/* Hide parent theme leftovers if any */
#typify-footer { display: none; }

/* ============================================================
   STICKY MOBILE SHARE BAR (single posts)
   ============================================================ */
.shix-sticky-share {
    display: none;
}
@media (max-width: 991px) {
    body.single-post .shix-sticky-share {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        z-index: 40;
        gap: 6px;
        background: var(--shix-surface);
        border: 1px solid var(--shix-border);
        border-radius: var(--shix-radius-full);
        padding: 6px;
        box-shadow: var(--shix-shadow-lg);
        backdrop-filter: saturate(180%) blur(8px);
        -webkit-backdrop-filter: saturate(180%) blur(8px);
        background: rgba(255, 251, 245, 0.95);
    }
    [data-theme="dark"] body.single-post .shix-sticky-share {
        background: rgba(30, 41, 59, 0.95);
    }
    .shix-sticky-share__btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        background: var(--shix-bg);
        border: none;
        border-radius: var(--shix-radius-full);
        color: var(--shix-text);
        cursor: pointer;
        transition: all var(--shix-trans-fast);
        text-decoration: none;
    }
    .shix-sticky-share__btn svg { width: 18px; height: 18px; }
    .shix-sticky-share__btn:active { transform: scale(0.93); }
    .shix-sticky-share__btn--whatsapp:active { background: #25D366; color: #fff; }
    .shix-sticky-share__btn--facebook:active { background: #1877F2; color: #fff; }
    .shix-sticky-share__btn--x:active { background: #000; color: #fff; }
    .shix-sticky-share__btn--copy:active { background: var(--shix-primary); color: #fff; }
    /* Add bottom padding to body so content not hidden by sticky bar */
    body.single-post { padding-bottom: 76px; }
}

/* Author box — clickable */
.shix-author-box a {
    color: inherit;
    text-decoration: none;
}
.shix-author-box__link {
    display: inline-block;
    margin-top: var(--shix-space-2);
    color: var(--shix-primary) !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color var(--shix-trans-fast);
}
.shix-author-box__link:hover {
    color: var(--shix-primary-dark) !important;
}

/* ============================================================
   AUTHOR PROFILE PAGE
   ============================================================ */
.shix-author-header {
    padding: var(--shix-space-16) 0 var(--shix-space-10);
    background: linear-gradient(180deg, var(--shix-primary-50) 0%, var(--shix-bg) 100%);
}
.shix-author-header__avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto var(--shix-space-4);
    border: 4px solid var(--shix-surface);
    box-shadow: var(--shix-shadow-lg);
    object-fit: cover;
}
.shix-author-header__role {
    font-size: 0.85rem;
    color: var(--shix-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--shix-space-2);
}
.shix-author-header__name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 var(--shix-space-3);
}
.shix-author-header__bio {
    color: var(--shix-text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto var(--shix-space-5);
    line-height: 1.7;
}
.shix-author-header__stats {
    display: inline-flex;
    gap: var(--shix-space-8);
    padding: var(--shix-space-4) var(--shix-space-6);
    background: var(--shix-surface);
    border-radius: var(--shix-radius-xl);
    box-shadow: var(--shix-shadow);
    margin-bottom: var(--shix-space-5);
}
.shix-author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.shix-author-stat strong {
    font-size: 1.5rem;
    color: var(--shix-primary);
    font-weight: 800;
    line-height: 1;
}
.shix-author-stat span {
    font-size: 0.85rem;
    color: var(--shix-text-muted);
    margin-top: 4px;
}
.shix-author-header__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--shix-space-2);
}
.shix-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-full);
    color: var(--shix-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--shix-trans-fast);
}
.shix-author-link:hover {
    background: var(--shix-primary);
    color: #fff;
    border-color: var(--shix-primary);
    transform: translateY(-1px);
}

/* ============================================================
   NEWSLETTER PAGE
   ============================================================ */
.shix-newsletter-page {
    padding: var(--shix-space-16) 0;
    background: linear-gradient(180deg, var(--shix-primary-50) 0%, var(--shix-bg) 100%);
}
.shix-newsletter-page__icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: var(--shix-space-4);
}
.shix-newsletter-page__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 var(--shix-space-4);
}
.shix-newsletter-page__lead {
    font-size: 1.2rem;
    color: var(--shix-text-muted);
    max-width: 540px;
    margin: 0 auto var(--shix-space-8);
    line-height: 1.7;
}
.shix-newsletter-page__form {
    margin-bottom: var(--shix-space-3);
}
.shix-newsletter-page__small {
    color: var(--shix-text-light);
    font-size: 0.85rem;
    margin: 0;
}

.shix-newsletter-page__benefits {
    margin-top: var(--shix-space-16);
    padding-top: var(--shix-space-12);
    border-top: 1px solid var(--shix-border);
}
.shix-newsletter-page__benefits-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--shix-space-8);
}
.shix-newsletter-page__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--shix-space-5);
    text-align: right;
}
.shix-benefit {
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-lg);
    padding: var(--shix-space-5);
    transition: all var(--shix-trans);
}
.shix-benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shix-shadow-md);
    border-color: var(--shix-primary-light);
}
.shix-benefit__icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: var(--shix-space-3);
}
.shix-benefit h3 {
    font-size: 1.15rem;
    margin: 0 0 var(--shix-space-2);
    color: var(--shix-text-strong);
}
.shix-benefit p {
    color: var(--shix-text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.65;
}

.shix-newsletter-page__quote {
    margin-top: var(--shix-space-12);
    padding: var(--shix-space-6) var(--shix-space-5);
    background: var(--shix-primary-50);
    border-radius: var(--shix-radius-xl);
}
.shix-newsletter-page__quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--shix-text);
    margin-bottom: var(--shix-space-3);
    line-height: 1.6;
}
.shix-newsletter-page__quote-author {
    font-size: 0.95rem;
    color: var(--shix-primary);
    font-weight: 700;
}

/* ============================================================
   SEARCH AUTOCOMPLETE SUGGESTIONS
   ============================================================ */
.shix-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-lg);
    box-shadow: var(--shix-shadow-lg);
    max-height: 460px;
    overflow-y: auto;
    z-index: 60;
    display: none;
}
.shix-search-suggestions.is-active {
    display: block;
    animation: shix-fade-up 0.2s ease;
}
.shix-search-suggestion {
    display: flex;
    align-items: center;
    gap: var(--shix-space-3);
    padding: var(--shix-space-3) var(--shix-space-4);
    cursor: pointer;
    transition: background var(--shix-trans-fast);
    text-decoration: none;
    color: var(--shix-text);
    border-bottom: 1px solid var(--shix-border);
}
.shix-search-suggestion:last-child { border-bottom: none; }
.shix-search-suggestion:hover,
.shix-search-suggestion.is-focused {
    background: var(--shix-primary-50);
    color: var(--shix-text);
}
.shix-search-suggestion__thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--shix-radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--shix-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.shix-search-suggestion__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.shix-search-suggestion__body {
    flex: 1;
    min-width: 0;
}
.shix-search-suggestion__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--shix-text-strong);
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.shix-search-suggestion__meta {
    font-size: 0.78rem;
    color: var(--shix-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.shix-search-suggestion__cat {
    color: var(--shix-primary);
    font-weight: 600;
}
.shix-search-suggestion__excerpt {
    font-size: 0.82rem;
    color: var(--shix-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.shix-search-suggestions__empty {
    padding: var(--shix-space-5);
    text-align: center;
    color: var(--shix-text-muted);
    font-size: 0.9rem;
}
.shix-search-suggestions__loading {
    padding: var(--shix-space-4);
    text-align: center;
    color: var(--shix-text-muted);
    font-size: 0.88rem;
}

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
/* Smooth focus rings */
:focus-visible {
    outline: 2px solid var(--shix-primary);
    outline-offset: 2px;
}

/* Button press effect */
.shix-btn:active,
.shix-icon-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Card subtle scale on click */
.shix-card:active {
    transform: translateY(-1px) scale(0.998);
}

/* Image hover effect */
.shix-card__media,
.shix-hero__main,
.shix-hero__side-item {
    will-change: transform;
}

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Selection color */
::selection {
    background: var(--shix-primary);
    color: #fff;
}
::-moz-selection {
    background: var(--shix-primary);
    color: #fff;
}

/* Scroll bar styling (webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--shix-surface-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--shix-border);
    border-radius: 5px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--shix-primary);
}

/* Lazy image fade-in */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Anchor link hover underline animation */
.shix-card__title a {
    position: relative;
    background-image: linear-gradient(90deg, var(--shix-primary), var(--shix-primary));
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.3s ease;
}
.shix-card__title a:hover {
    background-size: 100% 2px;
}

/* ============================================================
   CONTACT FORM 7 (CF7) + WPFORMS — global form styling
   Applies to ALL forms on the site (paid articles page, etc.)
   ============================================================ */
.wpcf7-form,
.wpcf7,
.wpforms-container,
.wpforms-form,
form.shix-form {
    background: var(--shix-surface);
    border: 1px solid var(--shix-border);
    border-radius: var(--shix-radius-xl);
    padding: var(--shix-space-6);
    box-shadow: var(--shix-shadow-sm);
    max-width: 760px;
    margin: var(--shix-space-6) auto;
    color: var(--shix-text);
}

/* CF7 paragraphs (each field) */
.wpcf7-form p,
.wpcf7 p {
    margin: 0 0 var(--shix-space-4);
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--shix-text);
}

/* WPForms field wrapper */
.wpforms-field {
    margin-bottom: var(--shix-space-4) !important;
    padding: 0 !important;
}

/* Labels (CF7 + WPForms) */
.wpcf7-form label,
.wpforms-field-label,
.wpforms-field label,
form.shix-form label {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--shix-text) !important;
    margin: 0 0 6px !important;
}
.wpforms-required-label,
.wpcf7-validates-as-required + label,
.wpcf7-form .required {
    color: var(--shix-primary) !important;
    font-weight: 700;
}

/* Text/email/url/tel/number/date/time inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="time"],
.wpcf7-form input[type="search"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select,
.wpcf7-number,
.wpcf7-date,
.wpforms-field-text input,
.wpforms-field-email input,
.wpforms-field-phone input,
.wpforms-field-url input,
.wpforms-field-number input,
.wpforms-field-date-time input,
.wpforms-field-textarea textarea,
.wpforms-field-select select,
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field textarea,
.wpforms-field select {
    width: 100% !important;
    padding: var(--shix-space-3) var(--shix-space-4) !important;
    border: 1px solid var(--shix-border) !important;
    border-radius: var(--shix-radius) !important;
    background: var(--shix-bg) !important;
    color: var(--shix-text) !important;
    font-family: var(--shix-font) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 48px !important;
    transition: all var(--shix-trans-fast) !important;
    direction: rtl !important;
    text-align: right !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.wpcf7-form textarea,
.wpcf7-textarea,
.wpforms-field-textarea textarea {
    resize: vertical !important;
    min-height: 130px !important;
    line-height: 1.7 !important;
    padding: var(--shix-space-3) var(--shix-space-4) !important;
}

/* Focus state */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
    outline: none !important;
    border-color: var(--shix-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
    background: var(--shix-surface) !important;
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder,
.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
    color: var(--shix-text-light);
    opacity: 1;
}

/* Submit buttons */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.wpcf7-submit,
.wpforms-submit-container button,
.wpforms-submit,
button.wpforms-submit,
form.shix-form input[type="submit"],
form.shix-form button[type="submit"] {
    background: var(--shix-primary) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    padding: 0 var(--shix-space-8) !important;
    border-radius: var(--shix-radius-full) !important;
    font-weight: 700 !important;
    font-family: var(--shix-font) !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    height: 48px !important;
    line-height: 48px !important;
    min-width: 160px;
    width: auto !important;
    transition: all var(--shix-trans-fast) !important;
    text-transform: none !important;
    box-shadow: var(--shix-shadow-sm) !important;
    margin-top: var(--shix-space-3);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.wpcf7-submit:hover,
.wpforms-submit-container button:hover,
.wpforms-submit:hover {
    background: var(--shix-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shix-shadow-md) !important;
}

/* Loading spinner */
.wpcf7-spinner {
    background-color: var(--shix-primary) !important;
}

/* CF7 response messages */
.wpcf7-response-output {
    border: 1px solid var(--shix-border) !important;
    border-radius: var(--shix-radius) !important;
    padding: var(--shix-space-4) !important;
    margin: var(--shix-space-4) 0 0 !important;
    font-size: 0.95rem;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7-not-valid-tip {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #B91C1C !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.08) !important;
    color: #047857 !important;
}
.wpcf7-not-valid-tip {
    color: #B91C1C !important;
    font-size: 0.85rem !important;
    margin-top: 4px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.wpcf7-not-valid {
    border-color: #EF4444 !important;
}

/* Checkbox / Radio */
.wpcf7-checkbox,
.wpcf7-radio,
.wpforms-field-checkbox ul,
.wpforms-field-radio ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: var(--shix-space-3);
}
.wpcf7-list-item {
    margin: 0 !important;
}
.wpcf7-list-item-label {
    margin-right: 6px;
    margin-left: 0;
}

/* WPForms description */
.wpforms-field-description {
    font-size: 0.85rem !important;
    color: var(--shix-text-muted) !important;
    margin-top: 4px !important;
}

/* WPForms error */
.wpforms-error,
em.wpforms-error,
label.wpforms-error {
    color: #B91C1C !important;
    font-size: 0.85rem !important;
    margin-top: 4px !important;
    display: block;
}
.wpforms-field-input-error input,
.wpforms-field-input-error textarea {
    border-color: #EF4444 !important;
}

/* Two-column layout where applicable */
@media (min-width: 768px) {
    .wpcf7-form .shix-cols,
    .wpcf7-form .row-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--shix-space-4);
    }
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
    .shix-header,
    .shix-footer,
    .shix-share,
    .shix-sticky-share,
    .shix-toc,
    .shix-progress,
    .shix-drawer,
    .shix-newsletter,
    .shix-section-link,
    .shix-author-box__link,
    .comment-respond,
    .shix-comments,
    nav,
    .shix-mobile-toggle,
    .shix-icon-btn,
    .shix-search-form,
    .shix-pagination {
        display: none !important;
    }

    body, .shix-article-body, .shix-page-body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .shix-article-header,
    .shix-page-header {
        background: white !important;
        padding: 0 !important;
        margin-bottom: 1rem;
    }

    .shix-article-cover,
    .shix-card__media {
        page-break-inside: avoid;
    }

    .shix-article-body {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    h1, h2, h3 { page-break-after: avoid; }
    p, li, blockquote { page-break-inside: avoid; }

    a { color: black !important; text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
    a[href^="#"]:after { content: ""; }

    .shix-badge {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }

    img { max-width: 100% !important; page-break-inside: avoid; }
}
