/* ==========================================================================
   THEME STYLE SHEET: PREMIUM SOFTWARE HOUSE SINGLE POST ENGINE
   ========================================================================== */

/* --------------------------------------------------------------------------
   PART 1: DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --sh-clr-primary: #ff3344;
    --sh-clr-primary-hover: #e02232;
    --sh-clr-primary-rgb: 255, 51, 68;
    --sh-clr-dark-deep: #0f1115;
    --sh-clr-dark-card: #161920;
    --sh-clr-dark-elevated: #1e222b;
    --sh-clr-text-main: #1e293b;
    --sh-clr-text-muted: #64748b;
    --sh-clr-text-light: #94a3b8;
    --sh-clr-white: #ffffff;
    --sh-clr-bg-soft: #f8fafc;
    --sh-clr-bg-alt: #f1f5f9;
    --sh-clr-border: #e2e8f0;
    --sh-clr-border-dark: #334155;
    --sh-clr-success: #10b981;

    /* Typography Scale */
    --sh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sh-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --sh-fs-h1: clamp(2rem, 5vw, 3.375rem);
    --sh-fs-h2: clamp(1.625rem, 3.5vw, 2.25rem);
    --sh-fs-h3: clamp(1.375rem, 2.5vw, 1.75rem);
    --sh-fs-h4: clamp(1.125rem, 2vw, 1.375rem);
    --sh-fs-body: 1.125rem;
    --sh-fs-meta: 0.875rem;

    /* Grid & Spacing Core */
    --sh-space-xs: 0.5rem;
    --sh-space-sm: 1rem;
    --sh-space-md: 1.5rem;
    --sh-space-lg: 2.5rem;
    --sh-space-xl: 4rem;
    --sh-space-xxl: 7rem;
    --sh-max-width: 1320px;
    --sh-content-width: 820px;

    /* Micro Interactions & Shadows */
    --sh-radius-sm: 6px;
    --sh-radius-md: 12px;
    --sh-radius-lg: 20px;
    --sh-radius-circle: 50%;
    --sh-transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --sh-transition-fast: all 0.2s ease-in-out;
    --sh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --sh-shadow-md: 0 12px 32px rgba(15, 17, 21, 0.06);
    --sh-shadow-lg: 0 24px 64px rgba(15, 17, 21, 0.12);
    --sh-shadow-primary: 0 8px 24px rgba(255, 51, 68, 0.25);
}

/* --------------------------------------------------------------------------
   PART 2: LOCALIZED BASE RESET & NORMALIZATION
   -------------------------------------------------------------------------- */

.site-main{
    padding-top: 0px !important;
}

.sh-single-core {
    font-family: var(--sh-font-sans);
    font-size: var(--sh-fs-body);
    line-height: 1.8;
    color: var(--sh-text-main);
    background-color: var(--sh-clr-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin-top: 0px !important;
}

.sh-single-core *,
.sh-single-core *::before,
.sh-single-core *::after {
    box-sizing: border-box;
}

.sh-single-core img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sh-single-core a {
    color: inherit;
    text-decoration: none;
    transition: var(--sh-transition-fast);
}

/* --------------------------------------------------------------------------
   PART 3: LAYOUT ARCHITECTURE & CONTAINER GRID
   -------------------------------------------------------------------------- */
.sh-grid-container {
    width: 100%;
    max-width: var(--sh-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.sh-grid-container--narrow {
    max-width: var(--sh-content-width);
}

.sh-content-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    padding-top: var(--sh-space-xl);
    padding-bottom: var(--sh-space-xl);
    align-items: start;
}

.sh-main-column {
    min-width: 0; /* Zabezpieczenie przed pękaniem flex/grid */
}

.sh-sidebar-column {
    position: relative;
}

.sh-sticky-sidebar-container {
    position: -webkit-sticky;
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --------------------------------------------------------------------------
   PART 4: GLOBAL INTERACTION & MICRO-ANIMATION CORNER
   -------------------------------------------------------------------------- */
.sh-progress-bar {
    position: fixed;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--sh-clr-primary) 0%, #ff6b7b 100%);
    width: 0;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* CSS Keyframe Animation Core */
@keyframes shFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shPulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.animate-init {
    opacity: 0;
    animation: shSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-init.delay-1 { animation-delay: 0.15s; }
.animate-init.delay-2 { animation-delay: 0.3s; }

/* Scroll Trigger Engine Classes */
.js-scroll-trigger {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-scroll-trigger.sh-animated-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WIDGET ADSENSE - PIONOWA REKLAMA (VERTICAL SLOT)
   ========================================================================== */

.sh-sidebar-widget--ad-vertical {
    position: relative;
    background: rgba(19, 23, 34, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* REZERWACJA MIEJSCA: Pionowe banery (skyscraper) to zazwyczaj 600px.
       Dzięki temu strona nie podskoczy, gdy reklama nagle się załaduje. */
    min-height: 600px; 
    margin-bottom: 32px;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.sh-sidebar-widget--ad-vertical:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dyskretna etykieta "Reklama" w prawym górnym rogu */
.sh-ad-label {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 5;
    pointer-events: none;
}

/* Kontener upewniający się, że baner Google wyśrodkuje się idealnie */
.sh-ad-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    position: relative;
}

/* "Duch" napisu w tle zanim reklama wpadnie z serwerów Google */
.sh-sidebar-widget--ad-vertical::before {
    content: 'AD SPACE';
    position: absolute;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.03);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    z-index: 1;
    animation: shPulseGlow 3s infinite ease-in-out;
}



/* --------------------------------------------------------------------------
   PART 5: MAIN HERO ELEMENT (ABOVE-THE-FOLD)
   -------------------------------------------------------------------------- */
.sh-article-hero {
    position: relative;
    min-height: 65vh;
    padding-top: calc(var(--sh-space-xxl) + 40px);
    padding-bottom: var(--sh-space-xl);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--sh-clr-white);
    display: flex;
    align-items: center;
}

@media (min-width: 1025px) {
    .sh-article-hero {
        background-attachment: fixed; /* Parallax effect natively */
    }
}

.sh-article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.75) 0%, rgba(15, 17, 21, 0.96) 100%);
    z-index: 1;
}

.sh-article-hero__wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.sh-article-hero__badge-wrapper {
    margin-bottom: var(--sh-space-md);
}

.sh-category-badge {
    display: inline-block;
    padding: 6px 18px;
    background-color: var(--sh-clr-primary);
    color: var(--sh-clr-white);
    font-family: var(--sh-font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 100px;
    box-shadow: var(--sh-shadow-primary);
}

.sh-category-badge:hover {
    background-color: var(--sh-clr-primary-hover);
    transform: translateY(-1px);
}

.sh-article-hero__title {
    font-family: var(--sh-font-display);
    font-size: var(--sh-fs-h1);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 var(--sh-space-lg) 0;
    color: var(--sh-clr-white);
}

.sh-article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: var(--sh-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sh-author-profile-inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-inline-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--sh-radius-circle);
    border: 2px solid var(--sh-clr-primary);
    object-fit: cover;
}

.sh-author-profile-inline__data {
    display: flex;
    flex-direction: column;
}

.sh-author-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.sh-author-label a:hover {
    color: var(--sh-clr-primary);
}

.sh-publish-time {
    font-size: 13px;
    color: var(--sh-clr-text-light);
}

.sh-reading-stats {
    display: flex;
    align-items: center;
}

.sh-stat-pill {
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.sh-hero-down-anchor {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    z-index: 2;
    opacity: 0.7;
}

.sh-hero-down-anchor::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--sh-clr-white);
    border-radius: 100px;
    animation: shPulseGlow 2s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   PART 6: EDITORIAL SYSTEM (DEEP GUTENBERG BLOCKS OVERRIDES)
   -------------------------------------------------------------------------- */
.sh-editorial-wrapper {
    font-size: var(--sh-fs-body);
    color: var(--sh-clr-text-main);
    line-height: 1.85;
}

/* Standard Paragraphs & Typography elements */
.sh-editorial-wrapper p {
    margin-top: 0;
    margin-bottom: 28px;
}

.sh-editorial-wrapper p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #334155;
    font-weight: 500;
}

.sh-editorial-wrapper h2,
.sh-editorial-wrapper h3,
.sh-editorial-wrapper h4,
.sh-editorial-wrapper h5,
.sh-editorial-wrapper h6 {
    font-family: var(--sh-font-display);
    color: var(--sh-clr-dark-deep);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 56px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    scroll-margin-top: 60px; /* Safe spot for dynamic TOC anchors */
}

.sh-editorial-wrapper h2 {
    font-size: var(--sh-fs-h2);
    border-left: 4px solid var(--sh-clr-primary);
    padding-left: 20px;
}

.sh-editorial-wrapper h3 {
    font-size: var(--sh-fs-h3);
}

.sh-editorial-wrapper h4 {
    font-size: var(--sh-fs-h4);
}

/* Lists formatting (Unordered & Ordered) */
.sh-editorial-wrapper ul,
.sh-editorial-wrapper ol {
    margin-top: 0;
    margin-bottom: 32px;
    padding-left: 24px;
}

.sh-editorial-wrapper li {
    margin-bottom: 12px;
    padding-left: 4px;
}

.sh-editorial-wrapper ul {
    list-style: none;
}

.sh-editorial-wrapper ul li {
    position: relative;
    padding-left: 24px;
}

.sh-editorial-wrapper ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: var(--sh-clr-primary);
    border-radius: var(--sh-radius-circle);
}

/* Gutenberg Images Override - Fully autonomous */
.sh-editorial-wrapper .wp-block-image {
    margin: 48px 0;
}

.sh-editorial-wrapper .wp-block-image img {
    border-radius: var(--sh-radius-lg);
    box-shadow: var(--sh-shadow-md);
    transition: var(--sh-transition-smooth);
}

.sh-editorial-wrapper .wp-block-image img:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-shadow-lg);
}

.sh-editorial-wrapper .wp-block-image figcaption,
.sh-editorial-wrapper .wp-element-caption {
    font-size: 14px;
    color: var(--sh-clr-text-muted);
    text-align: center;
    margin-top: 14px;
    font-style: italic;
    line-height: 1.4;
}

/* Wide & Full alignments for Gutenberg blocks */
.sh-editorial-wrapper .alignwide {
    margin-left: -50px;
    margin-right: -50px;
    max-width: calc(100% + 100px);
}

.sh-editorial-wrapper .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.sh-editorial-wrapper .alignfull img {
    border-radius: 0;
}

/* Modern Quotes & Pullquotes */
.sh-editorial-wrapper blockquote,
.sh-editorial-wrapper .wp-block-quote {
    margin: 48px 0;
    padding: 32px 40px;
    background-color: var(--sh-clr-bg-soft);
    border-left: 4px solid var(--sh-clr-dark-deep);
    border-radius: 0 var(--sh-radius-lg) var(--sh-radius-lg) 0;
    position: relative;
}

.sh-editorial-wrapper blockquote p,
.sh-editorial-wrapper .wp-block-quote p {
    font-family: var(--sh-font-display);
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    color: var(--sh-clr-dark-deep);
    margin-bottom: 0;
}

.sh-editorial-wrapper blockquote p:first-of-type {
    font-size: 22px;
    font-weight: 500;
}

.sh-editorial-wrapper blockquote cite,
.sh-editorial-wrapper .wp-block-quote cite {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sh-clr-text-muted);
    margin-top: 16px;
    font-style: normal;
}

/* Gutenberg Galleries */
.sh-editorial-wrapper .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 48px 0;
    padding: 0;
    list-style: none;
}

.sh-editorial-wrapper .wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Code blocks / Preformatted */
.sh-editorial-wrapper pre,
.sh-editorial-wrapper .wp-block-code {
    background-color: var(--sh-clr-dark-deep);
    color: #e2e8f0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 15px;
    padding: 24px;
    border-radius: var(--sh-radius-md);
    overflow-x: auto;
    margin: 36px 0;
    box-shadow: var(--sh-shadow-md);
    line-height: 1.6;
}

.sh-editorial-wrapper code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
    background-color: var(--sh-clr-bg-alt);
    color: var(--sh-clr-primary);
    padding: 3px 8px;
    border-radius: 4px;
}

.sh-editorial-wrapper pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Tables Styling inside text */
.sh-editorial-wrapper table,
.sh-editorial-wrapper .wp-block-table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    font-size: 16px;
}

.sh-editorial-wrapper table th,
.sh-editorial-wrapper table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sh-clr-border);
    text-align: left;
}

.sh-editorial-wrapper table th {
    font-family: var(--sh-font-display);
    font-weight: 700;
    background-color: var(--sh-clr-bg-soft);
    color: var(--sh-clr-dark-deep);
}

.sh-editorial-wrapper table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.5);
}

/* Gutenberg Separator */
.sh-editorial-wrapper hr,
.sh-editorial-wrapper .wp-block-separator {
    border: none;
    border-top: 2px solid var(--sh-clr-border);
    margin: 56px auto;
    max-width: 150px;
}

/* --------------------------------------------------------------------------
   PART 7: SHARE SYSTEM & INTER-POST NAV
   -------------------------------------------------------------------------- */
.sh-article-tags-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--sh-clr-border);
}

.sh-tags-header-label {
    display: block;
    font-family: var(--sh-font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--sh-clr-dark-deep);
}

.sh-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgb(0, 0, 0);
}

.sh-tag-cloud-link {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--sh-clr-bg-soft);
    border: 1px solid var(--sh-clr-border);
    color: var(--sh-clr-text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

.sh-tag-cloud-link:hover {
    background-color: var(--sh-clr-dark-deep);
    border-color: var(--sh-clr-dark-deep);
    color: var(--sh-clr-white);
    transform: translateY(-1px);
}

/* Native Share Bar Elements */
.sh-share-bar {
    margin-top: 40px;
    padding: 24px 32px;
    background-color: var(--sh-clr-bg-soft);
    border-radius: var(--sh-radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.sh-share-bar__title {
    font-family: var(--sh-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
}

.sh-share-bar__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-share-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    color: var(--sh-clr-white);
}

.sh-share-btn--fb { background-color: #1877f2; }
.sh-share-btn--fb:hover { background-color: #145dbf; transform: translateY(-2px); }
.sh-share-btn--li { background-color: #0077b5; }
.sh-share-btn--li:hover { background-color: #005987; transform: translateY(-2px); }
.sh-share-btn--tw { background-color: #000000; }
.sh-share-btn--tw:hover { background-color: #1a1a1a; transform: translateY(-2px); }

/* Inter-post Nav architecture */
.sh-post-navigation {
    margin-top: 64px;
    border-top: 1px solid var(--sh-clr-border);
    padding-top: 48px;
}

.sh-post-navigation__split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sh-nav-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background-color: var(--sh-clr-white);
    border: 1px solid var(--sh-clr-border);
    border-radius: var(--sh-radius-md);
    transition: var(--sh-transition-smooth);
}

.sh-nav-card--next {
    text-align: right;
}

.sh-nav-card:hover {
    border-color: var(--sh-clr-primary);
    box-shadow: var(--sh-shadow-md);
}

.sh-nav-card__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sh-clr-text-muted);
    margin-bottom: 12px;
}

.sh-nav-card__title {
    font-family: var(--sh-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
    line-height: 1.4;
}

.sh-nav-card:hover .sh-nav-card__title {
    color: var(--sh-clr-primary);
}

/* --------------------------------------------------------------------------
   PART 8: SIDEBAR & DYNAMIC TOC MECHANISM
   -------------------------------------------------------------------------- */
.sh-sidebar-widget {
    background-color: var(--sh-clr-white);
    border: 1px solid var(--sh-clr-border);
    border-radius: var(--sh-radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--sh-shadow-sm);
    color:rgb(128, 128, 128);
}

.sh-sidebar-widget__title {
    font-family: var(--sh-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sh-clr-bg-soft);
    letter-spacing: -0.01em;
}

/* Custom Table of Contents Generated Output styling */
.sh-toc-dynamic-navigation .sh-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-toc-dynamic-navigation .sh-toc-list li {
    margin-bottom: 14px;
    padding-left: 0;
    line-height: 1.4;
}

.sh-toc-dynamic-navigation .sh-toc-list li::before {
    display: none; /* Reset basic list style override */
}

.sh-toc-dynamic-navigation .sh-toc-list li.sh-toc-li-h3 {
    padding-left: 18px;
    font-size: 15px;
    margin-top: -6px;
    margin-bottom: 10px;
}

.sh-toc-anchor-link {
    color: var(--sh-clr-text-muted);
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: var(--sh-transition-fast);
}

.sh-toc-anchor-link:hover {
    color: var(--sh-clr-primary);
}

/* Active Class injected by JS scroll tracking */
.sh-toc-dynamic-navigation .sh-toc-list li.sh-toc-active .sh-toc-anchor-link {
    color: var(--sh-clr-primary);
    font-weight: 700;
    transform: translateX(6px);
}

.sh-toc-loading {
    font-size: 14px;
    color: var(--sh-clr-text-light);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   PART 9: LEAD MAGNET B2B WIDGET & GLOBAL BUTTONS
   -------------------------------------------------------------------------- */
.sh-sidebar-widget--lead-box {
    position: relative;
    background-color: var(--sh-clr-dark-deep);
    border: none;
    color: var(--sh-clr-white);
    overflow: hidden;
    z-index: 1;
}

.sh-lead-box-deco-blur {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--sh-clr-primary);
    filter: blur(80px);
    top: -50px;
    right: -50px;
    z-index: -1;
    opacity: 0.4;
}

.sh-lead-box__tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(255, 51, 68, 0.15);
    border: 1px solid rgba(255, 51, 68, 0.3);
    color: var(--sh-clr-primary);
    font-family: var(--sh-font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.sh-lead-box__title {
    font-family: var(--sh-font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.sh-lead-box__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sh-clr-text-light);
    margin-top: 0;
    margin-bottom: 28px;
}

/* Core Buttons Matrix */
.sh-core-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 28px;
    font-family: var(--sh-font-display);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--sh-transition-smooth);
}

.sh-core-btn--primary {
    background-color: var(--sh-clr-primary);
    color: var(--sh-clr-white);
    box-shadow: var(--sh-shadow-primary);
}

.sh-core-btn--primary:hover {
    background-color: var(--sh-clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 51, 68, 0.4);
}

/* --------------------------------------------------------------------------
   PART 10: AUTHOR BIO & E-E-A-T VALUE BOX
   -------------------------------------------------------------------------- */
.sh-author-bio-section {
    background-color: var(--sh-clr-bg-soft);
    padding-top: var(--sh-space-xl);
    padding-bottom: var(--sh-space-xl);
    border-top: 1px solid var(--sh-clr-border);
    border-bottom: 1px solid var(--sh-clr-border);
}

.sh-author-profile-card {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.sh-author-profile-card__avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--sh-radius-circle);
    box-shadow: var(--sh-shadow-md);
    object-fit: cover;
    flex-shrink: 0;
}

.sh-author-profile-card__content {
    flex-grow: 1;
}

.sh-author-badge-profile {
    font-family: var(--sh-font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sh-clr-primary);
    letter-spacing: 1px;
}

.sh-author-profile-card__name {
    font-family: var(--sh-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
    margin-top: 4px;
    margin-bottom: 12px;
}

.sh-author-profile-card__bio {
    font-size: 16px;
    color: var(--sh-clr-text-muted);
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sh-author-profile-card__link {
    font-family: var(--sh-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
}

.sh-author-profile-card__link:hover {
    color: var(--sh-clr-primary);
}

/* --------------------------------------------------------------------------
   PART 11: RECYCLED GRID & RECOMMENDATION CARDS
   -------------------------------------------------------------------------- */
.sh-recommendations-section {
    padding-top: var(--sh-space-xxl);
    padding-bottom: var(--sh-space-xxl);
}

.sh-recommendations-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.sh-recommendations-header__title {
    font-family: var(--sh-font-display);
    font-size: var(--sh-fs-h2);
    font-weight: 800;
    color: var(--sh-clr-dark-deep);
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.sh-recommendations-header__subtitle {
    font-size: 17px;
    color: var(--sh-clr-text-muted);
    margin: 0;
}

.sh-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.sh-recommendation-card {
    background-color: var(--sh-clr-white);
    border: 1px solid var(--sh-clr-border);
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--sh-transition-smooth);
}

.sh-recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-shadow-lg);
    border-color: rgba(255, 51, 68, 0.2);
}

.sh-recommendation-card__image-container {
    height: 220px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.sh-recommendation-card__cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sh-recommendation-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sh-recommendation-card__date {
    font-size: 13px;
    color: var(--sh-clr-text-light);
    margin-bottom: 12px;
    display: block;
}

.sh-recommendation-card__title {
    font-family: var(--sh-font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.sh-recommendation-card__title a {
    color: var(--sh-clr-dark-deep);
}

.sh-recommendation-card:hover .sh-recommendation-card__title a {
    color: var(--sh-clr-primary);
}

.sh-recommendation-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sh-clr-text-muted);
    margin-top: 0;
    margin-bottom: 24px;
}

.sh-recommendation-card__more-link {
    font-family: var(--sh-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
    margin-top: auto; /* Push link to bottom edge */
    display: inline-block;
}

.sh-no-content {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--sh-clr-text-muted);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   PART 12: STANDARD WORDPRESS COMMENTS TEMPLATE STYLING
   -------------------------------------------------------------------------- */
.sh-comments-section {
    padding-bottom: var(--sh-space-xxl);
}

#comments {
    border-top: 1px solid var(--sh-clr-border);
    padding-top: var(--sh-space-xl);
}

.comments-title,
.comment-reply-title {
    font-family: var(--sh-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
    margin-top: 0;
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sh-space-xl) 0;
}

.comment-list li.comment {
    margin-bottom: 24px;
    padding: 32px;
    background-color: var(--sh-clr-bg-soft);
    border: 1px solid var(--sh-clr-border);
    border-radius: var(--sh-radius-md);
}

.comment-list li.comment .children {
    list-style: none;
    margin-top: 24px;
    padding-left: 32px;
    border-left: 2px solid var(--sh-clr-border);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-meta .avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--sh-radius-circle);
}

.fn {
    font-family: var(--sh-font-display);
    font-weight: 700;
    color: var(--sh-clr-dark-deep);
    font-style: normal;
}

.comment-metadata {
    font-size: 13px;
    color: var(--sh-clr-text-light);
}

.comment-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sh-clr-text-main);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 16px;
    text-align: right;
}

.comment-reply-link {
    font-family: var(--sh-font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sh-clr-primary);
}

/* Comment Form styling */
#commentform {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#commentform label {
    display: block;
    font-family: var(--sh-font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--sh-clr-dark-deep);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--sh-clr-border);
    background-color: var(--sh-clr-white);
    border-radius: 8px;
    font-family: var(--sh-font-sans);
    font-size: 16px;
    color: var(--sh-clr-text-main);
    transition: var(--sh-transition-fast);
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--sh-clr-primary);
    box-shadow: 0 0 0 4px rgba(255, 51, 68, 0.1);
}

#commentform .form-submit {
    margin-top: 10px;
}

#commentform .submit {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--sh-clr-dark-deep);
    color: var(--sh-white);
    font-family: var(--sh-font-display);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--sh-transition-fast);
}

#commentform .submit:hover {
    background-color: var(--sh-clr-primary);
    box-shadow: var(--sh-shadow-primary);
}

/* --------------------------------------------------------------------------
   PART 13: RESPONSIVE ADAPTABILITY MATRIX (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .sh-content-layout-grid {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    :root {
        --sh-space-xl: 3rem;
        --sh-space-xxl: 4.5rem;
    }

    .sh-content-layout-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .sh-sidebar-column {
        order: 2; /* Move sidebar below article for layout safety */
    }

    .sh-sticky-sidebar-container {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .sh-editorial-wrapper .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .sh-recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .sh-sticky-sidebar-container {
        grid-template-columns: 1fr;
    }

    .sh-post-navigation__split {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sh-author-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .sh-recommendations-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sh-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sh-share-bar__buttons {
        width: 100%;
        justify-content: space-between;
    }

    .sh-share-btn {
        flex-grow: 1;
        text-align: center;
    }

    
}

@media (max-width: 480px) {
    .sh-article-hero {
        padding-top: 140px;
    }

    .sh-article-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sh-share-bar__buttons {
        flex-direction: column;
        width: 100%;
    }

    .sh-share-btn {
        width: 100%;
    }

    .comment-list li.comment .children {
        padding-left: 16px;
    }
}

/* --------------------------------------------------------------------------
   PART 14: PRINT STYLES SHEET (ECO & INK SAVING MODE)
   -------------------------------------------------------------------------- */
@media print {
    .sh-progress-bar,
    .sh-hero-down-anchor,
    .sh-sidebar-column,
    .sh-share-bar,
    .sh-post-navigation,
    .sh-author-bio-section,
    .sh-recommendations-section,
    #comments,
    .sh-progress-indicator {
        display: none !important;
    }

    .sh-single-core {
        color: #000000 !important;
        background-color: #ffffff !important;
        font-size: 12pt !important;
    }

    .sh-article-hero {
        min-height: auto !important;
        padding: 0 !important;
        color: #000000 !important;
        background-image: none !important;
    }

    .sh-article-hero__title {
        color: #000000 !important;
        font-size: 24pt !important;
    }

    .sh-content-layout-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    .sh-editorial-wrapper {
        line-height: 1.5 !important;
    }

    .sh-editorial-wrapper h2 {
        page-break-after: avoid;
        color: #000000 !important;
        border: none !important;
        padding-left: 0 !important;
    }

    .sh-editorial-wrapper img {
        page-break-inside: avoid;
        box-shadow: none !important;
    }
}

