/* Sovereign News Station — Design System */

/* ── CSS Custom Properties ────────────────────────────────── */

:root {
    --sns-bg:            #ffffff;
    --sns-bg-surface:    #f8f9fa;
    --sns-bg-elevated:   #ffffff;
    --sns-bg-hover:      #f1f5f9;
    --sns-border:        #e2e8f0;
    --sns-border-light:  #f1f5f9;
    --sns-text:          #1a202c;
    --sns-text-secondary:#4a5568;
    --sns-text-muted:    #64748b;
    --sns-accent:        #1a365d;
    --sns-accent-hover:  #2d3748;
    --sns-accent-light:  #ebf4ff;
    --sns-red:           #dc2626;
    --sns-brand-red:     #b91c1c;
    --sns-green:         #16a34a;
    --sns-yellow:        #ca8a04;
    --sns-orange:        #ea580c;
    --sns-radius:        6px;
    --sns-radius-lg:     10px;
    --sns-shadow:        0 1px 3px rgba(0,0,0,0.08);
    --sns-shadow-md:     0 4px 12px rgba(0,0,0,0.08);
    --sns-max-width:     1200px;
    --sns-content-width: 680px;
}

.dark-mode {
    --sns-bg:            #0f1117;
    --sns-bg-surface:    #1a1d27;
    --sns-bg-elevated:   #222633;
    --sns-bg-hover:      #2a2e3a;
    --sns-border:        #2a2e3a;
    --sns-border-light:  #1e2230;
    --sns-text:          #e4e4e7;
    --sns-text-secondary:#a1a1aa;
    --sns-text-muted:    #9ca3af;
    --sns-accent:        #3b82f6;
    --sns-accent-hover:  #60a5fa;
    --sns-accent-light:  #1e293b;
    --sns-shadow:        0 1px 3px rgba(0,0,0,0.3);
    --sns-shadow-md:     0 4px 12px rgba(0,0,0,0.3);
}

/* ── Reset & Base ─────────────────────────────────────────── */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
    background: var(--sns-bg);
    color: var(--sns-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

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

/* ── Typography ───────────────────────────────────────────── */

.font-serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.text-xs   { font-size: 11px; }
.text-sm   { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg   { font-size: 18px; }
.text-xl   { font-size: 22px; }
.text-2xl  { font-size: 28px; }
.text-3xl  { font-size: 36px; }

.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 800; }

.text-muted { color: var(--sns-text-muted); }
.text-secondary { color: var(--sns-text-secondary); }

/* ── Layout ───────────────────────────────────────────────── */

.container {
    max-width: var(--sns-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.content-width {
    max-width: var(--sns-content-width);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

/* ── Spacing ──────────────────────────────────────────────── */

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.p-4  { padding: 16px; }
.p-5  { padding: 20px; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .hide-mobile { display: none !important; }
    .text-3xl { font-size: 24px; }
    .text-2xl { font-size: 22px; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ── Print ────────────────────────────────────────────────── */

@media print {
    .sns-header, .sns-nav, .sns-footer, .sns-breaking,
    .sns-menu-toggle, .sns-dark-toggle, .sns-search-form,
    .sns-btn, .sns-ops-controls, #sns-breaking-container {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    .container { max-width: 100%; padding: 0; }
    .sns-article { padding: 0; }
    .sns-article-headline { font-size: 24pt; }
    .sns-article-body { font-size: 11pt; line-height: 1.6; }
    .sns-key-points { border: 1px solid #ccc; background: #f9f9f9; }
    .sns-article-lead-image img { max-height: 300px; }
    a { color: #000; text-decoration: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
    .sns-article-body a[href]::after { content: none; }
    .sns-related { page-break-before: always; }
}
