/* ==============================================================================
   POORVAM FOUNDATION — SCHOLARLY DESIGN SYSTEM (SPRINGER / CAMBRIDGE CORE)
   Colour Palette: Scholarly Maroon, Ivory & Ink
   Typography: Source Serif 4, Noto Sans, IBM Plex Mono
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Noto+Serif+Bengali:wght@400;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400..800;1,8..60,400..800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

/* ==============================================================================
   DESIGN TOKENS — LIGHT MODE
   ============================================================================== */
:root {
    /* Scholarly Colour System */
    --ink: #1A1A1A;
    --paper: #FFFFFF;
    --paper-muted: #F7F6F3;
    --accent: #7A2E27;
    --accent-ink: #5C231E;
    --accent-hover: #5C231E;
    --rule: #E3E1DC;
    --muted: #5C5C5C;
    --oa-green: #1B7A4C;

    /* Semantic aliases (backward compat) */
    --primary: var(--accent);
    --primary-dark: var(--accent-ink);
    --primary-light: #964A44;
    --primary-50: #F5EDEC;
    --primary-100: #E8D4D2;
    --success: var(--oa-green);
    --warning: #B45309;
    --danger: #A12830;
    --info: var(--ink);

    /* Surfaces */
    --bg-page: var(--paper-muted);
    --bg-surface: var(--paper);
    --bg-card: var(--paper);
    --bg-subtle: var(--paper-muted);
    --bg-elevated: var(--paper);
    --text-main: var(--ink);
    --text-muted: var(--muted);
    --text-subtle: #787872;
    --border-color: var(--rule);
    --border-subtle: #EDECEA;
    --secondary: var(--ink);
    --secondary-dark: #000000;
    --secondary-50: var(--paper-muted);
    --accent-blue: var(--accent);
    --accent-blue-hover: var(--accent-ink);

    /* Typography */
    --font-heading: 'Source Serif 4', 'Noto Serif', 'Charter', Georgia, 'Noto Serif Bengali', serif;
    --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Bengali', 'Noto Sans Devanagari', sans-serif;
    --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;

    /* Radii & Shadows — scholarly restraint */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05);
    --shadow-md: 0 2px 6px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.12);

    --transition: all 0.18s ease-in-out;
}

/* ==============================================================================
   DISPLAY & LAYOUT UTILITIES
   ============================================================================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-inline { display: inline !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}
[data-theme="dark"] {
    --ink: #EDEBE6;
    --paper: #14130F;
    --paper-muted: #1B1A16;
    --accent: #C9564A;
    --accent-ink: #E07A6F;
    --accent-hover: #E07A6F;
    --rule: #2E2C27;
    --muted: #9C9A93;
    --oa-green: #3CB371;

    --primary: var(--accent);
    --primary-dark: var(--accent-ink);
    --primary-50: #2A1F1E;
    --primary-100: #3D2925;
    --primary-light: #E07A6F;
    --secondary: #EDEBE6;
    --secondary-50: #1B1A16;
    --accent-blue: var(--accent);

    --bg-page: var(--paper-muted);
    --bg-surface: var(--paper);
    --bg-card: #1F1E1A;
    --bg-subtle: #22211C;
    --bg-elevated: #28261F;
    --text-main: var(--ink);
    --text-muted: var(--muted);
    --text-subtle: #7A7870;
    --border-color: var(--rule);
    --border-subtle: #252420;
}

/* ==============================================================================
   BASE RESET & CORE STYLES
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-page);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-ink);
    text-decoration: underline;
}

/* ==============================================================================
   CONTAINER & LAYOUT
   ============================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.site-main {
    flex: 1;
}

/* ==============================================================================
   TOP UTILITY BAR
   ============================================================================== */
.top-bar {
    background: #111111;
    color: #E8E5DF;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--accent);
    padding: 0.35rem 0;
}

[data-theme="dark"] .top-bar {
    background: #0C0B08;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-announcement {
    transition: var(--transition);
}

.top-bar-announcement:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.top-bar-announcement:hover i {
    transform: translateX(3px);
    transition: transform 0.15s ease;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-links a {
    color: #E8E5DF;
    text-decoration: none;
}

.top-bar-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #E8E5DF;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.theme-toggle-btn:hover {
    color: #FFFFFF;
}

/* ==============================================================================
   SITE HEADER & NAVBAR
   ============================================================================== */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-img {
    height: 38px;
    width: auto;
}

/* Main Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    list-style: none;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-main);
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background-color: var(--primary-50);
    color: var(--accent);
    text-decoration: none;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    border: 1px solid var(--rule);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.btn-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==============================================================================
   SECONDARY SUB-NAV RIBBON (Single-Line Scrollable with Dropdowns)
   ============================================================================== */
.subnav-bar {
    background: var(--paper-muted);
    border-bottom: 1px solid var(--rule);
    padding: 0.4rem 0;
    position: relative;
    z-index: 990;
}

.subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    position: relative;
}

.subnav-title {
    flex-shrink: 0;
}

.subnav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Scrollable Container with Right-Side Scroll Buttons */
.subnav-scroll-container {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
    flex: 1;
}

.subnav-scroll-area {
    overflow-x: auto;
    flex: 1;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.subnav-scroll-area::-webkit-scrollbar {
    display: none;
}

/* Right-aligned Subnav Actions (Scroll Buttons + CTA) */
.subnav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.subnav-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-full);
    padding: 2px;
}

.subnav-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.subnav-scroll-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #FFFFFF;
}

.subnav-scroll-btn:disabled,
.subnav-scroll-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.subnav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.subnav-links li {
    list-style: none;
    position: relative;
}

.subnav-links a,
.subnav-dropdown-toggle {
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
}

.subnav-links a:hover,
.subnav-dropdown-toggle:hover {
    color: var(--accent);
    background-color: var(--primary-50);
}

.subnav-links a.active,
.subnav-links a[aria-current="page"] {
    color: var(--accent);
    background-color: var(--primary-50);
    border-bottom: 2px solid var(--accent);
    font-weight: 700;
}

.subnav-links a:focus-visible,
.subnav-dropdown-toggle:focus-visible,
.subnav-brand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background-color: var(--primary-50);
}

/* Subnav Dropdowns */
.subnav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.subnav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.4rem 0;
    min-width: 210px;
    z-index: 1100;
    display: none;
    list-style: none;
    margin: 0;
}

.subnav-dropdown:hover .subnav-dropdown-menu,
.subnav-dropdown:focus-within .subnav-dropdown-menu {
    display: block;
}

.subnav-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem !important;
    font-family: var(--font-sans) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

.subnav-dropdown-item:hover {
    background-color: var(--primary-50) !important;
    color: var(--accent) !important;
}

.subnav-dropdown-item.active {
    color: var(--accent) !important;
    font-weight: 700 !important;
    background-color: var(--primary-50) !important;
}

.subnav-cta {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    gap: 0.35rem;
}

.btn-brick,
.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.btn-brick:hover,
.btn-primary:hover {
    background-color: var(--accent-ink);
    border-color: var(--accent-ink);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background-color: var(--accent-ink);
    border-color: var(--accent-ink);
    color: #FFFFFF;
}

.btn-outline-brick,
.btn-outline-teal {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-brick:hover,
.btn-outline-teal:hover {
    background-color: var(--accent);
    color: #FFFFFF;
}

.btn-outline,
.btn-outline-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border-color: var(--rule);
}

.btn-outline:hover,
.btn-outline-secondary:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

/* ==============================================================================
   CARDS
   ============================================================================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    transition: var(--transition);
    padding: 1.5rem;
    box-shadow: none;
}

.card:hover {
    border-color: var(--muted);
}

.card-meta,
.card-footer,
.card-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.card-meta,
.card-footer {
    justify-content: space-between;
    color: var(--text-subtle);
    font-family: var(--font-sans);
    font-size: 0.82rem;
}

.card-title {
    font-size: 1.15rem;
    margin: 0.9rem 0 0.6rem;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.62;
}

.card-footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: 1.25rem;
    padding-top: 0.9rem;
}

/* ==============================================================================
   HERO SECTION — SCHOLARLY RESTRAINT
   ============================================================================== */
.hero-section {
    background: var(--bg-page);
    border-bottom: 1px solid var(--rule);
    padding: 3.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    margin-bottom: 1rem;
}

.hero-title {
    max-width: 780px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.hero-title span {
    color: var(--accent);
}

.hero-lead {
    max-width: 640px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ==============================================================================
   STATS STRIP — QUIET MUTED NUMERALS
   ============================================================================== */
.stats-strip {
    background: var(--bg-surface);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
    padding: 1rem;
    border-right: 1px solid var(--rule);
    text-align: center;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-num {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--text-subtle);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

/* ==============================================================================
   SECTIONS & CONTENT GRIDS
   ============================================================================== */
.section {
    padding: 3.5rem 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: 0.25rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ==============================================================================
   JOURNAL BANNER
   ============================================================================== */
.journal-banner {
    background:
        linear-gradient(rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.88)),
        url('../images/imprint_hero.png') center / cover;
    border-left: 4px solid var(--accent);
    padding: 3.5rem;
    color: #FFFFFF;
}

.journal-banner p {
    color: #E8E5DF;
}

/* ==============================================================================
   FLASH ALERTS
   ============================================================================== */
.flash-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    background: var(--bg-surface);
    padding: 0.85rem 1rem;
}

.flash-success {
    border-left-color: var(--oa-green);
}

.flash-error {
    border-left-color: var(--danger);
}

/* ==============================================================================
   BADGES
   ============================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--rule);
}

.badge-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.badge-secondary {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* Utility helpers */
.bg-brick,
.bg-primary {
    background-color: var(--accent);
    color: #FFFFFF;
}

.bg-brick-subtle,
.bg-teal-subtle {
    background-color: var(--primary-50);
    color: var(--accent);
}

.text-brick,
.text-teal,
.text-primary {
    color: var(--accent);
}

/* ==============================================================================
   FOOTER — ALWAYS DARK
   ============================================================================== */
.site-footer {
    background-color: #111111;
    color: #9CA3AF;
    font-size: 0.88rem;
    border-top: 3px solid var(--accent);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    margin-top: auto;
    font-family: var(--font-body);
}

[data-theme="dark"] .site-footer {
    background-color: #0C0B08;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #9CA3AF;
    margin-bottom: 1.25rem;
}

.footer-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #D1D5DB;
    background: #1F242B;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid #2B323C;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #1F242B;
    color: #D1D5DB;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #2B323C;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #283038;
}

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

.footer-links li {
    list-style: none;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid #283038;
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6B7280;
}

.footer-bottom p {
    margin: 0;
    color: #9CA3AF;
}

/* ==============================================================================
   RESPONSIVE — 1180px
   ============================================================================== */
@media (max-width: 1180px) {
    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.76rem;
    }

    .nav-actions {
        gap: 8px;
    }
}

/* ==============================================================================
   RESPONSIVE — 1024px (footer)
   ============================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

/* ==============================================================================
   RESPONSIVE — 980px
   ============================================================================== */
@media (max-width: 980px) {
    .top-bar-inner,
    .subnav-inner,
    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
        height: auto;
        padding: 1rem 0;
    }

    .nav-menu {
        align-items: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-actions {
        position: absolute;
        right: 0;
        top: 1rem;
    }

    .hero-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .section-title {
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }
}

/* ==============================================================================
   RESPONSIVE — 640px
   ============================================================================== */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .top-bar-links,
    .hero-cta,
    .subnav-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-img {
        height: 32px;
        max-width: 200px;
    }

    .nav-actions {
        position: static;
    }

    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .journal-banner {
        padding: 2rem 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==============================================================================
   PRINT STYLESHEET
   ============================================================================== */
@media print {
    .top-bar,
    .site-header,
    .subnav-bar,
    .site-footer,
    .hero-section,
    .stats-strip,
    .nav-actions,
    .flash-alert {
        display: none !important;
    }

    body {
        background: white;
        color: #1A1A1A;
        font-size: 11pt;
        line-height: 1.5;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .site-main {
        padding: 0;
    }

    a {
        color: #1A1A1A;
        text-decoration: none;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.85em;
        color: #5C5C5C;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: '';
    }
}
