/* ==========================================================================
   True Work Office — shared site stylesheet
   Single source of truth for chrome (nav, header, footer) + core look.
   Linked by every Hugo page (via baseof.html / index.html) AND by the
   generated dashboards (mission-control, health, cost) so the whole site —
   including generated pages — shares one visual system automatically.
   ========================================================================== */

:root {
    --tw-navy: #1e3c72;
    --tw-blue: #2a5298;
    --tw-ink: #333;
    --tw-muted: #666;
    --tw-soft: #f8f9ff;
    --tw-border: #e0e7ff;
    --tw-success: #10b981;
    --tw-warning: #d97706;
    --tw-danger: #dc2626;
    --tw-info: #0e7490;
    --tw-radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--tw-ink);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.2);
}

/* Wide variant for data-dense dashboards */
.container.container-wide { max-width: 1200px; }

/* ---- Navigation (shared chrome) ------------------------------------------ */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
    background: var(--tw-soft);
    border-radius: var(--tw-radius);
    margin-bottom: 1.5rem;
}

.site-nav .brand {
    font-weight: 800;
    color: var(--tw-navy);
    text-decoration: none;
    margin-right: auto;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.site-nav a {
    color: var(--tw-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0.15rem;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--tw-blue); }

.site-nav a.active {
    color: var(--tw-blue);
    border-bottom-color: var(--tw-blue);
}

@media (max-width: 640px) {
    .site-nav { gap: 0.9rem; }
    .site-nav .brand { margin-right: 0; width: 100%; text-align: center; margin-bottom: 0.3rem; }
}

/* ---- Footer (shared chrome) ---------------------------------------------- */
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--tw-soft);
    border-radius: var(--tw-radius);
    font-size: 0.9rem;
    color: var(--tw-muted);
}

.site-footer a { color: var(--tw-navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* ---- Dashboard sub-nav (shared by generated dashboards) ------------------ */
.dash-subnav {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
    padding: 0.6rem 1rem; margin: 0 0 1.25rem;
    background: #eef2fb; border-radius: var(--tw-radius);
}
.dash-subnav a {
    color: var(--tw-navy); font-weight: 600; text-decoration: none; font-size: 0.9rem;
    padding: 0.2rem 0.15rem; border-bottom: 2px solid transparent;
}
.dash-subnav a:hover { border-bottom-color: var(--tw-blue); }
.dash-subnav a.active { color: var(--tw-blue); border-bottom-color: var(--tw-blue); }
.reltime { color: var(--tw-muted); font-size: 0.85em; }

/* ---- Core typography ----------------------------------------------------- */
h1 { font-size: 2.2rem; font-weight: 800; color: var(--tw-navy); margin-bottom: 0.5rem; }
h2 {
    font-size: 1.6rem; font-weight: 700; color: var(--tw-navy);
    margin: 2rem 0 1rem; border-left: 4px solid var(--tw-blue); padding-left: 1rem;
}
h3 { color: var(--tw-navy); margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
strong { color: var(--tw-navy); }
a { color: var(--tw-blue); }
ul, ol { margin: 0.5rem 0 1rem 1.6rem; line-height: 1.9; }
hr { border: none; border-top: 1px solid var(--tw-border); margin: 2rem 0; }

.meta { color: var(--tw-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.last-updated { color: var(--tw-muted); font-size: 0.85rem; font-style: italic; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
th, td { border: 1px solid var(--tw-border); padding: 0.75rem; text-align: left; }
th { background: var(--tw-soft); color: var(--tw-navy); }
tr:nth-child(even) { background: #fafbff; }

/* ---- Reusable content components (used by home + list pages) ------------- */
.lead { font-size: 1.2rem; color: #444; margin-bottom: 1.5rem; }

.card-list { list-style: none; margin-left: 0; padding: 0; }
.card-list li {
    margin: 0.9rem 0; padding: 1rem 1.25rem;
    background: var(--tw-soft); border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
}
.card-list li a { font-weight: 700; text-decoration: none; }
.card-list li a:hover { text-decoration: underline; }

/* Report/section list-page tweaks inherit the card-list look */
.section-block { margin: 1.5rem 0; }

/* ---- Homepage components -------------------------------------------------- */
.hero {
    text-align: center;
    padding: 2.5rem 0 2rem;
    border-bottom: 3px solid var(--tw-blue);
    margin-bottom: 2rem;
}
.hero .emoji { font-size: 3.5rem; margin-bottom: 0.75rem; }
.hero h1 { font-size: 2.5rem; }
.hero .tagline { font-size: 1.25rem; color: #555; font-style: italic; }
.hero .subtitle { font-size: 1.05rem; color: var(--tw-muted); margin-top: 0.75rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat-box { background: var(--tw-navy); color: white; padding: 1.25rem; border-radius: var(--tw-radius); text-align: center; }
.stat-box .stat-number { font-size: 1.9rem; font-weight: 800; display: block; }
.stat-box .stat-label { font-size: 0.8rem; opacity: 0.9; }

.featured-report {
    background: linear-gradient(135deg, #fff8e6 0%, #ffedcc 100%);
    border: 2px solid #e8a33d; border-radius: 12px; padding: 2rem; margin: 2.5rem 0;
}
.featured-report .eyebrow {
    display: inline-block; background: #e8a33d; color: var(--tw-navy);
    font-weight: 800; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.featured-report h2 { border-left: none; padding-left: 0; margin: 0 0 0.25rem; }
.featured-report .sub { font-style: italic; color: #555; margin-bottom: 1rem; }
.featured-report .read-link { display: inline-block; margin-top: 0.5rem; font-weight: 700; color: var(--tw-navy); text-decoration: none; }
.featured-report .read-link:hover { text-decoration: underline; }
.featured-report .secondary { margin-top: 1rem; font-size: 0.92rem; color: #6b5a2e; }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.offer-card { background: var(--tw-soft); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); padding: 1.25rem; }
.offer-card h3 { font-size: 1.05rem; }
.offer-card a { color: var(--tw-blue); font-weight: 600; text-decoration: none; }
.offer-card a:hover { text-decoration: underline; }

.contact-box {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white; padding: 2rem; border-radius: 12px; margin: 2.5rem 0;
}
.contact-box h2 { color: white; border-left-color: white; margin-top: 0; }
.contact-box p { color: #eaf0ff; }
.contact-box strong { color: white; }
.contact-box .cta {
    display: inline-block; background: white; color: var(--tw-navy);
    padding: 0.85rem 1.75rem; border-radius: var(--tw-radius); text-decoration: none;
    font-weight: 700; margin-top: 1rem;
}
.contact-box .cta:hover { background: #f0f4ff; }
.contact-box .human-line { margin-top: 1.25rem; font-size: 0.92rem; }
.contact-box .human-line a { color: white; text-decoration: underline; font-weight: 600; }

@media (max-width: 768px) {
    .container { padding: 1rem; }
    h1 { font-size: 1.7rem; }
    .hero h1 { font-size: 1.9rem; }
}
