
@font-face {
  font-family: 'Oswald';
  src: url('https://lojbgqtsyiavjatupeyj.supabase.co/storage/v1/object/public/public-assets/fonts/oswald-1769771584341.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============================================
     THEME COLORS - Edit these to change the site theme
     ============================================

     Color format: oklch(lightness chroma hue)
     - lightness: 0 (black) to 1 (white)
     - chroma: 0 (gray) to ~0.4 (vivid)
     - hue: 0-360 (red=0, green=120, blue=240)

     Tip: Use https://oklch.com to pick colors
  ============================================ */

  /* Border radius for buttons, cards, inputs */
  --radius: 1.5rem;

  /* ===========================================
     MAIN COLORS - Most commonly edited
     =========================================== */

  /* Page background color (white) */
  --background: oklch(1 0 0);

  /* Main text color (near black) */
  --foreground: oklch(0.145 0 0);

  /* Heading text color */
  --heading: oklch(0.145 0 0);

  /* Brand/accent color (green) - used for links, buttons, highlights */
  --brand: oklch(0.8002 0.1062 247.69);

  /* Lighter brand color - used for hover states, gradients */
  --brand-light: oklch(0.8531 0.0721 246.81);

  /* Darker brand color - used for active states */
  --brand-dark: oklch(0.7511 0.1053 248.19);

  /* ===========================================
     SURFACE COLORS - Cards, sections, backgrounds
     =========================================== */

  /* Card/panel background (white) */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);

  /* Muted/subtle background (light gray) - used for page backgrounds, sections */
  --muted: ooklch(0.9291 0 0);

  /* Muted text color (gray) - used for subtitles, descriptions, secondary text */
  --muted-foreground: oklch(0.556 0 0);

  /* Border color (light gray) - used for dividers, card borders */
  --border: oklch(0.922 0 0);

  /* ===========================================
     BUTTON & INPUT COLORS
     =========================================== */

  /* Primary button background (dark) */
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);

  /* Secondary button background (light gray) */
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);

  /* Input border color */
  --input: oklch(0.922 0 0);

  /* Focus ring color */
  --ring: oklch(0.708 0 0);

  /* ===========================================
     ACCENT & DESTRUCTIVE
     =========================================== */

  /* Accent color for highlights */
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);

  /* Destructive/error color (red) */
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);

  /* ===========================================
     POPOVER & DROPDOWN
     =========================================== */

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);

  /* ===========================================
     CHART COLORS - For data visualizations
     =========================================== */

  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);

  /* ===========================================
     ADMIN SIDEBAR COLORS
     =========================================== */

  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

button, a:hover {
  cursor: pointer;
}

/* Sidebar active state styling */
[data-sidebar="menu-button"][data-active="true"] {
  background: linear-gradient(to bottom, var(--brand-light), var(--brand)) !important;
  color: white !important;
  font-weight: 500;
}

[data-sidebar="menu-button"][data-active="true"] svg {
  color: white !important;
}

/* ===== NEWS ARTICLE MARKDOWN STYLES ===== */
.article-content {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

/* Headings */
.article-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  line-height: 1.3;
}

.article-content h1:first-child {
  margin-top: 0;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #111827;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: #111827;
}

.article-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: #111827;
}

.article-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1rem;
}

.article-content p:last-child {
  margin-bottom: 0;
}

/* Links */
.article-content a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.article-content a:hover {
  text-decoration: underline;
}

/* Bold, Italic, Strikethrough */
.article-content strong,
.article-content b {
  font-weight: 700 !important;
  color: #111827;
}

.article-content em,
.article-content i {
  font-style: italic !important;
}

.article-content del,
.article-content s {
  text-decoration: line-through !important;
  color: #9ca3af;
}

/* Blockquotes */
.article-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  background: #f9fafb;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: #4b5563;
  font-style: italic;
}

.article-content blockquote blockquote {
  margin: 0.75rem 0;
}

/* Unordered Lists */
.article-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.article-content ul ul {
  list-style-type: circle;
  margin: 0.25rem 0;
}

.article-content ul ul ul {
  list-style-type: square;
}

/* Ordered Lists */
.article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

.article-content ol ol {
  list-style-type: lower-alpha;
  margin: 0.25rem 0;
}

.article-content ol ol ol {
  list-style-type: lower-roman;
}

/* List Items */
.article-content li {
  margin-bottom: 0.375rem;
  display: list-item;
}

.article-content li > p {
  margin-bottom: 0.25rem;
}

.article-content li > ul,
.article-content li > ol {
  margin: 0.25rem 0;
}

/* Task Lists */
.article-content .task-list-item {
  list-style: none;
  margin-left: -1.5rem;
  padding-left: 0;
}

.article-content input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Inline Code */
.article-content code {
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  color: #dc2626;
}

/* Code Blocks */
.article-content pre {
  background: #1f2937 !important;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  overflow-x: auto;
}

.article-content pre code {
  background: transparent !important;
  color: #e5e7eb !important;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  display: block;
}

/* Horizontal Rule */
.article-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 2.5rem 0;
}

/* Images */
.article-content img {
  max-width: min(100%, 600px);
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.article-content thead {
  background: #f9fafb;
}

.article-content th {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
}

.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  color: #374151;
}

.article-content tbody tr:nth-child(even) {
  background: #f9fafb;
}

.article-content tbody tr:hover {
  background: #f3f4f6;
}

/* Definition Lists */
.article-content dl {
  margin: 1rem 0;
}

.article-content dt {
  font-weight: 600;
  color: #111827;
  margin-top: 1rem;
}

.article-content dd {
  margin-left: 1.5rem;
  color: #4b5563;
}

/* Abbreviations */
.article-content abbr {
  text-decoration: underline dotted;
  cursor: help;
}

/* Keyboard */
.article-content kbd {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 #d1d5db;
}

/* Superscript and Subscript */
.article-content sup,
.article-content sub {
  font-size: 0.75em;
}

/* Mark/Highlight */
.article-content mark {
  background: color-mix(in oklch, var(--brand) 30%, transparent);
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
}

/* Footnotes */
.article-content .footnotes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}

.article-content .footnote-ref {
  font-size: 0.75em;
  vertical-align: super;
}

/* Details/Summary (Collapsible) */
.article-content details {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.article-content summary {
  font-weight: 600;
  cursor: pointer;
  color: #111827;
}

.article-content details[open] summary {
  margin-bottom: 0.75rem;
}

/* Text selection */
.article-content ::selection {
  background: color-mix(in oklch, var(--brand) 25%, transparent);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .article-content {
    font-size: 15px;
  }

  .article-content h1 {
    font-size: 1.75rem;
  }

  .article-content h2 {
    font-size: 1.375rem;
  }

  .article-content h3 {
    font-size: 1.125rem;
  }

  .article-content pre {
    padding: 0.75rem;
    margin: 1rem 0;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-content img {
    margin: 1rem 0;
  }
}

/* Hide scrollbar utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

:root {
  --font-custom-oswald: 'Oswald';
}

body {
  --font-heading: var(--font-lato);
  --font-body: var(--font-lato);
}