/*
Theme Name: CivicOS
Theme URI: https://civicoversight.com
Author: CivicOS
Author URI: https://civicoversight.com
Description: An accountability platform that tracks public issues across city council meetings, votes, departments, and districts.
Version: 5.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: civicos
Tags: government, meetings, accountability, issues, council

CivicOS Theme - Portland Government Accountability Platform
Styled with Givvy Design System
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Grenze+Gotisch:wght@400;700&family=Nunito:wght@400;500;600;700&family=Lato:wght@400;500;700&display=swap');

/* ========================================
   Givvy Design Tokens - CSS Custom Properties
   ======================================== */

:root {
    /* Core Colors - Neutral */
    --color-neutral-0: #FFFFFF;
    --color-neutral-50: #FAFAF9;
    --color-neutral-100: #F6F5F4;
    --color-neutral-200: #E8E6E3;
    --color-neutral-300: #D7D4D0;
    --color-neutral-400: #ABA39C;
    --color-neutral-500: #7C736A;
    --color-neutral-600: #58524B;
    --color-neutral-700: #45403B;
    --color-neutral-800: #292623;
    --color-neutral-900: #191715;
    --color-neutral-1000: #000000;

    /* Core Colors - Brand (Givvy Blue) */
    --color-brand-50: #F5F8FA;
    --color-brand-100: #E4F2F6;
    --color-brand-200: #BEE6F4;
    --color-brand-300: #80D7F5;
    --color-brand-400: #33CCFF;
    --color-brand-500: #00B8F5;
    --color-brand-600: #0099CC;
    --color-brand-700: #007AA3;
    --color-brand-800: #005C7A;
    --color-brand-900: #003D52;

    /* Core Colors - Accent (Green) */
    --color-accent-500: #32CD32;

    /* Core Colors - Semantic */
    --color-danger-500: #EF4444;
    --color-success-500: #22C55E;
    --color-warning-500: #F59E0B;

    /* Typography - Font Families */
    --font-brand: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Typography - Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Typography - Font Sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;

    /* Typography - Line Heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

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

    /* Spacing */
    --space-0: 0px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Border Radius */
    --radius-0: 0px;
    --radius-2: 2px;
    --radius-4: 4px;
    --radius-8: 8px;
    --radius-12: 12px;
    --radius-16: 16px;
    --radius-24: 24px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-0: none;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-2: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-3: 0 6px 16px rgba(0,0,0,0.10);
    --shadow-4: 0 12px 32px rgba(0,0,0,0.12);

    /* Semantic - Light Theme */
    --bg-default: var(--color-neutral-0);
    --bg-muted: var(--color-neutral-50);
    --bg-subtle: var(--color-neutral-100);

    --surface-default: var(--color-neutral-0);
    --surface-raised: var(--color-neutral-0);
    --surface-raised-tint: var(--color-neutral-50);

    --text-primary: var(--color-neutral-900);
    --text-secondary: var(--color-neutral-600);
    --text-muted: var(--color-neutral-400);
    --text-on-brand: var(--color-neutral-900);
    --text-on-accent: var(--color-neutral-0);

    --border-default: var(--color-neutral-200);
    --border-strong: var(--color-neutral-300);
    --border-focus: var(--color-brand-400);

    --brand-default: var(--color-brand-600);
    --brand-hover: var(--color-brand-700);
    --brand-active: var(--color-brand-800);
    --brand-disabled: var(--color-brand-300);

    --accent-default: var(--color-accent-500);
    --danger-default: var(--color-danger-500);
    --success-default: var(--color-success-500);
    --warning-default: var(--color-warning-500);

    /* Component - Semantic Radius */
    --radius-control: var(--radius-12);
    --radius-card: var(--radius-16);
    --radius-pill: var(--radius-full);
    --radius-modal: var(--radius-16);

    /* Component - Semantic Shadows */
    --shadow-card: var(--shadow-3);
    --shadow-modal: var(--shadow-4);
    --shadow-dropdown: var(--shadow-3);
}

/* Dark theme intentionally disabled — homepage uses hardcoded light colors.
   color-scheme: light on <html> tells the browser to stay in light mode. */

/* ========================================
   Base Styles
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: var(--font-sans);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-primary);
    background: var(--bg-default);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: #000000;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
}

a {
    color: var(--brand-default);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-hover);
}

/* Heading links inherit the heading color, underline on hover only */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: inherit;
    text-decoration: underline;
}

/* Push-to-chat icon on headline hover */
.headline-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--color-neutral-400);
    vertical-align: middle;
}

.headline-chat-btn:hover {
    color: var(--color-brand-600);
}

h1:hover > .headline-chat-btn,
h2:hover > .headline-chat-btn,
h3:hover > .headline-chat-btn,
h4:hover > .headline-chat-btn,
h5:hover > .headline-chat-btn,
h6:hover > .headline-chat-btn {
    opacity: 1;
}

.headline-chat-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

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

/* ========================================
   Layout
   ======================================== */

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-5);
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   Masthead Header
   ======================================== */

.masthead-header {
    background: var(--color-neutral-0);
    border-bottom: 1px solid #1a202c;
    z-index: 1000;
    position: relative;
    overflow: visible;
    width: 100%;
}

.masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem var(--space-5) 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masthead-title-link {
    text-decoration: none;
    color: #1a202c;
}

.masthead-title-link:hover {
    color: #1a202c;
}

.masthead-site-title {
    font-family: 'Grenze Gotisch', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a202c;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
}

.masthead-header .main-navigation {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .masthead-site-title {
        font-size: 2.25rem;
    }

    .masthead-inner {
        padding: 0.75rem var(--space-3) 0.5rem;
    }
}

/* Import timeline styles */
@import url('assets/css/timeline.css');
