/* ===================================
   Honk - Main Stylesheet
   =================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Dark theme (default) */
    --bg-primary:     #0f0f14;
    --bg-secondary:   #1a1a24;
    --bg-card:        #22222e;
    --bg-input:       #2a2a38;
    --bg-hover:       #2e2e3e;
    --text-primary:   #e8e8f0;
    --text-secondary: #9090a8;
    --text-muted:     #9898b0;
    --accent-primary: #ff8c55;
    --accent-hover:   #ffa070;
    --accent-secondary: #4ecdc4;
    --accent-warning: #ffe66d;
    --accent-danger:  #ff5a7e;
    --accent-purple:  #a855f7;
    --accent-blue:    #3b82f6;
    --border-color:   #333345;
    --shadow-color:   rgba(0, 0, 0, 0.3);
    --shadow-lg:      0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-md:      0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.2);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    /* Z-index scale */
    --z-game-hud:     100;
    --z-navbar:       1000;
    --z-dropdown:     1001;
    --z-modal:        9999;
    --radius-full:    9999px;
    --transition:     0.2s ease;
    --font-sans:      system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:      'Cascadia Code', 'Fira Code', monospace;
}

[data-theme="light"] {
    --bg-primary:     #f0f0f5;
    --bg-secondary:   #ffffff;
    --bg-card:        #ffffff;
    --bg-input:       #eeeef4;
    --bg-hover:       #e4e4ee;
    --text-primary:   #1a1a2e;
    --text-secondary: #555570;
    --text-muted:     #6e6e82;
    --border-color:   #d0d0e0;
    --shadow-color:   rgba(0, 0, 0, 0.08);
    --shadow-lg:      0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-md:      0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Twemoji inline images --- */
img.emoji {
    height: 1.2em;
    width: 1.2em;
    margin: 0 0.05em;
    vertical-align: -0.2em;
    display: inline-block;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main.container {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* --- Header / Navigation --- */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: var(--accent-primary);
}

.logo-icon {
    font-size: 1.6rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link-fun {
    color: var(--accent-warning);
}

.nav-link-fun:hover {
    color: var(--accent-warning);
    background: rgba(255, 230, 109, 0.1);
}

.nav-search {
    flex: 1;
    max-width: 300px;
}

.search-form {
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--accent-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-user-menu {
    position: relative;
}

.nav-user-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-user-btn:hover {
    background: var(--bg-hover);
}

.nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 0.5rem;
    z-index: var(--z-dropdown);
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown a,
.nav-dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-dropdown a:hover,
.nav-dropdown-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-dropdown-link {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nav-logout-form {
    display: contents;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.theme-toggle:hover {
    opacity: 1;
}

/* --- Flash Messages --- */
.flash {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    animation: flashIn 0.3s ease;
}

.flash-success {
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--accent-secondary);
}

.flash-error {
    background: rgba(255, 22, 84, 0.15);
    border: 1px solid rgba(255, 22, 84, 0.3);
    color: #ff6b8a;
}

.flash-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.flash-warning {
    background: rgba(255, 230, 109, 0.15);
    border: 1px solid rgba(255, 230, 109, 0.3);
    color: var(--accent-warning);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
    line-height: 1;
}

.flash-close:hover {
    opacity: 1;
}

.flash-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Loading Spinner --- */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
.spinner-sm { width: 0.85em; height: 0.85em; border-width: 1.5px; }
.btn .spinner { margin-right: 0.35em; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Confirm Modal --- */
.game-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}
.game-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.15s ease;
}
.game-modal {
    background: var(--bg-card, #22222e);
    border: 1px solid var(--border-color, #333);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}
.game-modal-message {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary, #e8e8f0);
}
.game-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 250px;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease;
    transition: opacity 0.3s, transform 0.3s;
}
.toast-success { background: rgba(78, 205, 196, 0.95); color: #0a2e2b; }
.toast-error { background: rgba(255, 22, 84, 0.9); color: #fff; }
.toast-info { background: rgba(59, 130, 246, 0.9); color: #fff; }
.toast-dismissing { opacity: 0; transform: translateX(100%); }
.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}
.toast-close:hover { opacity: 1; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 480px) {
    .toast-container { left: 0.75rem; right: 0.75rem; bottom: 1rem; }
    .toast { min-width: unset; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-danger {
    background: var(--accent-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #e0134a;
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label,
.form-group > label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select,
.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-control:focus {
    border-color: var(--accent-primary);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-control::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-optional {
    font-weight: 400;
    color: var(--text-muted);
}

/* --- Auth Pages --- */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-warning {
    background: rgba(255, 230, 109, 0.1);
    border: 1px solid rgba(255, 230, 109, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--accent-warning);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Legal / Contact Pages --- */
.legal-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.legal-card {
    width: 100%;
    max-width: 680px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    line-height: 1.7;
}

.legal-card h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.legal-card h2 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-card p,
.legal-card ul {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.legal-card ul {
    padding-left: 1.5rem;
}

.legal-card ul li {
    margin-bottom: 0.35rem;
}

.legal-updated {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

/* --- Home Page --- */
.home-hero {
    text-align: center;
    padding: 3rem 0;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-section {
    margin-top: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Error Pages --- */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-tagline {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 0.6rem 0.75rem;
    }

    .nav-search {
        max-width: 100%;
    }

    .nav-actions {
        flex-wrap: wrap;
        margin-left: 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

/* ===================================
   Sunshine Shoals Gazette (Newspaper)
   =================================== */
.newspaper {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.gazette-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.gazette-masthead {
    padding: 0.75rem 0 1rem;
    border-top: 3px solid var(--text-primary);
    border-bottom: 3px solid var(--text-primary);
    position: relative;
}

.gazette-masthead::before,
.gazette-masthead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text-primary);
}
.gazette-masthead::before { top: 3px; }
.gazette-masthead::after { bottom: 3px; }

.gazette-date {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gazette-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0.15rem 0;
    color: var(--text-primary);
    text-transform: uppercase;
}

.gazette-title a {
    color: inherit;
    text-decoration: none;
}

.gazette-tagline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.gazette-edition {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Ticker */
.gazette-ticker {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.ticker-label {
    font-weight: 700;
    color: #ff5a7e;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.ticker-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ticker-scroll::-webkit-scrollbar { display: none; }

.ticker-item {
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
}

.ticker-item::after {
    content: ' \2666';
    color: var(--text-muted);
    margin-left: 2rem;
    font-style: normal;
}

/* Articles grid */
.gazette-grid {
    margin-bottom: 2rem;
}

.gazette-lead {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.gazette-headline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.gazette-headline a {
    color: var(--text-primary);
    text-decoration: none;
}

.gazette-headline a:hover {
    color: var(--accent-primary);
}

.gazette-body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.gazette-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gazette-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.gazette-meta a:hover {
    color: var(--accent-primary);
}

.gazette-source {
    font-weight: 600;
}

.gazette-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0 2rem;
    column-rule: 1px solid var(--border-color);
}

.gazette-article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.gazette-headline-sm {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.gazette-headline-sm a {
    color: var(--text-primary);
    text-decoration: none;
}

.gazette-headline-sm a:hover {
    color: var(--accent-primary);
}

.gazette-excerpt {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.4rem;
}

.gazette-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.gazette-section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.1rem;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-top: 2px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.blotter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.blotter-item {
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.75rem;
    border-left: 3px solid #ff5a7e;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.blotter-item p {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.blotter-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blotter-meta a {
    color: var(--accent);
    text-decoration: none;
}

.blotter-meta a:hover {
    text-decoration: underline;
}

.blotter-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.blotter-content {
    flex: 1;
    min-width: 0;
}

.blotter-footer {
    margin-top: 1rem;
    text-align: center;
}

/* Full article page */
.gazette-full-article {
    max-width: 680px;
    margin: 0 auto;
}

.gazette-article-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.gazette-article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.gazette-article-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.gazette-article-meta a:hover {
    color: var(--accent-primary);
}

.gazette-article-body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.gazette-article-body p + p { text-indent: 1.5em; }

.gazette-article-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.gazette-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.gazette-page-info {
    font-size: 0.9rem;
    color: var(--game-muted);
    font-style: italic;
}

.gazette-admin {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* --- Gazette responsive --- */
@media (max-width: 768px) {
    .newspaper { padding: 0.75rem; }
    .gazette-title { font-size: 1.6rem; }
    .gazette-headline { font-size: 1.3rem; }
    .gazette-columns { grid-template-columns: 1fr; gap: 0; column-rule: none; }
    .gazette-ticker { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .ticker-scroll { width: 100%; }
    .gazette-lead { padding-bottom: 1rem; margin-bottom: 1rem; }
    .gazette-article-body { font-size: 0.95rem; }
    .gazette-edition { flex-direction: column; align-items: center; gap: 0.2rem; }
}

/* --- Focus-visible styles for keyboard accessibility --- */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* --- Screen-reader-only utility --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Flash message symbols for color-independent feedback --- */
.flash-success .flash-message::before { content: "\2714  "; }
.flash-error .flash-message::before { content: "\2716  "; }
.flash-info .flash-message::before { content: "\2139\FE0F  "; }
.flash-warning .flash-message::before { content: "\26A0\FE0F  "; }
