/* ==========================================================================
   Resilio Ghost Theme - Compiled Stylesheet
   Version: 2.0.0
   Description: Modular CSS architecture for the Resilio Ghost theme
   Built: Tue Jul  8 07:31:49 UTC 2025
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Work+Sans:wght@300;400;500;600&display=swap");


/* ========================================================================== */
/* Base Styles - Foundation and Resets */
/* ========================================================================== */

/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */

:root {
    /* Typography Scale */
    --font-size-base: 16px;
    --font-size-small: 0.875rem;
    --font-size-medium: 1.125rem;
    --font-size-large: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 4rem;

    /* Font Families */
    --font-family-serif: "Lora", Georgia, serif;
    --font-family-sans:
        "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;

    /* Ghost Font Settings */
    --gh-font-heading: var(--font-family-serif);
    --gh-font-body: var(--font-family-sans);

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.7;
    --line-height-loose: 1.8;

    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: -0.01em;
    --letter-spacing-wide: 0;

    /* Color Palette */
    --text-primary: #4a3f36; /* Warm earthy brown for headings */
    --text-secondary: #5a5a5a; /* Softer gray for better readability */
    --text-light: #7a756b; /* Slightly darker light text */
    --accent-earth: #a67c52; /* Warmer, brighter brown */
    --accent-sage: #7fb069; /* Brighter, more vibrant green */
    --accent-ochre: #e88a25; /* Brighter orange */
    --accent-river: #4a90a4; /* Brighter teal */
    --bg-cream: #faf0e6; /* Brighter cream */
    --bg-sand: #fdfcfa; /* Lighter, crisper background */
    --bg-white: #ffffff; /* Pure white */
    --bg-moss: #3a4d2a; /* Slightly brighter dark green */

    /* Footer specific colors */
    --footer-bg: #3b2f2f; /* Dark brown background */
    --footer-text: #faf0e6; /* Cream text */
    --footer-link: #d4af86; /* Warm gold links */
    --footer-muted: #a39c8f; /* Muted text */

    /* Form colors */
    --form-border: #e0e0e0; /* Light gray border */
    --form-focus-shadow: rgba(127, 176, 105, 0.1); /* Sage shadow */
    --form-success-bg: rgba(127, 176, 105, 0.1); /* Success background */
    --form-success-border: rgba(127, 176, 105, 0.3); /* Success border */
    --form-error-bg: rgba(232, 138, 37, 0.1); /* Error background */
    --form-error-border: rgba(232, 138, 37, 0.3); /* Error border */
    --button-shadow: rgba(0, 0, 0, 0.1); /* Button shadow */
    --button-shadow-hover: rgba(0, 0, 0, 0.15); /* Button hover shadow */

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 25px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Common values for consistency */
    --font-size-label: 0.875rem;
    --font-size-hero: 2.5rem;
    --font-size-excerpt: 1.25rem;
    --letter-spacing-label: 0.1em;
    --padding-card: 2.5rem;
    --padding-section: 5rem 2rem;
    --margin-story: 1.25rem;
    --border-left-accent: 4px solid var(--accent-sage);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transform-hover: translateY(-2px);
    --color-link-teal: #2c6e7e;

    /* Z-index Scale */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;

    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* Dark mode variables (if needed in future) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode color overrides can go here */
    }
}
/* ==========================================================================
   CSS Reset - Modern CSS Reset
   ========================================================================== */

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
dl,
dd,
ol,
ul,
figure,
pre {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Remove default padding */
ul,
ol {
    padding: 0;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove font size adjustment in iOS */
input,
textarea {
    font-size: 16px;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Remove button styling */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Ensure form elements have sensible defaults */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Remove resize handle from textareas */
textarea {
    resize: vertical;
}

/* Set default cursor for disabled elements */
[disabled] {
    cursor: default;
    opacity: 0.6;
}

/* Use browser default focus styles */
/* No custom focus styles - browser defaults are sufficient */

/* Hide content visually but keep accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* ==========================================================================
   Typography - Base typography styles
   ========================================================================== */

/* Base font styles */
body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    letter-spacing: var(--letter-spacing-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-serif);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--font-size-large);
    margin-bottom: var(--space-md);
}

h5 {
    font-size: var(--font-size-medium);
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
}

/* Paragraphs */
p {
    font-size: var(--font-size-medium);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

/* Lead paragraphs */
.lead {
    font-size: var(--font-size-large);
    line-height: var(--line-height-loose);
    font-weight: var(--font-weight-light);
}

/* Small text */
small,
.small {
    font-size: var(--font-size-small);
}

/* Strong emphasis */
strong,
b {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Italic emphasis */
em,
i {
    font-style: italic;
}

/* Links */
a {
    color: var(--accent-sage);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-sage);
    text-decoration: underline;
}

/* Use browser default focus styles for links */

/* Lists */
ul,
ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

li {
    margin-bottom: var(--space-sm);
}

/* Nested lists */
ul ul,
ol ol,
ul ol,
ol ul {
    margin-bottom: 0;
    margin-top: var(--space-sm);
}

/* Blockquotes */
blockquote {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-large);
    font-style: italic;
    color: var(--text-light);
    border-left: 4px solid var(--accent-earth);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
}

blockquote cite {
    display: block;
    font-size: var(--font-size-base);
    font-style: normal;
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

/* Code */
code {
    font-family: "Monaco", "Consolas", "Courier New", monospace;
    font-size: 0.875em;
    background-color: var(--bg-sand);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

pre {
    font-family: "Monaco", "Consolas", "Courier New", monospace;
    font-size: var(--font-size-small);
    line-height: var(--line-height-base);
    background-color: var(--bg-sand);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Horizontal rules */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--bg-cream),
        transparent
    );
    margin: var(--space-2xl) 0;
}

/* Definition lists */
dl {
    margin-bottom: var(--space-lg);
}

dt {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

dd {
    margin-bottom: var(--space-md);
    margin-left: var(--space-xl);
    color: var(--text-secondary);
}

/* Abbreviations */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* Marked text */
mark {
    background-color: var(--accent-ochre);
    color: var(--bg-white);
    padding: 0.1em 0.2em;
}

/* Text utilities */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-light {
    color: var(--text-light);
}

.text-accent-earth {
    color: var(--accent-earth);
}

.text-accent-sage {
    color: var(--accent-sage);
}

.text-accent-ochre {
    color: var(--accent-ochre);
}

.text-accent-river {
    color: var(--accent-river);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Font weight utilities */
.font-light {
    font-weight: var(--font-weight-light);
}

.font-regular {
    font-weight: var(--font-weight-regular);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

/* Font family utilities */
.font-serif {
    font-family: var(--font-family-serif);
}

.font-sans {
    font-family: var(--font-family-sans);
}

/* Text transform utilities */
.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* Letter spacing utilities */
.tracking-tight {
    letter-spacing: var(--letter-spacing-tight);
}

.tracking-normal {
    letter-spacing: var(--letter-spacing-normal);
}

.tracking-wide {
    letter-spacing: var(--letter-spacing-wide);
}

/* Line height utilities */
.leading-tight {
    line-height: var(--line-height-tight);
}

.leading-base {
    line-height: var(--line-height-base);
}

.leading-relaxed {
    line-height: var(--line-height-relaxed);
}

.leading-loose {
    line-height: var(--line-height-loose);
}

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

/* ========================================================================== */
/* Layout - Major Layout Components */
/* ========================================================================== */

/* ==========================================================================
   Navigation - Site navigation styles
   ========================================================================== */

/* Main navigation container */
.site-nav,
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-index-sticky);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
}

/* Navigation inner container */
.nav-container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.98); /* Match nav background */
}

/* Logo styles */
.logo,
.site-logo {
    font-family: var(--font-family-serif);
    font-size: 1.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: var(--letter-spacing-tight);
    transition: color var(--transition-base);
}

.logo:hover,
.site-logo:hover {
    color: var(--accent-earth);
    text-decoration: none;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: var(--space-2xl);
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Navigation link items */
.nav-links li {
    margin: 0;
}

/* Navigation links */
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    letter-spacing: 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Active navigation link */
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--text-primary);
}

/* Navigation link underline effect */
.nav-links a:not(.nav-subscribe):not(.nav-signin):not(.nav-account)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-sage);
    transition: width var(--transition-base);
}

.nav-links
    a:not(.nav-subscribe):not(.nav-signin):not(.nav-account):hover::after,
.nav-links
    a.active:not(.nav-subscribe):not(.nav-signin):not(.nav-account)::after {
    width: 100%;
}

/* Subscribe button in navigation - inherits from base button styles */
.nav-subscribe {
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    margin-left: 0.5rem;
}

/* Ensure button styles take precedence over nav link styles */
.nav-links .btn,
.nav-links .nav-subscribe {
    color: var(--bg-white) !important;
}

.nav-links .btn:hover,
.nav-links .nav-subscribe:hover {
    color: var(--bg-white) !important;
}

/* Sign In link in navigation */
.nav-signin {
    color: var(--text-secondary) !important;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--bg-cream);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.nav-signin:hover {
    color: var(--text-primary) !important;
    border-color: var(--accent-sage);
    background: var(--bg-sand);
}

/* Account link for logged in users */
.nav-account {
    color: var(--accent-sage) !important;
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-sage);
    border-radius: 30px;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.nav-account:hover {
    background: var(--accent-sage);
    color: var(--bg-white) !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    position: relative;
}

/* Hamburger menu lines */
.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    position: absolute;
    left: 5px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 8px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 18px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 28px;
}

/* Mobile menu open state */
.nav-open .mobile-menu-toggle span:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .mobile-menu-toggle span:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
}

/* Scrolled navigation state */
.nav-scrolled {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

/* Navigation with transparent background */
.nav-transparent {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.nav-transparent .logo,
.nav-transparent .nav-links a {
    color: var(--bg-white);
}

.nav-transparent .mobile-menu-toggle span {
    background-color: var(--bg-white);
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        padding: var(--space-md) var(--space-lg);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: calc(var(--z-index-sticky) - 1); /* Just below nav */
    }

    .nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.125rem;
        width: 100%;
        text-align: center;
        padding: var(--space-sm) 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-subscribe,
    .nav-signin,
    .nav-account {
        width: 100%;
        text-align: center;
        margin-top: var(--space-md);
        padding: var(--space-md) var(--space-xl) !important;
        border-radius: 8px !important;
        font-size: 1.1rem !important;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .nav-links {
        gap: var(--space-lg);
    }

    .nav-container {
        padding: var(--space-lg) var(--space-lg);
    }
}

/* Accessibility */

/* Use browser default focus styles for mobile menu toggle */

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bg-white);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-index-tooltip);
}

.skip-to-content:focus {
    top: var(--space-sm);
    left: var(--space-sm);
}
/* ==========================================================================
   Footer - Site footer styles
   ========================================================================== */

/* Main footer container */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem 3rem;
    margin-top: var(--space-2xl);
    text-align: center;
}

/* Footer inner container */
.footer-container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: center;
}

/* Footer logo */
.footer-logo {
    font-family: var(--font-family-serif);
    font-size: 2rem;
    color: var(--footer-text);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}

.footer-logo:hover {
    color: var(--footer-text);
    text-decoration: none;
}

/* Footer tagline */
.footer-tagline {
    font-family: var(--font-family-serif);
    font-size: 1.1rem;
    color: var(--footer-link);
    font-style: italic;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
}

/* Footer navigation links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--footer-text);
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--footer-text);
    transition: width var(--transition-base);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Social links section */
.footer-social {
    margin-bottom: var(--space-2xl);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
}

.social-links li {
    margin: 0;
}

/* Social link labels */
.social-label {
    font-size: 0.9rem;
    color: var(--footer-muted);
    margin-bottom: 0;
    margin-right: var(--space-sm);
}

/* Social icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-link);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--footer-text);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer copyright */
.footer-copyright {
    font-size: 0.875rem;
    color: var(--footer-muted);
    padding-top: 0;
    border-top: none;
    opacity: 0.7;
}

.footer-copyright a {
    color: var(--accent-earth);
    text-decoration: none;
}

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

/* Newsletter signup in footer */
.footer-newsletter {
    background-color: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.footer-newsletter-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-newsletter-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Footer sections for larger footers */
.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    text-align: left;
}

.footer-section h3 {
    font-size: var(--font-size-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-medium);
}

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

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--accent-earth);
}

/* Dark footer variant */
.footer-dark {
    background-color: var(--bg-moss);
    color: var(--bg-white);
}

.footer-dark .footer-logo,
.footer-dark .footer-tagline,
.footer-dark .footer-links a,
.footer-dark .footer-copyright,
.footer-dark .footer-section h3,
.footer-dark .footer-section a {
    color: var(--bg-white);
}

.footer-dark .footer-links a:hover,
.footer-dark .footer-section a:hover {
    color: var(--accent-sage);
}

.footer-dark .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
}

.footer-dark .social-icon:hover {
    background-color: var(--accent-sage);
}

.footer-dark .footer-copyright {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile footer styles */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-container {
        padding: 0 var(--space-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }

    .social-links {
        gap: var(--space-md);
    }

    .footer-sections {
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-newsletter {
        padding: var(--space-lg);
    }
}

/* Use browser default focus styles for footer links */

/* Footer animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-container > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.footer-container > *:nth-child(1) {
    animation-delay: 0.1s;
}
.footer-container > *:nth-child(2) {
    animation-delay: 0.2s;
}
.footer-container > *:nth-child(3) {
    animation-delay: 0.3s;
}
.footer-container > *:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========================================================================== */
/* Components - Reusable UI Components */
/* ========================================================================== */

/* ==========================================================================
   Buttons - Button component styles
   ========================================================================== */

/* Base button styles */
.btn,
button[type="submit"],
.button {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    color: var(--bg-white) !important;
    box-shadow: var(--button-shadow);
}

/* Button hover state */
.btn:hover,
button[type="submit"]:hover,
.button:hover {
    background: linear-gradient(
        135deg,
        var(--accent-earth) 0%,
        var(--bg-moss) 100%
    );
    transform: translateY(-1px);
    box-shadow: var(--button-shadow-hover);
    text-decoration: none;
    color: var(--bg-white) !important;
}

/* Button active state */
.btn:active,
button[type="submit"]:active,
.button:active {
    transform: translateY(0);
    box-shadow: var(--button-shadow);
}

/* Use browser default focus styles for buttons */

/* Button sizes */
.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-small);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-large);
}

.btn-xl {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-xl);
}

/* Button variants */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    color: var(--bg-white);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--accent-earth) 0%,
        var(--bg-moss) 100%
    );
}

.btn-secondary {
    background-color: var(--accent-earth);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
}

.btn-accent {
    background-color: var(--accent-ochre);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: var(--accent-river);
}

/* Outline buttons */
.btn-outline {
    background: transparent;
    color: var(--accent-sage);
    border: 2px solid var(--accent-sage);
}

.btn-outline:hover {
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    color: var(--bg-white);
    border-color: transparent;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--accent-earth);
    border: 2px solid var(--accent-earth);
}

.btn-outline-secondary:hover {
    background: linear-gradient(
        135deg,
        var(--accent-earth) 0%,
        var(--bg-moss) 100%
    );
    color: var(--bg-white);
    border-color: transparent;
}

/* Ghost buttons */
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--bg-sand);
    box-shadow: none;
}

/* Gradient buttons */
.btn-gradient {
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    border: none;
    color: var(--bg-white);
}

.btn-gradient:hover {
    /* Inherits from base button hover styles */
}

/* Full width button */
.btn-block {
    display: block;
    width: 100%;
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-icon svg,
.btn-icon img {
    width: 1.25em;
    height: 1.25em;
}

/* Icon-only button */
.btn-icon-only {
    padding: var(--space-sm);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Button group */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn:not(:last-child),
.btn-group > .button:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -2px;
}

.btn-group > .btn:not(:first-child),
.btn-group > .button:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1em;
    height: 1em;
    top: 50%;
    left: 50%;
    margin-left: -0.5em;
    margin-top: -0.5em;
    border: 2px solid var(--bg-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled state */
.btn:disabled,
.btn[disabled],
button[type="submit"]:disabled,
button[type="submit"][disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Social media buttons */
.btn-twitter {
    background-color: #1da1f2;
    color: var(--bg-white);
}

.btn-twitter:hover {
    background-color: #1a91da;
}

.btn-facebook {
    background-color: #4267b2;
    color: var(--bg-white);
}

.btn-facebook:hover {
    background-color: #365899;
}

.btn-linkedin {
    background-color: #0077b5;
    color: var(--bg-white);
}

.btn-linkedin:hover {
    background-color: #006097;
}

.btn-instagram {
    background: linear-gradient(
        45deg,
        #405de6,
        #5851db,
        #833ab4,
        #c13584,
        #e1306c,
        #fd1d1d
    );
    color: var(--bg-white);
}

.btn-instagram:hover {
    opacity: 0.9;
}

/* Floating action button */
.btn-fab {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-index-sticky);
}

.btn-fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn,
    button[type="submit"],
    .button {
        padding: var(--space-sm) var(--space-md);
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group > .btn:not(:last-child),
    .btn-group > .button:not(:last-child) {
        border-radius: var(--radius-full);
        margin-right: 0;
        margin-bottom: var(--space-sm);
    }

    .btn-group > .btn:not(:first-child),
    .btn-group > .button:not(:first-child) {
        border-radius: var(--radius-full);
    }

    .btn-fab {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 48px;
        height: 48px;
    }
}

/* Button animation utilities */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(127, 176, 105, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(127, 176, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(127, 176, 105, 0);
    }
}

.btn-shake:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}
/* ==========================================================================
   Forms - Form component styles
   ========================================================================== */

/* Base form styles */
form {
    margin-bottom: var(--space-xl);
}

fieldset {
    border: 1px solid var(--bg-sand);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

legend {
    padding: 0 var(--space-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Form groups */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
label,
.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.form-label-required::after {
    content: " *";
    color: var(--accent-ochre);
}

/* Base input styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select,
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
    background-clip: padding-box;
    border: 1px solid var(--form-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Input hover state */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover,
.form-control:hover {
    border-color: var(--accent-earth);
}

/* Input focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.2);
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled,
.form-control:disabled {
    background-color: var(--bg-sand);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Readonly state */
input[readonly],
textarea[readonly],
.form-control[readonly] {
    background-color: var(--bg-sand);
    border-style: dashed;
}

/* Textarea specific */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select specific */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    background-size: 20px;
    padding-right: var(--space-2xl);
}

/* Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: var(--space-sm);
    vertical-align: middle;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.form-check-label {
    margin-bottom: 0;
    font-weight: var(--font-weight-regular);
    cursor: pointer;
}

.form-check-input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
    background-color: var(--bg-white);
    border: 2px solid var(--bg-cream);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

input[type="radio"].form-check-input {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--accent-sage);
    border-color: var(--accent-sage);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

input[type="radio"].form-check-input:checked {
    background-image: none;
    position: relative;
}

input[type="radio"].form-check-input:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--bg-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.2);
}

/* File input */
input[type="file"] {
    padding: var(--space-xs) var(--space-sm);
}

.form-file {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
}

.form-file input[type="file"] {
    position: absolute;
    left: -9999px;
}

.form-file-label {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--bg-sand);
    border: 2px solid var(--bg-cream);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.form-file:hover .form-file-label {
    background-color: var(--bg-cream);
    border-color: var(--accent-earth);
}

/* Form help text */
.form-help {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* Form validation states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select,
.form-control.is-invalid {
    border-color: var(--accent-ochre);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus,
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(232, 138, 37, 0.2);
}

.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select,
.form-control.is-valid {
    border-color: var(--accent-sage);
}

.form-error,
.invalid-feedback {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-small);
    color: var(--accent-ochre);
}

.form-success,
.valid-feedback {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-small);
    color: var(--accent-sage);
}

/* Input group */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group-prepend,
.input-group-append {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-sand);
    border: 1px solid var(--bg-cream);
}

.input-group-prepend {
    border-right: 0;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.input-group-append {
    border-left: 0;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.input-group input {
    border-radius: 0;
    flex: 1;
}

.input-group input:first-child {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.input-group input:last-child {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* Subscribe form specific */
.subscribe-form-container {
    max-width: 500px;
    margin: 2rem auto 3rem;
    min-height: 60px; /* Maintain consistent height */
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.subscribe-form input[type="email"],
.subscribe-form input[data-members-email] {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--form-border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-sand);
}

.subscribe-form input[type="email"]:focus,
.subscribe-form input[data-members-email]:focus {
    outline: none;
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px var(--form-focus-shadow);
}

.subscribe-form button {
    flex-shrink: 0;
    padding: 0.75rem 2.5rem;
}

/* Loading state */
.subscribe-form.loading button {
    opacity: 0.7;
    cursor: not-allowed;
}

.subscribe-form button .button-text {
    display: inline;
}

.subscribe-form button .button-loader {
    display: none;
}

.subscribe-form.loading button .button-text {
    display: none;
}

.subscribe-form.loading button .button-loader {
    display: inline;
}

/* Success and error states */
.subscribe-form.success {
    display: none;
}

.subscribe-form.error input[data-members-email] {
    border-color: var(--color-error);
    animation: shake 0.5s ease-in-out;
}

/* Form messages */
.form-messages {
    text-align: center;
}

.message-success,
.message-error {
    display: none;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease-out;
}

.message-success {
    background-color: var(--form-success-bg);
    color: var(--accent-sage);
    border: 1px solid var(--form-success-border);
}

.message-error {
    background-color: var(--form-error-bg);
    color: var(--accent-ochre);
    border: 1px solid var(--form-error-border);
}

/* Search form */
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    padding-right: var(--space-3xl);
}

.search-form button {
    position: absolute;
    right: var(--space-xs);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--space-xs);
    background: none;
    border: none;
    color: var(--text-secondary);
}

.search-form button:hover {
    color: var(--accent-sage);
}

/* Form layout utilities */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.form-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

/* Toggle switch */
.form-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-cream);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.form-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-white);
    transition: all var(--transition-base);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.form-switch input:checked + .form-switch-slider {
    background-color: var(--accent-sage);
}

.form-switch input:checked + .form-switch-slider:before {
    transform: translateX(26px);
}

/* Range input */
input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-cream);
    border-radius: var(--radius-full);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-sage);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-sage);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input[type="email"],
    .subscribe-form input[data-members-email],
    .subscribe-form button {
        width: 100%;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form-inline .form-group {
        width: 100%;
    }
}
/* ==========================================================================
   Cards - Card component styles
   ========================================================================== */

/* Base card styles */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Card sections */
.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--bg-sand);
}

.card-body {
    padding: var(--space-lg);
    flex: 1;
}

.card-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--bg-sand);
    background-color: var(--bg-sand);
}

/* Card title and subtitle */
.card-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-tight);
}

.card-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.card-text {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Card with image */
.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-image-top {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image-bottom {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Card overlay */
.card-img-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: var(--space-lg);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-img-overlay .card-title,
.card-img-overlay .card-text {
    color: var(--bg-white);
}

/* Horizontal card */
.card-horizontal {
    flex-direction: row;
}

.card-horizontal .card-image {
    width: 40%;
    height: 100%;
    object-fit: cover;
}

.card-horizontal .card-body {
    width: 60%;
}

/* Newsletter issue card */
.issue-card {
    border: 1px solid var(--bg-cream);
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.issue-card:hover {
    border-color: var(--accent-sage);
    box-shadow: var(--shadow-sm);
}

.issue-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background-color: var(--accent-sage);
    color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-small);
}

.issue-date {
    font-size: var(--font-size-small);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.issue-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.issue-tag {
    font-size: var(--font-size-small);
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--bg-sand);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.issue-tag:hover {
    background-color: var(--accent-sage);
    color: var(--bg-white);
}

/* Story card */
.story-card {
    border-left: 4px solid var(--accent-earth);
    background-color: var(--bg-sand);
    box-shadow: none;
}

.story-card:hover {
    border-left-color: var(--accent-sage);
    background-color: var(--bg-cream);
}

.story-type {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-small);
    color: var(--accent-earth);
    margin-bottom: var(--space-sm);
}

.story-type-icon {
    width: 20px;
    height: 20px;
}

/* Pattern card */
.pattern-card {
    background: linear-gradient(135deg, var(--bg-sand) 0%, var(--bg-cream) 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.pattern-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 176, 105, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.pattern-card .card-body {
    position: relative;
    z-index: 1;
}

/* About card */
.about-card {
    text-align: center;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.about-card:hover {
    transform: none;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    object-fit: cover;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.about-role {
    font-size: var(--font-size-base);
    color: var(--accent-earth);
    margin-bottom: var(--space-sm);
}

.about-bio {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Feature card */
.feature-card {
    text-align: center;
    border: 2px solid var(--bg-cream);
    background-color: var(--bg-white);
    padding: var(--space-xl);
}

.feature-card:hover {
    border-color: var(--accent-sage);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-sage);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--bg-white);
    font-size: var(--font-size-xl);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-earth);
    transform: scale(1.1);
}

/* Testimonial card */
.testimonial-card {
    background-color: var(--bg-sand);
    border: none;
    position: relative;
    padding: var(--space-xl);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-size: 4rem;
    font-family: var(--font-family-serif);
    color: var(--accent-earth);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-large);
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.testimonial-role {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* Card grid layouts */
.card-grid {
    display: grid;
    gap: var(--space-xl);
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card list */
.card-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Card with badge */
.card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background-color: var(--accent-ochre);
    color: var(--bg-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
}

/* Card states */
.card-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.card-clickable:hover {
    text-decoration: none;
    color: inherit;
}

.card-selected {
    border: 2px solid var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.2);
}

.card-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-horizontal {
        flex-direction: column;
    }

    .card-horizontal .card-image,
    .card-horizontal .card-body {
        width: 100%;
    }

    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: var(--space-lg);
    }

    .testimonial-card::before {
        font-size: 3rem;
    }
}

/* Card animations */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-animate {
    animation: cardFadeIn 0.6s ease-out;
}

.card-list .card:nth-child(1) { animation-delay: 0.1s; }
.card-list .card:nth-child(2) { animation-delay: 0.2s; }
.card-list .card:nth-child(3) { animation-delay: 0.3s; }
.card-list .card:nth-child(4) { animation-delay: 0.4s; }
.card-list .card:nth-child(5) { animation-delay: 0.5s; }
/* ==========================================================================
   Subscribe CTA Component
   ========================================================================== */

/* Base styles for subscribe CTA */
.subscribe-cta {
    position: relative;
    margin: 0;
}

/* Alignment variations */
.subscribe-cta--align-left {
    text-align: left;
}

.subscribe-cta--align-center {
    text-align: center;
}

.subscribe-cta--align-right {
    text-align: right;
}

/* Theme: Default (no special styling) */
.subscribe-cta--default {
    /* Default theme has minimal styling */
}

/* Theme: Transparent (no background, no borders) */
.subscribe-cta--transparent {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Theme: Card (boxed with shadow) */
.subscribe-cta--card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Heading and Description */
.subscribe-cta__heading {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.subscribe-cta__heading strong {
    color: var(--accent-earth);
    font-weight: 500;
}

.subscribe-cta__description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.subscribe-cta__description strong {
    color: var(--accent-earth);
    font-weight: 500;
}

/* Form styles */
.subscribe-cta__form {
    display: flex;
    gap: 1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Alignment adjustments for form */
.subscribe-cta--align-center .subscribe-cta__form {
    justify-content: center;
}

.subscribe-cta--align-right .subscribe-cta__form {
    justify-content: flex-end;
}

/* Input styles */
.subscribe-cta__input {
    flex: 1;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    background: var(--bg-white);
    position: relative;
    z-index: 10;
    font-family: var(--font-family-base);
}

.subscribe-cta__input:focus {
    outline: none;
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

/* Button styles */
.subscribe-cta__button {
    /* Extends base button styles */
    padding: 1rem 2.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 10;
}

/* Form Messages */
.subscribe-cta__messages {
    margin: 0.5rem 0 0 0;
    position: relative;
    min-height: 0;
    display: none;
}

.subscribe-cta__message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    margin: 0;
    background: transparent;
    border: none;
}

/* Alignment for messages */
.subscribe-cta--align-center .subscribe-cta__message {
    text-align: center;
}

.subscribe-cta--align-right .subscribe-cta__message {
    text-align: right;
}

.subscribe-cta__message--success {
    color: #2e7d32;
}

.subscribe-cta__message--error {
    color: #c62828;
}

/* Show/hide messages based on form state */
/* Hide all messages by default */
.subscribe-cta__message {
    display: none;
}

/* Show messages container when form has success or error state */
.subscribe-cta__form.success ~ .subscribe-cta__messages,
.subscribe-cta__form.error ~ .subscribe-cta__messages {
    display: block;
    min-height: 2rem;
}

/* Show only success message when form is successful */
.subscribe-cta__form.success
    ~ .subscribe-cta__messages
    .subscribe-cta__message--success {
    display: block;
}

/* Show only error message when form has error */
.subscribe-cta__form.error
    ~ .subscribe-cta__messages
    .subscribe-cta__message--error {
    display: block;
}

/* Hide form when successful */
.subscribe-cta__form.success {
    display: none;
}

/* Loading state */
.subscribe-cta__form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Theme-specific adjustments */
.subscribe-cta--transparent .subscribe-cta__input {
    /* No background styling for transparent theme */
}

.subscribe-cta--card .subscribe-cta__heading {
    font-size: 1.125rem;
}

.subscribe-cta--card .subscribe-cta__description {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscribe-cta__form {
        flex-direction: column;
    }

    .subscribe-cta__input,
    .subscribe-cta__button {
        width: 100%;
        max-width: none;
    }

    .subscribe-cta--card {
        padding: 1.5rem;
    }

    /* Force left alignment on mobile for better readability */
    .subscribe-cta--align-center,
    .subscribe-cta--align-right {
        text-align: left;
    }

    .subscribe-cta--align-center .subscribe-cta__form,
    .subscribe-cta--align-right .subscribe-cta__form {
        justify-content: flex-start;
    }

    .subscribe-cta--align-center .subscribe-cta__message,
    .subscribe-cta--align-right .subscribe-cta__message {
        text-align: left;
    }
}

/* Visibility utilities */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* ========================================================================== */
/* Pages - Page-specific Styles */
/* ========================================================================== */

/* ==========================================================================
   Home Page - Homepage specific styles
   ========================================================================== */

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: clamp(4rem, 10vw, 8rem) 2rem;
    text-align: center;
    background: var(--bg-sand);
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-family-serif);
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-tight);
    animation: fadeInUp 0.8s ease-out;
}

.tagline {
    font-family: var(--font-family-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--accent-earth);
    margin-bottom: var(--space-2xl);
    font-weight: var(--font-weight-regular);
    font-style: italic;
    line-height: var(--line-height-relaxed);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: var(--font-size-large);
    line-height: var(--line-height-loose);
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    font-weight: var(--font-weight-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-description strong {
    color: var(--accent-earth);
    font-weight: var(--font-weight-medium);
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Hero with image */
.hero-image {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    pointer-events: none;
}

/* Subscribe Section */
.subscribe-section,
.home-subscribe {
    padding: 5rem 2rem;
    background: var(--bg-white);
    text-align: center;
}

.subscribe-content {
    max-width: 700px;
    margin: 0 auto;
}

.subscribe-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.subscribe-subtitle {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-loose);
}

.subscribe-subtitle strong {
    color: var(--accent-earth);
    font-weight: var(--font-weight-medium);
}

/* Landing page subscribe CTA spacing */
.landing-subscribe {
    margin-bottom: 2rem;
}

/* Offering List */
.offering-list {
    list-style: none;
    padding: 0;
    margin: var(--space-2xl) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.offering-item {
    position: relative;
    padding-left: var(--space-2xl);
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.offering-item strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.offering-icon {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-sage);
    font-size: var(--font-size-large);
}

/* Subscriber count */
.subscriber-count {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Latest Issue Section */
.latest-issue {
    padding: 2rem 2rem 3rem 2rem;
    background: white;
    position: relative;
    margin-top: -100px;
    z-index: 2;
}

.latest-issue-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.latest-issue-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.latest-issue-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-medium);
}

.issue-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.issue-preview {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
}

.issue-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.issue-date {
    color: var(--accent-sage);
    font-size: var(--font-size-label);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-label);
    margin-bottom: 1rem;
    font-weight: 500;
}

.issue-number-badge {
    background: var(--accent-sage);
    color: var(--bg-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
}

.issue-title-main {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-hero);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.issue-title-main a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.issue-title-main a:hover {
    color: var(--accent-earth);
}

.issue-intro {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-xl);
}

/* Issue Excerpt */
.issue-excerpt {
    font-size: var(--font-size-excerpt);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
    font-style: italic;
}

.issue-excerpt p {
    margin: 0;
}

/* Content Preview */
.content-preview {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* Content Sections */
.content-sections {
    display: grid;
    gap: var(--space-xl);
}

.content-section {
    margin-bottom: 3rem;
    text-align: left;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-icon {
    font-size: var(--font-size-xl);
    margin-right: var(--space-sm);
}

.section-title {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-label);
    font-weight: 600;
    color: var(--accent-earth);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-label);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--accent-earth) 0%,
        transparent 100%
    );
    opacity: 0.3;
}

.section-content {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Read More Link */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-link-teal);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all var(--transition-base);
    border-bottom: 2px solid var(--color-link-teal);
}

.read-more:hover {
    color: var(--accent-earth);
    border-bottom-color: var(--accent-earth);
    text-decoration: none;
}

/* Story Items */
.story-item {
    background: var(--bg-sand);
    padding: var(--padding-card);
    border-radius: 12px;
    margin-bottom: var(--margin-story);
    transition: all var(--transition-base);
    border-left: var(--border-left-accent);
}

.story-item:hover {
    transform: var(--transform-hover);
    box-shadow: var(--shadow-hover);
}

.story-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.story-title {
    font-family: var(--font-family-serif);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: var(--font-size-excerpt);
}

/* Issue Preview Sections */
.content-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Features Section */
.features-section {
    padding: var(--space-5xl) var(--space-xl);
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: var(--space-xl);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--bg-white);
    font-size: var(--font-size-2xl);
    transition: all var(--transition-base);
}

.feature-box:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-large);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-5xl) var(--space-xl);
    background: var(--bg-sand);
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    padding: 0 var(--space-2xl);
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    position: absolute;
    font-size: var(--font-size-5xl);
    color: var(--accent-earth);
    opacity: 0.2;
}

.testimonial-quote::before {
    top: -20px;
    left: 0;
}

.testimonial-quote::after {
    bottom: -40px;
    right: 0;
    transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
    padding: var(--space-5xl) var(--space-xl);
    background: linear-gradient(
        135deg,
        var(--bg-moss) 0%,
        var(--accent-earth) 100%
    );
    color: var(--bg-white);
    text-align: center;
}

.cta-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
}

.cta-description {
    font-size: var(--font-size-large);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-3xl) var(--space-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .offering-list {
        padding: 0 var(--space-lg);
    }

    .content-sections {
        gap: var(--space-md);
    }

    .features-grid {
        gap: var(--space-xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   Post Page - Post/article specific styles
   ========================================================================== */

/* Post container */
.post-full,
.article-full {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl);
    overflow-x: visible;
}

/* Post header wrapper - full width background */
.post-header-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--bg-sand);
    margin-bottom: var(--space-3xl);
    margin-top: calc(
        80px - var(--space-xl)
    ); /* Account for fixed navigation minus container padding */
}

/* Post header */
.post-header,
.article-header {
    text-align: center;
    padding: 3rem 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.post-header-content {
    max-width: 740px;
    margin: 0 auto;
}

.post-title,
.article-title {
    font-family: var(--font-family-serif);
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

/* Post excerpt */
.post-excerpt {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Post meta information */
.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-label);
    color: var(--accent-sage);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-label);
    margin-bottom: 1rem;
    font-weight: 500;
}

.issue-label {
    color: var(--accent-sage);
    font-weight: var(--font-weight-semibold);
    background: linear-gradient(
        135deg,
        var(--accent-sage),
        var(--accent-earth)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

.meta-separator {
    color: var(--accent-sage);
    margin: 0 var(--space-xs);
}

.post-author {
    color: var(--accent-earth);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.post-author:hover {
    text-decoration: underline;
}

.post-date {
    color: var(--accent-sage);
}

.reading-time {
    color: var(--text-light);
}

/* Post tags */
.post-tags {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.post-tag {
    background-color: var(--accent-sage);
    color: var(--bg-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-small);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: var(--font-weight-medium);
}

.post-tag:hover {
    background-color: var(--accent-sage);
    color: var(--bg-white);
}

/* Featured image */
.post-image,
.article-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-image img,
.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.post-image-caption {
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: var(--space-md);
    font-style: italic;
}

/* Post content */
.post-content,
.article-content {
    font-size: var(--font-size-medium);
    line-height: var(--line-height-loose);
    color: var(--text-secondary);
    max-width: 740px;
    margin: -2rem auto 0 auto;
    padding: 0 var(--space-xl);
}

.post-content-inner {
    max-width: 100%;
    overflow-x: visible;
    /* Add padding to ensure anchor links have space */
    padding-left: 2em;
}

/* Content typography */
.post-content h2,
.article-content h2 {
    font-family: var(--font-family-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-earth);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-content h2::after,
.article-content h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--accent-earth) 0%,
        transparent 100%
    );
    opacity: 0.3;
}

.post-content h3,
.article-content h3 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    position: relative;
}

/* Heading anchor styles - absolute positioning to the left */
.heading-anchor {
    position: absolute;
    left: -1.75em;
    top: 0.1em;
    width: 1.25em;
    height: 1.25em;
    color: var(--accent-sage);
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading-anchor svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Show anchor on heading hover */
.post-content h3:hover .heading-anchor,
.article-content h3:hover .heading-anchor {
    opacity: 0.7;
}

.heading-anchor:hover {
    opacity: 1 !important;
    color: var(--accent-earth);
}

/* Copied state */
.heading-anchor.copied {
    color: var(--accent-sage);
}

.heading-anchor.copied::after {
    content: "Copied!";
    position: absolute;
    left: 100%;
    margin-left: 0.5em;
    font-size: 0.8em;
    font-family: var(--font-family-sans);
    white-space: nowrap;
    background: var(--accent-sage);
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-10px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(10px); }
}

.post-content h4,
.article-content h4 {
    font-size: var(--font-size-large);
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.post-content p,
.article-content p {
    margin-bottom: var(--space-lg);
}

.post-content a,
.article-content a {
    color: #2c6e7e;
    text-decoration: none;
    transition: all var(--transition-base);
}

.post-content a:hover,
.article-content a:hover {
    color: var(--accent-earth);
    text-decoration: underline;
}


/* Bold text styling */
.post-content strong,
.post-content b,
.article-content strong,
.article-content b {
    font-weight: 600;
    color: var(--accent-earth);
}

/* Source links - standalone links at end of content blocks */
.post-content p > a[href^="http"]:only-child,
.post-content .story-content > a[href^="http"]:last-child {
    font-weight: 500;
}

/* Drop cap for first paragraph */
.post-content > p:first-of-type::first-letter,
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-family-serif);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: var(--font-weight-regular);
    margin-right: var(--space-sm);
    margin-top: -0.1em;
    color: var(--accent-earth);
}

/* Blockquotes */
.post-content blockquote,
.article-content blockquote {
    margin: var(--space-2xl) 0;
    padding-left: var(--space-xl);
    border-left: 4px solid var(--accent-earth);
    font-family: var(--font-family-serif);
    font-size: var(--font-size-large);
    font-style: italic;
    color: var(--text-light);
}

.post-content blockquote p:last-child,
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Lists */
.post-content ul,
.post-content ol,
.article-content ul,
.article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.post-content li,
.article-content li {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

.post-content ul li::marker,
.article-content ul li::marker {
    color: var(--accent-sage);
}

.post-content ol li::marker,
.article-content ol li::marker {
    color: var(--accent-earth);
    font-weight: var(--font-weight-medium);
}

/* Images */
.post-content img,
.article-content img,
.post-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: var(--space-xl) auto;
    display: block;
}

.post-content figure,
.article-content figure,
.post-content-inner figure {
    margin: var(--space-2xl) 0;
    max-width: 100%;
}

.post-content figure img,
.article-content figure img,
.post-content-inner figure img {
    max-width: 100%;
    height: auto;
}

.post-content figcaption,
.article-content figcaption {
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Code blocks */
.post-content pre,
.article-content pre {
    background-color: var(--bg-sand);
    border: 1px solid var(--bg-cream);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-xl) 0;
}

.post-content code,
.article-content code {
    font-family: "Monaco", "Consolas", "Courier New", monospace;
    font-size: 0.9em;
    background-color: var(--bg-sand);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--accent-earth);
}

.post-content pre code,
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
.post-content table,
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: var(--font-size-base);
}

.post-content th,
.post-content td,
.article-content th,
.article-content td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--bg-cream);
}

.post-content th,
.article-content th {
    background-color: var(--bg-sand);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.post-content tr:hover,
.article-content tr:hover {
    background-color: var(--bg-sand);
}

/* HR separator - using global styles from typography.css */
.post-content hr,
.article-content hr {
    margin: var(--space-3xl) 0;
}

/* Section dividers */
.section-divider {
    text-align: center;
    margin: var(--space-3xl) 0;
    color: var(--accent-earth);
    font-size: var(--font-size-xl);
}

/* Pull quotes */
.pull-quote {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--accent-earth);
    text-align: center;
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) 0;
    border-top: 2px solid var(--bg-cream);
    border-bottom: 2px solid var(--bg-cream);
}

/* Story blocks styling for System Shifts and Field Stories */
.post-content h2[id="2-system-shifts"] ~ h3,
.post-content h2[id="3-field-stories"] ~ h3,
.article-content h2[id="2-system-shifts"] ~ h3,
.article-content h2[id="3-field-stories"] ~ h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-family-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Add horizontal rule between h3 elements */
.post-content h2[id="2-system-shifts"] ~ h3 ~ hr,
.post-content h2[id="3-field-stories"] ~ h3 ~ hr,
.article-content h2[id="2-system-shifts"] ~ h3 ~ hr,
.article-content h2[id="3-field-stories"] ~ h3 ~ hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--bg-cream);
}

/* Style paragraphs within story blocks */
.post-content h2[id="2-system-shifts"] ~ h3 ~ p,
.post-content h2[id="3-field-stories"] ~ h3 ~ p,
.article-content h2[id="2-system-shifts"] ~ h3 ~ p,
.article-content h2[id="3-field-stories"] ~ h3 ~ p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Special styling for hr elements between story blocks */
.post-content h2[id="2-system-shifts"] ~ hr,
.post-content h2[id="3-field-stories"] ~ hr,
.article-content h2[id="2-system-shifts"] ~ hr,
.article-content h2[id="3-field-stories"] ~ hr {
    margin: 3rem 0;
    border: none;
    height: 0;
}

/* Style paragraph immediately before hr to close the card */
.post-content h2[id="2-system-shifts"] ~ p + hr,
.post-content h2[id="3-field-stories"] ~ p + hr,
.article-content h2[id="2-system-shifts"] ~ p + hr,
.article-content h2[id="3-field-stories"] ~ p + hr {
    margin-top: 0;
}

/* The paragraph before hr gets rounded bottom corners */
.post-content h2[id="2-system-shifts"] ~ hr ~ p,
.post-content h2[id="3-field-stories"] ~ hr ~ p,
.article-content h2[id="2-system-shifts"] ~ hr ~ p,
.article-content h2[id="3-field-stories"] ~ hr ~ p {
    /* Reset for next story block */
}

/* Only style links that contain exactly "Source" as their text */
.post-content h2[id="2-system-shifts"] ~ h3 ~ p > a:only-child,
.post-content h2[id="3-field-stories"] ~ h3 ~ p > a:only-child,
.article-content h2[id="2-system-shifts"] ~ h3 ~ p > a:only-child,
.article-content h2[id="3-field-stories"] ~ h3 ~ p > a:only-child {
    display: inline-block;
    margin-top: 1rem;
    color: #2c6e7e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Style source link hover effects */
.post-content h2[id="2-system-shifts"] ~ p > a:only-child:hover,
.post-content h2[id="3-field-stories"] ~ p > a:only-child:hover,
.article-content h2[id="2-system-shifts"] ~ p > a:only-child:hover,
.article-content h2[id="3-field-stories"] ~ p > a:only-child:hover {
    color: var(--accent-earth);
    text-decoration: underline;
}

/* Style the paragraph containing the source link to have rounded bottom */
.post-content
    h2[id="2-system-shifts"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty)
    + hr,
.post-content
    h2[id="3-field-stories"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty)
    + hr,
.article-content
    h2[id="2-system-shifts"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty)
    + hr,
.article-content
    h2[id="3-field-stories"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty)
    + hr {
    margin-top: 0;
}

/* Apply rounded bottom to source link paragraph */
.post-content
    h2[id="2-system-shifts"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty),
.post-content
    h2[id="3-field-stories"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty),
.article-content
    h2[id="2-system-shifts"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty),
.article-content
    h2[id="3-field-stories"]
    ~ p:has(> a:only-child)
    + p:has(> a:empty) {
    display: none !important;
}

/* Style the last visible paragraph before hr to close the card */
.post-content h2[id="2-system-shifts"] ~ hr,
.post-content h2[id="3-field-stories"] ~ hr,
.article-content h2[id="2-system-shifts"] ~ hr,
.article-content h2[id="3-field-stories"] ~ hr {
    /* Use this as a marker to identify card end */
}

/* The paragraph immediately before hr gets bottom rounded corners */
.post-content h2[id="2-system-shifts"] ~ p + hr,
.post-content h2[id="3-field-stories"] ~ p + hr,
.article-content h2[id="2-system-shifts"] ~ p + hr,
.article-content h2[id="3-field-stories"] ~ p + hr {
    margin-top: 0;
}

/* Style paragraphs containing "Source" links to close the card */
.post-content h2[id="2-system-shifts"] ~ p:has(> a[href]),
.post-content h2[id="3-field-stories"] ~ p:has(> a[href]),
.article-content h2[id="2-system-shifts"] ~ p:has(> a[href]),
.article-content h2[id="3-field-stories"] ~ p:has(> a[href]) {
    /* Check if this is a source link paragraph */
}

/* For browsers without :has() support - style all p tags in story blocks */
@supports not selector(:has(*)) {
    .post-content h2[id="2-system-shifts"] ~ h3 ~ p,
    .post-content h2[id="3-field-stories"] ~ h3 ~ p,
    .article-content h2[id="2-system-shifts"] ~ h3 ~ p,
    .article-content h2[id="3-field-stories"] ~ h3 ~ p {
        padding-bottom: 1rem;
    }

    /* Give extra bottom padding to paragraphs with links */
    .post-content h2[id="2-system-shifts"] ~ p > a:only-child,
    .post-content h2[id="3-field-stories"] ~ p > a:only-child,
    .article-content h2[id="2-system-shifts"] ~ p > a:only-child,
    .article-content h2[id="3-field-stories"] ~ p > a:only-child {
        display: inline-block;
        padding-bottom: 1.5rem;
    }
}

/* Hide empty paragraphs and empty link paragraphs */
.post-content h2[id="2-system-shifts"] ~ p:empty,
.post-content h2[id="3-field-stories"] ~ p:empty,
.article-content h2[id="2-system-shifts"] ~ p:empty,
.article-content h2[id="3-field-stories"] ~ p:empty {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* Hide paragraphs that only contain an empty link */
.post-content h2[id="2-system-shifts"] ~ p:has(> a:only-child:empty),
.post-content h2[id="3-field-stories"] ~ p:has(> a:only-child:empty),
.article-content h2[id="2-system-shifts"] ~ p:has(> a:only-child:empty),
.article-content h2[id="3-field-stories"] ~ p:has(> a:only-child:empty) {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* Alternative selector for browsers without :has() support */
.post-content h2[id="2-system-shifts"] ~ p > a:only-child:empty,
.post-content h2[id="3-field-stories"] ~ p > a:only-child:empty,
.article-content h2[id="2-system-shifts"] ~ p > a:only-child:empty,
.article-content h2[id="3-field-stories"] ~ p > a:only-child:empty {
    display: none !important;
}

/* Remove margin after empty link paragraphs */
.post-content h2[id="2-system-shifts"] ~ p > a:empty:only-child + *,
.post-content h2[id="3-field-stories"] ~ p > a:empty:only-child + *,
.article-content h2[id="2-system-shifts"] ~ p > a:empty:only-child + *,
.article-content h2[id="3-field-stories"] ~ p > a:empty:only-child + * {
    margin-top: 0;
}

/* Reset styles for blockquotes that follow story blocks */
.post-content h2[id="2-system-shifts"] ~ blockquote,
.post-content h2[id="3-field-stories"] ~ blockquote,
.article-content h2[id="2-system-shifts"] ~ blockquote,
.article-content h2[id="3-field-stories"] ~ blockquote {
    padding: var(--space-2xl) 0;
    padding-left: var(--space-xl);
    margin: var(--space-2xl) 0;
}

/* Mobile adjustments for story blocks */
@media (max-width: 768px) {
    .post-content h2[id="2-system-shifts"] ~ h3,
    .post-content h2[id="3-field-stories"] ~ h3,
    .article-content h2[id="2-system-shifts"] ~ h3,
    .article-content h2[id="3-field-stories"] ~ h3 {
        margin-top: 2rem;
    }
}

/* Style the shift/impact paragraphs */
.post-content h2[id="2-system-shifts"] ~ p strong:first-child,
.post-content h2[id="3-field-stories"] ~ p strong:first-child,
.article-content h2[id="2-system-shifts"] ~ p strong:first-child,
.article-content h2[id="3-field-stories"] ~ p strong:first-child {
    font-weight: 600;
    color: var(--accent-earth);
}

/* Ensure regular links in paragraphs don't break card styling */
.post-content h2[id="2-system-shifts"] ~ p a:not(:only-child),
.post-content h2[id="3-field-stories"] ~ p a:not(:only-child),
.article-content h2[id="2-system-shifts"] ~ p a:not(:only-child),
.article-content h2[id="3-field-stories"] ~ p a:not(:only-child) {
    /* Keep default link styles */
}

/* Ensure links in regular paragraphs keep normal styling */
.post-content h2[id="2-system-shifts"] ~ p a:not(:only-child),
.post-content h2[id="3-field-stories"] ~ p a:not(:only-child),
.article-content h2[id="2-system-shifts"] ~ p a:not(:only-child),
.article-content h2[id="3-field-stories"] ~ p a:not(:only-child) {
    /* Use default link styling from post content */
    color: #2c6e7e;
    text-decoration: none;
    transition: all var(--transition-base);
}

.post-content h2[id="2-system-shifts"] ~ p a:not(:only-child):hover,
.post-content h2[id="3-field-stories"] ~ p a:not(:only-child):hover,
.article-content h2[id="2-system-shifts"] ~ p a:not(:only-child):hover,
.article-content h2[id="3-field-stories"] ~ p a:not(:only-child):hover {
    color: var(--accent-earth);
    text-decoration: underline;
}

/* Style the pattern section with unique styling */
.post-content h2[id="the-pattern"],
.post-content-inner h2[id="the-pattern"],
.article-content h2[id="the-pattern"] {
    margin-top: 4rem;
    margin-bottom: 0;
}

/* Style the paragraph immediately after The Pattern h2 */
.post-content h2[id="the-pattern"] + p,
.post-content-inner h2[id="the-pattern"] + p,
.article-content h2[id="the-pattern"] + p,
h2[id="the-pattern"] + p {
    margin: 2rem 0 4rem 0 !important;
    padding: 3rem !important;
    background: linear-gradient(135deg, #f5e6d3 0%, #faf8f5 100%) !important;
    border-radius: 20px !important;
    border-left: 4px solid #cc7722 !important;
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    color: var(--text-secondary) !important;
}

/* Mobile adjustments for pattern section */
@media (max-width: 768px) {
    .post-content h2[id="the-pattern"] + p,
    .post-content-inner h2[id="the-pattern"] + p,
    .article-content h2[id="the-pattern"] + p,
    h2[id="the-pattern"] + p {
        padding: 2rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Style mindful moment section */
.post-content h2[id="1-mindful-moment"],
.article-content h2[id="1-mindful-moment"] {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* Style mindful moment blockquote */
.post-content h2[id="1-mindful-moment"] ~ blockquote,
.article-content h2[id="1-mindful-moment"] ~ blockquote {
    padding: var(--space-2xl) 0;
    padding-left: var(--space-xl);
    margin: var(--space-2xl) 0;
    font-size: 1.25rem;
}

/* Hide empty p after blockquote */
.post-content h2[id="1-mindful-moment"] ~ blockquote + p:empty,
.article-content h2[id="1-mindful-moment"] ~ blockquote + p:empty {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Style paragraphs after mindful moment blockquote */
.post-content h2[id="1-mindful-moment"] ~ blockquote ~ p,
.article-content h2[id="1-mindful-moment"] ~ blockquote ~ p {
    margin-bottom: 1rem;
}

/* Ensure figure has proper spacing */
.post-content h2[id="1-mindful-moment"] ~ figure,
.article-content h2[id="1-mindful-moment"] ~ figure {
    margin-top: 2rem;
}

/* P.S. text after figure must not have card styling */
.post-content h2[id="1-mindful-moment"] ~ figure ~ p,
.article-content h2[id="1-mindful-moment"] ~ figure ~ p {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 1rem 0;
}

/* Style the author attribution (em tag in paragraph) */
.post-content h2[id="1-mindful-moment"] ~ p > em:only-child,
.article-content h2[id="1-mindful-moment"] ~ p > em:only-child {
    display: block;
    text-align: right;
    font-style: italic;
    color: var(--text-light);
}

/* Mobile adjustments for mindful moment */
@media (max-width: 768px) {
    .post-content h2[id="1-mindful-moment"] ~ blockquote,
    .article-content h2[id="1-mindful-moment"] ~ blockquote {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .post-content
        h2[id="1-mindful-moment"]
        ~ p:not(:has(+ figure)):not(figure ~ p),
    .article-content
        h2[id="1-mindful-moment"]
        ~ p:not(:has(+ figure)):not(figure ~ p) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .post-content h2[id="1-mindful-moment"] ~ p:has(strong),
    .article-content h2[id="1-mindful-moment"] ~ p:has(strong) {
        padding-bottom: 1.5rem;
    }
}

/* Post footer */
.post-footer {
    margin-top: var(--space-4xl);
    padding: var(--space-2xl) var(--space-xl) 0;
    border-top: 1px solid var(--bg-cream);
}

/* Subscribe CTA */
.post-cta,
.post-content .subscribe-cta,
.article-content .subscribe-cta {
    margin: 4rem 0;
    padding: 3rem;
    background: #faf8f5;
    border: 1px solid rgba(166, 124, 82, 0.1);
    border-radius: 20px;
    text-align: center;
}

.post-cta h3,
.subscribe-cta h3 {
    font-family: "Lora", serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-regular);
}

.post-cta p,
.subscribe-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA buttons now use standard .btn class */

.post-footer-content {
    max-width: 740px;
    margin: 0 auto;
}

/* Author bio */
.author-bio {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background-color: var(--bg-sand);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.author-bio-text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Share buttons */
.post-share {
    text-align: center;
    margin: 1.5rem 0 1rem;
    padding: 1rem 0;
}

.share-title {
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-xl);
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #faf8f5;
    border: 1px solid rgba(166, 124, 82, 0.1);
    border-radius: var(--radius-full);
    color: var(--accent-earth);
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.share-button svg {
    width: 20px;
    height: 20px;
}

.share-button:hover {
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Copy button specific styles */
.share-copy {
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(166, 124, 82, 0.1);
    background: #faf8f5;
}

.share-copy:hover {
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
}

.copy-feedback {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-earth);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.copy-feedback::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--accent-earth);
}

.share-copy.copied .copy-feedback {
    opacity: 1;
}

/* Related posts */
.related-posts {
    margin-top: var(--space-4xl);
    padding: 0 var(--space-xl);
}

.related-posts-content {
    max-width: 740px;
    margin: 0 auto;
}

.related-posts-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

/* More Issues section styling */
.related-posts h3 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.related-date {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    display: block;
}

.related-title {
    margin: 0;
}

.related-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-title a:hover {
    color: var(--accent-gold);
}

.view-all {
    display: inline-block;
    color: var(--accent-sage);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--accent-gold);
}

/* Navigation between posts */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.post-nav-item {
    padding: var(--space-lg);
    background-color: var(--bg-sand);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.post-nav-item:hover {
    background-color: var(--bg-cream);
    transform: translateY(-2px);
}

.post-nav-label {
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.post-nav-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-large);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

/* Newsletter CTA within post */
.post-newsletter-cta {
    background: linear-gradient(
        135deg,
        var(--bg-sand) 0%,
        var(--bg-cream) 100%
    );
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-3xl) 0;
}

.post-share h4 {
    font-family: var(--font-family-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-medium);
}

.post-newsletter-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-full,
    .article-full {
        padding: var(--space-md);
    }

    .post-content,
    .article-content {
        padding: 0 var(--space-md);
        margin-top: -1rem;
    }

    .post-header,
    .article-header {
        padding-top: var(--space-2xl);
    }

    .post-image,
    .article-image {
        width: 100%;
        margin: 0 0 var(--space-2xl);
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce footer padding on mobile */
    .post-footer {
        padding: var(--space-xl) var(--space-md) 0;
    }

    .related-posts {
        padding: 0 var(--space-md);
    }

    /* Optimize typography for mobile readability */
    .post-content,
    .article-content {
        font-size: 1rem; /* Slightly smaller than desktop */
        line-height: 1.7; /* Tighter line height for mobile */
    }

    .post-content h2,
    .article-content h2 {
        font-size: 0.75rem; /* Smaller section headers */
        margin: 3rem 0 1.5rem;
    }

    .post-content h3,
    .article-content h3 {
        font-size: 1.125rem; /* Smaller h3 headers */
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .post-content p,
    .article-content p {
        margin-bottom: 1rem; /* Tighter paragraph spacing */
    }

    /* Adjust blockquote spacing */
    .post-content blockquote,
    .article-content blockquote {
        margin: var(--space-xl) 0;
        padding-left: var(--space-md);
    }

    /* Adjust heading anchor for mobile */
    .post-content-inner {
        padding-left: 0;
    }

    .heading-anchor {
        position: static;
        display: inline-block;
        width: auto;
        height: auto;
        margin-right: 0.5em;
        opacity: 0.5;
        left: auto;
        top: auto;
    }
    
    .post-content h3:hover .heading-anchor,
    .article-content h3:hover .heading-anchor {
        opacity: 0.7;
    }
}

/* Print styles */
@media print {
    .post-share,
    .post-navigation,
    .related-posts,
    .post-newsletter-cta {
        display: none;
    }

    .post-content a::after,
    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--text-light);
    }
}
/* ==========================================================================
   Page - Styles for static pages (About, Contact, etc.)
   ========================================================================== */

/* Page Container */
.page-full {
    min-height: 50vh;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

/* Page Header */
.page-header {
    text-align: center;
    max-width: var(--container-md);
    margin: 0 auto var(--space-3xl);
    padding: var(--space-5xl) var(--space-xl) 0;
}

.page-title {
    font-family: var(--font-family-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Page Feature Image */
.page-image {
    margin: var(--space-2xl) 0;
}

.page-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.page-image figcaption {
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: var(--space-md);
    font-style: italic;
}

/* Page Content */
.page-content {
    max-width: var(--container-md);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.page-content .content-container {
    font-size: var(--font-size-medium);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

.page-content h2 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin: var(--space-3xl) 0 var(--space-xl);
    line-height: 1.3;
}

.page-content h3 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin: var(--space-2xl) 0 var(--space-lg);
    line-height: 1.4;
}

.page-content p {
    margin-bottom: var(--space-lg);
}

.page-content ul,
.page-content ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.page-content li {
    margin-bottom: var(--space-sm);
}

.page-content blockquote {
    border-left: 4px solid var(--accent-earth);
    padding-left: var(--space-xl);
    margin: var(--space-2xl) 0;
    font-style: italic;
    color: var(--text-primary);
}

/* Page Footer CTA */
.page-footer {
    max-width: var(--container-md);
    margin: var(--space-4xl) auto 0;
    padding: 0 var(--space-xl);
}

.page-cta {
    background-color: var(--bg-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.page-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-cta h3 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.page-cta p {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
}

/* CTA buttons now use standard .btn class */

/* Page Variations */
.page-narrow .page-content {
    max-width: var(--container-sm);
}

.page-wide .page-content {
    max-width: var(--container-xl);
}

/* Contact Page Specific */
.contact-info {
    background-color: var(--bg-cream);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.contact-info h3 {
    margin-top: 0;
}

.contact-info a {
    color: var(--accent-river);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-info a:hover {
    color: var(--accent-earth);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: var(--space-2xl);
    }

    .page-title {
        font-size: 2rem;
    }

    .page-content {
        padding: 0 var(--space-lg);
    }

    .page-cta {
        padding: var(--space-2xl) var(--space-lg);
    }

    .page-cta h3 {
        font-size: var(--font-size-xl);
    }

    .page-cta p {
        font-size: var(--font-size-base);
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .page-content {
        color: var(--text-secondary);
    }

    .page-cta {
        background-color: rgba(255, 255, 255, 0.05);
    }
}
/* About Page Styles */

/* Reset default margin */
.about-page.site-main {
    margin-top: 0;
}

/* Main wrapper for content reflow */
.about-page .about-content-wrapper {
    position: relative;
}

/* Hero wrapper with background */
.about-page .hero-wrapper {
    background-color: #fdfcfa;
    width: 100%;
    padding: 3rem 0 1.5rem 0;
}

.about-page .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Hero title styling */
.about-page .hero-title-content {
    text-align: left;
}

.about-page .hero-title-content h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-page .tagline {
    font-size: 1.5rem;
    color: var(--accent-earth);
    line-height: 1.4;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0;
}

.about-page .hero-subscribe {
    padding: 0;
    text-align: left;
    margin: 0;
}

/* Ensure CTA text is left-aligned */
.about-page .subscribe-cta__heading,
.about-page .subscribe-cta__description {
    text-align: left;
}

/* Three Column Section */
.about-page .three-column-section {
    padding: 3rem 0 5rem 0;
    background-color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.about-page .three-column-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Three column grid layout */
.about-page .three-column-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Content container */
.about-page .three-column-container.content-container {
    max-width: 1200px;
}

/* Three column typography */
.about-page .three-column-container h3 {
    font-family: var(--font-family-serif);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    margin-top: 0;
    line-height: 1.2;
}

/* Paragraphs in three columns */
.about-page .three-column-container p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-page .three-column-container p strong {
    color: var(--accent-earth);
    font-weight: 500;
}

/* Lists in three columns */
.about-page .three-column-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem 0;
}

.about-page .three-column-container ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-page .three-column-container ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-sage);
    font-weight: 600;
}

.about-page .three-column-container ul li strong {
    color: var(--accent-earth);
    font-weight: 500;
}

/* Mobile CTA section for reordering */
.about-page .mobile-cta-section {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-page .three-column-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-page .three-column-container h3 {
        margin-top: 2.5rem;
    }

    .about-page .three-column-container h3:first-child {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    /* Stack hero content vertically on mobile */
    .about-page .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hide desktop CTA */
    .about-page .hero-subscribe-section {
        display: none;
    }

    /* Show mobile CTA after content */
    .about-page .mobile-cta-section {
        display: block;
        background-color: transparent;
        padding: 2rem 0;
    }

    .about-page .mobile-cta-section .hero-subscribe {
        /* No special styling - inherit from parent */
        padding: 0 1.5rem;
    }

    /* Keep left alignment on mobile */
    .about-page .hero-title-content {
        text-align: left;
    }

    /* Adjust hero wrapper padding */
    .about-page .hero-wrapper {
        padding: 2rem 0;
    }

    /* Adjust three-column padding for mobile */
    .about-page .three-column-section {
        padding: 2rem 0 3rem 0;
    }

    .about-page .hero-title-content h1 {
        font-size: 2.5rem;
    }

    .about-page .tagline {
        font-size: 1.25rem;
    }
}

/* ========================================================================== */
/* Vendor - Third-party and Ghost-specific Styles */
/* ========================================================================== */

/* ==========================================================================
   Ghost Specific - Styles for Ghost CMS specific elements
   ========================================================================== */

/* Ghost Editor Cards */
/* ========================================================================== */

/* KG Gallery */
.kg-gallery-container {
    position: relative;
    margin: var(--space-2xl) 0;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.kg-gallery-image {
    flex: 1 1 0%;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.kg-gallery-image:hover img {
    transform: scale(1.05);
}

/* KG Image */
.kg-image-card {
    margin: var(--space-2xl) 0;
}

.kg-image-card img {
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    height: auto;
    display: block;
}

.kg-width-wide {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: var(--space-2xl) auto;
}

.kg-width-full {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: var(--space-2xl) 0;
}

.kg-width-full img {
    border-radius: 0;
}

/* KG Embed */
.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: var(--space-2xl) 0;
}

.kg-embed-card > * {
    width: 100%;
}

/* Video embeds */
.kg-embed-card iframe[src*="youtube"],
.kg-embed-card iframe[src*="vimeo"] {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* KG Bookmark */
.kg-bookmark-card {
    width: 100%;
    margin: var(--space-xl) 0;
    border: 1px solid var(--bg-cream);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.kg-bookmark-card:hover {
    border-color: var(--accent-sage);
    box-shadow: var(--shadow-sm);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
    min-height: 140px;
}

.kg-bookmark-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.kg-bookmark-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: var(--line-height-tight);
}

.kg-bookmark-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: auto;
}

.kg-bookmark-publisher {
    color: var(--text-light);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--space-xs);
}

.kg-bookmark-author::after {
    content: "•";
    margin: 0 var(--space-xs);
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 200px;
    max-width: 200px;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* KG Code Card */
.kg-code-card {
    margin: var(--space-xl) 0;
}

.kg-code-card pre {
    margin: 0;
    background: var(--bg-moss);
    color: var(--bg-white);
    font-family: "Monaco", "Consolas", "Courier New", monospace;
    font-size: var(--font-size-small);
    line-height: 1.6;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.kg-code-card figcaption {
    margin-top: var(--space-sm);
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-style: italic;
}

/* KG Toggle Card */
.kg-toggle-card {
    margin: var(--space-xl) 0;
    border: 1px solid var(--bg-cream);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.kg-toggle-heading {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-sand);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kg-toggle-heading:hover {
    background: var(--bg-cream);
}

.kg-toggle-heading-text {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.kg-toggle-card svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.kg-toggle-card[data-toggle-state="open"] svg {
    transform: rotate(180deg);
}

.kg-toggle-content {
    padding: var(--space-lg);
    display: none;
}

.kg-toggle-card[data-toggle-state="open"] .kg-toggle-content {
    display: block;
}

/* KG Callout Card */
.kg-callout-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
}

.kg-callout-card-grey {
    background: var(--bg-sand);
}

.kg-callout-card-white {
    background: var(--bg-white);
    border: 1px solid var(--bg-cream);
}

.kg-callout-card-blue {
    background: rgba(74, 144, 164, 0.1);
    border: 1px solid var(--accent-river);
}

.kg-callout-card-green {
    background: rgba(127, 176, 105, 0.1);
    border: 1px solid var(--accent-sage);
}

.kg-callout-card-yellow {
    background: rgba(232, 138, 37, 0.1);
    border: 1px solid var(--accent-ochre);
}

.kg-callout-card-red {
    background: rgba(166, 124, 82, 0.1);
    border: 1px solid var(--accent-earth);
}

.kg-callout-emoji {
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.kg-callout-text {
    font-size: var(--font-size-medium);
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
}

/* KG Button Card */
.kg-button-card {
    margin: var(--space-xl) 0;
    text-align: center;
}

.kg-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: var(--accent-sage);
    color: var(--bg-white);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.kg-button:hover {
    background: var(--bg-moss);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* KG Product Card */
.kg-product-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border: 1px solid var(--bg-cream);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
}

.kg-product-card-image {
    flex-shrink: 0;
    width: 200px;
}

.kg-product-card-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.kg-product-card-content {
    flex: 1;
}

.kg-product-card-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.kg-product-card-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.kg-product-card-price {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--accent-earth);
    margin-bottom: var(--space-md);
}

.kg-product-card-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-sage);
    color: var(--bg-white);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.kg-product-card-button:hover {
    background: var(--bg-moss);
    transform: translateY(-2px);
}

/* Ghost Portal */
/* ========================================================================== */

.gh-portal-triggerbtn-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-index-sticky);
}

.gh-portal-triggerbtn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(
        135deg,
        var(--accent-sage) 0%,
        var(--accent-earth) 100%
    );
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-portal-triggerbtn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Ghost Membership Cards */
/* ========================================================================== */

.gh-post-upgrade-cta {
    padding: var(--space-2xl);
    background: linear-gradient(
        135deg,
        var(--bg-sand) 0%,
        var(--bg-cream) 100%
    );
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-2xl) 0;
}

.gh-post-upgrade-cta-content h2 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.gh-post-upgrade-cta-content p {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.gh-post-upgrade-cta .gh-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-sage);
    color: var(--bg-white);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.gh-post-upgrade-cta .gh-btn:hover {
    background: var(--bg-moss);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Ghost Comments */
/* ========================================================================== */

.gh-comments {
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--bg-cream);
}

.gh-comments-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kg-width-wide {
        width: 100%;
        margin: var(--space-xl) 0;
    }

    .kg-bookmark-container {
        flex-direction: column;
    }

    .kg-bookmark-thumbnail {
        min-width: 100%;
        max-width: 100%;
        height: 200px;
    }

    .kg-bookmark-thumbnail img {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .kg-product-card {
        flex-direction: column;
    }

    .kg-product-card-image {
        width: 100%;
    }

    .gh-portal-triggerbtn-container {
        bottom: var(--space-lg);
        right: var(--space-lg);
    }

    .gh-portal-triggerbtn {
        width: 50px;
        height: 50px;
    }
}

/* Print styles */
@media print {
    .gh-portal-triggerbtn-container,
    .gh-post-upgrade-cta,
    .gh-comments {
        display: none;
    }
}

/* ========================================================================== */
/* Utilities - Helper Classes and Overrides */
/* ========================================================================== */

/* ==========================================================================
   Utilities - Utility classes for common patterns
   ========================================================================== */

/* Display utilities */
.d-none {
    display: none !important;
}
.d-block {
    display: block !important;
}
.d-inline-block {
    display: inline-block !important;
}
.d-inline {
    display: inline !important;
}
.d-flex {
    display: flex !important;
}
.d-inline-flex {
    display: inline-flex !important;
}
.d-grid {
    display: grid !important;
}

/* Flexbox utilities */
.flex-row {
    flex-direction: row !important;
}
.flex-column {
    flex-direction: column !important;
}
.flex-row-reverse {
    flex-direction: row-reverse !important;
}
.flex-column-reverse {
    flex-direction: column-reverse !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}
.flex-nowrap {
    flex-wrap: nowrap !important;
}
.flex-wrap-reverse {
    flex-wrap: wrap-reverse !important;
}

.justify-start {
    justify-content: flex-start !important;
}
.justify-end {
    justify-content: flex-end !important;
}
.justify-center {
    justify-content: center !important;
}
.justify-between {
    justify-content: space-between !important;
}
.justify-around {
    justify-content: space-around !important;
}
.justify-evenly {
    justify-content: space-evenly !important;
}

.items-start {
    align-items: flex-start !important;
}
.items-end {
    align-items: flex-end !important;
}
.items-center {
    align-items: center !important;
}
.items-baseline {
    align-items: baseline !important;
}
.items-stretch {
    align-items: stretch !important;
}

.self-auto {
    align-self: auto !important;
}
.self-start {
    align-self: flex-start !important;
}
.self-end {
    align-self: flex-end !important;
}
.self-center {
    align-self: center !important;
}
.self-baseline {
    align-self: baseline !important;
}
.self-stretch {
    align-self: stretch !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}
.flex-auto {
    flex: 1 1 auto !important;
}
.flex-initial {
    flex: 0 1 auto !important;
}
.flex-none {
    flex: none !important;
}

.flex-grow-0 {
    flex-grow: 0 !important;
}
.flex-grow {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}
.flex-shrink {
    flex-shrink: 1 !important;
}

/* Gap utilities */
.gap-0 {
    gap: 0 !important;
}
.gap-xs {
    gap: var(--space-xs) !important;
}
.gap-sm {
    gap: var(--space-sm) !important;
}
.gap-md {
    gap: var(--space-md) !important;
}
.gap-lg {
    gap: var(--space-lg) !important;
}
.gap-xl {
    gap: var(--space-xl) !important;
}
.gap-2xl {
    gap: var(--space-2xl) !important;
}
.gap-3xl {
    gap: var(--space-3xl) !important;
}

/* Margin utilities */
.m-0 {
    margin: 0 !important;
}
.m-xs {
    margin: var(--space-xs) !important;
}
.m-sm {
    margin: var(--space-sm) !important;
}
.m-md {
    margin: var(--space-md) !important;
}
.m-lg {
    margin: var(--space-lg) !important;
}
.m-xl {
    margin: var(--space-xl) !important;
}
.m-2xl {
    margin: var(--space-2xl) !important;
}
.m-3xl {
    margin: var(--space-3xl) !important;
}
.m-auto {
    margin: auto !important;
}

/* Margin top */
.mt-0 {
    margin-top: 0 !important;
}
.mt-xs {
    margin-top: var(--space-xs) !important;
}
.mt-sm {
    margin-top: var(--space-sm) !important;
}
.mt-md {
    margin-top: var(--space-md) !important;
}
.mt-lg {
    margin-top: var(--space-lg) !important;
}
.mt-xl {
    margin-top: var(--space-xl) !important;
}
.mt-2xl {
    margin-top: var(--space-2xl) !important;
}
.mt-3xl {
    margin-top: var(--space-3xl) !important;
}
.mt-auto {
    margin-top: auto !important;
}

/* Margin right */
.mr-0 {
    margin-right: 0 !important;
}
.mr-xs {
    margin-right: var(--space-xs) !important;
}
.mr-sm {
    margin-right: var(--space-sm) !important;
}
.mr-md {
    margin-right: var(--space-md) !important;
}
.mr-lg {
    margin-right: var(--space-lg) !important;
}
.mr-xl {
    margin-right: var(--space-xl) !important;
}
.mr-2xl {
    margin-right: var(--space-2xl) !important;
}
.mr-3xl {
    margin-right: var(--space-3xl) !important;
}
.mr-auto {
    margin-right: auto !important;
}

/* Margin bottom */
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-xs {
    margin-bottom: var(--space-xs) !important;
}
.mb-sm {
    margin-bottom: var(--space-sm) !important;
}
.mb-md {
    margin-bottom: var(--space-md) !important;
}
.mb-lg {
    margin-bottom: var(--space-lg) !important;
}
.mb-xl {
    margin-bottom: var(--space-xl) !important;
}
.mb-2xl {
    margin-bottom: var(--space-2xl) !important;
}
.mb-3xl {
    margin-bottom: var(--space-3xl) !important;
}
.mb-auto {
    margin-bottom: auto !important;
}

/* Margin left */
.ml-0 {
    margin-left: 0 !important;
}
.ml-xs {
    margin-left: var(--space-xs) !important;
}
.ml-sm {
    margin-left: var(--space-sm) !important;
}
.ml-md {
    margin-left: var(--space-md) !important;
}
.ml-lg {
    margin-left: var(--space-lg) !important;
}
.ml-xl {
    margin-left: var(--space-xl) !important;
}
.ml-2xl {
    margin-left: var(--space-2xl) !important;
}
.ml-3xl {
    margin-left: var(--space-3xl) !important;
}
.ml-auto {
    margin-left: auto !important;
}

/* Margin horizontal */
.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.mx-xs {
    margin-left: var(--space-xs) !important;
    margin-right: var(--space-xs) !important;
}
.mx-sm {
    margin-left: var(--space-sm) !important;
    margin-right: var(--space-sm) !important;
}
.mx-md {
    margin-left: var(--space-md) !important;
    margin-right: var(--space-md) !important;
}
.mx-lg {
    margin-left: var(--space-lg) !important;
    margin-right: var(--space-lg) !important;
}
.mx-xl {
    margin-left: var(--space-xl) !important;
    margin-right: var(--space-xl) !important;
}
.mx-2xl {
    margin-left: var(--space-2xl) !important;
    margin-right: var(--space-2xl) !important;
}
.mx-3xl {
    margin-left: var(--space-3xl) !important;
    margin-right: var(--space-3xl) !important;
}
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Margin vertical */
.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.my-xs {
    margin-top: var(--space-xs) !important;
    margin-bottom: var(--space-xs) !important;
}
.my-sm {
    margin-top: var(--space-sm) !important;
    margin-bottom: var(--space-sm) !important;
}
.my-md {
    margin-top: var(--space-md) !important;
    margin-bottom: var(--space-md) !important;
}
.my-lg {
    margin-top: var(--space-lg) !important;
    margin-bottom: var(--space-lg) !important;
}
.my-xl {
    margin-top: var(--space-xl) !important;
    margin-bottom: var(--space-xl) !important;
}
.my-2xl {
    margin-top: var(--space-2xl) !important;
    margin-bottom: var(--space-2xl) !important;
}
.my-3xl {
    margin-top: var(--space-3xl) !important;
    margin-bottom: var(--space-3xl) !important;
}
.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

/* Padding utilities */
.p-0 {
    padding: 0 !important;
}
.p-xs {
    padding: var(--space-xs) !important;
}
.p-sm {
    padding: var(--space-sm) !important;
}
.p-md {
    padding: var(--space-md) !important;
}
.p-lg {
    padding: var(--space-lg) !important;
}
.p-xl {
    padding: var(--space-xl) !important;
}
.p-2xl {
    padding: var(--space-2xl) !important;
}
.p-3xl {
    padding: var(--space-3xl) !important;
}

/* Padding top */
.pt-0 {
    padding-top: 0 !important;
}
.pt-xs {
    padding-top: var(--space-xs) !important;
}
.pt-sm {
    padding-top: var(--space-sm) !important;
}
.pt-md {
    padding-top: var(--space-md) !important;
}
.pt-lg {
    padding-top: var(--space-lg) !important;
}
.pt-xl {
    padding-top: var(--space-xl) !important;
}
.pt-2xl {
    padding-top: var(--space-2xl) !important;
}
.pt-3xl {
    padding-top: var(--space-3xl) !important;
}

/* Padding right */
.pr-0 {
    padding-right: 0 !important;
}
.pr-xs {
    padding-right: var(--space-xs) !important;
}
.pr-sm {
    padding-right: var(--space-sm) !important;
}
.pr-md {
    padding-right: var(--space-md) !important;
}
.pr-lg {
    padding-right: var(--space-lg) !important;
}
.pr-xl {
    padding-right: var(--space-xl) !important;
}
.pr-2xl {
    padding-right: var(--space-2xl) !important;
}
.pr-3xl {
    padding-right: var(--space-3xl) !important;
}

/* Padding bottom */
.pb-0 {
    padding-bottom: 0 !important;
}
.pb-xs {
    padding-bottom: var(--space-xs) !important;
}
.pb-sm {
    padding-bottom: var(--space-sm) !important;
}
.pb-md {
    padding-bottom: var(--space-md) !important;
}
.pb-lg {
    padding-bottom: var(--space-lg) !important;
}
.pb-xl {
    padding-bottom: var(--space-xl) !important;
}
.pb-2xl {
    padding-bottom: var(--space-2xl) !important;
}
.pb-3xl {
    padding-bottom: var(--space-3xl) !important;
}

/* Padding left */
.pl-0 {
    padding-left: 0 !important;
}
.pl-xs {
    padding-left: var(--space-xs) !important;
}
.pl-sm {
    padding-left: var(--space-sm) !important;
}
.pl-md {
    padding-left: var(--space-md) !important;
}
.pl-lg {
    padding-left: var(--space-lg) !important;
}
.pl-xl {
    padding-left: var(--space-xl) !important;
}
.pl-2xl {
    padding-left: var(--space-2xl) !important;
}
.pl-3xl {
    padding-left: var(--space-3xl) !important;
}

/* Padding horizontal */
.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.px-xs {
    padding-left: var(--space-xs) !important;
    padding-right: var(--space-xs) !important;
}
.px-sm {
    padding-left: var(--space-sm) !important;
    padding-right: var(--space-sm) !important;
}
.px-md {
    padding-left: var(--space-md) !important;
    padding-right: var(--space-md) !important;
}
.px-lg {
    padding-left: var(--space-lg) !important;
    padding-right: var(--space-lg) !important;
}
.px-xl {
    padding-left: var(--space-xl) !important;
    padding-right: var(--space-xl) !important;
}
.px-2xl {
    padding-left: var(--space-2xl) !important;
    padding-right: var(--space-2xl) !important;
}
.px-3xl {
    padding-left: var(--space-3xl) !important;
    padding-right: var(--space-3xl) !important;
}

/* Padding vertical */
.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.py-xs {
    padding-top: var(--space-xs) !important;
    padding-bottom: var(--space-xs) !important;
}
.py-sm {
    padding-top: var(--space-sm) !important;
    padding-bottom: var(--space-sm) !important;
}
.py-md {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
}
.py-lg {
    padding-top: var(--space-lg) !important;
    padding-bottom: var(--space-lg) !important;
}
.py-xl {
    padding-top: var(--space-xl) !important;
    padding-bottom: var(--space-xl) !important;
}
.py-2xl {
    padding-top: var(--space-2xl) !important;
    padding-bottom: var(--space-2xl) !important;
}
.py-3xl {
    padding-top: var(--space-3xl) !important;
    padding-bottom: var(--space-3xl) !important;
}

/* Width utilities */
.w-25 {
    width: 25% !important;
}
.w-50 {
    width: 50% !important;
}
.w-75 {
    width: 75% !important;
}
.w-100 {
    width: 100% !important;
}
.w-auto {
    width: auto !important;
}
.w-full {
    width: 100% !important;
}
.w-screen {
    width: 100vw !important;
}

/* Max width utilities */
.max-w-none {
    max-width: none !important;
}
.max-w-sm {
    max-width: var(--container-sm) !important;
}
.max-w-md {
    max-width: var(--container-md) !important;
}
.max-w-lg {
    max-width: var(--container-lg) !important;
}
.max-w-xl {
    max-width: var(--container-xl) !important;
}
.max-w-2xl {
    max-width: var(--container-2xl) !important;
}
.max-w-full {
    max-width: 100% !important;
}

/* Height utilities */
.h-25 {
    height: 25% !important;
}
.h-50 {
    height: 50% !important;
}
.h-75 {
    height: 75% !important;
}
.h-100 {
    height: 100% !important;
}
.h-auto {
    height: auto !important;
}
.h-full {
    height: 100% !important;
}
.h-screen {
    height: 100vh !important;
}

/* Min height utilities */
.min-h-0 {
    min-height: 0 !important;
}
.min-h-full {
    min-height: 100% !important;
}
.min-h-screen {
    min-height: 100vh !important;
}

/* Position utilities */
.position-static {
    position: static !important;
}
.position-relative {
    position: relative !important;
}
.position-absolute {
    position: absolute !important;
}
.position-fixed {
    position: fixed !important;
}
.position-sticky {
    position: sticky !important;
}

/* Position values */
.top-0 {
    top: 0 !important;
}
.right-0 {
    right: 0 !important;
}
.bottom-0 {
    bottom: 0 !important;
}
.left-0 {
    left: 0 !important;
}

.inset-0 {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* Z-index utilities */
.z-0 {
    z-index: 0 !important;
}
.z-10 {
    z-index: 10 !important;
}
.z-20 {
    z-index: 20 !important;
}
.z-30 {
    z-index: 30 !important;
}
.z-40 {
    z-index: 40 !important;
}
.z-50 {
    z-index: 50 !important;
}
.z-auto {
    z-index: auto !important;
}

/* Overflow utilities */
.overflow-auto {
    overflow: auto !important;
}
.overflow-hidden {
    overflow: hidden !important;
}
.overflow-visible {
    overflow: visible !important;
}
.overflow-scroll {
    overflow: scroll !important;
}

.overflow-x-auto {
    overflow-x: auto !important;
}
.overflow-x-hidden {
    overflow-x: hidden !important;
}
.overflow-x-visible {
    overflow-x: visible !important;
}
.overflow-x-scroll {
    overflow-x: scroll !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}
.overflow-y-hidden {
    overflow-y: hidden !important;
}
.overflow-y-visible {
    overflow-y: visible !important;
}
.overflow-y-scroll {
    overflow-y: scroll !important;
}

/* Border utilities */
.border {
    border: 1px solid var(--bg-cream) !important;
}
.border-0 {
    border: 0 !important;
}
.border-top {
    border-top: 1px solid var(--bg-cream) !important;
}
.border-right {
    border-right: 1px solid var(--bg-cream) !important;
}
.border-bottom {
    border-bottom: 1px solid var(--bg-cream) !important;
}
.border-left {
    border-left: 1px solid var(--bg-cream) !important;
}

/* Border radius utilities */
.rounded-none {
    border-radius: 0 !important;
}
.rounded-sm {
    border-radius: var(--radius-sm) !important;
}
.rounded {
    border-radius: var(--radius-md) !important;
}
.rounded-lg {
    border-radius: var(--radius-lg) !important;
}
.rounded-xl {
    border-radius: var(--radius-xl) !important;
}
.rounded-full {
    border-radius: var(--radius-full) !important;
}

/* Shadow utilities */
.shadow-none {
    box-shadow: none !important;
}
.shadow-xs {
    box-shadow: var(--shadow-xs) !important;
}
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}
.shadow {
    box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}
.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* Opacity utilities */
.opacity-0 {
    opacity: 0 !important;
}
.opacity-25 {
    opacity: 0.25 !important;
}
.opacity-50 {
    opacity: 0.5 !important;
}
.opacity-75 {
    opacity: 0.75 !important;
}
.opacity-100 {
    opacity: 1 !important;
}

/* Cursor utilities */
.cursor-auto {
    cursor: auto !important;
}
.cursor-default {
    cursor: default !important;
}
.cursor-pointer {
    cursor: pointer !important;
}
.cursor-wait {
    cursor: wait !important;
}
.cursor-text {
    cursor: text !important;
}
.cursor-move {
    cursor: move !important;
}
.cursor-not-allowed {
    cursor: not-allowed !important;
}

/* User select utilities */
.select-none {
    user-select: none !important;
}
.select-text {
    user-select: text !important;
}
.select-all {
    user-select: all !important;
}
.select-auto {
    user-select: auto !important;
}

/* Transition utilities */
.transition-none {
    transition: none !important;
}
.transition-all {
    transition: all var(--transition-base) !important;
}
.transition {
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        fill var(--transition-base),
        stroke var(--transition-base),
        opacity var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base) !important;
}
.transition-fast {
    transition-duration: var(--transition-fast) !important;
}
.transition-slow {
    transition-duration: var(--transition-slow) !important;
}

/* Transform utilities */
.scale-0 {
    transform: scale(0) !important;
}
.scale-50 {
    transform: scale(0.5) !important;
}
.scale-75 {
    transform: scale(0.75) !important;
}
.scale-90 {
    transform: scale(0.9) !important;
}
.scale-95 {
    transform: scale(0.95) !important;
}
.scale-100 {
    transform: scale(1) !important;
}
.scale-105 {
    transform: scale(1.05) !important;
}
.scale-110 {
    transform: scale(1.1) !important;
}
.scale-125 {
    transform: scale(1.25) !important;
}
.scale-150 {
    transform: scale(1.5) !important;
}

.rotate-0 {
    transform: rotate(0deg) !important;
}
.rotate-45 {
    transform: rotate(45deg) !important;
}
.rotate-90 {
    transform: rotate(90deg) !important;
}
.rotate-180 {
    transform: rotate(180deg) !important;
}

.translate-x-0 {
    transform: translateX(0) !important;
}
.translate-y-0 {
    transform: translateY(0) !important;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .sm\:d-none {
        display: none !important;
    }
    .sm\:d-block {
        display: block !important;
    }
    .sm\:d-flex {
        display: flex !important;
    }
    .sm\:flex-column {
        flex-direction: column !important;
    }
    .sm\:text-center {
        text-align: center !important;
    }
    .sm\:w-100 {
        width: 100% !important;
    }
    .sm\:mb-0 {
        margin-bottom: 0 !important;
    }
    .sm\:mb-md {
        margin-bottom: var(--space-md) !important;
    }
    .sm\:mb-lg {
        margin-bottom: var(--space-lg) !important;
    }
}

@media (min-width: 769px) {
    .md\:d-none {
        display: none !important;
    }
    .md\:d-block {
        display: block !important;
    }
    .md\:d-flex {
        display: flex !important;
    }
    .md\:flex-row {
        flex-direction: row !important;
    }
    .md\:w-50 {
        width: 50% !important;
    }
    .md\:w-auto {
        width: auto !important;
    }
}

/* Background utilities */
.bg-white {
    background-color: var(--bg-white) !important;
}
.bg-sand {
    background-color: var(--bg-sand) !important;
}
.bg-cream {
    background-color: var(--bg-cream) !important;
}
.bg-moss {
    background-color: var(--bg-moss) !important;
}
.bg-transparent {
    background-color: transparent !important;
}

/* Visibility utilities */
.visible {
    visibility: visible !important;
}
.invisible {
    visibility: hidden !important;
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none !important;
}
.pointer-events-auto {
    pointer-events: auto !important;
}

/* Site container overflow prevention */
.site-main {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all content containers respect boundaries */
.post-full,
.page-full,
.article-full {
    overflow-x: visible;
}
