/*
═══════════════════════════════════════════════════════════════════════════════
  iWEBVAULT — BLOG CSS v3.0
  File: assets/css/iwv-blog.css

  v2.3 changes vs v2.2:
   - REMOVED .iwv-glass-panel wrapper styles entirely
   - REMOVED .iwv-post-byline strip styles entirely
   - Sidebar widgets now sit on the page bg with thin dividers (borderless rail)
   - Only the bottom Hosting CTA stays as a dark styled card
   - All other v2.2 features preserved (responsive image, search Enter-submit,
     calm reading rhythm, drop cap, numbered H2s)
═══════════════════════════════════════════════════════════════════════════════
*/


/* ─────────────────────────────────────────────────────────────
   READING PROGRESS BAR (top of page)
───────────────────────────────────────────────────────────────*/
.iwv-progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 87, 255, 0.06);
    z-index: 9999;
    pointer-events: none;
}
.iwv-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad);
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
}


/* ─────────────────────────────────────────────────────────────
   POST HERO HEADER — Cleaner (no author here in v2.2)
───────────────────────────────────────────────────────────────*/
.iwv-post-hero {
    background: var(--ink);
    padding: 64px 0 84px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.iwv-post-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(0,87,255,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 88% 55%, rgba(0,200,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 30% 25% at 12% 75%, rgba(0,87,255,0.06) 0%, transparent 55%);
    pointer-events: none;
}
.iwv-post-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,87,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,87,255,0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
.iwv-post-hero > * { position: relative; z-index: 1; }

.iwv-post-breadcrumb {
    font-family: var(--font-h);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.iwv-post-breadcrumb a { color: rgba(244,247,255,0.6); text-decoration: none; transition: color 0.15s; }
.iwv-post-breadcrumb a:hover { color: var(--cyan); }
.iwv-post-breadcrumb span { color: rgba(244,247,255,0.25); }

.iwv-post-cat-badge { display: inline-block; margin-bottom: 26px; }
.iwv-post-cat-badge a {
    display: inline-flex; align-items: center;
    font-family: var(--font-h); font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
    background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.2);
    padding: 7px 16px; border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.iwv-post-cat-badge a:hover {
    background: rgba(0,200,255,0.16);
    border-color: rgba(0,200,255,0.38);
    transform: translateY(-1px);
}

.iwv-post-title {
    font-family: var(--font-h);
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    max-width: 920px;
}
.iwv-post-sub {
    font-size: clamp(17px, 2vw, 20px);
    color: rgba(244,247,255,0.7);
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 720px;
}

/* Hero quick meta — date + reading time only (no author) */
.iwv-post-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.iwv-post-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(244,247,255,0.6);
}
.iwv-post-hero-meta-item svg {
    color: var(--cyan);
    opacity: 0.65;
}
.iwv-post-hero-meta-dot {
    color: rgba(244,247,255,0.25);
    font-size: 14px;
}
.iwv-post-hero-meta-updated {
    background: rgba(184,255,60,0.08);
    border: 1px solid rgba(184,255,60,0.22);
    padding: 4px 12px;
    border-radius: 100px;
    color: var(--lime);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ─────────────────────────────────────────────────────────────
   FEATURED IMAGE — fully responsive
───────────────────────────────────────────────────────────────*/
.iwv-post-featured {
    margin: -48px 0 0;
    padding: 0;
    position: relative;
    z-index: 2;
}
.iwv-post-featured .iwv-post-featured-img,
.iwv-post-featured img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--rXL);
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    max-width: 100%;
}

/* On tablet/mobile, soften the radius + reduce shadow */
@media (max-width: 1023px) {
    .iwv-post-featured { margin-top: -32px; }
    .iwv-post-featured .iwv-post-featured-img,
    .iwv-post-featured img {
        border-radius: var(--rL);
        box-shadow: 0 16px 40px rgba(0,0,0,0.2);
        aspect-ratio: 16 / 10;
    }
}
@media (max-width: 720px) {
    .iwv-post-featured { margin-top: -24px; padding: 0 4px; }
    .iwv-post-featured .iwv-post-featured-img,
    .iwv-post-featured img {
        border-radius: var(--r);
        aspect-ratio: 16 / 9;
    }
}


/* ─────────────────────────────────────────────────────────────
   2/3 + 1/3 GRID LAYOUT
───────────────────────────────────────────────────────────────*/
.iwv-post-layout {
    padding: 48px 0 88px;
    counter-reset: iwv-h2-counter;
    background: var(--white);
}
.iwv-post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    align-items: flex-start;
}
.iwv-post-article { min-width: 0; }

.iwv-post-sidebar {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,87,255,0.18) transparent;
}
.iwv-post-sidebar::-webkit-scrollbar { width: 6px; }
.iwv-post-sidebar::-webkit-scrollbar-track { background: transparent; }
.iwv-post-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,87,255,0.18);
    border-radius: 4px;
}


/* ═════════════════════════════════════════════════════════════════
   ★ BORDERLESS RAIL SIDEBAR ★
   Widgets sit on the page background, separated by thin dividers.
   No glass panel, no white card boxes — pure editorial column.
═════════════════════════════════════════════════════════════════ */

/* Each widget is a transparent block separated only by thin lines */
.iwv-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 22px 0;
    border-bottom: 1px solid #eef2f9;
    position: relative;
}
.iwv-widget:first-child { padding-top: 0; }
.iwv-widget:last-child  { padding-bottom: 0; border-bottom: none; }

/* Widget label (small uppercase blue tag above each widget) */
.iwv-widget-label {
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.iwv-widget-label::before {
    content: '';
    width: 14px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}


/* ───────────────────────────────────────────────────────────
   1. LIVE SEARCH — instant results dropdown
───────────────────────────────────────────────────────────*/
.iwv-widget-search { padding: 0 0 22px; }
.iwv-search-input-wrap {
    position: relative;
    display: block;
}
.iwv-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
}
.iwv-widget-search input[type="search"] {
    width: 100%;
    padding: 12px 76px 12px 44px;
    background: var(--white);
    border: 1px solid #e3eaf6;
    border-radius: 100px;
    font-family: var(--font-b);
    font-size: 14px;
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.iwv-widget-search input[type="search"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,87,255,0.1);
}
.iwv-widget-search input[type="search"]::placeholder {
    color: var(--muted);
}

/* Submit arrow button — visible on hover/focus */
.iwv-search-go {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    padding: 0;
    z-index: 2;
}
.iwv-search-go:hover {
    background: var(--blue);
    transform: translateY(-50%) translateX(1px);
}
.iwv-search-go svg { display: block; }

/* Loading spinner (shown during AJAX search) */
.iwv-search-spinner {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 87, 255, 0.15);
    border-top-color: var(--blue);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: iwv-spin 0.7s linear infinite;
}
.iwv-search-spinner.active { opacity: 1; }
@keyframes iwv-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Live search results dropdown */
.iwv-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #e3eaf6;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 87, 255, 0.12), 0 4px 12px rgba(0,0,0,0.05);
    max-height: 420px;
    overflow-y: auto;
    z-index: 20;
    padding: 8px;
}
.iwv-search-results[hidden] { display: none; }

.iwv-search-result {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.12s;
}
.iwv-search-result:hover,
.iwv-search-result.active {
    background: var(--light);
}
.iwv-search-result-title {
    display: block;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 3px;
}
.iwv-search-result:hover .iwv-search-result-title {
    color: var(--blue);
}
.iwv-search-result-meta {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-h);
    font-weight: 600;
}
.iwv-search-result-cat {
    color: var(--blue);
    margin-right: 6px;
}

.iwv-search-empty,
.iwv-search-error {
    padding: 16px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
.iwv-search-empty strong {
    color: var(--ink);
    font-weight: 700;
}

.iwv-search-footer {
    margin-top: 4px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f9;
    text-align: center;
}
.iwv-search-footer a {
    font-family: var(--font-h);
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.iwv-search-footer a:hover { text-decoration: underline; }

/* Hide the legacy submit button class */
.iwv-search-submit { display: none !important; }


/* ───────────────────────────────────────────────────────────
   2. RECENT POSTS
───────────────────────────────────────────────────────────*/
.iwv-widget-recent {
    list-style: none;
    margin: 0;
    padding: 0;
}
.iwv-widget-recent li {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0, 87, 255, 0.05);
}
.iwv-widget-recent li:first-child { padding-top: 0; }
.iwv-widget-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.iwv-widget-recent a {
    display: block;
    text-decoration: none;
    transition: opacity 0.15s;
}
.iwv-widget-recent-title {
    display: block;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    margin-bottom: 4px;
    transition: color 0.15s;
}
.iwv-widget-recent a:hover .iwv-widget-recent-title { color: var(--blue); }
.iwv-widget-recent-date {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-h);
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* ───────────────────────────────────────────────────────────
   3. READING PROGRESS
───────────────────────────────────────────────────────────*/
.iwv-reading-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.iwv-reading-percent {
    font-family: var(--font-h);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0057FF, #00C8FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--blue);
}
.iwv-reading-info {
    flex: 1;
    min-width: 0;
}
.iwv-reading-remaining {
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
}
.iwv-reading-remaining strong { color: var(--blue); }
.iwv-reading-total {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.3;
}
.iwv-reading-track {
    width: 100%;
    height: 6px;
    background: rgba(0,87,255,0.08);
    border-radius: 100px;
    overflow: hidden;
}
.iwv-reading-track span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 100px;
    transition: width 0.2s ease-out;
}


/* ───────────────────────────────────────────────────────────
   4. CATEGORIES
───────────────────────────────────────────────────────────*/
.iwv-widget-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}
.iwv-widget-cats li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 87, 255, 0.05);
}
.iwv-widget-cats li:last-child { border-bottom: none; }
.iwv-widget-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    text-decoration: none;
    transition: padding-left 0.15s;
}
.iwv-widget-cats a:hover { padding-left: 4px; }
.iwv-widget-cat-name {
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s;
}
.iwv-widget-cats a:hover .iwv-widget-cat-name { color: var(--blue); }
.iwv-widget-cat-count {
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    background: rgba(0,87,255,0.08);
    padding: 3px 9px;
    border-radius: 100px;
    min-width: 28px;
    text-align: center;
}


/* ───────────────────────────────────────────────────────────
   5. TAG CLOUD
───────────────────────────────────────────────────────────*/
.iwv-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.iwv-widget-tags a {
    display: inline-block;
    padding: 5px 11px;
    background: var(--light);
    border: 1px solid #eef2f9;
    border-radius: 100px;
    font-family: var(--font-h);
    font-size: 12px;
    font-weight: 600;
    color: var(--body);
    text-decoration: none;
    transition: all 0.15s;
}
.iwv-widget-tags a:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    transform: translateY(-1px);
}


/* ───────────────────────────────────────────────────────────
   6. NEWSLETTER
───────────────────────────────────────────────────────────*/
.iwv-widget-newsletter h3 {
    font-family: var(--font-h);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 6px;
}
.iwv-widget-newsletter p {
    font-size: 12.5px;
    color: var(--body);
    line-height: 1.55;
    margin: 0 0 14px;
}
.iwv-newsletter-form { position: relative; }
.iwv-newsletter-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--white);
    border: 1px solid #e3eaf6;
    border-radius: 8px;
    font-family: var(--font-b);
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.iwv-newsletter-input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,87,255,0.1);
}
.iwv-newsletter-btn {
    width: 100%;
    padding: 11px 18px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.iwv-newsletter-btn:hover {
    background: var(--blue);
    transform: translateY(-1px);
}
.iwv-newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.iwv-newsletter-message {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-h);
    font-weight: 600;
    line-height: 1.4;
}
.iwv-newsletter-message.success {
    background: rgba(184,255,60,0.18);
    border: 1px solid rgba(184,255,60,0.4);
    color: #2a5e00;
}
.iwv-newsletter-message.error {
    background: rgba(255, 60, 60, 0.08);
    border: 1px solid rgba(255, 60, 60, 0.25);
    color: #c01818;
}


/* ───────────────────────────────────────────────────────────
   7. HOSTING CTA — the ONLY styled card in the sidebar
   Stands out as a dark gradient block with lime button
───────────────────────────────────────────────────────────*/
.iwv-widget-cta {
    background: linear-gradient(135deg, var(--ink), #1a2140);
    color: var(--white);
    padding: 24px 22px;
    margin-top: 8px;
    border-radius: var(--rL);
    border: none;
    border-bottom: none !important;
    position: relative;
    overflow: hidden;
}
.iwv-widget-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 0% 0%, rgba(0,87,255,0.4) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(0,200,255,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.iwv-widget-cta > * { position: relative; z-index: 1; }
.iwv-widget-cta-tag {
    font-family: var(--font-h);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}
.iwv-widget-cta h3 {
    font-family: var(--font-h);
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}
.iwv-widget-cta-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.iwv-widget-cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(244,247,255,0.85);
    line-height: 1.4;
    margin-bottom: 8px;
}
.iwv-widget-cta-features svg {
    color: var(--lime);
    flex-shrink: 0;
}
.iwv-widget-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: var(--lime);
    color: var(--ink);
    border-radius: 8px;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(184,255,60,0.22);
    box-sizing: border-box;
}
.iwv-widget-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,255,60,0.38);
}


/* ═════════════════════════════════════════════════════════════════
   ARTICLE TYPOGRAPHY — calm reading rhythm (kept from v2.1)
═════════════════════════════════════════════════════════════════ */
.iwv-post-content {
    font-size: 19px;
    line-height: 1.85;
    color: #2d3654;
}

.iwv-post-content .iwv-wrap-sm,
.iwv-post-content .iwv-wrap-xs,
.iwv-post-content .iwv-wrap {
    max-width: 100% !important;
    padding: 0 !important;
}
.iwv-post-content .iwv { color: inherit; }

.iwv-post-content p {
    margin: 0 0 1.5em;
    font-size: 19px;
    line-height: 1.85;
    color: #2d3654;
}

/* Lead paragraph + drop cap */
.iwv-post-content > .iwv > .iwv-wrap-sm:first-of-type p:first-of-type,
.iwv-post-content > p:first-of-type {
    font-size: 23px;
    line-height: 1.6;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 1.6em;
}
.iwv-post-content > .iwv > .iwv-wrap-sm:first-of-type p:first-of-type::first-letter,
.iwv-post-content > p:first-of-type::first-letter {
    font-family: var(--font-h);
    font-size: 72px;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    padding: 8px 14px 0 0;
    color: var(--blue);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Auto-numbered H2s */
.iwv-post-content h2 {
    font-family: var(--font-h);
    font-size: clamp(26px, 3.5vw, 34px) !important;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 2.8em 0 0.75em !important;
    scroll-margin-top: 100px;
    counter-increment: iwv-h2-counter;
    position: relative;
}
.iwv-post-content h2::before {
    content: counter(iwv-h2-counter, decimal-leading-zero);
    display: block;
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}
.iwv-post-content h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 3px;
    margin: 14px 0 0;
}

.iwv-post-content h3 {
    font-family: var(--font-h);
    font-size: clamp(20px, 2.4vw, 24px) !important;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 2em 0 0.7em !important;
    scroll-margin-top: 100px;
}
.iwv-post-content h4 {
    font-family: var(--font-h);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 1.6em 0 0.5em;
}

.iwv-post-content a:not(.iwv-btn):not(.iwv-widget-cta-btn) {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s, text-decoration-thickness 0.15s;
}
.iwv-post-content a:not(.iwv-btn):not(.iwv-widget-cta-btn):hover {
    color: #003ec2;
    text-decoration-thickness: 2px;
}

.iwv-post-content ul, .iwv-post-content ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.iwv-post-content li { margin-bottom: 0.7em; line-height: 1.78; }
.iwv-post-content ul li::marker { color: var(--blue); }
.iwv-post-content ol li::marker { color: var(--blue); font-weight: 700; }

.iwv-post-content blockquote {
    margin: 2em 0;
    padding: 1.2em 1.6em;
    border-left: 4px solid var(--blue);
    background: var(--pale);
    border-radius: 0 var(--r) var(--r) 0;
    font-size: 19px;
    color: var(--ink);
    font-style: italic;
    line-height: 1.7;
}
.iwv-post-content blockquote p:last-child { margin-bottom: 0; }

.iwv-post-content :not(pre) > code {
    background: #f5f8ff;
    border: 1px solid #e3eaf6;
    border-radius: 4px;
    padding: 2px 7px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.88em;
    color: var(--blue);
    font-weight: 500;
}

.iwv-post-content pre {
    background: var(--ink);
    color: rgba(244,247,255,0.9);
    border-radius: var(--rL);
    padding: 22px 26px;
    overflow-x: auto;
    margin: 1.8em 0;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.65;
}
.iwv-post-content pre code { background: none; border: none; color: inherit; padding: 0; font-size: inherit; }

.iwv-post-content strong { color: var(--ink); font-weight: 700; }
.iwv-post-content em { font-style: italic; }

/* Section divider (auto-injected by JS) */
.iwv-section-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 3em 0; padding: 0;
}
.iwv-section-divider::before, .iwv-section-divider::after {
    content: ''; flex: 1; max-width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, #d8e3f5, transparent);
}
.iwv-section-divider span {
    display: inline-block; width: 4px; height: 4px;
    background: var(--muted); border-radius: 50%; opacity: 0.35;
}

.iwv-post-content hr {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #dce6f5 40%, #dce6f5 60%, transparent);
    margin: 2.5em 0;
}

.iwv-post-content img { max-width: 100%; height: auto; border-radius: var(--rL); margin: 1.8em 0; }

.iwv-post-content .iwv-box { padding: 24px 28px; margin: 1.8em 0; }
.iwv-post-content .iwv-box h3, .iwv-post-content .iwv-box h4 { margin-top: 0 !important; }
.iwv-post-content .iwv-box h3::before, .iwv-post-content .iwv-box h3::after,
.iwv-post-content .iwv-box h4::before, .iwv-post-content .iwv-box h4::after { display: none; }

/* Key Takeaway box */
.iwv-post-content .iwv-takeaway {
    margin: 2em 0; padding: 24px 28px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 100%);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--rL) var(--rL) 0;
    position: relative;
}
.iwv-post-content .iwv-takeaway::before {
    content: 'Key Takeaway'; display: block;
    font-family: var(--font-h); font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
    margin-bottom: 10px;
}
.iwv-post-content .iwv-takeaway p { font-size: 17px; line-height: 1.65; color: var(--ink); margin: 0; }
.iwv-post-content .iwv-takeaway p:not(:last-child) { margin-bottom: 0.8em; }

/* Pull quote */
.iwv-post-content .iwv-pullquote {
    margin: 2.5em -8px;
    padding: 28px 8px;
    font-family: var(--font-h);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-align: center;
    border-top: 1px solid #d8e3f5;
    border-bottom: 1px solid #d8e3f5;
    position: relative;
}
.iwv-post-content .iwv-pullquote::before {
    content: '"';
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    background: var(--white); padding: 0 14px;
    font-size: 48px; color: var(--blue); line-height: 1;
    font-family: Georgia, serif;
}

.iwv-post-content .iwv-cta { margin: 2.5em 0 !important; }


/* ─────────────────────────────────────────────────────────────
   TAGS ROW
───────────────────────────────────────────────────────────────*/
.iwv-post-tags {
    margin-top: 3.5em;
    padding-top: 28px;
    border-top: 1px solid #eef2f9;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.iwv-post-tags-label {
    font-family: var(--font-h); font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
    margin-right: 6px;
}
.iwv-post-tags a {
    display: inline-block; background: var(--light); border: 1px solid #eef2f9;
    padding: 5px 12px; border-radius: 100px;
    font-family: var(--font-h); font-size: 12px; font-weight: 600;
    color: var(--body); text-decoration: none; transition: all 0.15s;
}
.iwv-post-tags a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }


/* ─────────────────────────────────────────────────────────────
   AUTHOR CARD (full version at bottom of article)
───────────────────────────────────────────────────────────────*/
.iwv-post-author-card {
    margin-top: 3.5em;
    padding: 32px;
    background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
    border: 1px solid #e1e9f5;
    border-radius: var(--rL);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    align-items: start;
}
.iwv-post-author-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 4px 16px rgba(0,87,255,0.08);
}
.iwv-post-author-label {
    font-family: var(--font-h); font-size: 10px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
    margin-bottom: 6px;
}
.iwv-post-author-fullname {
    font-family: var(--font-h); font-size: 19px; font-weight: 800;
    color: var(--ink); margin: 0 0 10px;
}
.iwv-post-author-card p {
    font-size: 15px; line-height: 1.7; color: var(--body); margin: 0 0 14px;
}
.iwv-post-author-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.iwv-post-author-link {
    font-family: var(--font-h); font-size: 12px; font-weight: 700;
    color: var(--blue); text-decoration: none;
    letter-spacing: 0.02em; transition: color 0.15s;
}
.iwv-post-author-link:hover { color: #003ec2; }


/* ─────────────────────────────────────────────────────────────
   RELATED POSTS
───────────────────────────────────────────────────────────────*/
.iwv-post-related {
    padding: 72px 0 48px;
    background: var(--pale);
    border-top: 1px solid #eef2f9;
}
.iwv-post-related-grid { margin-top: 36px; gap: 24px !important; }
.iwv-post-related-card {
    background: var(--white); border: 1px solid #eef2f9;
    border-radius: var(--rL); overflow: hidden;
    text-decoration: none; transition: all 0.2s;
    display: flex; flex-direction: column;
}
.iwv-post-related-card:hover {
    border-color: rgba(0,87,255,0.28);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,87,255,0.08);
}
.iwv-post-related-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.iwv-post-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.iwv-post-related-card:hover .iwv-post-related-img img { transform: scale(1.05); }
.iwv-post-related-body { padding: 22px 24px 24px; }
.iwv-post-related-cat {
    display: inline-block; font-family: var(--font-h); font-size: 10px;
    font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 10px;
}
.iwv-post-related-body h3 {
    font-family: var(--font-h); font-size: 17px; font-weight: 700;
    color: var(--ink); line-height: 1.35; margin: 0 0 14px;
}
.iwv-post-related-arrow {
    font-family: var(--font-h); font-size: 12px; font-weight: 700;
    color: var(--blue); letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────────────
   ARCHIVE HERO + GRID (unchanged)
───────────────────────────────────────────────────────────────*/
.iwv-archive-hero {
    background: var(--ink);
    padding: 88px 0 64px;
    position: relative; overflow: hidden; color: var(--white);
}
.iwv-archive-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(0,87,255,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 88% 55%, rgba(0,200,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.iwv-archive-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,87,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,87,255,0.022) 1px, transparent 1px);
    background-size: 64px 64px; pointer-events: none;
}
.iwv-archive-hero > * { position: relative; z-index: 1; }
.iwv-archive-hero-inner { max-width: 720px; }
.iwv-archive-hero-badge {
    display: inline-block; font-family: var(--font-h); font-size: 11px;
    font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--cyan); background: rgba(0,200,255,0.08);
    border: 1px solid rgba(0,200,255,0.2); padding: 6px 16px;
    border-radius: 100px; margin-bottom: 24px;
}
.iwv-archive-title {
    font-family: var(--font-h); font-size: clamp(34px, 5.5vw, 52px);
    font-weight: 800; color: var(--white); line-height: 1.12;
    letter-spacing: -0.025em; margin: 0 0 20px;
}
.iwv-archive-sub {
    font-size: clamp(15px, 2vw, 17px); color: rgba(244,247,255,0.65);
    line-height: 1.7; max-width: 620px;
}

.iwv-archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.iwv-archive-card {
    background: var(--white); border: 1px solid #eef2f9;
    border-radius: var(--rL); overflow: hidden;
    display: flex; flex-direction: column; transition: all 0.2s;
}
.iwv-archive-card:hover {
    border-color: rgba(0,87,255,0.28); transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,87,255,0.08);
}
.iwv-archive-card-img {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
    background: var(--light); display: block;
}
.iwv-archive-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.iwv-archive-card:hover .iwv-archive-card-img img { transform: scale(1.04); }
.iwv-archive-card-img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: rgba(0,87,255,0.2);
}
.iwv-archive-card-cat {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center;
    font-family: var(--font-h); font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--white);
    background: rgba(10,14,26,0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    padding: 5px 11px; border-radius: 100px;
}
.iwv-archive-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.iwv-archive-card-title {
    font-family: var(--font-h); font-size: 17px; font-weight: 800;
    color: var(--ink); line-height: 1.3; margin: 0 0 12px;
    letter-spacing: -0.005em;
}
.iwv-archive-card-title a { color: inherit; text-decoration: none; transition: color 0.15s; }
.iwv-archive-card-title a:hover { color: var(--blue); }
.iwv-archive-card-excerpt {
    font-size: 14px; color: var(--muted); line-height: 1.65;
    margin: 0 0 16px; flex: 1;
}
.iwv-archive-card-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: var(--muted); font-family: var(--font-h);
    font-weight: 600; letter-spacing: 0.02em;
}
.iwv-archive-card-dot { opacity: 0.4; }

.iwv-archive-pagination { margin-top: 48px; display: flex; justify-content: center; }
.iwv-archive-pagination .nav-links {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; justify-content: center;
}
.iwv-archive-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    background: var(--white); border: 1px solid #eef2f9;
    border-radius: var(--r);
    font-family: var(--font-h); font-size: 13px; font-weight: 700;
    color: var(--body); text-decoration: none; transition: all 0.15s;
}
.iwv-archive-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.iwv-archive-pagination .page-numbers.current {
    background: var(--ink); color: var(--white); border-color: var(--ink);
}
.iwv-archive-pagination .page-numbers.dots {
    background: transparent; border: none; color: var(--muted);
}
.iwv-archive-empty { text-align: center; padding: 72px 20px; }
.iwv-archive-empty h2 { font-family: var(--font-h); font-size: 24px; color: var(--ink); margin: 0 0 10px; }
.iwv-archive-empty p { color: var(--muted); font-size: 15px; max-width: 420px; margin: 0 auto 20px; }


/* Comments */
.iwv-post-comments { padding: 56px 0 64px; }
.iwv-post-comments .comments-title {
    font-family: var(--font-h); font-size: 22px; font-weight: 800;
    color: var(--ink); margin-bottom: 24px;
}

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); height: 1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px;
}


/* ═════════════════════════════════════════════════════════════════
   v3.0 — "MORE FROM THE BLOG" FOOTER GRID
   Premium card grid shown at bottom of single posts.
   First card styled as featured (large, with excerpt).
═════════════════════════════════════════════════════════════════ */
.iwv-post-more {
    padding: 80px 0 96px;
    background: linear-gradient(180deg, #f8faff 0%, var(--pale) 100%);
    border-top: 1px solid #eef2f9;
}
.iwv-post-more-empty {
    text-align: center;
    padding: 96px 0;
}
.iwv-post-more-empty-title {
    font-family: var(--font-h);
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--ink);
    margin: 12px 0 12px;
}
.iwv-post-more-empty p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 24px;
}

.iwv-post-more-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.iwv-post-more-tag {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}
.iwv-post-more-title {
    font-family: var(--font-h);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}
.iwv-post-more-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: gap 0.15s, color 0.15s;
    padding-bottom: 6px;
    border-bottom: 1px solid transparent;
}
.iwv-post-more-all:hover {
    color: #003ec2;
    gap: 10px;
    border-bottom-color: var(--blue);
}

/* Grid: featured spans 2 columns on desktop, others in 3-col */
.iwv-post-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.iwv-post-more-card {
    margin: 0;
    background: var(--white);
    border: 1px solid #eef2f9;
    border-radius: var(--rL);
    overflow: hidden;
    transition: all 0.2s;
}
.iwv-post-more-card:hover {
    border-color: rgba(0,87,255,0.28);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,87,255,0.08);
}

/* Featured card spans 3 columns (full width) and is much bigger */
.iwv-post-more-card.is-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
}
.iwv-post-more-card.is-featured .iwv-post-more-card-link {
    display: contents;
}

.iwv-post-more-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}
.iwv-post-more-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light);
    display: block;
}
.iwv-post-more-card.is-featured .iwv-post-more-card-img {
    aspect-ratio: auto;
    min-height: 100%;
}
.iwv-post-more-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.iwv-post-more-card:hover .iwv-post-more-card-img img {
    transform: scale(1.04);
}
.iwv-post-more-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,87,255,0.18);
    background: linear-gradient(135deg, #f0f5ff, #e8f0ff);
}
.iwv-post-more-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-h);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(10,14,26,0.9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 5px 11px;
    border-radius: 100px;
}

.iwv-post-more-card-body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.iwv-post-more-card.is-featured .iwv-post-more-card-body {
    padding: 36px 40px;
}
.iwv-post-more-card-title {
    font-family: var(--font-h);
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 12px;
    letter-spacing: -0.005em;
    transition: color 0.15s;
}
.iwv-post-more-card.is-featured .iwv-post-more-card-title {
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.2;
    margin-bottom: 16px;
}
.iwv-post-more-card:hover .iwv-post-more-card-title { color: var(--blue); }
.iwv-post-more-card-excerpt {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 18px;
}
.iwv-post-more-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-h);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: auto;
}
.iwv-post-more-card-dot { opacity: 0.4; }


/* ═════════════════════════════════════════════════════════════════
   v3.0 — ARCHIVE PAGES (blog index, category, tag, author, search)
═════════════════════════════════════════════════════════════════ */

.iwv-archive-layout { padding-bottom: 100px; }

/* Hero — author-aware variant */
.iwv-archive-hero-author {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    align-items: center;
}
.iwv-archive-author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(0,200,255,0.3);
    box-shadow: 0 8px 24px rgba(0,87,255,0.3);
}
.iwv-archive-meta {
    margin-top: 18px;
    display: inline-block;
    font-family: var(--font-h);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--cyan);
    background: rgba(0,200,255,0.08);
    border: 1px solid rgba(0,200,255,0.2);
    padding: 6px 14px;
    border-radius: 100px;
}

/* FEATURED post card on archive — full width, large hero */
.iwv-archive-featured {
    margin-bottom: 56px;
    background: var(--white);
    border: 1px solid #eef2f9;
    border-radius: var(--rXL);
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}
.iwv-archive-featured:hover {
    border-color: rgba(0,87,255,0.28);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,87,255,0.1);
}
.iwv-archive-featured-link {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    text-decoration: none;
    min-height: 320px;
}
.iwv-archive-featured-img {
    position: relative;
    overflow: hidden;
    background: var(--light);
}
.iwv-archive-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.iwv-archive-featured:hover .iwv-archive-featured-img img { transform: scale(1.04); }
.iwv-archive-featured-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,87,255,0.18);
    background: linear-gradient(135deg, #f0f5ff, #e8f0ff);
    min-height: 320px;
}
.iwv-archive-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-h);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--lime);
    padding: 6px 12px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(184,255,60,0.4);
}
.iwv-archive-featured-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.iwv-archive-featured-cat {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.iwv-archive-featured-title {
    font-family: var(--font-h);
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    transition: color 0.15s;
}
.iwv-archive-featured:hover .iwv-archive-featured-title { color: var(--blue); }
.iwv-archive-featured-excerpt {
    font-size: 16px;
    color: var(--body);
    line-height: 1.65;
    margin: 0 0 22px;
}
.iwv-archive-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-h);
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-wrap: wrap;
}
.iwv-archive-featured-meta-dot { opacity: 0.4; }
.iwv-archive-featured-arrow {
    margin-left: auto;
    color: var(--blue);
    font-weight: 700;
}

/* Divider between featured and grid */
.iwv-archive-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 56px 0 32px;
}
.iwv-archive-divider::before,
.iwv-archive-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dce6f5, transparent);
}
.iwv-archive-divider-label {
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Override existing archive grid to 2 cols within sidebar layout */
.iwv-archive-main .iwv-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Empty state */
.iwv-archive-empty {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    border: 1px solid #eef2f9;
    border-radius: var(--rL);
}
.iwv-archive-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,87,255,0.08);
}
.iwv-archive-empty-title {
    font-family: var(--font-h);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.iwv-archive-empty-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 460px;
}
.iwv-archive-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═════════════════════════════════════════════════════════════════
   v3.0 — 404 PAGE
═════════════════════════════════════════════════════════════════ */
.iwv-404-hero {
    background: var(--ink);
    padding: 96px 0 88px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}
.iwv-404-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(0,87,255,0.25) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 88% 55%, rgba(0,200,255,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 35% 30% at 12% 70%, rgba(0,87,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.iwv-404-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,87,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,87,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
.iwv-404-hero > * { position: relative; z-index: 1; }

.iwv-404-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.iwv-404-code {
    font-family: var(--font-h);
    font-size: clamp(80px, 14vw, 140px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}
.iwv-404-title {
    font-family: var(--font-h);
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}
.iwv-404-sub {
    font-size: clamp(15px, 1.8vw, 17px);
    color: rgba(244,247,255,0.65);
    line-height: 1.65;
    margin: 0 auto 36px;
    max-width: 560px;
}

/* 404 large search */
.iwv-404-search {
    max-width: 580px;
    margin: 0 auto 32px;
    position: relative;
}
.iwv-404-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 100px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    padding: 6px 6px 6px 0;
}
.iwv-404-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    z-index: 2;
}
.iwv-404-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px 14px 56px;
    font-family: var(--font-b);
    font-size: 15px;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
}
.iwv-404-search input[type="search"]:focus { outline: none; }
.iwv-404-search input[type="search"]::placeholder { color: var(--muted); }

.iwv-404-search-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.iwv-404-search-go:hover {
    background: var(--blue);
    transform: translateX(1px);
}

/* 404 search spinner positioning override */
.iwv-404-search .iwv-search-spinner {
    right: 110px;
}

/* 404 search dropdown */
.iwv-404-search .iwv-search-results {
    text-align: left;
    color: var(--ink);
}

.iwv-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 404 recent posts section */
.iwv-404-grid-section {
    padding: 72px 0 96px;
    background: var(--white);
}


/* ═════════════════════════════════════════════════════════════════
   v3.0 — BUTTON VARIANTS (used in empty states + 404)
═════════════════════════════════════════════════════════════════ */
.iwv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}
.iwv-btn-lime {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(184,255,60,0.22);
}
.iwv-btn-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,255,60,0.38);
}
.iwv-btn-outline-dark {
    background: transparent;
    color: var(--ink);
    border-color: rgba(10,14,26,0.18);
}
.iwv-btn-outline-dark:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.iwv-btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
}
.iwv-btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────*/
@media (max-width: 1023px) {
    .iwv-post-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .iwv-post-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
    }
    .iwv-post-article {
        max-width: 760px;
        margin: 0 auto;
        width: 100%;
    }
    .iwv-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .iwv-post-related-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 720px) {
    .iwv-post-hero { padding: 48px 0 64px; }
    .iwv-post-title { font-size: 28px !important; }
    .iwv-post-hero-meta { gap: 10px; }
    .iwv-post-hero-meta-dot { display: none; }
    .iwv-post-layout { padding: 36px 0 64px; }
    .iwv-post-content { font-size: 17px; }
    .iwv-post-content p { font-size: 17px; }
    .iwv-post-content > .iwv > .iwv-wrap-sm:first-of-type p:first-of-type,
    .iwv-post-content > p:first-of-type { font-size: 19px; }
    .iwv-post-content > .iwv > .iwv-wrap-sm:first-of-type p:first-of-type::first-letter,
    .iwv-post-content > p:first-of-type::first-letter {
        font-size: 56px; padding: 6px 10px 0 0;
    }
    .iwv-post-content h2 { font-size: 24px !important; margin-top: 2.2em !important; }
    .iwv-post-content h3 { font-size: 19px !important; }

    .iwv-post-author-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 24px;
    }
    .iwv-post-author-avatar { margin: 0 auto; }
    .iwv-archive-hero { padding: 60px 0 44px; }
    .iwv-archive-grid { grid-template-columns: 1fr; gap: 18px; }
    .iwv-post-related-grid { grid-template-columns: 1fr !important; }
    .iwv-post-related { padding: 52px 0 36px; }
    .iwv-post-content .iwv-pullquote { margin: 2em 0; font-size: 19px; }
}


/* ═════════════════════════════════════════════════════════════════
   v3.0 — RESPONSIVE for new components
═════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .iwv-post-more { padding: 64px 0 72px; }
    .iwv-post-more-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    .iwv-post-more-card.is-featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    .iwv-post-more-card.is-featured .iwv-post-more-card-img {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }
    .iwv-post-more-card.is-featured .iwv-post-more-card-body {
        padding: 28px 30px;
    }

    /* Archive featured stacks on tablet */
    .iwv-archive-featured-link {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .iwv-archive-featured-img {
        aspect-ratio: 16 / 9;
    }
    .iwv-archive-featured-body {
        padding: 32px;
    }
    .iwv-archive-main .iwv-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Author hero stacks */
    .iwv-archive-hero-author {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .iwv-archive-author-avatar {
        margin: 0 auto;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 720px) {
    /* More-from-blog footer grid */
    .iwv-post-more {
        padding: 52px 0 64px;
    }
    .iwv-post-more-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }
    .iwv-post-more-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .iwv-post-more-card.is-featured .iwv-post-more-card-body {
        padding: 22px 24px;
    }

    /* Archive featured */
    .iwv-archive-featured {
        margin-bottom: 36px;
    }
    .iwv-archive-featured-body {
        padding: 24px;
    }
    .iwv-archive-featured-meta-dot { display: none; }
    .iwv-archive-featured-arrow {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

    /* Archive grid */
    .iwv-archive-main .iwv-archive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .iwv-archive-divider {
        margin: 36px 0 24px;
    }

    /* 404 */
    .iwv-404-hero {
        padding: 64px 0 64px;
    }
    .iwv-404-search-wrap {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 10px;
        padding: 0;
        position: relative;
    }
    .iwv-404-search input[type="search"] {
        background: var(--white);
        border-radius: 100px;
        padding: 14px 20px 14px 52px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        width: 100%;
        box-sizing: border-box;
    }
    .iwv-404-search-icon {
        position: absolute;
        left: 18px;
        top: 22px;
        transform: none;
    }
    .iwv-404-search-go {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .iwv-404-search .iwv-search-spinner {
        right: 18px;
        top: 22px;
        transform: none;
    }
    .iwv-404-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .iwv-404-actions .iwv-btn { width: 100%; }

    /* Empty state on small screens */
    .iwv-archive-empty { padding: 60px 16px 48px; }
    .iwv-archive-empty-actions { flex-direction: column; max-width: 280px; margin: 0 auto; }
    .iwv-archive-empty-actions .iwv-btn { width: 100%; }
}
