/* =========================================================
   Aganta Foundry — Blog CSS (Hugo)
   Tailwind parity + matched design system
   ========================================================= */

/* -------------------------
   Root tokens (shared)
   ------------------------- */
:root {
    --bg-dark: #0a0a0a;
    --panel: #141414;
    --aganta-white: #ffffff;
    --muted: #9ca3af;
    --neon-green: #ffffff;
    --aganta-purple: #b700ff;
    --aganta-gradient: linear-gradient(135deg, #b700ff, #ff00d4, #7c3aed);
}

/* -------------------------
   Base
   ------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.blog {
    background-color: var(--bg-dark);
    color: var(--aganta-white);
    margin: 0;
    font-family:
        "Bricolage Grotesque",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

/* -------------------------
   Layout
   ------------------------- */
.blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* -------------------------
   Typography
   ------------------------- */
.blog h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    margin-bottom: 2.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.blog h2 {
    margin-top: 4.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.blog h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.blog p {
    margin-bottom: 1.8rem;
    line-height: 1.75;
    color: var(--muted);
}

/* -------------------------
   Links
   ------------------------- */
.blog a {
    color: #ffffff;
    text-decoration: none;
    background-image: var(--aganta-gradient);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.blog a:hover {
    background-size: 100% 2px;
    color: #ffffff;
}

/* -------------------------
   Lists
   ------------------------- */
.blog ul,
.blog ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: var(--muted);
}

.blog li {
    margin-bottom: 0.75rem;
}

/* -------------------------
   Code blocks
   ------------------------- */
.blog pre {
    background-color: var(--panel);
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-soft);
}

/* -------------------------
   HR (Dividers)
   ------------------------- */
.blog hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--border-soft) 0%, rgba(247, 246, 243, 0.15) 50%, var(--border-soft) 100%);
    margin: 4rem 0;
}

.blog code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* -------------------------
   Blog list
   ------------------------- */
.post-list {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.post-list li {
    margin-bottom: 1.5rem;
}

.post-list a {
    display: block;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--panel);
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.post-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   NAV (Tailwind → CSS parity)
   ========================================================= */

.blog .header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog .logo-link {
    display: inline-block;
    flex-shrink: 0;
}

.blog .logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
    opacity: 0.9;
}

.blog .nav {
    display: none;
    gap: 2rem;
    align-items: center;
    font-size: 0.875rem;
}

.blog .nav a {
    color: #d1d5db;
}

.blog .nav a:hover {
    color: #ffffff;
}

/* CTA */
.blog .cta {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    border: 1px solid #4b5563;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.blog .cta:hover {
    transform: translateY(-2px);
    background: var(--aganta-gradient);
    border-color: transparent;
}

/* Desktop nav */
@media (min-width: 768px) {
    .blog .nav {
        display: flex;
    }
}

/* =========================================================
   FOOTER (Tailwind → CSS parity)
   ========================================================= */

.blog .site-footer {
    margin-top: 6rem;
}

/* Top */
.blog .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog .footer-brand {
    max-width: 360px;
}

.blog .footer-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.blog .footer-tagline {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.blog .footer-email {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.blog .footer-email a {
    color: #ffffff;
}

/* Links */
.blog .footer-links {
    display: flex;
    gap: 3rem;
}

.blog .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog .footer-heading {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog .footer-column li {
    margin-bottom: 0.5rem;
}

.blog .footer-column a {
    font-size: 0.9rem;
    color: var(--muted);
}

.blog .footer-column a:hover {
    text-decoration: underline;
}

/* Desktop footer */
@media (min-width: 768px) {
    .blog .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Bottom */
.blog .footer-bottom {
    border-top: 1px solid #111827;
    margin-top: 2rem;
}

.blog .footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width: 768px) {
    .blog-wrapper {
        padding: 3rem 1.25rem;
    }
}

/* =========================================================
   Blog Cards (Image + Title + Description)
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background-color: var(--panel);
    border-radius: 1rem;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

/*.blog-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #ffffff;
}*/

.blog-card-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

/* =========================================================
   FEATURED EDITORIAL LAYOUT
   ========================================================= */

.blog-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Main featured */
.featured-main {
    display: block;
}

.featured-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-text {
    margin-top: 1.25rem;
    max-width: 56ch;
}

/* Side column */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-card {
    background-color: var(--panel);
    border-radius: 1rem;
    overflow: hidden;
}

.featured-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card-content {
    padding: 1rem 1.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Articles header
   ========================================================= */

.blog-header {
    margin-bottom: 3rem;
    max-width: 48ch;
    padding: 0 1.25rem;
    /* mobile safety */
}

.blog-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3rem);
    line-height: 1.1;
}

.blog-intro {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--aganta-white);
}

/* =========================================================
   Article width + spacing (FIXED)
   ========================================================= */

.blog-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem;
    /* THIS fixes mobile edge-to-edge */
}

/* =========================================================
   Full-width images (desktop editorial)
   ========================================================= */

.blog-articleimage .full-width {
    max-width: 1200px;
    margin-left: calc(50% - 600px);
    margin-right: calc(50% - 600px);
}

/* =========================================================
   Image handling
   ========================================================= */

.blog-article img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image size utilities */
.img-sm {
    max-width: 360px;
}

.img-md {
    max-width: 500px;
}

.img-lg {
    max-width: 760px;
}

.img-xl {
    max-width: 1200px;
}

/* =========================================================
   Mobile overrides (CRITICAL)
   ========================================================= */

@media (max-width: 768px) {
    .blog-header {
        padding: 0 1.25rem;
    }

    .blog-article {
        padding: 0 1.25rem;
    }

    /* Disable full-bleed on mobile */
    .blog-articleimage .full-width {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/*table*/

.blog-article table {
    width: 100%;
    max-width: 760px;
    margin: 2.5rem auto;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Header */
.blog-article thead th {
    text-align: left;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Body cells */
.blog-article tbody td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Row separation */
.blog-article tbody tr:last-child td {
    border-bottom: none;
}

/* Optional: subtle row hover */
.blog-article tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.blog-article th:not(:last-child),
.blog-article td:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/*Text color override*/
.blog strong,
.blog em {
    color: var(--aganta-white);
}

.blog .blog-article>p:first-of-type {
    color: var(--aganta-white);
}

/* =========================================================
   Post eyebrow + title styling (FIXED & CLEAN)
   ========================================================= */

/* Eyebrow (Design Systems) → GREEN */
.blog .post-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aganta-purple);
}

/* Post titles */
.blog .post-title {
    color: #ffffff;
}

/* Base link styling */
.blog a {
    color: #ffffff;
    text-decoration: none;
}

/* Title underline system */
.blog .post-title {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.2s ease;
}

/* Hover triggers underline on title */
.blog a:hover .post-title {
    background-size: 100% 2px;
}

/* =========================================================
   Related Articles (Scoped)
   ========================================================= */

/* Divider line */
.related-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4rem 0 2.5rem;
}

/* Section heading */
.related-heading {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Grid (keeps existing layout if already defined) */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* Card */
.related-card {
    background: transparent;
}

/* Smaller thumbnail */
.related-image {
    aspect-ratio: 16 / 9;
    max-height: 120px;
    overflow: hidden;
    border-radius: 0.5rem;
}

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

/* Content tightening */
.related-content h3 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-top: 0.5rem;
}

.related-content p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}

/*highlight*/
.blog mark {
    background: rgba(156, 255, 0, 0.25);
    /* neon green glow */
    color: var(--aganta-white);
    padding: 0.05em 0.2em;
    border-radius: 0.2em;
}

/* ===============================
   MOBILE SAFETY FIX (FINAL)
   =============================== */

@media (max-width: 768px) {

    .blog-article,
    .blog-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .blog-articleimage .full-width {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* ===============================
   FOOTER COLOR OVERRIDE (DEEP BLACK)
   =============================== */

.blog .site-footer {
    background-color: #0b0b0b;
}

.blog .footer-bottom {
    border-top: 1px solid #111;
}

/* =========================================================
   Table of Contents (Floating Sidebar)
   ========================================================= */

.blog-toc {
    display: none;
}

/* Only show on large screens where there is space */
/* Only show on large screens where there is space */
/* Only show on large screens where there is space */
@media (min-width: 1200px) {
    .blog-content-wrapper {
        position: relative;
        width: 100%;
    }

    .blog-toc {
        display: block;
        position: absolute;
        top: 0;
        left: calc(25vw - 320px);
        /* Center in the left gutter */
        right: auto;
        margin-left: 0;
        width: 260px;
        height: 100%;
        pointer-events: none;
        z-index: 10;
        padding-left: 0;
    }

    .blog-toc * {
        pointer-events: auto;
    }

    .toc-sticky {
        position: sticky;
        top: 6rem;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;

        /* Rounded border container */
        background: rgba(20, 20, 20, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        padding: 1.5rem;
        backdrop-filter: blur(8px);
    }
}

/* Typography & Reset */
.toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aganta-white);
    margin-bottom: 1rem;
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#TableOfContents {
    font-size: 0.85rem;
}

#TableOfContents ul {
    list-style: none;
    /* Reset distinct style */
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
    /* Initialize counter */
}

#TableOfContents ul li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    counter-increment: toc-counter;
    /* Increment counter */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#TableOfContents ul li>a {
    flex: 1;
}

/* Numbering for top-level items */
#TableOfContents>ul>li::before {
    content: counter(toc-counter) ". ";
    color: #ffffff;
    font-weight: 700;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Nested lists (no numbers, just indent) */
#TableOfContents ul ul {
    flex-basis: 100%;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#TableOfContents ul ul li::before {
    content: none;
}

/* Link styling */
.blog-toc a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.blog-toc a:hover {
    color: var(--aganta-white);
    transform: translateX(4px);
}

/* Active State (Scroll Spy) */
.blog-toc a.active {
    color: #ffffff;
    font-weight: 700;
}

/* Optional: Bar indicator for active state */
.blog-toc li:has(> a.active) {
    position: relative;
}

.blog-toc li:has(> a.active)::after {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 4px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* CTA Styles */
.toc-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toc-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toc-cta-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Force specificity to override any generic a tag styles */
a.toc-cta-btn {
    display: block;
    padding: 0.65rem 1rem;
    background: var(--aganta-purple);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    text-align: center;
    width: 100%;
    text-decoration: none;
    background-image: none;
    /* override gradient links */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.toc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 0, 255, 0.25);
    background-size: 0;
    color: #ffffff;
}

/* Increase image size without increasing text width */
@media (min-width: 1024px) {
    .blog-article img {
        width: 130%;
        max-width: 900px;
        /* Slight constraint to prevent massive images */
        margin-left: -7.5%;
        /* Center the overflow */
    }
}
/* =========================================================
   2026 Brand Refresh Override
   ========================================================= */
/* -------------------------
   Local @font-face: Bricolage Grotesque
   ------------------------- */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/Bricolage_Grotesque/static/BricolageGrotesque-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Fallback";
    src: local("Arial");
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
    size-adjust: 103%;
}

:root {
    --bg-dark: #1c1c1b;
    --panel: #252524;
    --panel-soft: #2d2d2c;
    --aganta-white: #f7f6f3;
    --stalactite: #f7f6f3;
    --muted: rgba(247, 246, 243, 0.72);
    --muted-strong: rgba(247, 246, 243, 0.88);
    --border-soft: rgba(247, 246, 243, 0.1);
    --exuberant-orange: #f05a28;
    --electric-blue: #0063b1;
    --ease-premium: cubic-bezier(0.19, 1, 0.22, 1);
}

html,
body.blog {
    background: var(--bg-dark);
}

body.blog {
    color: var(--aganta-white);
    font-family:
        "Bricolage Grotesque",
        "Bricolage Fallback",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blog h1,
.blog h2,
.blog h3,
.blog h4,
.blog h5,
.blog h6 {
    color: var(--aganta-white);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog p,
.blog li,
.blog blockquote,
.blog .footer-tagline,
.blog .footer-email,
.blog .footer-column a,
.blog .footer-bottom-inner,
.blog .toc-cta-text,
.blog-card-description,
.related-content p {
    color: var(--muted-strong);
}

.blog a {
    color: var(--aganta-white);
    background-image: linear-gradient(90deg, var(--exuberant-orange), var(--electric-blue));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition:
        color 0.4s var(--ease-premium),
        background-size 0.4s var(--ease-premium);
}

.blog a:hover {
    color: var(--aganta-white);
    background-size: 100% 2px;
}

.blog .header,
.blog .footer-top,
.blog .footer-bottom-inner,
.blog-wrapper,
.blog-content-wrapper {
    max-width: 1200px;
}

.blog .header {
    gap: 1.25rem;
}

.blog .nav a {
    color: var(--muted);
}

.blog .nav a:hover,
.blog .footer-column a:hover,
.blog .footer-email a,
.blog .post-eyebrow {
    color: var(--exuberant-orange);
}

.blog .cta,
a.toc-cta-btn {
    background: var(--exuberant-orange);
    color: #111111;
    border: 1px solid var(--exuberant-orange);
    border-radius: 0.5rem;
    box-shadow: none;
    background-image: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    transition:
        transform 0.4s var(--ease-premium),
        background-color 0.4s var(--ease-premium),
        border-color 0.4s var(--ease-premium),
        color 0.4s var(--ease-premium),
        box-shadow 0.4s var(--ease-premium);
}

.blog .cta {
    padding: 0.7rem 1.15rem;
    font-size: 0.75rem;
}

a.toc-cta-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

.blog .cta:hover,
a.toc-cta-btn:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--exuberant-orange);
    border-color: var(--exuberant-orange);
    box-shadow: 0 10px 30px rgba(240, 90, 40, 0.25);
    background-size: 0;
}

.post-list a,
.blog-card,
.featured-card,
.blog pre,
.blog-article table,
.blog-toc .toc-sticky {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-list a,
.blog-card,
.featured-card,
.related-image img,
.featured-image img,
.blog-card-image img {
    transition:
        transform 0.4s var(--ease-premium),
        box-shadow 0.4s var(--ease-premium),
        border-color 0.4s var(--ease-premium);
}

.post-list a:hover,
.blog-card:hover,
.featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 90, 40, 0.32);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.blog .footer-bottom,
.related-divider,
.toc-cta {
    border-color: var(--border-soft);
}

.blog .footer-bottom {
    border-top: 1px solid var(--border-soft);
}

.blog .blog-intro,
.blog .blog-article > p:first-of-type,
.blog strong,
.blog em,
.blog .post-title,
.blog .footer-heading,
.blog .footer-title,
.blog .related-heading,
.blog .toc-title,
.blog .toc-sticky a.active,
.blog h1,
.blog h2,
.blog h3,
.blog h4,
.blog h5,
.blog h6 {
    color: var(--aganta-white);
}

.blog .post-eyebrow {
    letter-spacing: 0.2em;
}

.blog .blog-article tbody tr:hover {
    background: rgba(240, 90, 40, 0.05);
}

.blog .blog-article thead th,
.blog .blog-article tbody td,
.blog .blog-article th:not(:last-child),
.blog .blog-article td:not(:last-child) {
    border-color: var(--border-soft);
}

.blog .blog-article thead th {
    color: var(--aganta-white);
}

.blog mark {
    background: rgba(240, 90, 40, 0.22);
    color: var(--aganta-white);
}

.blog-toc li:has(> a.active)::after {
    background-color: var(--exuberant-orange);
}

.blog ::selection {
    background: rgba(240, 90, 40, 0.28);
    color: var(--aganta-white);
}

@media (max-width: 768px) {
    .blog .footer-bottom-inner {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Keep single-post content centered */
.blog-content-wrapper {
    margin: 0 auto;
}

/* Push TOC into the left gutter on large screens */
@media (min-width: 1200px) {
    .blog-toc {
        left: calc(50% - 760px);
    }
}

/* Remove Hugo-only link underline animation */
.blog a,
.blog .post-title,
.blog a:hover,
.blog a:hover .post-title {
    background-image: none;
    background-size: 0;
}

/* Consistent text hierarchy across shared nav/footer and blog UI */
.blog {
    color: var(--aganta-white);
}

.blog p,
.blog li,
.blog blockquote,
.blog .footer-tagline,
.blog .footer-email,
.blog .footer-column a,
.blog .footer-bottom-inner,
.blog .toc-cta-text,
.blog-card-description,
.related-content p,
.blog nav a,
#mobile-nav a {
    color: var(--muted);
}

.blog h1,
.blog h2,
.blog h3,
.blog h4,
.blog h5,
.blog h6,
.blog .post-title,
.blog .footer-title,
.blog .footer-heading,
.blog .related-heading,
.blog .toc-title,
.blog .blog-intro,
.blog strong,
.blog em,
.blog .nav a:hover,
#mobile-nav a:hover,
.blog .nav a[aria-current="page"] {
    color: var(--aganta-white);
}

.blog .cta,
#mobile-nav .cta,
a.toc-cta-btn,
.blog header .bg-exuberant-orange {
    color: var(--aganta-white) !important;
}

.blog .footer-email a,
.blog .post-eyebrow,
.blog .footer-column a:hover {
    color: var(--exuberant-orange);
}

/* Match main site header text treatment exactly */
.blog header nav a,
.blog #mobile-nav a,
.blog header button {
    color: var(--muted) !important;
}

.blog header nav a:hover,
.blog #mobile-nav a:hover,
.blog header nav a:focus-visible,
.blog #mobile-nav a:focus-visible {
    color: var(--aganta-white) !important;
}

.blog header a[href="/index.html#contact"] {
    color: var(--aganta-white) !important;
}


/* Restore Hugo content list spacing and markers after shared CSS reset */
.blog .blog-article ul,
.blog .blog-article ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.blog .blog-article ul {
    list-style: disc;
}

.blog .blog-article ol {
    list-style: decimal;
}

.blog .blog-article li {
    margin-bottom: 0.8rem;
    padding-left: 0.15rem;
    line-height: 1.7;
}

.blog .blog-article ul li::marker,
.blog .blog-article ol li::marker {
    color: var(--exuberant-orange);
}

