/**
 * HowlSFM Main Stylesheet
 * Premium Light Theme, Mobile-First, Accessible, Zero Bloat
 */

/* ==========================================================================
   1. CSS Custom Properties & Design Tokens
   ========================================================================== */
:root {
    --howl-primary: #4f46e5;
    --howl-primary-dark: #4338ca;
    --howl-primary-light: #eef2ff;
    --howl-text: #0f172a;
    --howl-text-muted: #475569;
    --howl-text-light: #64748b;
    --howl-bg: #ffffff;
    --howl-bg-alt: #f8fafc;
    --howl-bg-subtle: #f1f5f9;
    --howl-border: #e2e8f0;
    --howl-border-dark: #cbd5e1;
    --howl-success: #16a34a;
    --howl-warning: #d97706;
    --howl-error: #dc2626;

    --howl-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --howl-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --howl-max-width: 1200px;
    --howl-content-width: 840px;
    --howl-radius: 12px;
    --howl-radius-sm: 8px;
    --howl-radius-full: 9999px;

    --howl-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --howl-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --howl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--howl-font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    color: var(--howl-text);
    background-color: var(--howl-bg);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--howl-bg);
    color: var(--howl-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--howl-text);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.65;
}

a {
    color: var(--howl-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--howl-primary-dark);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--howl-primary);
    outline-offset: 2px;
}

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

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: #ffffff;
    border: 2px solid var(--howl-primary);
    clip: auto !important;
    clip-path: none;
    color: var(--howl-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 10px;
    padding: 12px 18px;
    position: fixed;
    top: 10px;
    width: auto;
    z-index: 100000;
    box-shadow: var(--howl-shadow-lg);
    border-radius: var(--howl-radius-sm);
}

/* Containers */
.howlsfm-container {
    width: 100%;
    max-width: var(--howl-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   3. Age Notice Banner
   ========================================================================== */
.howlsfm-notice-bar {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 10px 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #1e293b;
    position: relative;
    z-index: 1000;
}

.howlsfm-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.howlsfm-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.howlsfm-notice-tag {
    background-color: var(--howl-error);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.howlsfm-notice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.howlsfm-notice-link {
    color: #94a3b8;
    text-decoration: underline;
}

.howlsfm-notice-link:hover {
    color: #ffffff;
}

.howlsfm-notice-close {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.howlsfm-notice-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--howl-border);
    position: sticky;
    top: 0;
    z-index: 500;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.howlsfm-header-container {
    padding: 14px 0;
}

.howlsfm-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--howl-text);
    text-decoration: none;
}

.site-title-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--howl-primary-light);
    color: var(--howl-primary);
    border-radius: var(--howl-radius-sm);
}

.site-title-text {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--howl-text);
}

/* Navigation Menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--howl-text-muted);
    border-radius: var(--howl-radius-sm);
    transition: all 0.15s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
    color: var(--howl-primary);
    background-color: var(--howl-bg-alt);
}

.howlsfm-btn-header {
    height: 38px;
    padding: 0 16px;
    font-size: 0.875rem;
    background-color: var(--howl-primary);
    color: #ffffff;
    border-radius: var(--howl-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.howlsfm-btn-header:hover {
    background-color: var(--howl-primary-dark);
    color: #ffffff;
}

/* Submenus & Dropdown Navigation */
.nav-menu li {
    position: relative;
}

.nav-menu li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sub-menu-indicator {
    transition: transform 0.2s ease;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background-color: #ffffff;
    border: 1px solid var(--howl-border);
    border-radius: var(--howl-radius-sm);
    box-shadow: var(--howl-shadow-lg);
    list-style: none;
    margin: 6px 0 0 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li.menu-item-has-children:hover > a .sub-menu-indicator,
.nav-menu li.menu-item-has-children:focus-within > a .sub-menu-indicator {
    transform: rotate(180deg);
}

.sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 0.875rem;
    color: var(--howl-text-muted);
    border-radius: 0;
    white-space: nowrap;
}

.sub-menu li a:hover,
.sub-menu li.current-menu-item > a {
    background-color: var(--howl-bg-alt);
    color: var(--howl-primary);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--howl-border);
    border-radius: var(--howl-radius-sm);
    padding: 8px 12px;
    cursor: pointer;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    background-color: var(--howl-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid var(--howl-border);
        box-shadow: var(--howl-shadow-lg);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 16px;
        z-index: 9999;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-container.is-active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-menu li a {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .nav-menu li.menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sub-menu-indicator {
        padding: 4px 8px;
        margin-left: auto;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--howl-primary-light);
        margin: 4px 0 8px 14px;
        padding: 4px 0 4px 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: unset;
        flex-direction: column;
        gap: 3px;
    }

    .menu-item-has-children.is-open > .sub-menu,
    .menu-item-has-children.current-menu-item > .sub-menu,
    .menu-item-has-children.current-menu-ancestor > .sub-menu {
        display: flex;
    }

    .menu-item-has-children.is-open > a .sub-menu-indicator,
    .menu-item-has-children.current-menu-item > a .sub-menu-indicator {
        transform: rotate(180deg);
        color: var(--howl-primary);
    }

    .sub-menu li a {
        padding: 6px 10px;
        font-size: 0.9375rem;
    }

    .header-action-wrap {
        padding-top: 10px;
        border-top: 1px solid var(--howl-border);
    }

    .howlsfm-btn-header {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   5. Hero Section (2-Column Desktop, Stacked Mobile)
   ========================================================================== */
.howlsfm-hero-section {
    padding: 64px 0 68px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--howl-border);
    position: relative;
    overflow: hidden;
}

.howlsfm-hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 48px;
}

.howlsfm-hero-content {
    text-align: left;
}

.howlsfm-hero-badge-wrap {
    margin-bottom: 18px;
}

.howlsfm-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--howl-primary);
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    animation: howlPulse 2s infinite;
}

@keyframes howlPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(79, 70, 229, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.howlsfm-hero-title {
    font-size: clamp(2.125rem, 3.6vw, 3.125rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--howl-text);
    margin-bottom: 16px;
    line-height: 1.15;
}

.howlsfm-hero-desc {
    font-size: 1.125rem;
    color: var(--howl-text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 580px;
}

.howlsfm-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.howlsfm-btn-hero {
    height: 48px;
    padding: 0 24px;
    font-size: 0.95rem;
}

/* Trust checkmarks row */
.howlsfm-hero-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 4px;
}

.howlsfm-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.howlsfm-hero-trust-item svg {
    color: var(--howl-success);
}

.howlsfm-hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--howl-text-light);
    line-height: 1.45;
}

/* Right Column Media Mockup & Stats Dock */
.howlsfm-hero-media {
    flex: 1 1 48%;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.howlsfm-hero-ambient-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 60% 40%, rgba(99, 102, 241, 0.16) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 70%);
    filter: blur(36px);
    z-index: 0;
    pointer-events: none;
}

.howlsfm-hero-mockup-frame {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.howlsfm-hero-mockup-frame:hover {
    transform: translateY(-4px);
}

.howlsfm-hero-svg-mockup {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.12));
}

.howlsfm-hero-stats-dock {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.howlsfm-hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.howlsfm-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.howlsfm-stat-icon-shield {
    background: #ecfdf5;
    color: #10b981;
}

.howlsfm-stat-icon-speed {
    background: #f0f9ff;
    color: #0284c7;
}

.howlsfm-stat-content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
}

.howlsfm-stat-content strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.howlsfm-stat-content span {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.howlsfm-hero-stat-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}

@media (max-width: 992px) {
    .howlsfm-hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .howlsfm-hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .howlsfm-hero-title {
        text-align: center;
        font-size: clamp(2rem, 5vw, 2.6rem);
        margin: 0 auto 16px auto;
    }

    .howlsfm-hero-desc {
        text-align: center;
        margin: 0 auto 24px auto;
    }

    .howlsfm-hero-actions {
        justify-content: center;
    }

    .howlsfm-hero-trust-row {
        justify-content: center;
    }

    .howlsfm-hero-notice {
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }

    .howlsfm-hero-media {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ==========================================================================
   6. Sections & Layouts
   ========================================================================== */
.howlsfm-section {
    padding: 56px 0;
}

.howlsfm-section-alt {
    background-color: var(--howl-bg-alt);
    border-top: 1px solid var(--howl-border);
    border-bottom: 1px solid var(--howl-border);
}

.howlsfm-tool-hero-wrap {
    margin-top: -30px;
}

.howlsfm-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.howlsfm-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin: 8px 0;
}

.howlsfm-section-desc {
    color: var(--howl-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Explanations Grid */
.howlsfm-explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.howlsfm-explanation-card {
    padding: 28px;
}

.howlsfm-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--howl-radius-sm);
    background-color: var(--howl-primary-light);
    color: var(--howl-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.howlsfm-card-heading {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Related Tools Stack */
.howlsfm-related-tools-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Posts Grid */
.howlsfm-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

/* Tools Overview Grid */
.howlsfm-tools-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.howlsfm-post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.8125rem;
    color: var(--howl-text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.post-card-title a {
    color: var(--howl-text);
}

.post-card-title a:hover {
    color: var(--howl-primary);
}

.post-card-excerpt {
    font-size: 0.9375rem;
    color: var(--howl-text-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 16px;
}

.post-card-excerpt p {
    margin: 0;
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--howl-primary);
}

/* ==========================================================================
   7. Page Headers & Breadcrumbs
   ========================================================================== */
.howlsfm-page-header {
    padding: 40px 0 24px 0;
    background-color: var(--howl-bg-alt);
    border-bottom: 1px solid var(--howl-border);
    margin-bottom: 40px;
}

.howlsfm-page-title {
    margin: 10px 0 8px 0;
}

.howlsfm-page-lead {
    font-size: 1.125rem;
    color: var(--howl-text-muted);
    max-width: 780px;
    margin: 0;
}

.howlsfm-breadcrumbs {
    margin-bottom: 12px;
}

.howlsfm-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--howl-text-light);
}

.howlsfm-breadcrumb-item + .howlsfm-breadcrumb-item::before {
    content: "›";
    margin: 0 8px;
    color: #cbd5e1;
}

.howlsfm-breadcrumb-item a {
    color: var(--howl-text-muted);
}

.howlsfm-breadcrumb-item.active {
    color: var(--howl-text);
    font-weight: 500;
}

/* Single Post Specifics */
.howlsfm-single-meta {
    font-size: 0.875rem;
    color: var(--howl-text-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.meta-separator {
    color: #cbd5e1;
}

.howlsfm-prose-card {
    max-width: var(--howl-content-width);
    margin-left: auto;
    margin-right: auto;
}

.howlsfm-prose-card p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.howlsfm-prose-card ul, .howlsfm-prose-card ol {
    font-size: 1.0625rem;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 1.5rem;
}

.howlsfm-prose-card li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   8. Footer Layout
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 32px 0;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.howlsfm-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .howlsfm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .howlsfm-footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-links li a:hover {
    color: #ffffff;
}

/* Prominent Disclaimer */
.footer-disclaimer-box {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--howl-radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
}

.footer-disclaimer-text {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    font-size: 0.8125rem;
}

.footer-copyright-text, .footer-tech-text {
    margin: 0;
}

/* ==========================================================================
   9. Tables, Code, and Content Typography Formatting
   ========================================================================== */
.howlsfm-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0 32px 0;
    border: 1px solid var(--howl-border);
    border-radius: var(--howl-radius-sm);
    box-shadow: var(--howl-shadow-sm);
}

.howlsfm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9375rem;
    background-color: #ffffff;
}

.howlsfm-table th {
    background-color: var(--howl-bg-alt);
    color: var(--howl-text);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid var(--howl-border);
    white-space: nowrap;
}

.howlsfm-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--howl-border);
    color: var(--howl-text-muted);
    vertical-align: top;
    line-height: 1.5;
}

.howlsfm-table tr:last-child td {
    border-bottom: none;
}

.howlsfm-table tr:nth-child(even) td {
    background-color: #fafbfd;
}

.howlsfm-table tr:hover td {
    background-color: #f1f5f9;
}

/* Inline Code & Code Blocks */
code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

:not(pre) > code {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    color: #4338ca;
}

pre {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 18px 20px;
    border-radius: var(--howl-radius-sm);
    overflow-x: auto;
    line-height: 1.55;
    font-size: 0.875rem;
    margin: 24px 0;
}

/* Callout & Note Blocks */
.howlsfm-callout {
    border-left: 4px solid var(--howl-primary);
    background-color: #f8faff;
    border-radius: 0 var(--howl-radius-sm) var(--howl-radius-sm) 0;
    padding: 18px 20px;
    margin: 24px 0;
}

.howlsfm-callout-warning {
    border-left-color: var(--howl-warning);
    background-color: var(--howl-warning-bg);
}

.howlsfm-callout-success {
    border-left-color: var(--howl-success);
    background-color: var(--howl-success-bg);
}

.howlsfm-callout p:last-child {
    margin-bottom: 0;
}

/* Content spacing */
.howlsfm-prose-card h2 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--howl-border);
}

.howlsfm-prose-card h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.howlsfm-prose-card p {
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .howlsfm-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .howlsfm-card {
        padding: 20px 16px;
    }

    .howlsfm-section {
        padding: 36px 0;
    }

    .howlsfm-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .howlsfm-btn-hero {
        width: 100%;
        justify-content: center;
    }

    .howlsfm-page-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .howlsfm-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 16px 0;
    }

    .howlsfm-post-card-body {
        padding: 16px;
    }
}

