:root {
    /* Icon Cannabis brand palette — emerald + gold + matte black */
    --brand-primary: #1B5E3F;        /* deep emerald */
    --brand-primary-700: #144B31;    /* hover/darker emerald */
    --brand-primary-300: #4F8E6F;    /* lighter emerald */
    --brand-dark: #0A1410;            /* matte black w/ green undertone */
    --brand-light: #F5F2E8;           /* warm cream */
    --brand-cream: #FBF8EE;           /* lightest cream */
    --brand-accent: #C9A227;          /* rich gold */
    --brand-accent-300: #E5C766;     /* light gold */
    --brand-neutral: #6B7064;         /* warm gray */

    --white: #FFFFFF;
    --light-gray: #E8E4D8;
    --medium-gray: #9CA09A;
    --dark-gray: #2A2F2A;
    --success: #1B5E3F;
    --error: #B91C1C;
    --warning: #C9A227;
    --info: #0F4C81;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

/* Base */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Primary */
.cms-bg-primary { background-color: var(--brand-primary) !important; }
.cms-text-primary { color: var(--brand-primary) !important; }
.cms-border-primary { border-color: var(--brand-primary) !important; }

/* Dark */
.cms-bg-dark { background-color: var(--brand-dark) !important; }
.cms-text-dark { color: var(--brand-dark) !important; }
.cms-border-dark { border-color: var(--brand-dark) !important; }

/* Light */
.cms-bg-light { background-color: var(--brand-light) !important; }
.cms-text-light { color: var(--brand-light) !important; }
.cms-border-light { border-color: var(--brand-light) !important; }

/* Cream — lightest cream */
.cms-bg-cream { background-color: var(--brand-cream) !important; }

/* Accent — gold */
.cms-bg-accent { background-color: var(--brand-accent) !important; }
.cms-text-accent { color: var(--brand-accent) !important; }
.cms-border-accent { border-color: var(--brand-accent) !important; }

/* Neutral */
.cms-text-neutral { color: var(--brand-neutral) !important; }
.cms-bg-neutral { background-color: var(--brand-neutral) !important; }
.cms-border-neutral { border-color: var(--brand-neutral) !important; }

/* Typography */
h1, h2, h3, h4, h5, h6,
.cms-h1, .cms-h2, .cms-h3, .cms-h4, .cms-h5 { font-family: var(--font-heading); letter-spacing: -0.01em; }

.cms-h1 { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.cms-h2 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.cms-h3 { font-size: 26px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.cms-h4 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.cms-h5 { font-size: 18px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.cms-body { font-size: 16px; font-weight: 400; line-height: 1.7; margin-bottom: 8px; }
.cms-small { font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 8px; }

/* Eyebrow / small caps style headers */
.cms-eyebrow {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

/* Links */
.cms-link { text-decoration: none; transition: color 150ms ease; }
.cms-link:hover { text-decoration: underline; }

/* Buttons */
.cms-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
}
.cms-btn.hidden, .faster-auth-signin.hidden, .faster-auth-subscribe.hidden, .faster-auth-account.hidden { display: none !important; }
.cms-btn-disabled { opacity: 0.6; cursor: not-allowed; }
.cms-btn-primary {
    background: var(--brand-primary);
    color: var(--white);
    border: 1px solid var(--brand-primary);
}
.cms-btn-primary:hover {
    background: var(--brand-primary-700);
    border-color: var(--brand-primary-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 94, 63, 0.25);
}
.cms-btn-outline {
    background: transparent;
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
}
.cms-btn-outline:hover {
    background: var(--brand-dark);
    color: var(--white);
}
.cms-btn-gold {
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: 1px solid var(--brand-accent);
}
.cms-btn-gold:hover {
    background: var(--brand-accent-300);
    border-color: var(--brand-accent-300);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}
.cms-btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}
.cms-btn-ghost-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
}

/* Cards */
.cms-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--light-gray);
    padding: 0;
    transition: box-shadow 200ms ease, transform 200ms ease;
    overflow: hidden;
    background: var(--white);
}
.cms-card:hover { box-shadow: 0 10px 30px rgba(10, 20, 16, 0.08); transform: translateY(-2px); }
.cms-card-header { margin-bottom: 16px; }
.cms-card-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.cms-card-content { font-size: 16px; line-height: 1.7; }
.cms-card-footer { margin-top: 16px; }

/* Forms */
.cms-form-control {
    display: block; width: 100%; height: 48px; padding: 12px 16px;
    font-size: 16px; font-family: var(--font-family); color: var(--dark-gray);
    background-color: var(--white); border: 1px solid var(--light-gray);
    border-radius: var(--radius-md); transition: border-color 150ms ease, box-shadow 150ms ease; box-sizing: border-box;
}
.cms-form-control:hover { border-color: var(--brand-primary); }
.cms-form-control:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.12); }
.cms-form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--brand-dark); letter-spacing: 0.02em; }
.cms-form-select {
    display: block; width: 100%; height: 48px; padding: 12px 16px;
    font-size: 16px; font-family: var(--font-family); color: var(--dark-gray);
    background-color: var(--white); border: 1px solid var(--light-gray);
    border-radius: var(--radius-md); appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7064' 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 14px center; background-size: 16px; box-sizing: border-box;
}
.cms-form-select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.12); }
.cms-form-textarea {
    width: 100%; min-height: 120px; padding: 12px 16px;
    font-size: 16px; font-family: var(--font-family);
    border-radius: var(--radius-md); resize: vertical;
    border: 1px solid var(--light-gray);
    transition: border-color 150ms ease, box-shadow 150ms ease; box-sizing: border-box;
}
.cms-form-textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.12); }
.cms-form-checkbox, .cms-form-radio { opacity: 0; width: 0; height: 0; }
.cms-form-checkbox + label, .cms-form-radio + label { padding-left: 28px; cursor: pointer; font-size: 16px; line-height: 20px; }
.cms-form-checkbox + label:before { content: ''; left: 0; top: 0; width: 18px; height: 18px; border-radius: 4px; }
.cms-form-checkbox:checked + label:after { content: ''; left: 6px; top: 2px; width: 6px; height: 10px; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cms-form-radio + label:before { content: ''; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; }
.cms-form-radio:checked + label:after { content: ''; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; }
.cms-error-message { font-size: 14px; margin-top: 4px; color: var(--error); }
.cms-success-message { font-size: 14px; margin-top: 4px; color: var(--success); }

/* Content body width */
#ai_post .content-body:not(:has(.kg-width-full)) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Post elements */
.post-feature-image { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.cms-card:hover .post-feature-image { transform: scale(1.04); }
.post-tag { color: var(--brand-primary); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.post-tag:hover { text-decoration: underline; }
.post-title { font-size: 20px; font-weight: 600; color: var(--brand-dark); transition: color 150ms ease; font-family: var(--font-heading); letter-spacing: -0.01em; }
.cms-card:hover .post-title { color: var(--brand-primary); }
.post-content { color: var(--brand-neutral); font-size: 15px; line-height: 1.6; flex-grow: 1; }
.post-meta { color: var(--brand-neutral); font-size: 14px; display: flex; align-items: center; margin-top: auto; }
.post-meta i { margin-right: var(--space-2); }
.site-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8); }
.post-item { position: relative; }
.post-link { position: absolute; inset: 0; z-index: 10; }

/* Reusable container */
.icon-container { max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* Hero gradient backgrounds */
.icon-hero-dark {
    background: radial-gradient(ellipse at 20% 30%, rgba(27, 94, 63, 0.35) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
                linear-gradient(180deg, #0A1410 0%, #0F1B14 100%);
}

/* Decorative gold underline */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-accent);
    border-radius: 2px;
}

/* Marquee tape (modern attention-grabber) */
.icon-marquee {
    overflow: hidden;
    background: var(--brand-dark);
    color: var(--brand-light);
    padding: 14px 0;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.icon-marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: icon-marquee 28s linear infinite;
    will-change: transform;
}
.icon-marquee-item {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    letter-spacing: -0.02em;
}
.icon-marquee-item .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand-accent);
    border-radius: 50%;
}
@keyframes icon-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .cms-h1 { font-size: 38px; line-height: 1.1; }
    .cms-h2 { font-size: 30px; line-height: 1.15; }
    .cms-h3 { font-size: 22px; line-height: 1.3; }
    .cms-btn { margin-bottom: 8px; }
    .icon-marquee-item { font-size: 22px; padding: 0 18px; gap: 18px; }
}
