@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Source+Sans+3:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-text: 'Lora', Georgia, 'Times New Roman', serif;
  --font-interface: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-monospace: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --accent-coral: #D85A30;
  --accent-coral-dark: #993C1D;
  --accent-coral-faint: rgba(216, 90, 48, 0.08);
  --accent-coral-border: rgba(216, 90, 48, 0.25);
  --accent-teal: #389888;
  --accent-amber: #CC9900;
  --accent-steel: #6482AA;
  --accent-slate: #8C857D;
}

.theme-dark {
  --background-primary: #18181b;
  --background-secondary: #1f1f23;
  --background-secondary-alt: #26262b;
  --text-normal: #e0dcd7;
  --text-muted: #9a9590;
  --text-faint: #6b6560;
  --interactive-accent: #D85A30;
  --interactive-accent-hover: #e06a42;
  --text-accent: #e8734d;
  --text-accent-hover: #f08a6a;
  --background-modifier-border: rgba(255, 255, 255, 0.08);
  --background-modifier-border-hover: rgba(255, 255, 255, 0.15);
  --background-modifier-border-focus: rgba(255, 255, 255, 0.22);
  --surface-raised: #222226;
  --surface-sunken: #141416;
}

.theme-light {
  --background-primary: #faf9f7;
  --background-secondary: #f0eee9;
  --background-secondary-alt: #e6e3dd;
  --text-normal: #1a1a1e;
  --text-muted: #5a5550;
  --text-faint: #8a8580;
  --interactive-accent: #993C1D;
  --interactive-accent-hover: #b5482a;
  --text-accent: #993C1D;
  --text-accent-hover: #b5482a;
  --background-modifier-border: rgba(0, 0, 0, 0.08);
  --background-modifier-border-hover: rgba(0, 0, 0, 0.15);
  --background-modifier-border-focus: rgba(0, 0, 0, 0.22);
  --surface-raised: #ffffff;
  --surface-sunken: #f0eeea;
}

.published-container {
  --font-text-size: 16.5px;
  --line-height: 1.78;
}

.site-body-left-column-site-name {
  font-family: var(--font-interface) !important;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
}

.nav-folder-title,
.tree-item-inner {
  font-family: var(--font-interface) !important;
  font-size: 13px;
  font-weight: 500;
}

.nav-file-title {
  font-family: var(--font-interface) !important;
  font-size: 13px;
}

.markdown-preview-view,
.markdown-rendered {
  font-family: var(--font-text) !important;
  font-size: var(--font-text-size);
  line-height: var(--line-height);
  color: var(--text-normal);
}

.markdown-preview-view h1,
.markdown-rendered h1 {
  font-family: var(--font-interface) !important;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-normal);
  letter-spacing: -0.02em;
}

.markdown-preview-view h2,
.markdown-rendered h2 {
  font-family: var(--font-interface) !important;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--background-modifier-border);
  color: var(--text-normal);
  letter-spacing: 0;
}

.markdown-preview-view h3,
.markdown-rendered h3 {
  font-family: var(--font-interface) !important;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.markdown-preview-view p,
.markdown-rendered p {
  margin-bottom: 1.1rem;
}

.markdown-preview-view strong,
.markdown-rendered strong {
  font-weight: 600;
  color: var(--text-normal);
}

.markdown-preview-view em,
.markdown-rendered em {
  font-style: italic;
}

.markdown-preview-view blockquote,
.markdown-rendered blockquote {
  border-left: 3px solid var(--accent-coral) !important;
  background: var(--accent-coral-faint) !important;
  padding: 14px 18px !important;
  margin: 1.5rem 0 !important;
  border-radius: 0 !important;
  font-family: var(--font-monospace) !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: var(--text-normal) !important;
}

.markdown-preview-view blockquote p:last-child,
.markdown-rendered blockquote p:last-child {
  margin-bottom: 0;
}

.theme-dark .markdown-preview-view blockquote,
.theme-dark .markdown-rendered blockquote {
  background: rgba(216, 90, 48, 0.06) !important;
}

.theme-light .markdown-preview-view blockquote,
.theme-light .markdown-rendered blockquote {
  background: rgba(153, 60, 29, 0.04) !important;
}

.markdown-preview-view a,
.markdown-rendered a {
  color: var(--text-accent) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-coral-border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.markdown-preview-view a:hover,
.markdown-rendered a:hover {
  color: var(--text-accent-hover) !important;
  border-bottom-color: var(--text-accent-hover);
}

.internal-link {
  color: var(--text-accent) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--accent-coral-border) !important;
}

.internal-link:hover {
  color: var(--text-accent-hover) !important;
  border-bottom-color: var(--text-accent-hover) !important;
}

.markdown-preview-view code,
.markdown-rendered code {
  font-family: var(--font-monospace) !important;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--background-secondary);
}

.markdown-preview-view ul,
.markdown-rendered ul,
.markdown-preview-view ol,
.markdown-rendered ol {
  padding-left: 1.5rem;
}

.markdown-preview-view li,
.markdown-rendered li {
  margin-bottom: 0.4rem;
}

.markdown-preview-view hr,
.markdown-rendered hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-coral-border), var(--background-modifier-border), var(--accent-coral-border), transparent);
  margin: 3rem 0;
}

.markdown-preview-view table,
.markdown-rendered table {
  font-family: var(--font-interface);
  font-size: 14px;
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid var(--background-modifier-border);
}

.markdown-preview-view th,
.markdown-rendered th {
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--accent-coral-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--background-secondary);
}

.markdown-preview-view td,
.markdown-rendered td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--background-modifier-border);
}

.markdown-preview-view tbody tr:hover,
.markdown-rendered tbody tr:hover {
  background: var(--accent-coral-faint);
}

.theme-dark .markdown-preview-view tbody tr:nth-child(even),
.theme-dark .markdown-rendered tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.theme-light .markdown-preview-view tbody tr:nth-child(even),
.theme-light .markdown-rendered tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.callout[data-callout="evidence"] {
  --callout-color: 216, 90, 48;
  --callout-icon: file-text;
  border-left-width: 3px;
}

.callout[data-callout="evidence"] .callout-content {
  font-family: var(--font-monospace) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.callout[data-callout="evidence"] .callout-title-inner {
  font-family: var(--font-interface) !important;
  font-size: 11.5px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.callout[data-callout="finding"] {
  --callout-color: 56, 152, 136;
  --callout-icon: check-circle-2;
  border-left-width: 4px;
}

.callout[data-callout="finding"] .callout-title-inner {
  font-family: var(--font-interface) !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.callout[data-callout="finding"] .callout-content {
  font-family: var(--font-interface) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 500;
}

.callout[data-callout="gap"] {
  --callout-color: 190, 145, 20;
  --callout-icon: alert-triangle;
  border-left-style: dashed !important;
  border-left-width: 3px;
}

.callout[data-callout="gap"] .callout-title-inner {
  font-family: var(--font-interface) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.callout[data-callout="key-date"] {
  --callout-color: 100, 130, 170;
  --callout-icon: calendar;
  border-left-width: 3px;
}

.callout[data-callout="key-date"] .callout-title-inner {
  font-family: var(--font-monospace) !important;
  font-size: 13px !important;
  font-weight: 500;
}

.callout[data-callout="source-note"] {
  --callout-color: 140, 133, 125;
  --callout-icon: archive;
  border-left-width: 2px;
}

.callout[data-callout="source-note"] .callout-content {
  font-size: 14px !important;
  color: var(--text-muted) !important;
}

.callout[data-callout="agency"] {
  --callout-color: 130, 110, 90;
  --callout-icon: building-2;
  border-left-width: 3px;
}

.markdown-preview-view .mermaid,
.markdown-rendered .mermaid {
  padding: 1.5rem 1rem;
  margin: 1.5rem 0;
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  background: var(--background-secondary);
  overflow-x: auto;
}

.theme-dark .markdown-preview-view .mermaid,
.theme-dark .markdown-rendered .mermaid {
  background: rgba(255, 255, 255, 0.02);
}

.theme-light .markdown-preview-view .mermaid,
.theme-light .markdown-rendered .mermaid {
  background: rgba(0, 0, 0, 0.015);
}

.mermaid .nodeLabel {
  font-family: var(--font-interface) !important;
  font-size: 12px !important;
}

.mermaid .edgeLabel {
  font-family: var(--font-interface) !important;
  font-size: 11px !important;
}

.frontmatter-container {
  display: none !important;
}

.site-body-left-column {
  border-right: 1px solid var(--background-modifier-border);
}

.theme-dark .nav-file-title:hover,
.theme-dark .nav-folder-title:hover {
  background: rgba(255, 255, 255, 0.04);
}

.theme-light .nav-file-title:hover,
.theme-light .nav-folder-title:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-file-title.is-active {
  color: var(--interactive-accent) !important;
  background: var(--accent-coral-faint) !important;
}

.markdown-preview-sizer {
  max-width: 760px;
  padding-bottom: 4rem;
}

.mod-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--background-modifier-border);
}

.backlinks {
  font-family: var(--font-interface);
  font-size: 13px;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--background-modifier-border);
}

.backlink-title {
  font-family: var(--font-interface);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
}

.graph-view-container {
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
}

.site-body-right-column {
  z-index: 2;
}

.site-body-right-column-inner {
  max-width: 280px;
}

::selection {
  background: rgba(216, 90, 48, 0.2);
}

.theme-light ::selection {
  background: rgba(153, 60, 29, 0.15);
}

.markdown-preview-view img,
.markdown-rendered img {
  border-radius: 3px;
  margin: 1rem 0;
  max-width: 100%;
  border: 1px solid var(--background-modifier-border);
}

.tag {
  font-family: var(--font-interface) !important;
  font-size: 11px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--accent-coral-faint);
  color: var(--interactive-accent) !important;
  border: 1px solid var(--accent-coral-border);
}

.tag:hover {
  background: var(--accent-coral-border);
}

@media (max-width: 768px) {
  .markdown-preview-view,
  .markdown-rendered {
    font-size: 15.5px;
  }

  .markdown-preview-view h1,
  .markdown-rendered h1 {
    font-size: 24px;
  }

  .markdown-preview-view h2,
  .markdown-rendered h2 {
    font-size: 18px;
  }

  .markdown-preview-view blockquote,
  .markdown-rendered blockquote {
    font-size: 12.5px !important;
    padding: 10px 14px !important;
  }

  .markdown-preview-view .mermaid,
  .markdown-rendered .mermaid {
    padding: 1rem 0.5rem;
    font-size: 11px;
  }
}

@media print {
  .site-body-left-column,
  .site-body-right-column,
  .mod-header,
  .backlinks {
    display: none !important;
  }

  .markdown-preview-view blockquote,
  .markdown-rendered blockquote {
    border-left: 2px solid #993C1D !important;
    background: #f5f0ed !important;
  }

  .callout {
    break-inside: avoid;
  }
}
