/*
Theme Name: Hyperlocal Media Engine Theme
Theme URI: https://hyperlocalmedia.engine
Author: Antigravity Enterprise Media Systems
Author URI: https://hyperlocalmedia.engine
Description: Commercial, white-label, hyper-local news network theme with dynamic multi-masthead rendering and direct-sold ad stack.
Version: 1.0.0
Text Domain: hlme-theme
*/

:root {
    /* Stitch Approved Brand Palette */
    --hlme-connect-blue: #1E73E8;
    --hlme-navy: #0E1B33;
    --hlme-signal-orange: #F26A21;
    --hlme-black: #141210;
    --hlme-white: #FFFFFF;

    /* Theme Design System Tokens */
    --hlme-primary: var(--hlme-navy);
    --hlme-secondary: var(--hlme-connect-blue);
    --hlme-accent: var(--hlme-signal-orange);
    --hlme-accent-hover: #d85711;
    --hlme-bg: var(--hlme-white);
    --hlme-card-bg: var(--hlme-white);
    --hlme-text: var(--hlme-black);
    --hlme-text-muted: #52525b;
    --hlme-border: var(--hlme-black);
    --hlme-border-light: #e4e4e7;
    --hlme-radius: 0px;

    /* Editorial Heavy Condensed Typography */
    --hlme-font-headline: 'Anton', 'Archivo Black', 'Oswald', 'Arial Narrow', 'Impact', sans-serif-condensed, sans-serif;
    --hlme-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--hlme-font-body);
    background-color: var(--hlme-bg);
    color: var(--hlme-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.hlme-headline,
.hlme-display {
    font-family: var(--hlme-font-headline);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--hlme-black);
    margin-top: 0;
}

h1 { font-size: 2.5rem; line-height: 1.05; }
h2 { font-size: 2rem; line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.15; }
h4 { font-size: 1.25rem; line-height: 1.2; }

a {
    color: var(--hlme-connect-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--hlme-signal-orange);
    text-decoration: underline;
}

.hlme-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Editorial Cards & Structural Rules */
.hlme-card {
    background: var(--hlme-card-bg);
    border: 2px solid var(--hlme-border);
    border-radius: var(--hlme-radius);
    padding: 24px;
    box-shadow: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.hlme-card:hover {
    border-color: var(--hlme-black);
    box-shadow: 4px 4px 0px var(--hlme-black);
}

.hlme-kicker {
    font-family: var(--hlme-font-body);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--hlme-connect-blue);
    display: inline-block;
}

.hlme-kicker-orange {
    color: var(--hlme-signal-orange);
}

.hlme-btn-cta {
    display: inline-block;
    background: var(--hlme-signal-orange);
    color: var(--hlme-white) !important;
    font-family: var(--hlme-font-body);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border: 2px solid var(--hlme-black);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.hlme-btn-cta:hover {
    background: var(--hlme-accent-hover);
    color: var(--hlme-white) !important;
    text-decoration: none !important;
}

.hlme-btn-secondary {
    display: inline-block;
    background: var(--hlme-connect-blue);
    color: var(--hlme-white) !important;
    font-family: var(--hlme-font-body);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border: 2px solid var(--hlme-black);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}
.hlme-btn-secondary:hover {
    background: #1760c4;
    color: var(--hlme-white) !important;
    text-decoration: none !important;
}

/* Grid Layouts */
.hlme-grid-26 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.hlme-news-feed-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

/* Section Header Rule */
.hlme-section-header {
    border-bottom: 4px solid var(--hlme-black);
    padding-bottom: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .hlme-news-feed-grid {
        grid-template-columns: 1fr;
    }
    .hlme-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
