/* Drumcree Conflict Documentation Hub — Styles */

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

:root {
    --slate-900: #1a1f2b;
    --slate-800: #252b36;
    --slate-700: #3a4250;
    --slate-500: #6b7385;
    --slate-300: #c4cad4;
    --slate-100: #f0f2f5;
    --amber-500: #d4a017;
    --amber-400: #e8b830;
    --amber-100: #fdf3d0;
    --white: #fff;
    --max-width: 1200px;
    --radius: 6px;
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--slate-100);
    color: var(--slate-900);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--slate-900);
    color: var(--white);
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header */
.site-header {
    background: var(--slate-900);
    color: var(--white);
    padding: 16px 0;
    border-bottom: 3px solid var(--amber-500);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    letter-spacing: -0.02em;
}

.brand-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-300);
    margin-top: 2px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.site-nav a {
    color: var(--slate-300);
    text-decoration: none;
    font-size: 0.9rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    border-bottom-color: var(--amber-500);
}

/* Intro Section */
.page-intro {
    background: var(--white);
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--slate-300);
}

.page-intro h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--slate-900);
}

.intro-summary {
    font-size: 1.1rem;
    color: var(--slate-700);
    max-width: 700px;
    margin-bottom: 16px;
}

.meta-marker {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.meta-marker a {
    color: var(--slate-900);
    text-decoration: underline;
}

/* Timeline Controls */
.timeline-controls {
    padding: 24px 0 16px;
    background: var(--slate-100);
}

.filter-group {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-group legend {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    width: 100%;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--slate-300);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--amber-500);
    background: var(--amber-100);
}

.filter-btn.active {
    background: var(--slate-900);
    color: var(--white);
    border-color: var(--slate-900);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--white);
    border: 1px solid var(--slate-300);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.action-btn:hover {
    background: var(--slate-900);
    color: var(--white);
    border-color: var(--slate-900);
}

/* Timeline Layout */
.timeline-panel {
    padding: 24px 0 48px;
}

.timeline-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 800px) {
    .timeline-layout {
        grid-template-columns: 1fr;
    }
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    background: var(--white);
    border-left: 4px solid var(--amber-500);
    padding: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
    position: relative;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.event-card.selected {
    border-left-color: var(--slate-900);
    background: var(--amber-100);
}

.event-year {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--amber-500);
    margin-bottom: 4px;
}

.event-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate-900);
}

.event-category {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--slate-300);
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
    color: var(--slate-700);
}

/* Detail panel */
.event-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 200px;
    position: sticky;
    top: 20px;
    border: 1px solid var(--slate-300);
}

@media (max-width: 800px) {
    .event-detail {
        position: static;
    }
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--slate-500);
    text-align: center;
    padding: 32px 12px;
}

.detail-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--slate-900);
}

.detail-content .detail-meta {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.detail-content p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.detail-content .detail-source {
    font-size: 0.75rem;
    color: var(--slate-500);
    border-top: 1px solid var(--slate-300);
    padding-top: 8px;
    margin-top: 8px;
}

.share-event-btn {
    background: none;
    border: 1px solid var(--slate-300);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
}

.share-event-btn:hover {
    background: var(--slate-900);
    color: var(--white);
}

/* Reference content */
.reference-content {
    padding: 40px 0 60px;
    background: var(--white);
    border-top: 1px solid var(--slate-300);
}

.reference-content h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--slate-900);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ref-card {
    background: var(--slate-100);
    padding: 20px;
    border-radius: var(--radius);
}

.ref-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--slate-900);
}

.ref-card p {
    font-size: 0.9rem;
    color: var(--slate-700);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 32px 0;
    margin-top: auto;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-inner a {
    color: var(--amber-400);
}

/* Print styles */
.print-only {
    display: none;
}

@media print {
    .site-header, .site-footer, .timeline-controls, .event-detail, .reference-content, .action-buttons, .skip-link {
        display: none;
    }
    .print-only {
        display: block;
        padding: 20px;
    }
    .event-card {
        break-inside: avoid;
        border-left: 2px solid #000;
        margin-bottom: 12px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav ul {
        gap: 12px;
        flex-wrap: wrap;
    }
    .page-intro h1 {
        font-size: 1.4rem;
    }
    .intro-summary {
        font-size: 0.95rem;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
