/* ==========================================================================
   Evergrow Blogs — Full Design System
   AWWWARDS-level styles, iPhone-safe, zero scroll library dependency.
   ========================================================================== */

/* ------------------------------------------------------------------
   §1  GLOBAL RESETS & BASE
   ------------------------------------------------------------------ */

::selection {
    background: rgba(213, 180, 115, 0.3);
    color: var(--color-dark);
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------
   §2  TYPOGRAPHY SCALE
   ------------------------------------------------------------------ */

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-family: var(--font-sans); font-weight: 600; }

p {
    margin-bottom: 1.5em;
    font-size: clamp(0.95rem, 1.1vw, 1.075rem);
}

.sp-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sp-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ------------------------------------------------------------------
   §3  LAYOUT UTILITIES
   ------------------------------------------------------------------ */

.sp-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .sp-container { padding: 0 2.5rem; }
}

@media (min-width: 1280px) {
    .sp-container { padding: 0 3rem; }
}

.sp-section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .sp-section { padding: 5rem 0; }
}

/* ------------------------------------------------------------------
   §4  NOISE TEXTURE & DOT GRID OVERLAYS
   ------------------------------------------------------------------ */

.sp-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sp-dot-grid {
    background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.1;
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sp-dot-grid--dark {
    background-image: radial-gradient(rgba(213,180,115,0.25) 1px, transparent 1px);
    background-size: 26px 26px;
}

.sp-gold-radiant {
    background: linear-gradient(135deg, transparent 40%, rgba(213,180,115,0.06) 50%, transparent 60%);
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ------------------------------------------------------------------
   §5  GLASS MORPHISM
   ------------------------------------------------------------------ */

.sp-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(213, 180, 115, 0.12);
}

.sp-glass--light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 32, 44, 0.06);
}

/* ------------------------------------------------------------------
   §6  NAVIGATION
   ------------------------------------------------------------------ */

.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 0.7rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--transition-smooth),
                opacity 0.5s var(--transition-smooth);
}

.sp-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sp-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.15rem;
    min-height: calc(var(--nav-height) - 8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .sp-nav__inner { padding: 0 1.35rem; }
}

.sp-nav__bar {
    width: min(1120px, calc(100% - 1.5rem));
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(213, 180, 115, 0.25);
    box-shadow: 0 18px 44px rgba(8, 12, 18, 0.3);
}

.sp-nav__logo img {
    height: 28px;
    width: auto;
}

.sp-nav__links {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .sp-nav__links { display: flex; }
}

.sp-nav__links a {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(250, 249, 246, 0.7);
    position: relative;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease;
}

.sp-nav__links a:hover {
    color: var(--color-paper);
    background: rgba(213, 180, 115, 0.14);
}

.sp-nav__links a::after {
    content: none;
}

.sp-nav__links a:hover::after {
    transform: none;
}

/* CTA button */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sp-btn:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    transform: translateY(-1px);
}

.sp-btn--solid {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}

.sp-btn--solid:hover {
    background: #c9a55e;
    transform: translateY(-1px);
}

/* Hamburger */
.sp-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: rgba(213, 180, 115, 0.1);
    border: 1px solid rgba(213, 180, 115, 0.35);
    border-radius: 999px;
    padding: 0;
    padding-inline: 6px;
}

@media (min-width: 768px) {
    .sp-hamburger { display: none; }
}

.sp-hamburger__line {
    width: 100%;
    height: 1.5px;
    background: var(--color-paper);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.sp-hamburger.is-active .sp-hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.sp-hamburger.is-active .sp-hamburger__line:nth-child(2) {
    opacity: 0;
}
.sp-hamburger.is-active .sp-hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu */
.sp-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-dark);
    background-image: radial-gradient(circle, rgba(213,180,115,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sp-mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sp-mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-paper);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.sp-mobile-menu a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.sp-mobile-menu .sp-btn {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    opacity: 1;
}

/* ------------------------------------------------------------------
   §7  HERO
   ------------------------------------------------------------------ */

.sp-hero {
    position: relative;
    background: linear-gradient(to bottom, var(--color-green), var(--color-deep-green));
    padding: 2.5rem 0 4rem;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .sp-hero { padding: 3.5rem 0 5rem; min-height: 60vh; }
}

.sp-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.sp-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: var(--color-paper);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.sp-hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: rgba(250, 249, 246, 0.65);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* Hero load animation — pure CSS, no JS needed */
.sp-hero__eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.25rem;
    animation: sp-fadeUp 0.8s var(--transition-smooth) 0.1s both;
}

.sp-hero__logo {
    display: block;
    width: min(480px, 100%);
    height: auto;
    object-fit: contain;
    object-position: center;
}

.sp-hero__title {
    animation: sp-fadeUp 1s var(--transition-smooth) 0.25s both;
}

.sp-hero__subtitle {
    animation: sp-fadeUp 0.9s var(--transition-smooth) 0.5s both;
}

/* Floating gold shapes */
.sp-hero__orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213,180,115,0.15), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.sp-hero__orb--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -5%;
    animation: sp-float 8s ease-in-out infinite;
}

.sp-hero__orb--2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: -3%;
    animation: sp-float 12s ease-in-out infinite reverse;
}

.sp-hero__orb--3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 20%;
    animation: sp-float 10s ease-in-out infinite 2s;
}

/* ------------------------------------------------------------------
   §8  POST CARD
   ------------------------------------------------------------------ */

.sp-card {
    background: var(--color-paper);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(26, 32, 44, 0.06);
    transition: transform 0.5s var(--transition-smooth),
                box-shadow 0.5s var(--transition-smooth),
                border-color 0.5s var(--transition-smooth);
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 32, 44, 0.08), 0 0 0 1px rgba(213, 180, 115, 0.15);
    border-color: rgba(213, 180, 115, 0.2);
}

.sp-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.sp-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition-smooth);
}

.sp-card:hover .sp-card__image {
    transform: scale(1.03);
}

.sp-card__body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .sp-card__body { padding: 1.75rem; }
}

.sp-card__category {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(213, 180, 115, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.sp-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.sp-card:hover .sp-card__title {
    color: var(--color-green);
}

.sp-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(26, 32, 44, 0.5);
    margin-bottom: 0.75rem;
}

.sp-card__meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(26, 32, 44, 0.25);
    flex-shrink: 0;
}

.sp-card__excerpt {
    font-size: 0.9rem;
    color: rgba(26, 32, 44, 0.6);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured card (large) */
.sp-card--featured {
    display: grid;
    border: 1px solid rgba(213, 180, 115, 0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(242,240,234,0.95));
}

@media (min-width: 768px) {
    .sp-card--featured {
        grid-template-columns: 1fr 1fr;
    }
    .sp-card--featured .sp-card__image-wrap {
        aspect-ratio: auto;
        min-height: 360px;
    }
    .sp-card--featured .sp-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem;
    }
}

.sp-card--featured .sp-card__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.sp-card--featured .sp-card__excerpt {
    -webkit-line-clamp: 3;
}

/* Card arrow CTA */
.sp-card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-top: 1rem;
    transition: gap 0.3s var(--transition-smooth);
}

.sp-card:hover .sp-card__arrow {
    gap: 0.85rem;
}

.sp-card__arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--transition-smooth);
}

.sp-card:hover .sp-card__arrow svg {
    transform: translateX(3px);
}

/* ------------------------------------------------------------------
   §9  POST GRID
   ------------------------------------------------------------------ */

.sp-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .sp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .sp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------------
   §10  SINGLE POST — ARTICLE TYPOGRAPHY
   ------------------------------------------------------------------ */

.sp-article {
    max-width: var(--content-width);
    margin: 0 auto;
}

.sp-article > * + * {
    margin-top: 1.5rem;
}

.sp-article h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 32, 44, 0.08);
}

.sp-article h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.sp-article p {
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.8;
    color: rgba(26, 32, 44, 0.8);
}

.sp-article a {
    color: var(--color-green);
    text-decoration: underline;
    text-decoration-color: rgba(69, 82, 62, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.sp-article a:hover {
    text-decoration-color: var(--color-green);
}

.sp-article img {
    border-radius: 10px;
    margin: 2rem 0;
}

.sp-article figure {
    margin: 2.5rem 0;
}

.sp-article figcaption {
    font-size: 0.8rem;
    color: rgba(26, 32, 44, 0.45);
    text-align: center;
    margin-top: 0.75rem;
}

/* Drop cap */
.sp-article > p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 3.5em;
    float: left;
    line-height: 0.85;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--color-green);
}

/* Blockquote / pullquote */
.sp-article blockquote {
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 2.5rem 0;
    border-left: 3px solid var(--color-gold);
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.6;
}

.sp-article blockquote cite {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    color: rgba(26, 32, 44, 0.5);
    margin-top: 0.75rem;
}

/* Code blocks */
.sp-article pre {
    background: var(--color-dark);
    color: var(--color-paper);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 2rem 0;
    border: 1px solid rgba(213, 180, 115, 0.1);
}

.sp-article code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.88em;
}

.sp-article p code,
.sp-article li code {
    background: rgba(26, 32, 44, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Lists */
.sp-article ul,
.sp-article ol {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.sp-article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: rgba(26, 32, 44, 0.8);
}

.sp-article ul li::marker {
    color: var(--color-gold);
}

.sp-article ol li::marker {
    color: var(--color-gold);
    font-weight: 600;
}

/* ------------------------------------------------------------------
   §11  READING PROGRESS BAR
   ------------------------------------------------------------------ */

.sp-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-warm));
    z-index: 1100;
    transition: none;
    will-change: width;
}

/* ------------------------------------------------------------------
   §12  TABLE OF CONTENTS
   ------------------------------------------------------------------ */

.sp-toc {
    font-family: var(--font-sans);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 32, 44, 0.06);
    background: rgba(250, 249, 246, 0.8);
}

.sp-toc__title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.sp-toc__list {
    list-style: none;
    padding: 0;
}

.sp-toc__list li {
    margin-bottom: 0.4rem;
}

.sp-toc__list a {
    font-size: 0.85rem;
    color: rgba(26, 32, 44, 0.55);
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 2px solid transparent;
}

.sp-toc__list a:hover,
.sp-toc__list a.is-active {
    color: var(--color-dark);
    border-left-color: var(--color-gold);
}

.sp-toc__list .sp-toc__h3 {
    padding-left: 2rem;
    font-size: 0.8rem;
}

/* Desktop: sticky sidebar */
@media (min-width: 1024px) {
    .sp-single-layout {
        display: grid;
        grid-template-columns: 1fr 240px;
        gap: 3rem;
        max-width: 1060px;
        margin: 0 auto;
    }
    .sp-toc-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 2rem);
        align-self: start;
    }
}

/* Mobile: collapsible */
@media (max-width: 1023px) {
    .sp-toc-sidebar { margin-bottom: 2rem; }
    .sp-toc-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        width: 100%;
        background: none;
        border: none;
        padding: 0;
        font-family: var(--font-sans);
    }
    .sp-toc-mobile-toggle svg {
        transition: transform 0.3s ease;
    }
    .sp-toc-mobile-toggle.is-open svg {
        transform: rotate(180deg);
    }
    .sp-toc__list--mobile-hidden {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .sp-toc__list--mobile-hidden.is-open {
        max-height: 600px;
    }
}

@media (min-width: 1024px) {
    .sp-toc-mobile-toggle { display: none; }
}

/* ------------------------------------------------------------------
   §13  SHARE BUTTONS
   ------------------------------------------------------------------ */

.sp-share {
    display: flex;
    gap: 0.75rem;
}

.sp-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26, 32, 44, 0.1);
    background: var(--color-paper);
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sp-share__btn:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-paper);
    transform: translateY(-2px);
}

.sp-share__btn svg {
    width: 16px;
    height: 16px;
}

/* Desktop: fixed left rail */
@media (min-width: 1280px) {
    .sp-share--rail {
        position: fixed;
        left: calc((100vw - 1060px) / 2 - 70px);
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        z-index: 50;
    }
}

/* Mobile: bottom sticky */
@media (max-width: 1279px) {
    .sp-share--rail {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(26, 32, 44, 0.06);
        padding: 0.75rem;
        justify-content: center;
        z-index: 50;
    }
}

/* ------------------------------------------------------------------
   §14  AUTHOR BOX
   ------------------------------------------------------------------ */

.sp-author {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 32, 44, 0.06);
    background: rgba(250, 249, 246, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 3rem 0;
}

.sp-author__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(213, 180, 115, 0.2);
}

.sp-author__name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.sp-author__bio {
    font-size: 0.88rem;
    color: rgba(26, 32, 44, 0.6);
    line-height: 1.6;
}

/* ------------------------------------------------------------------
   §15  PAGINATION
   ------------------------------------------------------------------ */

.sp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 0;
}

.sp-pagination a,
.sp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.sp-pagination a {
    color: rgba(26, 32, 44, 0.6);
    border: 1px solid rgba(26, 32, 44, 0.1);
}

.sp-pagination a:hover {
    background: var(--color-dark);
    color: var(--color-paper);
    border-color: var(--color-dark);
}

.sp-pagination .current {
    background: var(--color-dark);
    color: var(--color-paper);
    border: 1px solid var(--color-dark);
}

.sp-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sp-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-pagination .page-numbers a,
.sp-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.sp-pagination .page-numbers a {
    color: rgba(26, 32, 44, 0.6);
    border: 1px solid rgba(26, 32, 44, 0.1);
    text-decoration: none;
}

.sp-pagination .page-numbers a:hover {
    background: var(--color-dark);
    color: var(--color-paper);
    border-color: var(--color-dark);
}

.sp-pagination .page-numbers .current {
    background: var(--color-dark);
    color: var(--color-paper);
    border: 1px solid var(--color-dark);
}

.sp-pagination .page-numbers .dots {
    border: none;
    min-width: auto;
    padding: 0 0.35rem;
    color: rgba(26, 32, 44, 0.35);
}

/* ------------------------------------------------------------------
   §16  SEARCH FORM
   ------------------------------------------------------------------ */

.sp-search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.sp-search-form input[type="search"] {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-paper);
    border: 2px solid rgba(213, 180, 115, 0.3);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-search-form input[type="search"]:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(213, 180, 115, 0.15);
}

.sp-search-form button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gold);
    cursor: pointer;
    padding: 0.5rem;
}

/* ------------------------------------------------------------------
   §17  NEWSLETTER CTA
   ------------------------------------------------------------------ */

.sp-newsletter {
    position: relative;
    background: var(--color-dark);
    overflow: hidden;
    text-align: center;
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .sp-newsletter { padding: 6rem 0; }
}

.sp-newsletter__content {
    position: relative;
    z-index: 10;
    max-width: 560px;
    margin: 0 auto;
}

.sp-newsletter__title {
    font-family: var(--font-serif);
    color: var(--color-paper);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.sp-newsletter__text {
    color: rgba(250, 249, 246, 0.55);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.sp-newsletter__form {
    display: flex;
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .sp-newsletter__form { flex-direction: column; }
}

.sp-newsletter__input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(213, 180, 115, 0.2);
    border-radius: 999px;
    color: var(--color-paper);
    outline: none;
    transition: border-color 0.3s ease;
}

.sp-newsletter__input::placeholder {
    color: rgba(250, 249, 246, 0.35);
}

.sp-newsletter__input:focus {
    border-color: var(--color-gold);
}

.sp-home-search__form .sp-btn {
    min-width: 120px;
}

/* ------------------------------------------------------------------
   §18  FOOTER
   ------------------------------------------------------------------ */

.sp-footer {
    position: relative;
    background: linear-gradient(to bottom, var(--color-green), var(--color-deep-green));
    color: var(--color-paper);
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.sp-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .sp-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.sp-footer__logo img {
    height: 26px;
    width: auto;
    margin-bottom: 1rem;
}

.sp-footer__desc {
    font-size: 0.88rem;
    color: rgba(250, 249, 246, 0.5);
    line-height: 1.7;
    max-width: 320px;
}

.sp-footer__heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
}

.sp-footer__links {
    list-style: none;
    padding: 0;
}

.sp-footer__links li {
    margin-bottom: 0.6rem;
}

.sp-footer__links a {
    font-size: 0.88rem;
    color: rgba(250, 249, 246, 0.55);
    transition: color 0.3s ease;
}

.sp-footer__links a:hover {
    color: var(--color-paper);
}

.sp-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 249, 246, 0.08);
    font-size: 0.78rem;
    color: rgba(250, 249, 246, 0.35);
}

.sp-footer__social {
    display: flex;
    gap: 1rem;
}

.sp-footer__social a {
    color: rgba(250, 249, 246, 0.4);
    transition: color 0.3s ease;
}

.sp-footer__social a:hover {
    color: var(--color-gold);
}

.sp-footer__social svg {
    width: 18px;
    height: 18px;
}

/* ------------------------------------------------------------------
   §19  COMMENTS
   ------------------------------------------------------------------ */

.sp-comments {
    max-width: var(--content-width);
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid rgba(26, 32, 44, 0.08);
}

.sp-comments__title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.sp-comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(26, 32, 44, 0.05);
}

.sp-comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-comment__author {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
}

.sp-comment__date {
    font-size: 0.78rem;
    color: rgba(26, 32, 44, 0.4);
    margin-left: 0.75rem;
}

.sp-comment__body {
    font-size: 0.92rem;
    color: rgba(26, 32, 44, 0.7);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.sp-comment .children {
    padding-left: 2rem;
    list-style: none;
    margin-top: 1.5rem;
}

/* Comment form */
.sp-comment-form label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.sp-comment-form input[type="text"],
.sp-comment-form input[type="email"],
.sp-comment-form input[type="url"],
.sp-comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    border: 1px solid rgba(26, 32, 44, 0.12);
    border-radius: 8px;
    background: var(--color-paper);
    color: var(--color-dark);
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.sp-comment-form input:focus,
.sp-comment-form textarea:focus {
    border-color: var(--color-gold);
}

.sp-comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.sp-comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    background: var(--color-dark);
    color: var(--color-paper);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.sp-comment-form .submit:hover {
    background: var(--color-green);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------
   §20  404 PAGE
   ------------------------------------------------------------------ */

.sp-404 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, var(--color-green), var(--color-deep-green));
    overflow: hidden;
}

.sp-404__number {
    font-family: var(--font-serif);
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px rgba(213, 180, 115, 0.3);
    line-height: 1;
    margin-bottom: 1rem;
    animation: sp-float 6s ease-in-out infinite;
}

.sp-404__title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-paper);
    margin-bottom: 1rem;
}

.sp-404__text {
    color: rgba(250, 249, 246, 0.55);
    margin-bottom: 2rem;
    max-width: 400px;
}

/* ------------------------------------------------------------------
   §21  ARCHIVE / SEARCH HEADER
   ------------------------------------------------------------------ */

.sp-archive-header {
    background: linear-gradient(to bottom, var(--color-green), var(--color-deep-green));
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-archive-header__title {
    font-family: var(--font-serif);
    color: var(--color-paper);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

.sp-archive-header__desc {
    color: rgba(250, 249, 246, 0.55);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ------------------------------------------------------------------
   §22  ANIMATION KEYFRAMES (CSS-only, GPU-accelerated)
   ------------------------------------------------------------------ */

@keyframes sp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sp-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes sp-floatSlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.05);
    }
}

@keyframes sp-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes sp-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

/* ------------------------------------------------------------------
   §23  SCROLL-REVEAL (IntersectionObserver triggers .is-visible)
   ------------------------------------------------------------------ */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition-smooth),
                transform 0.7s var(--transition-smooth);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* Reveal variant: scale */
[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.95);
}
[data-reveal="scale"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ------------------------------------------------------------------
   §24  CUSTOM CURSOR (desktop only — activated via JS after first mousemove)
   ------------------------------------------------------------------ */

@media (pointer: fine) {
    body.evergrow-custom-cursor-active {
        cursor: none;
    }

    .sp-cursor-dot,
    .sp-cursor-follower {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99999;
        border-radius: 50%;
        will-change: transform;
        opacity: 0;
        visibility: hidden;
    }

    body.evergrow-custom-cursor-active .sp-cursor-dot,
    body.evergrow-custom-cursor-active .sp-cursor-follower {
        opacity: 1;
        visibility: visible;
    }

    .sp-cursor-dot {
        width: 5px;
        height: 5px;
        background: var(--color-gold);
    }

    .sp-cursor-follower {
        width: 28px;
        height: 28px;
        border: 1px solid rgba(213, 180, 115, 0.5);
        background: transparent;
        mix-blend-mode: normal;
        transition: transform 0.15s ease, background 0.3s ease, border-color 0.3s ease;
    }
}

@media (pointer: coarse) {
    .sp-cursor-dot,
    .sp-cursor-follower {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   §25  BREADCRUMBS
   ------------------------------------------------------------------ */

.sp-breadcrumbs {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: rgba(250, 249, 246, 0.45);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.sp-breadcrumbs a {
    color: rgba(250, 249, 246, 0.55);
    transition: color 0.3s ease;
}

.sp-breadcrumbs a:hover {
    color: var(--color-gold);
}

.sp-breadcrumbs__sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

/* ------------------------------------------------------------------
   §26  RELATED POSTS
   ------------------------------------------------------------------ */

.sp-related {
    padding: 4rem 0;
    border-top: 1px solid rgba(26, 32, 44, 0.06);
    margin-top: 3rem;
}

.sp-related__title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ------------------------------------------------------------------
   §27  MOBILE SCROLL SAFETY
   ------------------------------------------------------------------ */

@media (max-width: 1024px) {
    html {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html::-webkit-scrollbar {
        width: 0;
        height: 0;
        background: transparent;
    }
}

/* ------------------------------------------------------------------
   §28  POST HERO (Single Post)
   ------------------------------------------------------------------ */

.sp-post-hero {
    position: relative;
    background: linear-gradient(to bottom, var(--color-green), var(--color-deep-green));
    padding: 8rem 0 3rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sp-post-hero { padding: 9rem 0 4rem; }
}

.sp-post-hero__inner {
    position: relative;
    z-index: 10;
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
}

.sp-post-hero__category {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.sp-post-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--color-paper);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
    animation: sp-fadeUp 1s var(--transition-smooth) 0.15s both;
}

.sp-post-hero__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(250, 249, 246, 0.55);
    animation: sp-fadeUp 0.8s var(--transition-smooth) 0.4s both;
}

/* Featured image */
.sp-post-hero__image-wrap {
    max-width: 960px;
    margin: 2.5rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: sp-fadeUp 1s var(--transition-smooth) 0.6s both;
}

.sp-post-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

.sp-post-hero--with-image {
    min-height: 66vh;
}

@media (min-width: 1024px) {
    .sp-post-hero--with-image {
        min-height: 76vh;
    }
}

.sp-post-hero__bg-image,
.sp-post-hero__bg-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sp-post-hero__bg-image {
    background-image: var(--sp-post-hero-image);
    background-size: cover;
    background-position: center center;
    transform: scale(1.04);
    filter: saturate(1.1) contrast(1.05);
}

.sp-post-hero__bg-vignette {
    background:
        radial-gradient(circle at 15% 20%, rgba(213, 180, 115, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(26, 32, 44, 0.3) 0%, rgba(26, 32, 44, 0.72) 62%, rgba(26, 32, 44, 0.9) 100%);
}

.sp-post-hero--with-image .sp-post-hero__inner {
    max-width: 860px;
}

.sp-post-hero--with-image .sp-post-hero__title {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sp-post-hero--with-image .sp-post-hero__meta {
    color: rgba(250, 249, 246, 0.82);
}

.sp-post-hero__visual {
    position: relative;
    z-index: 10;
    width: min(980px, 100%);
    margin: 2.6rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(250, 249, 246, 0.26);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: sp-fadeUp 1s var(--transition-smooth) 0.55s both;
}

.sp-post-hero__visual-media {
    position: relative;
    min-height: clamp(230px, 42vw, 520px);
    background: rgba(26, 32, 44, 0.4);
}

.sp-post-hero__visual-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(26, 32, 44, 0.25) 100%);
    pointer-events: none;
}

.sp-post-hero__visual .sp-post-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: inherit;
}

/* ------------------------------------------------------------------
   §29  SEARCH RESULTS
   ------------------------------------------------------------------ */

.sp-search-results {
    list-style: none;
    padding: 0;
}

.sp-search-results__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(26, 32, 44, 0.06);
}

.sp-search-results__item:last-child {
    border-bottom: none;
}

.sp-search-results__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.sp-search-results__title:hover {
    color: var(--color-green);
}

.sp-search-results__excerpt {
    font-size: 0.9rem;
    color: rgba(26, 32, 44, 0.6);
    line-height: 1.65;
}

.sp-search-results__meta {
    font-size: 0.78rem;
    color: rgba(26, 32, 44, 0.4);
    margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
   §30  LIGHT GRADIENT SECTIONS
   ------------------------------------------------------------------ */

.sp-bg-light-gradient {
    background: linear-gradient(to bottom, var(--color-paper), var(--color-off-white));
}

/* ------------------------------------------------------------------
   §31  SKIP TO CONTENT (accessibility)
   ------------------------------------------------------------------ */

.sp-skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    background: var(--color-dark);
    color: var(--color-paper);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 100000;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: top 0.3s ease;
}

.sp-skip-link:focus {
    top: 0;
}

/* ------------------------------------------------------------------
   §32  HOME — BENTO GRID, LATEST, TOPIC ROWS
   ------------------------------------------------------------------ */

.sp-home-latest__heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--color-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.sp-bento {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .sp-bento {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: minmax(200px, auto);
        align-items: stretch;
    }

    .sp-bento .sp-card--bento-hero {
        grid-column: 1 / span 8;
        grid-row: span 2;
    }

    .sp-bento .sp-card--bento-sm {
        grid-column: span 4;
    }

    .sp-bento .sp-card--bento-wide {
        grid-column: 1 / -1;
    }

    .sp-bento .sp-card--bento-tall {
        grid-column: span 4;
        grid-row: span 2;
    }
}

.sp-card__updated {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-warm);
    border: 1px solid rgba(184, 115, 51, 0.35);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.sp-topic-row {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(26, 32, 44, 0.06);
    background: var(--color-paper);
}

.sp-topic-row__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.sp-topic-row__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .sp-topic-row__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sp-topic-row__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ------------------------------------------------------------------
   §33  FEATURED CAROUSEL (scroll-snap + skins)
   ------------------------------------------------------------------ */

.sp-featured-carousel {
    padding: 2rem 0;
    border-top: 1px solid rgba(26, 32, 44, 0.06);
}

.sp-featured-carousel__inner {
    max-width: var(--max-width);
}

.sp-featured-carousel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sp-featured-carousel__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0;
    color: var(--color-dark);
}

.sp-featured-carousel__nav {
    display: flex;
    gap: 0.5rem;
}

.sp-featured-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(26, 32, 44, 0.12);
    background: var(--color-paper);
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sp-featured-carousel__btn:hover {
    border-color: var(--color-gold);
    color: var(--color-green);
    box-shadow: 0 4px 20px rgba(26, 32, 44, 0.08);
}

.sp-featured-carousel__btn:focus {
    outline: none;
}

.sp-featured-carousel__btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.sp-featured-carousel__track-wrap {
    margin: 0 -1rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .sp-featured-carousel__track-wrap {
        margin: 0;
        padding: 0;
    }
}

.sp-featured-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.sp-featured-carousel__track:focus {
    outline: none;
}

.sp-featured-carousel__track:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 6px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .sp-featured-carousel__track {
        scroll-behavior: auto;
    }
}

.sp-featured-carousel__slide {
    flex: 0 0 min(88vw, 360px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (min-width: 768px) {
    .sp-featured-carousel__slide {
        flex-basis: min(42vw, 400px);
    }
}

.sp-featured-carousel__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s ease;
}

.sp-featured-carousel__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(26, 32, 44, 0.12);
}

.sp-featured-carousel__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(26, 32, 44, 0.06);
}

.sp-featured-carousel__img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-featured-carousel__body {
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sp-featured-carousel__cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.sp-featured-carousel__card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
}

.sp-featured-carousel__excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(26, 32, 44, 0.62);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel skin: paper-glass (default) */
.sp-featured-carousel--paper-glass {
    background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-paper) 100%);
}

.sp-featured-carousel--paper-glass .sp-featured-carousel__track {
    padding: 0.75rem 0.25rem 1rem;
}

.sp-featured-carousel--paper-glass .sp-featured-carousel__card {
    background: rgba(250, 249, 246, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(213, 180, 115, 0.35);
    box-shadow: 0 8px 32px rgba(26, 32, 44, 0.06);
}

.sp-featured-carousel--paper-glass .sp-featured-carousel__btn {
    background: rgba(250, 249, 246, 0.9);
    border-color: rgba(213, 180, 115, 0.4);
}

/* command-green */
.sp-featured-carousel--command-green {
    background: linear-gradient(165deg, var(--color-green) 0%, var(--color-deep-green) 100%);
    border-top: none;
}

.sp-featured-carousel--command-green .sp-featured-carousel__title,
.sp-featured-carousel--command-green .sp-featured-carousel__card-title {
    color: var(--color-paper);
}

.sp-featured-carousel--command-green .sp-featured-carousel__excerpt {
    color: rgba(250, 249, 246, 0.72);
}

.sp-featured-carousel--command-green .sp-featured-carousel__cat {
    color: var(--color-gold);
}

.sp-featured-carousel--command-green .sp-featured-carousel__btn {
    background: rgba(250, 249, 246, 0.08);
    border-color: rgba(213, 180, 115, 0.45);
    color: var(--color-paper);
}

.sp-featured-carousel--command-green .sp-featured-carousel__btn:hover {
    background: rgba(213, 180, 115, 0.2);
    color: var(--color-paper);
}

.sp-featured-carousel--command-green .sp-featured-carousel__card {
    background: rgba(26, 32, 44, 0.25);
    border: 1px solid rgba(213, 180, 115, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.sp-featured-carousel--command-green .sp-featured-carousel__img {
    background: rgba(0, 0, 0, 0.2);
}

/* gold-rail */
.sp-featured-carousel--gold-rail {
    background: var(--color-paper);
}

.sp-featured-carousel--gold-rail .sp-featured-carousel__card {
    background: var(--color-paper);
    border: 1px solid rgba(26, 32, 44, 0.08);
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 6px 24px rgba(26, 32, 44, 0.05);
}

.sp-featured-carousel--gold-rail .sp-featured-carousel__card-title {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.25em;
    transition: text-decoration-color 0.25s ease;
}

.sp-featured-carousel--gold-rail .sp-featured-carousel__card:hover .sp-featured-carousel__card-title {
    text-decoration-color: rgba(26, 32, 44, 0.45);
}

/* editorial-dark */
.sp-featured-carousel--editorial-dark {
    background: #1a202c;
    border-top: none;
}

.sp-featured-carousel--editorial-dark .sp-featured-carousel__title,
.sp-featured-carousel--editorial-dark .sp-featured-carousel__card-title {
    color: var(--color-paper);
}

.sp-featured-carousel--editorial-dark .sp-featured-carousel__excerpt {
    color: rgba(250, 249, 246, 0.65);
}

.sp-featured-carousel--editorial-dark .sp-featured-carousel__cat {
    color: var(--color-gold);
}

.sp-featured-carousel--editorial-dark .sp-featured-carousel__btn {
    background: rgba(250, 249, 246, 0.06);
    border-color: rgba(213, 180, 115, 0.5);
    color: var(--color-paper);
}

.sp-featured-carousel--editorial-dark .sp-featured-carousel__card {
    background: #222831;
    border: 1px solid rgba(213, 180, 115, 0.22);
}

.sp-featured-carousel--editorial-dark .sp-featured-carousel__img {
    background: #111;
}

/* ------------------------------------------------------------------
   §34  HOMEPAGE LAYOUT PRESETS (body.sp-home-layout--*)
   ------------------------------------------------------------------ */

.sp-home-layout--intelligence-dark .sp-hero {
    background: linear-gradient(160deg, var(--color-deep-green) 0%, var(--color-green) 55%, #3d4a38 100%);
}

.sp-home-layout--intelligence-dark .sp-featured-carousel--paper-glass {
    background: linear-gradient(180deg, var(--color-green) 0%, var(--color-deep-green) 100%);
    border-top: none;
}

.sp-home-layout--intelligence-dark .sp-featured-carousel--paper-glass .sp-featured-carousel__title {
    color: var(--color-paper);
}

.sp-home-layout--minimal-paper .sp-bento {
    gap: 2.25rem;
}

.sp-home-layout--minimal-paper .sp-card {
    border: 1px solid rgba(26, 32, 44, 0.08);
    box-shadow: none;
}

.sp-home-layout--magazine-stack .sp-home-latest__heading {
    text-align: left;
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .sp-home-layout--magazine-stack .sp-bento .sp-card--bento-hero .sp-card__title {
        font-size: clamp(1.5rem, 2.2vw, 2rem);
    }
}

.sp-home-layout--editorial-rail .sp-home-latest .sp-container {
    position: relative;
}

@media (min-width: 1200px) {
    .sp-home-layout--editorial-rail .sp-home-latest .sp-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        min-height: 12rem;
        background: linear-gradient(180deg, transparent, rgba(213, 180, 115, 0.45), transparent);
        pointer-events: none;
    }

    .sp-home-layout--editorial-rail .sp-home-latest .sp-container {
        padding-right: 2.5rem;
    }
}

/* ------------------------------------------------------------------
   §35  IN-POST SHORTCODES (.sp-sc)
   ------------------------------------------------------------------ */

.sp-sc {
    margin: 1.75rem 0;
}

.sp-sc-callout {
    padding: 1.25rem 1.35rem 1.25rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    background: var(--color-off-white);
    border-left-width: 4px;
}

.sp-sc-callout--tip {
    border-left-color: var(--color-gold);
}

.sp-sc-callout--info {
    border-left-color: rgba(26, 32, 44, 0.2);
}

.sp-sc-callout--warning {
    border-left-color: var(--color-warm);
    background: rgba(184, 115, 51, 0.06);
}

.sp-sc-callout--note {
    border-left-color: var(--color-green);
}

.sp-sc-takeaways {
    padding: 1.35rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(213, 180, 115, 0.12), rgba(69, 82, 62, 0.08));
    border: 1px solid rgba(213, 180, 115, 0.28);
}

.sp-sc-takeaways__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: 0.75rem;
}

.sp-sc-takeaways__inner ul,
.sp-sc-takeaways__inner ol {
    margin: 0;
    padding-left: 1.25rem;
}

.sp-sc-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(26, 32, 44, 0.08);
    border-bottom: 1px solid rgba(26, 32, 44, 0.08);
}

.sp-sc-stat__value {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-green);
    line-height: 1;
}

.sp-sc-stat__label {
    font-size: 0.95rem;
    color: rgba(26, 32, 44, 0.65);
    max-width: 20rem;
}

.sp-sc-cta-wrap {
    margin: 2rem 0;
    text-align: center;
}

.sp-sc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.sp-sc-cta--gold {
    background: var(--color-gold);
    color: var(--color-dark);
}

.sp-sc-cta--gold:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.sp-sc-cta--outline {
    background: transparent;
    color: var(--color-green);
    border: 2px solid var(--color-gold);
}

.sp-sc-cta--dark {
    background: var(--color-dark);
    color: var(--color-paper);
}

.sp-sc-quote {
    margin: 2rem 0;
    padding: 1.5rem 0 1.5rem 1.25rem;
    border-left: 3px solid var(--color-gold);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--color-dark);
}

.sp-sc-quote__cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-style: normal;
    color: rgba(26, 32, 44, 0.5);
}

.sp-sc-steps {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    counter-reset: spstep;
}

.sp-sc-step {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.25rem;
    border: 1px solid rgba(26, 32, 44, 0.08);
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--color-paper);
}

.sp-sc-step::before {
    counter-increment: spstep;
    content: counter(spstep);
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-dark);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-sc-step__title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.sp-sc-comparison {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .sp-sc-comparison {
        grid-template-columns: 1fr 1fr;
    }
}

.sp-sc-comparison__h {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--color-green);
    font-family: var(--font-sans);
}

.sp-sc-comparison__col {
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    background: var(--color-off-white);
}

.sp-sc-faq {
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    margin: 1rem 0;
    background: var(--color-paper);
}

.sp-sc-faq__q {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.sp-sc-faq__a {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(26, 32, 44, 0.75);
}

.sp-sc-disclaimer {
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(26, 32, 44, 0.55);
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: rgba(26, 32, 44, 0.04);
}

.sp-sc-related {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(26, 32, 44, 0.08);
}

.sp-sc-related__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sp-sc-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .sp-sc-related__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .sp-sc-related__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sp-sc-related__list a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 32, 44, 0.1);
    font-family: var(--font-serif);
    font-size: 0.98rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sp-sc-related__list a:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 24px rgba(26, 32, 44, 0.06);
}

.sp-sc-divider {
    border: none;
    margin: 2.5rem auto;
    padding: 0;
    display: block;
}

.sp-sc-divider--line {
    height: 1px;
    width: 100%;
    max-width: 280px;
    background: rgba(26, 32, 44, 0.12);
}

.sp-sc-divider--gold {
    height: 1px;
    width: 100%;
    max-width: 320px;
    background: linear-gradient(90deg, transparent, rgba(213, 180, 115, 0.25), var(--color-gold), rgba(213, 180, 115, 0.25), transparent);
}

.sp-sc-divider--dots {
    height: 10px;
    width: 100%;
    max-width: 200px;
    background: transparent;
    background-image: radial-gradient(circle, var(--color-gold) 2px, transparent 2.5px);
    background-size: 14px 10px;
    background-repeat: space no-repeat;
    background-position: center;
}

.sp-sc-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 2rem 0 0.75rem;
}
/* Static top nav (standard blog top bar) */
.sp-top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 100px;
    display: flex;
    align-items: center;
    background: transparent;
}

.sp-top-nav__inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-top-nav__logo img {
    height: 32px;
    width: auto;
}

@media (max-width: 768px) {
    .sp-top-nav { height: 80px; }
    .sp-top-nav__logo img { height: 26px; }
    .sp-top-nav .sp-btn { padding: 0.55rem 1.15rem; font-size: 0.72rem; }
}

