/* ============================================================
   SINGLE POST — THE SEISMOGRAPH
   Styles for Elementor Theme Builder single post template
   ============================================================ */

/* ── Reading Progress Bar ── */
#sd-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sd-accent), var(--sd-coral));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
.sd-single-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10rem 3rem 4rem;
    overflow: hidden;
    background: var(--sd-bg);
}

.sd-single-hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sd-single-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.sd-cat-pill {
    display: inline-block;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    background: var(--sd-accent);
    color: var(--sd-bg);
    margin-bottom: 2rem;
}

.sd-single-hero-content h1,
.sd-single-hero-content .elementor-heading-title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--sd-fg);
    margin-bottom: 1.75rem;
}

.sd-single-excerpt,
.sd-single-excerpt p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--sd-muted);
    max-width: 620px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* ── Author + Meta Bar ── */
.sd-meta-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sd-author-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sd-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sd-card-bg);
    border: 2px solid rgba(224, 165, 38, 0.3);
    overflow: hidden;
}

.sd-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sd-author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sd-fg);
}

.sd-author-role {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.sd-meta-divider {
    width: 4px;
    height: 4px;
    background: var(--sd-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-meta-item {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sd-muted);
}

/* ── Seismograph Line ── */
.sd-seismo-line {
    width: 100%;
    height: 50px;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.sd-seismo-line path {
    stroke: rgba(224, 165, 38, 0.3);
    stroke-width: 1.5;
    fill: none;
}

/* ============================================================
   ARTICLE BODY — 3-COLUMN LAYOUT
   ============================================================ */
.sd-article-grid {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 720px) 200px !important;
    gap: 2rem !important;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
}

/* ── Left Sidebar ── */
.sd-sidebar-left {
    position: relative;
}

.sd-sidebar-left .sidebar-sticky,
.sd-sidebar-left .elementor-widget-wrap,
.sd-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sd-sidebar-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 1.25rem;
}

/* ── Share Buttons ── */
.sd-share-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sd-share-btn {
    width: 40px;
    height: 40px;
    background: var(--sd-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--sd-muted);
}

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

.sd-share-btn svg {
    width: 16px;
    height: 16px;
}

.sd-share-btn.copied {
    border-color: var(--sd-accent);
    color: var(--sd-accent);
}

/* Mobile share row — hidden on desktop, shown at the end of the article on mobile */
.sd-share-mobile {
    display: none;
}

/* ── Table of Contents ── */
.sd-toc {
    margin-top: 3rem;
}

.sd-toc-link {
    display: block;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.58rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sd-muted);
    padding: 0.5rem 0;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    line-height: 1.4;
    text-decoration: none;
}

.sd-toc-link:hover,
.sd-toc-link.active {
    color: var(--sd-accent);
    border-left-color: var(--sd-accent);
}

/* ── Right Sidebar ── */
.sd-sidebar-right {
    position: relative;
}

.sd-sidebar-right .sidebar-sticky,
.sd-sidebar-right .elementor-widget-wrap {
    position: sticky;
    top: 100px;
}

/* ── Reading Progress Ring ── */
.sd-progress-ring {
    margin-bottom: 2rem;
    text-align: center;
}

.sd-progress-ring-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
}

.sd-progress-ring-container svg {
    transform: rotate(-90deg);
}

.sd-progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
}

.sd-progress-ring-fill {
    fill: none;
    stroke: var(--sd-accent);
    stroke-width: 3;
    stroke-linecap: square;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 0.15s;
}

.sd-progress-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    color: var(--sd-accent);
}

.sd-reading-time-est {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sd-muted);
    text-align: center;
}

/* ============================================================
   ARTICLE CONTENT
   Styles for Elementor Post Content widget output
   ============================================================ */
.sd-single-content .elementor-widget-theme-post-content,
.sd-single-content {
    min-width: 0;
}

.sd-single-content {
    counter-reset: sd-section;
}

.sd-single-content p,
.sd-single-content .elementor-widget-text-editor p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--sd-muted);
    font-weight: 300;
    margin-bottom: 1.75rem;
}

.sd-single-content h2,
.sd-single-content .elementor-heading-title.elementor-size-default {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--sd-fg);
    letter-spacing: -0.5px;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    scroll-margin-top: 100px;
}

.sd-single-content .elementor-widget-theme-post-content h2::before {
    counter-increment: sd-section;
    content: counter(sd-section, decimal-leading-zero);
    display: block;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    color: var(--sd-accent);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.sd-single-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sd-fg);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sd-single-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sd-fg);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.sd-single-content strong {
    color: var(--sd-fg);
    font-weight: 500;
}

.sd-single-content em {
    color: var(--sd-accent);
    font-style: italic;
}

.sd-single-content a {
    color: var(--sd-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.sd-single-content a:hover {
    color: var(--sd-coral);
}

/* ── Drop Cap (only when the post opens with a paragraph) ── */
.sd-single-content .elementor-widget-theme-post-content .elementor-widget-container > p:first-child::first-letter {
    font-size: 4.5rem;
    float: left;
    line-height: 0.75;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    color: var(--sd-accent);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

/* ── Section Numbers ── */
.sd-section-num {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    color: var(--sd-accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

/* ── Ordered Lists ── */
.sd-single-content ol {
    padding-left: 0;
    list-style: none;
    counter-reset: article-counter;
    margin-bottom: 1.75rem;
}

.sd-single-content ol li {
    counter-increment: article-counter;
    padding: 0.75rem 0;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--sd-muted);
    font-weight: 300;
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sd-single-content ol li::before {
    content: counter(article-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    color: var(--sd-accent);
    font-weight: 700;
}

.sd-single-content ul {
    margin: 0 0 1.75rem 1.5rem;
    color: var(--sd-muted);
}

.sd-single-content ul li {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ── Blockquote (default) ── */
.sd-single-content blockquote {
    margin: 3rem 0;
    padding: 2.5rem;
    border-left: 3px solid var(--sd-accent);
    background: rgba(224, 165, 38, 0.03);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--sd-fg);
    line-height: 1.6;
    font-style: italic;
}

/* ── Images ── */
.sd-single-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.sd-single-content figure {
    margin: 3rem 0;
}

.sd-single-content figcaption {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-top: 0.75rem;
}

/* ── Code ── */
.sd-single-content code {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
}

.sd-single-content pre {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sd-border);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

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

/* ============================================================
   IN-CONTENT STYLED BLOCKS (Elementor CSS classes)
   ============================================================ */

/* ── Pullquote ── */
.sd-pullquote {
    margin: 3rem 0;
    padding: 2.5rem;
    border-left: 3px solid var(--sd-accent);
    background: rgba(224, 165, 38, 0.03);
    position: relative;
}

.sd-pullquote p {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    color: var(--sd-fg) !important;
    line-height: 1.6 !important;
    font-style: italic;
    margin-bottom: 0.75rem !important;
}

.sd-pullquote .sd-pq-attr,
.sd-pullquote cite {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sd-accent);
    font-style: normal;
}

.sd-pullquote::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(224, 165, 38, 0.08);
    line-height: 1;
}

/* ── Data Callout / Stats Grid ── */
.sd-data-callout {
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--sd-card-bg);
    border: 1px solid rgba(224, 165, 38, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sd-data-stat {
    text-align: center;
}

.sd-data-stat .sd-stat-value,
.sd-data-stat .elementor-heading-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sd-accent);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.sd-data-stat .sd-stat-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sd-muted);
    line-height: 1.4;
}

/* ── Signal Box ── */
.sd-signal-box {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: rgba(22, 92, 125, 0.06);
    border: 1px solid rgba(22, 92, 125, 0.15);
    border-left: 3px solid var(--sd-teal);
}

.sd-signal-box .sd-sb-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sd-teal);
    margin-bottom: 0.75rem;
}

.sd-signal-box p {
    font-size: 0.95rem !important;
    color: var(--sd-fg) !important;
    font-weight: 400 !important;
}

/* ── Article Separator ── */
.sd-separator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3.5rem 0;
}

.sd-separator .sd-sep-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.sd-separator .sd-sep-icon {
    width: 6px;
    height: 6px;
    background: var(--sd-accent);
    transform: rotate(45deg);
}

/* ── Article Visual ── */
.sd-article-visual {
    margin: 3rem 0;
    position: relative;
    height: 280px;
    overflow: hidden;
    border: 1px solid rgba(224, 165, 38, 0.08);
}

.sd-article-visual canvas {
    width: 100%;
    height: 100%;
}

.sd-vis-caption {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sd-muted);
    background: rgba(12, 35, 64, 0.8);
    padding: 0.35rem 0.75rem;
}

/* ============================================================
   TAGS
   ============================================================ */
.sd-single-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-single-tags .sd-tags-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 1rem;
}

.sd-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sd-tag-chip,
.sd-single-tags a {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sd-muted);
    transition: all 0.3s;
    text-decoration: none;
}

.sd-tag-chip:hover,
.sd-single-tags a:hover {
    border-color: var(--sd-accent);
    color: var(--sd-accent);
}

/* ============================================================
   FEATURED IMAGE BAND (between article body and author card)
   ============================================================ */
.sd-featured-section {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 720px) 200px !important;
    gap: 2rem !important;
    justify-content: start !important;
    padding: 0 3rem !important;
}

.sd-featured-section .elementor-widget-html {
    grid-column: 2 !important;
    width: auto !important;
}

.sd-featured-image {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(224, 165, 38, 0.12);
    overflow: hidden;
    line-height: 0;
}

.sd-featured-section figure.sd-featured-image img {
    display: block;
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
}

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.sd-author-card {
    margin-top: 4rem;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-author-card-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 3rem;
}

.sd-author-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sd-card-bg);
    border: 2px solid rgba(224, 165, 38, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.sd-author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sd-ac-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sd-accent);
    margin-bottom: 0.5rem;
}

.sd-ac-name,
.sd-author-card .elementor-heading-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--sd-fg);
    margin-bottom: 0.3rem;
}

.sd-ac-role {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 1rem;
}

.sd-ac-bio,
.sd-ac-bio p {
    font-size: 0.95rem;
    color: var(--sd-muted);
    font-weight: 300;
    line-height: 1.7;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.sd-related-section {
    padding: 4rem 3rem;
}

.sd-related-section .elementor-widget {
    width: 100% !important;
}

.sd-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-related-header h3,
.sd-related-header .elementor-heading-title {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.sd-related-header a {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sd-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    text-decoration: none;
}

.sd-related-header a:hover {
    gap: 0.85rem;
}

.sd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.sd-related-card {
    display: block;
    text-decoration: none;
    background: var(--sd-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sd-related-card:hover {
    border-color: rgba(224, 165, 38, 0.2);
    transform: translateY(-4px);
}

.sd-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sd-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.sd-related-card:hover::before {
    transform: scaleX(1);
}

.sd-related-card-img {
    aspect-ratio: 720 / 220;
    overflow: hidden;
}

.sd-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-related-card-body {
    padding: 1.75rem;
}

.sd-related-card-body h4,
.sd-related-card-body .elementor-post__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin-bottom: 0.85rem;
    color: var(--sd-fg);
    transition: color 0.3s;
}

.sd-related-card:hover h4,
.sd-related-card:hover .elementor-post__title {
    color: var(--sd-accent);
}

.sd-related-card-body .sd-r-excerpt {
    font-size: 0.85rem;
    color: var(--sd-muted);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sd-related-card-body .sd-r-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.sd-r-meta .dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Elementor Posts widget overrides for related section */
.sd-related-section .elementor-posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.sd-related-section .elementor-post {
    background: var(--sd-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sd-related-section .elementor-post:hover {
    border-color: rgba(224, 165, 38, 0.2);
    transform: translateY(-4px);
}

.sd-related-section .elementor-post__thumbnail {
    height: 180px;
    overflow: hidden;
}

.sd-related-section .elementor-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-related-section .elementor-post__text {
    padding: 1.75rem;
}

.sd-related-section .elementor-post__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--sd-fg);
    transition: color 0.3s;
}

.sd-related-section .elementor-post:hover .elementor-post__title {
    color: var(--sd-accent);
}

.sd-related-section .elementor-post__excerpt {
    font-size: 0.85rem;
    color: var(--sd-muted);
    line-height: 1.6;
    font-weight: 300;
}

.sd-related-section .elementor-post__meta-data {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sd-muted);
}

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.sd-newsletter-cta {
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.sd-newsletter-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sd-newsletter-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sd-accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sd-newsletter-label::before,
.sd-newsletter-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--sd-accent);
}

.sd-newsletter-cta h2,
.sd-newsletter-cta .elementor-heading-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--sd-fg);
}

.sd-newsletter-cta .sd-accent {
    color: var(--sd-accent);
    font-style: italic;
}

.sd-newsletter-cta .sd-nl-desc,
.sd-newsletter-cta .sd-nl-desc p {
    font-size: 1rem;
    color: var(--sd-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.sd-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.sd-newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--sd-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: var(--sd-fg);
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.75rem;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.3s;
}

.sd-newsletter-form input::placeholder {
    color: var(--sd-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.65rem;
}

.sd-newsletter-form input:focus {
    border-color: var(--sd-accent);
}

.sd-newsletter-form button {
    padding: 1rem 2rem;
    background: var(--sd-accent);
    color: var(--sd-bg);
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--sd-accent);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.sd-newsletter-form button:hover {
    background: transparent;
    color: var(--sd-accent);
}

.sd-newsletter-seismo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.sd-single-hero .reveal,
.sd-article-grid .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sd-single-hero .reveal.visible,
.sd-article-grid .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .sd-article-grid {
        grid-template-columns: minmax(0, 720px) !important;
        justify-content: center;
    }

    .sd-featured-section {
        grid-template-columns: minmax(0, 720px) !important;
    }

    .sd-featured-section .elementor-widget-html {
        grid-column: 1 !important;
    }

    .sd-sidebar-left,
    .sd-sidebar-right {
        display: none !important;
    }

    .sd-share-mobile {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sd-share-mobile .sd-sidebar-label {
        margin-bottom: 0;
    }

    .sd-share-mobile .sd-share-links {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .sd-featured-section {
        padding: 0 1.5rem !important;
    }

    .sd-featured-section figure.sd-featured-image img {
        height: 150px !important;
        max-height: 150px !important;
    }

    .sd-single-hero {
        padding: 7rem 1.5rem 3rem;
        min-height: 70vh;
    }

    .sd-article-grid {
        padding: 3rem 1.5rem;
    }

    .sd-meta-bar {
        gap: 1rem;
    }

    .sd-data-callout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sd-related-section {
        padding: 3rem 1.5rem;
    }

    .sd-related-grid,
    .sd-related-section .elementor-posts-container {
        grid-template-columns: 1fr;
    }

    .sd-newsletter-cta {
        padding: 4rem 1.5rem;
    }

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

    .sd-newsletter-form input[type="email"] {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .sd-author-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
    }

    .sd-single-hero-content h1,
    .sd-single-hero-content .elementor-heading-title {
        font-size: clamp(2rem, 7vw, 3rem);
        letter-spacing: -1px;
    }

    .sd-single-excerpt,
    .sd-single-excerpt p {
        font-size: 1.05rem;
    }
}
