/*
Theme Name: Seed Collaborative Theme
Description: A WordPress theme based on the Seed Collaborative website design.
Version: 1.2
Author: John
*/

/* Custom Styles */
::-webkit-scrollbar { display: none;}
.font-lato { font-family: 'Lato', sans-serif; }
.font-playfair { font-family: var(--seed-heading-font, 'Playfair Display', serif); }

/* Global heading font — applies everywhere unless overridden */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
}
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px 0;
    z-index: 1000;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: #1E3E57;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
    background-color: #FAF8F5;
    color: #C8A46C;
}
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.fade-in-welcome {
    animation: fadeInUp 1.2s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ────────────────────────────────────────────────────────────
   Blog / Article Content Styles
   Theme-aware via --blog-accent CSS variables
   Set once in Customizer → Blog Theme
   ──────────────────────────────────────────────────────────── */

/* ── Page-level accent overrides ──
   .seed-blog-page wraps all blog templates (single, archive, home).
   --blog-accent-* vars are set on it via wp_add_inline_style.
   These rules remap Tailwind's hardcoded ochre classes so the
   Customizer accent choice is reflected across all UI elements. ── */

/* Text color */
.seed-blog-page .text-warm-ochre {
    color: var(--blog-accent) !important;
}
/* Text hover */
.seed-blog-page .hover\:text-warm-ochre:hover {
    color: var(--blog-accent) !important;
}
/* Background hover */
.seed-blog-page .hover\:bg-warm-ochre:hover {
    background-color: var(--blog-accent) !important;
}
/* Border */
.seed-blog-page .border-warm-ochre {
    border-color: var(--blog-accent) !important;
}
.seed-blog-page .border-2.border-warm-ochre {
    border-color: var(--blog-accent) !important;
}
/* Focus border (newsletter input, etc.) */
.seed-blog-page .focus\:border-warm-ochre:focus {
    border-color: var(--blog-accent) !important;
}

/* Active filter pill — deep-blue bg becomes accent */
.seed-blog-page .bg-deep-blue.text-white {
    background-color: var(--blog-accent) !important;
}
.seed-blog-page .hover\:bg-deep-blue:hover {
    background-color: var(--blog-accent) !important;
}

/* CTA buttons: deep-blue bg with ochre hover */
.seed-blog-page .bg-deep-blue.hover\:bg-warm-ochre {
    background-color: var(--color-deep-blue, #1F2A36);
}
.seed-blog-page .bg-deep-blue.hover\:bg-warm-ochre:hover {
    background-color: var(--blog-accent) !important;
}

/* Share icons */
.seed-blog-page .bg-deep-blue.rounded-full:hover {
    background-color: var(--blog-accent) !important;
}

/* Pagination active page */
.seed-blog-page .seed-pagination .current {
    background-color: var(--blog-accent) !important;
    border-color: var(--blog-accent) !important;
}

/* ── Base prose ── 
   Non-accent palette vars always derive from the global palette.
   Heading / surface / border / code-bg come from Blog Theme (Customizer → inline style on .seed-blog-page). ── */
.seed-blog-content {
    --blog-body: var(--color-text-secondary, #374151);
    --blog-muted: var(--color-text-muted, #6B7280);
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--blog-body);
}
.seed-blog-content > * + * {
    margin-top: 1.5em;
}

/* ─────────────────────────────────────
   PARAGRAPH  (wp-block-paragraph)
   ───────────────────────────────────── */
.seed-blog-content p {
    margin-bottom: 1.25em;
    color: var(--blog-body);
}

/* Stretchy / large paragraph (has-large-font-size etc) */
.seed-blog-content p.has-large-font-size {
    font-size: 1.375rem;
    line-height: 1.75;
    color: var(--blog-heading);
    font-weight: 400;
}
.seed-blog-content p.has-x-large-font-size {
    font-size: 1.625rem;
    line-height: 1.65;
    color: var(--blog-heading);
    font-weight: 400;
}
.seed-blog-content p.has-medium-font-size {
    font-size: 1.25rem;
    line-height: 1.7;
}
/* Drop-cap */
.seed-blog-content .has-drop-cap:first-letter {
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
    font-size: 3.5em;
    float: left;
    line-height: 0.85;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--blog-accent);
    font-weight: 700;
}

/* ─────────────────────────────────────
   HEADING  (h1–h6)
   Each level is visually distinct
   ───────────────────────────────────── */
.seed-blog-content h1,
.seed-blog-content h2,
.seed-blog-content h3,
.seed-blog-content h4,
.seed-blog-content h5,
.seed-blog-content h6 {
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
    color: var(--blog-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
}
.seed-blog-content h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}
.seed-blog-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5em;
    border-bottom: 3px solid var(--blog-accent);
}
.seed-blog-content h3 {
    font-size: 1.375rem;
    padding-left: 0.75em;
    border-left: 4px solid var(--blog-accent);
}
.seed-blog-content h4 {
    font-size: 1.125rem;
    color: var(--blog-accent-text);
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.seed-blog-content h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Lato', sans-serif;
    color: var(--blog-muted);
}
.seed-blog-content h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blog-muted);
    font-family: 'Lato', sans-serif;
}

/* Numbered heading style — e.g. "1. Conduct a ..." */
.seed-blog-content h2 strong:first-child,
.seed-blog-content h3 strong:first-child {
    color: var(--blog-accent);
}

/* ─────────────────────────────────────
   LINKS
   ───────────────────────────────────── */
.seed-blog-content a {
    color: var(--blog-accent-text);
    text-decoration: underline;
    text-decoration-color: var(--blog-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.seed-blog-content a:hover {
    color: var(--blog-accent);
    text-decoration-color: var(--blog-accent);
}

/* ─────────────────────────────────────
   HIGHLIGHT / MARK
   Gutenberg "Highlight" inline format → <mark>
   ───────────────────────────────────── */
.seed-blog-content mark,
.seed-blog-content .has-inline-color {
    background: var(--blog-accent-light);
    color: var(--blog-accent-text);
    padding: 0.1em 0.4em;
    border-radius: 0.25em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
/* When Gutenberg sets a custom bg color, respect it but add padding */
.seed-blog-content mark[style*="background-color"] {
    padding: 0.1em 0.4em;
    border-radius: 0.25em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
/* Plain <mark> with no inline style — full accent treatment */
.seed-blog-content mark:not([style]) {
    background: var(--blog-accent-light);
    color: var(--blog-accent-text);
    border-bottom: 2px solid var(--blog-accent);
}

/* ─────────────────────────────────────
   INLINE FORMATS (Gutenberg format tools)
   ───────────────────────────────────── */

/* Strikethrough */
.seed-blog-content s,
.seed-blog-content del,
.seed-blog-content .has-text-decoration-line-through {
    color: var(--blog-muted);
    text-decoration: line-through;
    text-decoration-color: var(--blog-accent);
    text-decoration-thickness: 2px;
}

/* Subscript / Superscript */
.seed-blog-content sub,
.seed-blog-content sup {
    font-size: 0.75em;
    line-height: 1;
    position: relative;
}
.seed-blog-content sub {
    bottom: -0.25em;
}
.seed-blog-content sup {
    top: -0.5em;
}

/* Keyboard input — monospace in pill badge */
.seed-blog-content kbd {
    background: var(--blog-accent);
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.35em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid var(--blog-accent-hover);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Footnote references — small accent-colored superscript */
.seed-blog-content sup a,
.seed-blog-content .wp-footnote {
    color: var(--blog-accent);
    text-decoration: none;
    font-weight: 600;
}
.seed-blog-content sup a:hover {
    text-decoration: underline;
    text-decoration-color: var(--blog-accent);
}
.seed-blog-content .wp-footnotes {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 2px solid var(--blog-border);
    font-size: 0.95rem;
    line-height: 1.7;
}
.seed-blog-content .wp-footnotes::before {
    content: 'Footnotes';
    display: block;
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blog-heading);
    margin-bottom: 1em;
}
.seed-blog-content .wp-footnotes ol {
    margin-bottom: 0;
}
.seed-blog-content .wp-footnotes li {
    margin-bottom: 0.75em;
}

/* Language tag (e.g., code with lang attribute) */
.seed-blog-content code[class*="language-"],
.seed-blog-content .wp-block-code[class*="language-"] {
    /* Already styled by code block — this is for reference */
}

/* Math (rendered via MathML or similar) */
.seed-blog-content math {
    font-style: italic;
    color: var(--blog-accent-text);
}
.seed-blog-content .wp-block-code.language-math {
    background: var(--blog-code-bg);
    color: #F8F8F8;
    border-top-color: var(--blog-accent);
}

/* ─────────────────────────────────────
   LIST  (wp-block-list, ul, ol)
   Both styled with accent colors and proper visual hierarchy
   ───────────────────────────────────── */
.seed-blog-content ul,
.seed-blog-content ol {
    padding-left: 1.75em;
    margin-bottom: 1.25em;
}
.seed-blog-content ul { list-style-type: disc; }
.seed-blog-content ol { list-style-type: decimal; }
.seed-blog-content li {
    margin-bottom: 0.6em;
    padding-left: 0.35em;
    line-height: 1.75;
}
/* Unordered list bullets — accent filled discs */
.seed-blog-content ul li::marker {
    color: var(--blog-accent);
    font-weight: 700;
    font-size: 1.2em;
}
/* Ordered list numbers — large bold accent color */
.seed-blog-content ol li {
    padding-left: 0.35em;
}
.seed-blog-content ol li::marker {
    color: var(--blog-accent);
    font-weight: 800;
    font-size: 1.1em;
}

/* Nested lists — indent further with secondary accent color */
.seed-blog-content li > ul,
.seed-blog-content li > ol {
    margin-top: 0.5em;
    margin-bottom: 0;
    padding-left: 1.5em;
}
.seed-blog-content li > ul li::marker {
    color: var(--blog-accent-hover);
    opacity: 0.8;
}
.seed-blog-content li > ol li::marker {
    background: var(--blog-accent-hover);
    opacity: 0.75;
}

/* Alternative list styles — checkmark/arrow variants if set */
.seed-blog-content ol.wp-block-list.is-style-default li {
    /* Decimal numbers in accent pills (default above) */
}

/* Styled list inside a card-like box — full accent treatment */
.seed-blog-content .wp-block-list.has-background {
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-left: 6px solid var(--blog-accent);
    border-radius: 0 1rem 1rem 0;
    padding: 1.5em 2em 1.5em 2.75em;
    margin: 1.5em 0;
}
.seed-blog-content .wp-block-list.has-background li {
    margin-bottom: 0.7em;
}

/* ─────────────────────────────────────
   QUOTE  (wp-block-quote)
   Distinctive card with accent border + decorative mark
   ───────────────────────────────────── */
.seed-blog-content blockquote,
.seed-blog-content .wp-block-quote {
    border-left: 5px solid var(--blog-accent);
    background: var(--blog-surface);
    margin: 2em 0;
    padding: 1.75em 2em 1.75em 2.25em;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--blog-heading);
    line-height: 1.7;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.seed-blog-content blockquote::before,
.seed-blog-content .wp-block-quote::before {
    content: '\201C';
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--blog-accent);
    opacity: 0.25;
    position: absolute;
    top: 0.1em;
    left: 0.4em;
}
.seed-blog-content blockquote p:first-of-type,
.seed-blog-content .wp-block-quote p:first-of-type {
    margin-top: 0.5em;
}
.seed-blog-content blockquote p:last-child,
.seed-blog-content .wp-block-quote p:last-child {
    margin-bottom: 0;
}
.seed-blog-content blockquote cite,
.seed-blog-content .wp-block-quote cite {
    display: block;
    margin-top: 1em;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--blog-accent-text);
    font-weight: 700;
}
/* Large / stylized quote variant — centered with heavy borders */
.seed-blog-content .wp-block-quote.is-style-large,
.seed-blog-content .wp-block-quote.is-large {
    border-left: none;
    border-top: 4px solid var(--blog-accent);
    border-bottom: 4px solid var(--blog-accent);
    border-radius: 0;
    text-align: center;
    padding: 2.5em 3em;
    font-size: 1.4rem;
    background: var(--blog-surface);
    box-shadow: none;
}
.seed-blog-content .wp-block-quote.is-style-large::before,
.seed-blog-content .wp-block-quote.is-large::before {
    position: static;
    display: block;
    font-size: 3.5rem;
    margin-bottom: -0.3em;
    opacity: 0.3;
}
.seed-blog-content .wp-block-quote.is-style-large cite,
.seed-blog-content .wp-block-quote.is-large cite {
    text-align: center;
}

/* ─────────────────────────────────────
   PULLQUOTE  (wp-block-pullquote)
   Full-bleed accent centrepiece
   ───────────────────────────────────── */
.seed-blog-content .wp-block-pullquote {
    border: none;
    background: var(--blog-accent-light);
    border-left: 6px solid var(--blog-accent);
    border-right: 6px solid var(--blog-accent);
    margin: 3em -1em;
    padding: 2.5em 2em;
    text-align: center;
    border-radius: 1rem;
}
.seed-blog-content .wp-block-pullquote blockquote {
    border-left: none;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.seed-blog-content .wp-block-pullquote blockquote::before {
    content: none;
}
.seed-blog-content .wp-block-pullquote blockquote p {
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--blog-heading);
    margin-bottom: 0;
}
.seed-blog-content .wp-block-pullquote cite {
    display: inline-block;
    margin-top: 1.25em;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--blog-accent-text);
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    padding: 0.35em 1em;
    background: var(--blog-accent);
    color: #fff;
    border-radius: 9999px;
}

/* ─────────────────────────────────────
   CODE  (wp-block-code)
   Inline: accent-tinted pill
   Block: dark themed with accent top bar
   ───────────────────────────────────── */
.seed-blog-content code {
    background: var(--blog-accent-light);
    border: 1px solid var(--blog-border);
    padding: 0.2em 0.5em;
    border-radius: 0.35em;
    font-size: 0.88em;
    color: var(--blog-accent-text);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 600;
}
.seed-blog-content pre,
.seed-blog-content .wp-block-code {
    background: var(--blog-code-bg, #1F2A36);
    color: #F8F8F8;
    padding: 1.5em 2em;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2em 0;
    font-size: 0.9rem;
    line-height: 1.7;
    border: none;
    border-top: 4px solid var(--blog-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    position: relative;
}
.seed-blog-content .wp-block-code code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.seed-blog-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

/* ─────────────────────────────────────
   PREFORMATTED  (wp-block-preformatted)
   Distinct from code — surface bg with accent gutter
   ───────────────────────────────────── */
.seed-blog-content .wp-block-preformatted {
    background: var(--blog-surface-alt, var(--blog-surface));
    border: 2px solid var(--blog-border);
    border-left: 5px solid var(--blog-accent);
    padding: 1.5em 2em;
    border-radius: 0 1rem 1rem 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 2em 0;
    color: var(--blog-heading);
    overflow-x: auto;
    box-shadow: inset 4px 0 0 var(--blog-accent-light);
}

/* ─────────────────────────────────────
   VERSE  (wp-block-verse)
   Elegant Playfair with accent gradient border
   ───────────────────────────────────── */
.seed-blog-content .wp-block-verse {
    font-family: var(--seed-heading-font, 'Playfair Display', serif);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--blog-heading);
    padding: 2em 2.5em;
    margin: 2.5em 0;
    border-left: 4px solid var(--blog-accent);
    border-right: 4px solid var(--blog-accent);
    background: var(--blog-accent-light);
    border-radius: 1rem;
    white-space: pre-wrap;
    text-align: center;
    position: relative;
}
.seed-blog-content .wp-block-verse::before {
    content: '\2766';
    display: block;
    font-size: 1.5rem;
    color: var(--blog-accent);
    margin-bottom: 0.5em;
    font-style: normal;
}

/* ─────────────────────────────────────
   COLUMNS  (wp-block-columns)
   ───────────────────────────────────── */
.seed-blog-content .wp-block-columns {
    display: flex;
    gap: 2em;
    margin: 2em 0;
    flex-wrap: wrap;
}
.seed-blog-content .wp-block-column {
    flex: 1;
    min-width: 0;
}
@media (max-width: 768px) {
    .seed-blog-content .wp-block-columns {
        flex-direction: column;
    }
    .seed-blog-content .wp-block-column {
        flex: none;
        width: 100%;
    }
}
/* Column cards — when columns have background */
.seed-blog-content .wp-block-column.has-background {
    border-radius: 1rem;
    padding: 1.5em;
    border: 1px solid var(--blog-border);
}
.seed-blog-content .wp-block-columns.has-background {
    border-radius: 1rem;
    padding: 1.5em;
    border: 1px solid var(--blog-border);
}

/* ─────────────────────────────────────
   DETAILS  (wp-block-details)
   Accordion with accent indicator + shadow on open
   ───────────────────────────────────── */
.seed-blog-content .wp-block-details {
    border: 2px solid var(--blog-border);
    border-left: 5px solid var(--blog-accent);
    border-radius: 0 1rem 1rem 0;
    margin: 1.5em 0;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.seed-blog-content .wp-block-details[open] {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--blog-accent);
    border-left-color: var(--blog-accent);
}
.seed-blog-content .wp-block-details summary {
    padding: 1.15em 1.5em;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blog-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blog-surface);
    transition: background 0.2s, color 0.2s;
}
.seed-blog-content .wp-block-details summary:hover {
    background: var(--blog-accent-light);
    color: var(--blog-accent-text);
}
.seed-blog-content .wp-block-details summary::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    height: 1.75em;
    font-size: 1.2em;
    line-height: 1;
    color: #fff;
    background: var(--blog-accent);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}
.seed-blog-content .wp-block-details[open] summary::after {
    content: '\2212';
    background: var(--blog-accent-hover);
    transform: rotate(180deg);
}
.seed-blog-content .wp-block-details summary::-webkit-details-marker {
    display: none;
}
.seed-blog-content .wp-block-details > *:not(summary) {
    padding: 0.5em 1.5em 1.25em;
}

/* ─────────────────────────────────────
   GROUP  (wp-block-group)
   Callout / info box with prominent accent bar
   ───────────────────────────────────── */
.seed-blog-content .wp-block-group {
    background: var(--blog-surface);
    border: 2px solid var(--blog-border);
    border-left: 6px solid var(--blog-accent);
    padding: 1.75em 2em;
    border-radius: 0 1rem 1rem 0;
    margin: 2em 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.seed-blog-content .wp-block-group > *:first-child { margin-top: 0; }
.seed-blog-content .wp-block-group > *:last-child { margin-bottom: 0; }
/* Outlined group variant */
.seed-blog-content .wp-block-group.has-background {
    border-left-width: 6px;
    border-left-color: var(--blog-accent);
    border-radius: 1rem;
}
/* Group as full-width card */
.seed-blog-content .wp-block-group.is-style-default {
    background: var(--blog-surface);
}

/* ─────────────────────────────────────
   SEPARATOR  (wp-block-separator)
   ───────────────────────────────────── */
.seed-blog-content hr,
.seed-blog-content .wp-block-separator {
    border: 0;
    height: 2px;
    background: var(--blog-border);
    margin: 2.5em 0;
}
.seed-blog-content .wp-block-separator.is-style-wide {
    width: 100%;
}
.seed-blog-content .wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
}
.seed-blog-content .wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: 1.75em;
    letter-spacing: 1em;
    color: var(--blog-accent);
}

/* ─────────────────────────────────────
   IMAGES & FIGURES
   ───────────────────────────────────── */
.seed-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2em 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.seed-blog-content figure {
    margin: 2em 0;
}
.seed-blog-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--blog-muted);
    margin-top: 0.75em;
    font-style: italic;
}

/* ─────────────────────────────────────
   TABLE
   ───────────────────────────────────── */
.seed-blog-content table,
.seed-blog-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
.seed-blog-content th {
    background: var(--blog-code-bg, #1F2A36);
    color: #fff;
    font-weight: 700;
    padding: 0.85em 1.25em;
    text-align: left;
}
.seed-blog-content td {
    padding: 0.85em 1.25em;
    border-bottom: 1px solid var(--blog-border);
}
.seed-blog-content tr:nth-child(even) td {
    background: var(--blog-surface-alt, var(--blog-surface));
}

/* ─────────────────────────────────────
   COVER / MEDIA-TEXT
   ───────────────────────────────────── */
.seed-blog-content .wp-block-cover {
    border-radius: 1rem;
    overflow: hidden;
    margin: 2em 0;
}
.seed-blog-content .wp-block-media-text {
    margin: 2em 0;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--blog-surface);
}

/* ─────────────────────────────────────
   BUTTONS (if used in content)
   ───────────────────────────────────── */
.seed-blog-content .wp-block-button__link {
    background: var(--blog-accent);
    color: #fff;
    padding: 0.75em 2em;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.seed-blog-content .wp-block-button__link:hover {
    background: var(--blog-accent-hover);
    color: #fff;
    text-decoration: none;
}
.seed-blog-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--blog-accent);
    border: 2px solid var(--blog-accent);
}
.seed-blog-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--blog-accent);
    color: #fff;
}

/* ─────────────────────────────────────
   GALLERY
   ───────────────────────────────────── */
.seed-blog-content .wp-block-gallery {
    margin: 2em 0;
}
.seed-blog-content .wp-block-gallery .wp-block-image img {
    border-radius: 0.75rem;
    margin: 0;
}

/* ─────────────────────────────────────
   EMBED / VIDEO
   ───────────────────────────────────── */
.seed-blog-content .wp-block-embed {
    margin: 2em 0;
}
.seed-blog-content .wp-block-embed .wp-block-embed__wrapper {
    border-radius: 1rem;
    overflow: hidden;
}

/* ─────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────── */

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Archive pagination */
.seed-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    align-items: center;
}
.seed-pagination .page-numbers li {
    display: inline-block;
}
.seed-pagination .page-numbers a,
.seed-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}
.seed-pagination .page-numbers a {
    background: #fff;
    color: var(--color-text-primary, #1F2A36);
    border: 1px solid var(--color-light-purple, #E6E7E8);
}
.seed-pagination .page-numbers a:hover {
    background: var(--color-deep-blue, #1F2A36);
    color: #fff;
    border-color: var(--color-deep-blue, #1F2A36);
}
.seed-pagination .page-numbers .current {
    background: var(--color-deep-blue, #1F2A36);
    color: #fff;
    border: 1px solid var(--color-deep-blue, #1F2A36);
}

/* ── Core Image Block Styles ── */

/* Default: 8px radius + subtle shadow */
.wp-block-image img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Square: forced 1:1 crop, sharp corners, no shadow */
.wp-block-image.is-style-square img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Circle: fully rounded 1:1 crop */
.wp-block-image.is-style-circle img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9999px;
}

/* Rounded: generous 24px corner radius */
.wp-block-image.is-style-rounded img {
    border-radius: 24px;
}